Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
planner-team-one
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Евгений Положенцев
planner-team-one
Commits
402aad11
Commit
402aad11
authored
Nov 09, 2022
by
Ermolaev Timur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17
Реализовал юзеров в фикстуре
parent
d1b8f15f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
641 additions
and
7 deletions
+641
-7
package-lock.json
planner-api/package-lock.json
+577
-0
package.json
planner-api/package.json
+4
-1
fixtures.ts
planner-api/src/fixtures.ts
+54
-0
Task.ts
planner-api/src/models/Task.ts
+1
-1
User.ts
planner-api/src/models/User.ts
+4
-4
tasksActions.js
planner-front/src/store/actions/tasksActions.js
+1
-1
No files found.
planner-api/package-lock.json
View file @
402aad11
...
...
@@ -24,12 +24,14 @@
"typeorm"
:
"^0.3.10"
},
"devDependencies"
:
{
"@faker-js/faker"
:
"^7.6.0"
,
"@types/node"
:
"^18.11.8"
,
"@typescript-eslint/eslint-plugin"
:
"^5.41.0"
,
"@typescript-eslint/parser"
:
"^5.41.0"
,
"eslint"
:
"^8.26.0"
,
"nodemon"
:
"^2.0.20"
,
"ts-node"
:
"^10.9.1"
,
"typeorm-fixtures-cli"
:
"^3.0.1"
,
"typescript"
:
"^4.8.4"
}
},
...
...
@@ -1393,6 +1395,31 @@
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
,
"dev"
:
true
},
"node_modules/@faker-js/faker"
:
{
"version"
:
"7.6.0"
,
"resolved"
:
"https://registry.npmjs.org/@faker-js/faker/-/faker-7.6.0.tgz"
,
"integrity"
:
"sha512-XK6BTq1NDMo9Xqw/YkYyGjSsg44fbNwYRx7QK2CuoQgyy+f1rrTDHoExVM5PsyXCtfl2vs2vVJ0MN0yN6LppRw=="
,
"dev"
:
true
,
"engines"
:
{
"node"
:
">=14.0.0"
,
"npm"
:
">=6.0.0"
}
},
"node_modules/@hapi/hoek"
:
{
"version"
:
"9.3.0"
,
"resolved"
:
"https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz"
,
"integrity"
:
"sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ=="
,
"dev"
:
true
},
"node_modules/@hapi/topo"
:
{
"version"
:
"5.1.0"
,
"resolved"
:
"https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz"
,
"integrity"
:
"sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg=="
,
"dev"
:
true
,
"dependencies"
:
{
"@hapi/hoek"
:
"^9.0.0"
}
},
"node_modules/@humanwhocodes/config-array"
:
{
"version"
:
"0.11.7"
,
"resolved"
:
"https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz"
,
...
...
@@ -1556,6 +1583,27 @@
"node"
:
">= 8"
}
},
"node_modules/@sideway/address"
:
{
"version"
:
"4.1.4"
,
"resolved"
:
"https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz"
,
"integrity"
:
"sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw=="
,
"dev"
:
true
,
"dependencies"
:
{
"@hapi/hoek"
:
"^9.0.0"
}
},
"node_modules/@sideway/formula"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/@sideway/formula/-/formula-3.0.0.tgz"
,
"integrity"
:
"sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg=="
,
"dev"
:
true
},
"node_modules/@sideway/pinpoint"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz"
,
"integrity"
:
"sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ=="
,
"dev"
:
true
},
"node_modules/@sqltools/formatter"
:
{
"version"
:
"1.2.5"
,
"resolved"
:
"https://registry.npmjs.org/@sqltools/formatter/-/formatter-1.2.5.tgz"
,
...
...
@@ -2199,6 +2247,21 @@
"node"
:
">=8"
}
},
"node_modules/assertion-error"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz"
,
"integrity"
:
"sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw=="
,
"dev"
:
true
,
"engines"
:
{
"node"
:
"*"
}
},
"node_modules/async"
:
{
"version"
:
"3.2.4"
,
"resolved"
:
"https://registry.npmjs.org/async/-/async-3.2.4.tgz"
,
"integrity"
:
"sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ=="
,
"dev"
:
true
},
"node_modules/balanced-match"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz"
,
...
...
@@ -2423,6 +2486,24 @@
"node"
:
">=6"
}
},
"node_modules/chai"
:
{
"version"
:
"4.3.7"
,
"resolved"
:
"https://registry.npmjs.org/chai/-/chai-4.3.7.tgz"
,
"integrity"
:
"sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A=="
,
"dev"
:
true
,
"dependencies"
:
{
"assertion-error"
:
"^1.1.0"
,
"check-error"
:
"^1.0.2"
,
"deep-eql"
:
"^4.1.2"
,
"get-func-name"
:
"^2.0.0"
,
"loupe"
:
"^2.3.1"
,
"pathval"
:
"^1.1.1"
,
"type-detect"
:
"^4.0.5"
},
"engines"
:
{
"node"
:
">=4"
}
},
"node_modules/chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
...
...
@@ -2457,6 +2538,15 @@
"node"
:
">=8"
}
},
"node_modules/check-error"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz"
,
"integrity"
:
"sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA=="
,
"dev"
:
true
,
"engines"
:
{
"node"
:
"*"
}
},
"node_modules/chokidar"
:
{
"version"
:
"3.5.3"
,
"resolved"
:
"https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz"
,
...
...
@@ -2561,6 +2651,18 @@
"node"
:
">=10"
}
},
"node_modules/cli-progress"
:
{
"version"
:
"3.11.2"
,
"resolved"
:
"https://registry.npmjs.org/cli-progress/-/cli-progress-3.11.2.tgz"
,
"integrity"
:
"sha512-lCPoS6ncgX4+rJu5bS3F/iCz17kZ9MPZ6dpuTtI0KXKABkhyXIdYB3Inby1OpaGti3YlI3EeEkM9AuWpelJrVA=="
,
"dev"
:
true
,
"dependencies"
:
{
"string-width"
:
"^4.2.3"
},
"engines"
:
{
"node"
:
">=4"
}
},
"node_modules/cliui"
:
{
"version"
:
"8.0.1"
,
"resolved"
:
"https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz"
,
...
...
@@ -2700,6 +2802,18 @@
"ms"
:
"^2.1.1"
}
},
"node_modules/deep-eql"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.2.tgz"
,
"integrity"
:
"sha512-gT18+YW4CcW/DBNTwAmqTtkJh7f9qqScu2qFVlx7kCoeY9tlBu9cUcr7+I+Z/noG8INehS3xQgLpTtd/QUTn4w=="
,
"dev"
:
true
,
"dependencies"
:
{
"type-detect"
:
"^4.0.0"
},
"engines"
:
{
"node"
:
">=6"
}
},
"node_modules/deep-is"
:
{
"version"
:
"0.1.4"
,
"resolved"
:
"https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz"
,
...
...
@@ -2792,6 +2906,21 @@
"resolved"
:
"https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz"
,
"integrity"
:
"sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
},
"node_modules/ejs"
:
{
"version"
:
"3.1.8"
,
"resolved"
:
"https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz"
,
"integrity"
:
"sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ=="
,
"dev"
:
true
,
"dependencies"
:
{
"jake"
:
"^10.8.5"
},
"bin"
:
{
"ejs"
:
"bin/cli.js"
},
"engines"
:
{
"node"
:
">=0.10.0"
}
},
"node_modules/emoji-regex"
:
{
"version"
:
"8.0.0"
,
"resolved"
:
"https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz"
,
...
...
@@ -3202,6 +3331,36 @@
"node"
:
"^10.12.0 || >=12.0.0"
}
},
"node_modules/filelist"
:
{
"version"
:
"1.0.4"
,
"resolved"
:
"https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz"
,
"integrity"
:
"sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q=="
,
"dev"
:
true
,
"dependencies"
:
{
"minimatch"
:
"^5.0.1"
}
},
"node_modules/filelist/node_modules/brace-expansion"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz"
,
"integrity"
:
"sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="
,
"dev"
:
true
,
"dependencies"
:
{
"balanced-match"
:
"^1.0.0"
}
},
"node_modules/filelist/node_modules/minimatch"
:
{
"version"
:
"5.1.0"
,
"resolved"
:
"https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz"
,
"integrity"
:
"sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg=="
,
"dev"
:
true
,
"dependencies"
:
{
"brace-expansion"
:
"^2.0.1"
},
"engines"
:
{
"node"
:
">=10"
}
},
"node_modules/fill-range"
:
{
"version"
:
"7.0.1"
,
"resolved"
:
"https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz"
,
...
...
@@ -3357,6 +3516,15 @@
"node"
:
"6.* || 8.* || >= 10.*"
}
},
"node_modules/get-func-name"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz"
,
"integrity"
:
"sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig=="
,
"dev"
:
true
,
"engines"
:
{
"node"
:
"*"
}
},
"node_modules/get-intrinsic"
:
{
"version"
:
"1.1.3"
,
"resolved"
:
"https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz"
,
...
...
@@ -3703,6 +3871,37 @@
"integrity"
:
"sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="
,
"dev"
:
true
},
"node_modules/jake"
:
{
"version"
:
"10.8.5"
,
"resolved"
:
"https://registry.npmjs.org/jake/-/jake-10.8.5.tgz"
,
"integrity"
:
"sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw=="
,
"dev"
:
true
,
"dependencies"
:
{
"async"
:
"^3.2.3"
,
"chalk"
:
"^4.0.2"
,
"filelist"
:
"^1.0.1"
,
"minimatch"
:
"^3.0.4"
},
"bin"
:
{
"jake"
:
"bin/cli.js"
},
"engines"
:
{
"node"
:
">=10"
}
},
"node_modules/joi"
:
{
"version"
:
"17.7.0"
,
"resolved"
:
"https://registry.npmjs.org/joi/-/joi-17.7.0.tgz"
,
"integrity"
:
"sha512-1/ugc8djfn93rTE3WRKdCzGGt/EtiYKxITMO4Wiv6q5JL1gl9ePt4kBsl1S499nbosspfctIQTpYIhSmHA3WAg=="
,
"dev"
:
true
,
"dependencies"
:
{
"@hapi/hoek"
:
"^9.0.0"
,
"@hapi/topo"
:
"^5.0.0"
,
"@sideway/address"
:
"^4.1.3"
,
"@sideway/formula"
:
"^3.0.0"
,
"@sideway/pinpoint"
:
"^2.0.0"
}
},
"node_modules/js-sdsl"
:
{
"version"
:
"4.1.5"
,
"resolved"
:
"https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz"
,
...
...
@@ -3770,12 +3969,27 @@
"url"
:
"https://github.com/sponsors/sindresorhus"
}
},
"node_modules/lodash"
:
{
"version"
:
"4.17.21"
,
"resolved"
:
"https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
,
"integrity"
:
"sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
,
"dev"
:
true
},
"node_modules/lodash.merge"
:
{
"version"
:
"4.6.2"
,
"resolved"
:
"https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz"
,
"integrity"
:
"sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="
,
"dev"
:
true
},
"node_modules/loupe"
:
{
"version"
:
"2.3.6"
,
"resolved"
:
"https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz"
,
"integrity"
:
"sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA=="
,
"dev"
:
true
,
"dependencies"
:
{
"get-func-name"
:
"^2.0.0"
}
},
"node_modules/lru-cache"
:
{
"version"
:
"6.0.0"
,
"resolved"
:
"https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz"
,
...
...
@@ -4266,6 +4480,15 @@
"wrappy"
:
"1"
}
},
"node_modules/opencollective-postinstall"
:
{
"version"
:
"2.0.3"
,
"resolved"
:
"https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz"
,
"integrity"
:
"sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q=="
,
"dev"
:
true
,
"bin"
:
{
"opencollective-postinstall"
:
"index.js"
}
},
"node_modules/optional-require"
:
{
"version"
:
"1.1.8"
,
"resolved"
:
"https://registry.npmjs.org/optional-require/-/optional-require-1.1.8.tgz"
,
...
...
@@ -4409,6 +4632,15 @@
"node"
:
">=8"
}
},
"node_modules/pathval"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz"
,
"integrity"
:
"sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ=="
,
"dev"
:
true
,
"engines"
:
{
"node"
:
"*"
}
},
"node_modules/pg"
:
{
"version"
:
"8.8.0"
,
"resolved"
:
"https://registry.npmjs.org/pg/-/pg-8.8.0.tgz"
,
...
...
@@ -5209,6 +5441,15 @@
"node"
:
">= 0.8.0"
}
},
"node_modules/type-detect"
:
{
"version"
:
"4.0.8"
,
"resolved"
:
"https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz"
,
"integrity"
:
"sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g=="
,
"dev"
:
true
,
"engines"
:
{
"node"
:
">=4"
}
},
"node_modules/type-fest"
:
{
"version"
:
"0.20.2"
,
"resolved"
:
"https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz"
,
...
...
@@ -5340,6 +5581,86 @@
}
}
},
"node_modules/typeorm-fixtures-cli"
:
{
"version"
:
"3.0.1"
,
"resolved"
:
"https://registry.npmjs.org/typeorm-fixtures-cli/-/typeorm-fixtures-cli-3.0.1.tgz"
,
"integrity"
:
"sha512-TBP8zECQ7J6+A6+zvFWccwvo58YXwNMay4rKc2UBmS0032BOs+fE9vgdf23q6btnDJN/lklhD3vIt3IM+kcgAw=="
,
"dev"
:
true
,
"hasInstallScript"
:
true
,
"dependencies"
:
{
"@faker-js/faker"
:
">=7.4.0"
,
"chai"
:
"^4.2.0"
,
"chalk"
:
"^4.0.0"
,
"class-transformer"
:
"^0.5.0"
,
"cli-progress"
:
"^3.10.0"
,
"ejs"
:
"^3.1.5"
,
"glob"
:
"^8.0.1"
,
"joi"
:
"^17.0.0"
,
"js-yaml"
:
"^4.0.0"
,
"lodash"
:
"^4.0.0"
,
"opencollective-postinstall"
:
"^2.0.3"
,
"reflect-metadata"
:
"^0.1.13"
,
"resolve-from"
:
"^5.0.0"
,
"yargs"
:
"^17.5.1"
},
"bin"
:
{
"fixtures"
:
"dist/cli.js"
,
"fixtures-ts-node-commonjs"
:
"dist/cli-ts-node-commonjs.js"
,
"fixtures-ts-node-esm"
:
"dist/cli-ts-node-esm.js"
},
"peerDependencies"
:
{
"typeorm"
:
"^0.3.0"
}
},
"node_modules/typeorm-fixtures-cli/node_modules/brace-expansion"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz"
,
"integrity"
:
"sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="
,
"dev"
:
true
,
"dependencies"
:
{
"balanced-match"
:
"^1.0.0"
}
},
"node_modules/typeorm-fixtures-cli/node_modules/glob"
:
{
"version"
:
"8.0.3"
,
"resolved"
:
"https://registry.npmjs.org/glob/-/glob-8.0.3.tgz"
,
"integrity"
:
"sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ=="
,
"dev"
:
true
,
"dependencies"
:
{
"fs.realpath"
:
"^1.0.0"
,
"inflight"
:
"^1.0.4"
,
"inherits"
:
"2"
,
"minimatch"
:
"^5.0.1"
,
"once"
:
"^1.3.0"
},
"engines"
:
{
"node"
:
">=12"
},
"funding"
:
{
"url"
:
"https://github.com/sponsors/isaacs"
}
},
"node_modules/typeorm-fixtures-cli/node_modules/minimatch"
:
{
"version"
:
"5.1.0"
,
"resolved"
:
"https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz"
,
"integrity"
:
"sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg=="
,
"dev"
:
true
,
"dependencies"
:
{
"brace-expansion"
:
"^2.0.1"
},
"engines"
:
{
"node"
:
">=10"
}
},
"node_modules/typeorm-fixtures-cli/node_modules/resolve-from"
:
{
"version"
:
"5.0.0"
,
"resolved"
:
"https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz"
,
"integrity"
:
"sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw=="
,
"dev"
:
true
,
"engines"
:
{
"node"
:
">=8"
}
},
"node_modules/typeorm/node_modules/buffer"
:
{
"version"
:
"6.0.3"
,
"resolved"
:
"https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz"
,
...
...
@@ -6926,6 +7247,27 @@
}
}
},
"@faker-js/faker"
:
{
"version"
:
"7.6.0"
,
"resolved"
:
"https://registry.npmjs.org/@faker-js/faker/-/faker-7.6.0.tgz"
,
"integrity"
:
"sha512-XK6BTq1NDMo9Xqw/YkYyGjSsg44fbNwYRx7QK2CuoQgyy+f1rrTDHoExVM5PsyXCtfl2vs2vVJ0MN0yN6LppRw=="
,
"dev"
:
true
},
"@hapi/hoek"
:
{
"version"
:
"9.3.0"
,
"resolved"
:
"https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz"
,
"integrity"
:
"sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ=="
,
"dev"
:
true
},
"@hapi/topo"
:
{
"version"
:
"5.1.0"
,
"resolved"
:
"https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz"
,
"integrity"
:
"sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg=="
,
"dev"
:
true
,
"requires"
:
{
"@hapi/hoek"
:
"^9.0.0"
}
},
"@humanwhocodes/config-array"
:
{
"version"
:
"0.11.7"
,
"resolved"
:
"https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz"
,
...
...
@@ -7048,6 +7390,27 @@
"fastq"
:
"^1.6.0"
}
},
"@sideway/address"
:
{
"version"
:
"4.1.4"
,
"resolved"
:
"https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz"
,
"integrity"
:
"sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw=="
,
"dev"
:
true
,
"requires"
:
{
"@hapi/hoek"
:
"^9.0.0"
}
},
"@sideway/formula"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/@sideway/formula/-/formula-3.0.0.tgz"
,
"integrity"
:
"sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg=="
,
"dev"
:
true
},
"@sideway/pinpoint"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz"
,
"integrity"
:
"sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ=="
,
"dev"
:
true
},
"@sqltools/formatter"
:
{
"version"
:
"1.2.5"
,
"resolved"
:
"https://registry.npmjs.org/@sqltools/formatter/-/formatter-1.2.5.tgz"
,
...
...
@@ -7514,6 +7877,18 @@
"integrity"
:
"sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw=="
,
"dev"
:
true
},
"assertion-error"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz"
,
"integrity"
:
"sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw=="
,
"dev"
:
true
},
"async"
:
{
"version"
:
"3.2.4"
,
"resolved"
:
"https://registry.npmjs.org/async/-/async-3.2.4.tgz"
,
"integrity"
:
"sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ=="
,
"dev"
:
true
},
"balanced-match"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz"
,
...
...
@@ -7685,6 +8060,21 @@
"integrity"
:
"sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="
,
"dev"
:
true
},
"chai"
:
{
"version"
:
"4.3.7"
,
"resolved"
:
"https://registry.npmjs.org/chai/-/chai-4.3.7.tgz"
,
"integrity"
:
"sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A=="
,
"dev"
:
true
,
"requires"
:
{
"assertion-error"
:
"^1.1.0"
,
"check-error"
:
"^1.0.2"
,
"deep-eql"
:
"^4.1.2"
,
"get-func-name"
:
"^2.0.0"
,
"loupe"
:
"^2.3.1"
,
"pathval"
:
"^1.1.1"
,
"type-detect"
:
"^4.0.5"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
...
...
@@ -7709,6 +8099,12 @@
}
}
},
"check-error"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz"
,
"integrity"
:
"sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA=="
,
"dev"
:
true
},
"chokidar"
:
{
"version"
:
"3.5.3"
,
"resolved"
:
"https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz"
,
...
...
@@ -7788,6 +8184,15 @@
}
}
},
"cli-progress"
:
{
"version"
:
"3.11.2"
,
"resolved"
:
"https://registry.npmjs.org/cli-progress/-/cli-progress-3.11.2.tgz"
,
"integrity"
:
"sha512-lCPoS6ncgX4+rJu5bS3F/iCz17kZ9MPZ6dpuTtI0KXKABkhyXIdYB3Inby1OpaGti3YlI3EeEkM9AuWpelJrVA=="
,
"dev"
:
true
,
"requires"
:
{
"string-width"
:
"^4.2.3"
}
},
"cliui"
:
{
"version"
:
"8.0.1"
,
"resolved"
:
"https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz"
,
...
...
@@ -7896,6 +8301,15 @@
"ms"
:
"^2.1.1"
}
},
"deep-eql"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.2.tgz"
,
"integrity"
:
"sha512-gT18+YW4CcW/DBNTwAmqTtkJh7f9qqScu2qFVlx7kCoeY9tlBu9cUcr7+I+Z/noG8INehS3xQgLpTtd/QUTn4w=="
,
"dev"
:
true
,
"requires"
:
{
"type-detect"
:
"^4.0.0"
}
},
"deep-is"
:
{
"version"
:
"0.1.4"
,
"resolved"
:
"https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz"
,
...
...
@@ -7963,6 +8377,15 @@
"resolved"
:
"https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz"
,
"integrity"
:
"sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
},
"ejs"
:
{
"version"
:
"3.1.8"
,
"resolved"
:
"https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz"
,
"integrity"
:
"sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ=="
,
"dev"
:
true
,
"requires"
:
{
"jake"
:
"^10.8.5"
}
},
"emoji-regex"
:
{
"version"
:
"8.0.0"
,
"resolved"
:
"https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz"
,
...
...
@@ -8284,6 +8707,35 @@
"flat-cache"
:
"^3.0.4"
}
},
"filelist"
:
{
"version"
:
"1.0.4"
,
"resolved"
:
"https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz"
,
"integrity"
:
"sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q=="
,
"dev"
:
true
,
"requires"
:
{
"minimatch"
:
"^5.0.1"
},
"dependencies"
:
{
"brace-expansion"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz"
,
"integrity"
:
"sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="
,
"dev"
:
true
,
"requires"
:
{
"balanced-match"
:
"^1.0.0"
}
},
"minimatch"
:
{
"version"
:
"5.1.0"
,
"resolved"
:
"https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz"
,
"integrity"
:
"sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg=="
,
"dev"
:
true
,
"requires"
:
{
"brace-expansion"
:
"^2.0.1"
}
}
}
},
"fill-range"
:
{
"version"
:
"7.0.1"
,
"resolved"
:
"https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz"
,
...
...
@@ -8404,6 +8856,12 @@
"resolved"
:
"https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz"
,
"integrity"
:
"sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
},
"get-func-name"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz"
,
"integrity"
:
"sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig=="
,
"dev"
:
true
},
"get-intrinsic"
:
{
"version"
:
"1.1.3"
,
"resolved"
:
"https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz"
,
...
...
@@ -8649,6 +9107,31 @@
"integrity"
:
"sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="
,
"dev"
:
true
},
"jake"
:
{
"version"
:
"10.8.5"
,
"resolved"
:
"https://registry.npmjs.org/jake/-/jake-10.8.5.tgz"
,
"integrity"
:
"sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw=="
,
"dev"
:
true
,
"requires"
:
{
"async"
:
"^3.2.3"
,
"chalk"
:
"^4.0.2"
,
"filelist"
:
"^1.0.1"
,
"minimatch"
:
"^3.0.4"
}
},
"joi"
:
{
"version"
:
"17.7.0"
,
"resolved"
:
"https://registry.npmjs.org/joi/-/joi-17.7.0.tgz"
,
"integrity"
:
"sha512-1/ugc8djfn93rTE3WRKdCzGGt/EtiYKxITMO4Wiv6q5JL1gl9ePt4kBsl1S499nbosspfctIQTpYIhSmHA3WAg=="
,
"dev"
:
true
,
"requires"
:
{
"@hapi/hoek"
:
"^9.0.0"
,
"@hapi/topo"
:
"^5.0.0"
,
"@sideway/address"
:
"^4.1.3"
,
"@sideway/formula"
:
"^3.0.0"
,
"@sideway/pinpoint"
:
"^2.0.0"
}
},
"js-sdsl"
:
{
"version"
:
"4.1.5"
,
"resolved"
:
"https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz"
,
...
...
@@ -8704,12 +9187,27 @@
"p-locate"
:
"^5.0.0"
}
},
"lodash"
:
{
"version"
:
"4.17.21"
,
"resolved"
:
"https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
,
"integrity"
:
"sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
,
"dev"
:
true
},
"lodash.merge"
:
{
"version"
:
"4.6.2"
,
"resolved"
:
"https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz"
,
"integrity"
:
"sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="
,
"dev"
:
true
},
"loupe"
:
{
"version"
:
"2.3.6"
,
"resolved"
:
"https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz"
,
"integrity"
:
"sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA=="
,
"dev"
:
true
,
"requires"
:
{
"get-func-name"
:
"^2.0.0"
}
},
"lru-cache"
:
{
"version"
:
"6.0.0"
,
"resolved"
:
"https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz"
,
...
...
@@ -9054,6 +9552,12 @@
"wrappy"
:
"1"
}
},
"opencollective-postinstall"
:
{
"version"
:
"2.0.3"
,
"resolved"
:
"https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz"
,
"integrity"
:
"sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q=="
,
"dev"
:
true
},
"optional-require"
:
{
"version"
:
"1.1.8"
,
"resolved"
:
"https://registry.npmjs.org/optional-require/-/optional-require-1.1.8.tgz"
,
...
...
@@ -9163,6 +9667,12 @@
"integrity"
:
"sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw=="
,
"dev"
:
true
},
"pathval"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz"
,
"integrity"
:
"sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ=="
,
"dev"
:
true
},
"pg"
:
{
"version"
:
"8.8.0"
,
"resolved"
:
"https://registry.npmjs.org/pg/-/pg-8.8.0.tgz"
,
...
...
@@ -9727,6 +10237,12 @@
"prelude-ls"
:
"^1.2.1"
}
},
"type-detect"
:
{
"version"
:
"4.0.8"
,
"resolved"
:
"https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz"
,
"integrity"
:
"sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g=="
,
"dev"
:
true
},
"type-fest"
:
{
"version"
:
"0.20.2"
,
"resolved"
:
"https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz"
,
...
...
@@ -9795,6 +10311,67 @@
}
}
},
"typeorm-fixtures-cli"
:
{
"version"
:
"3.0.1"
,
"resolved"
:
"https://registry.npmjs.org/typeorm-fixtures-cli/-/typeorm-fixtures-cli-3.0.1.tgz"
,
"integrity"
:
"sha512-TBP8zECQ7J6+A6+zvFWccwvo58YXwNMay4rKc2UBmS0032BOs+fE9vgdf23q6btnDJN/lklhD3vIt3IM+kcgAw=="
,
"dev"
:
true
,
"requires"
:
{
"@faker-js/faker"
:
">=7.4.0"
,
"chai"
:
"^4.2.0"
,
"chalk"
:
"^4.0.0"
,
"class-transformer"
:
"^0.5.0"
,
"cli-progress"
:
"^3.10.0"
,
"ejs"
:
"^3.1.5"
,
"glob"
:
"^8.0.1"
,
"joi"
:
"^17.0.0"
,
"js-yaml"
:
"^4.0.0"
,
"lodash"
:
"^4.0.0"
,
"opencollective-postinstall"
:
"^2.0.3"
,
"reflect-metadata"
:
"^0.1.13"
,
"resolve-from"
:
"^5.0.0"
,
"yargs"
:
"^17.5.1"
},
"dependencies"
:
{
"brace-expansion"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz"
,
"integrity"
:
"sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="
,
"dev"
:
true
,
"requires"
:
{
"balanced-match"
:
"^1.0.0"
}
},
"glob"
:
{
"version"
:
"8.0.3"
,
"resolved"
:
"https://registry.npmjs.org/glob/-/glob-8.0.3.tgz"
,
"integrity"
:
"sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ=="
,
"dev"
:
true
,
"requires"
:
{
"fs.realpath"
:
"^1.0.0"
,
"inflight"
:
"^1.0.4"
,
"inherits"
:
"2"
,
"minimatch"
:
"^5.0.1"
,
"once"
:
"^1.3.0"
}
},
"minimatch"
:
{
"version"
:
"5.1.0"
,
"resolved"
:
"https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz"
,
"integrity"
:
"sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg=="
,
"dev"
:
true
,
"requires"
:
{
"brace-expansion"
:
"^2.0.1"
}
},
"resolve-from"
:
{
"version"
:
"5.0.0"
,
"resolved"
:
"https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz"
,
"integrity"
:
"sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw=="
,
"dev"
:
true
}
}
},
"typescript"
:
{
"version"
:
"4.8.4"
,
"resolved"
:
"https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz"
,
...
...
planner-api/package.json
View file @
402aad11
...
...
@@ -7,18 +7,21 @@
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"dev"
:
"nodemon"
,
"start"
:
"npm run build && node build/server.js"
,
"lint"
:
"eslint . --ext .ts"
"lint"
:
"eslint . --ext .ts"
,
"fixtures"
:
"ts-node ./src/fixtures.ts"
},
"keywords"
:
[],
"author"
:
""
,
"license"
:
"ISC"
,
"devDependencies"
:
{
"@faker-js/faker"
:
"^7.6.0"
,
"@types/node"
:
"^18.11.8"
,
"@typescript-eslint/eslint-plugin"
:
"^5.41.0"
,
"@typescript-eslint/parser"
:
"^5.41.0"
,
"eslint"
:
"^8.26.0"
,
"nodemon"
:
"^2.0.20"
,
"ts-node"
:
"^10.9.1"
,
"typeorm-fixtures-cli"
:
"^3.0.1"
,
"typescript"
:
"^4.8.4"
},
"dependencies"
:
{
...
...
planner-api/src/fixtures.ts
0 → 100644
View file @
402aad11
import
{
myDataSource
}
from
"./app-data-source"
;
import
{
User
,
UserRole
}
from
"./models/User"
;
import
{
faker
}
from
'@faker-js/faker'
;
import
{
Task
}
from
"./models/Task"
;
function
randomIntFromInterval
(
min
:
number
,
max
:
number
)
{
return
Math
.
floor
(
Math
.
random
()
*
(
max
-
min
+
1
)
+
min
)
}
const
loadFixtures
=
async
()
=>
{
myDataSource
.
initialize
()
.
then
(
async
()
=>
{
console
.
log
(
`
==========================
Data Source has been initialized!
==========================
`
)
const
userRoles
=
[{
role
:
UserRole
.
DIRECTOR
},
{
role
:
UserRole
.
SUPERUSER
},
{
role
:
UserRole
.
USER
},
{
role
:
UserRole
.
USER
}];
const
users
=
[]
for
(
let
i
=
0
;
i
<
4
;
i
++
)
{
const
name
=
faker
.
name
.
firstName
()
const
surname
=
faker
.
name
.
lastName
()
const
displayName
=
name
+
' '
+
surname
[
0
]
+
'.'
const
user
=
new
User
()
user
.
name
=
name
;
user
.
surname
=
surname
;
user
.
password
=
'12345qwert'
;
user
.
displayName
=
displayName
;
user
.
phone
=
faker
.
phone
.
number
(
'+77#########'
)
user
.
email
=
faker
.
internet
.
email
();
user
.
role
=
userRoles
[
i
].
role
;
user
.
generateToken
()
await
user
.
save
();
users
.
push
(
user
)
}
})
.
catch
((
err
)
=>
{
console
.
error
(
"Error during Data Source initialization:"
,
err
)
})
};
loadFixtures
()
\ No newline at end of file
planner-api/src/models/Task.ts
View file @
402aad11
...
...
@@ -11,7 +11,7 @@ import {
import
{
User
}
from
'./User'
;
import
{
Project
}
from
'./Project'
;
type
taskFinishType
=
"open"
|
"done"
|
"failed"
;
type
taskFinishType
=
"open
ed
"
|
"done"
|
"failed"
;
type
priorityType
=
"A"
|
"B"
|
"C"
;
interface
ITask
{
...
...
planner-api/src/models/User.ts
View file @
402aad11
...
...
@@ -43,20 +43,20 @@ interface IUser {
export
class
User
extends
BaseEntity
implements
IUser
{
@
PrimaryGeneratedColumn
(
"uuid"
)
id
!
:
string
;
@
Column
({
name
:
'name'
,
type
:
'varchar'
,
length
:
2
0
,
nullable
:
false
})
@
Column
({
name
:
'name'
,
type
:
'varchar'
,
length
:
3
0
,
nullable
:
false
})
name
!
:
string
;
@
Column
({
name
:
'surname'
,
type
:
'varchar'
,
length
:
30
,
nullable
:
false
})
surname
!
:
string
;
@
Column
({
name
:
'displayName'
,
type
:
'varchar'
,
length
:
3
0
,
nullable
:
false
})
@
Column
({
name
:
'displayName'
,
type
:
'varchar'
,
length
:
3
5
,
nullable
:
false
})
displayName
!
:
string
;
@
Column
({
name
:
'email'
,
type
:
'varchar'
,
length
:
2
0
,
unique
:
true
,
nullable
:
false
})
@
Column
({
name
:
'email'
,
type
:
'varchar'
,
length
:
4
0
,
unique
:
true
,
nullable
:
false
})
@
IsEmail
()
email
!
:
string
;
@
Column
({
name
:
'phone'
,
type
:
'varchar'
,
length
:
1
0
,
unique
:
true
,
nullable
:
true
})
@
Column
({
name
:
'phone'
,
type
:
'varchar'
,
length
:
1
5
,
unique
:
true
,
nullable
:
true
})
phone
?:
string
;
@
Column
({
name
:
'token'
,
type
:
'varchar'
,
length
:
100
,
unique
:
true
,
nullable
:
false
})
...
...
planner-front/src/store/actions/tasksActions.js
View file @
402aad11
...
...
@@ -44,7 +44,7 @@ export const addTask = (task) => {
try
{
await
axios
.
post
(
"/tasks"
,
task
,
{
headers
:
{
'Authorization'
:
'
aBhHYW8kXUUzjXlxOwGmg
'
'Authorization'
:
'
yjBjcPCQwytwrYo9rRuiK
'
}
});
dispatch
(
addTaskSuccess
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment