@merkaly/api 0.1.7 → 0.1.9-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -79
- package/package.json +89 -97
- package/src/account/account.router.d.ts +3 -0
- package/src/account/account.router.d.ts.map +1 -0
- package/src/account/account.router.ts +11 -0
- package/src/account/organizations/members/member.entity.d.ts +9 -9
- package/src/account/organizations/members/member.entity.d.ts.map +1 -0
- package/src/account/organizations/members/member.entity.ts +9 -11
- package/src/account/organizations/members/member.router.d.ts +3 -0
- package/src/account/organizations/members/member.router.d.ts.map +1 -0
- package/src/account/organizations/members/member.router.ts +7 -0
- package/src/account/organizations/members/member.validator.d.ts +3 -0
- package/src/account/organizations/members/member.validator.d.ts.map +1 -0
- package/src/account/organizations/members/member.validator.ts +3 -0
- package/src/account/organizations/organization.entity.d.ts +17 -15
- package/src/account/organizations/organization.entity.d.ts.map +1 -0
- package/src/account/organizations/organization.entity.ts +22 -21
- package/src/account/organizations/organization.router.d.ts +3 -0
- package/src/account/organizations/organization.router.d.ts.map +1 -0
- package/src/account/organizations/organization.router.ts +9 -0
- package/src/account/organizations/organization.validator.d.ts +14 -13
- package/src/account/organizations/organization.validator.d.ts.map +1 -0
- package/src/account/organizations/organization.validator.ts +41 -41
- package/src/account/roles/role.entity.d.ts +7 -7
- package/src/account/roles/role.entity.d.ts.map +1 -0
- package/src/account/roles/role.entity.ts +7 -9
- package/src/account/roles/role.router.d.ts +3 -0
- package/src/account/roles/role.router.d.ts.map +1 -0
- package/src/account/roles/role.router.ts +9 -0
- package/src/account/roles/role.validator.d.ts +10 -9
- package/src/account/roles/role.validator.d.ts.map +1 -0
- package/src/account/roles/role.validator.ts +21 -21
- package/src/account/roles/users/user.entity.d.ts +9 -9
- package/src/account/roles/users/user.entity.d.ts.map +1 -0
- package/src/account/roles/users/user.entity.ts +9 -11
- package/src/account/roles/users/user.router.d.ts +3 -0
- package/src/account/roles/users/user.router.d.ts.map +1 -0
- package/src/account/roles/users/user.router.ts +7 -0
- package/src/account/roles/users/user.validator.d.ts +3 -4
- package/src/account/roles/users/user.validator.d.ts.map +1 -0
- package/src/account/roles/users/user.validator.ts +3 -10
- package/src/account/users/roles/role.entity.d.ts +9 -9
- package/src/account/users/roles/role.entity.d.ts.map +1 -0
- package/src/account/users/roles/role.entity.ts +9 -11
- package/src/account/users/roles/role.router.d.ts +3 -0
- package/src/account/users/roles/role.router.d.ts.map +1 -0
- package/src/account/users/roles/role.router.ts +7 -0
- package/src/account/users/roles/role.validator.d.ts +3 -4
- package/src/account/users/roles/role.validator.d.ts.map +1 -0
- package/src/account/users/roles/role.validator.ts +3 -10
- package/src/account/users/user.entity.d.ts +32 -32
- package/src/account/users/user.entity.d.ts.map +1 -0
- package/src/account/users/user.entity.ts +34 -36
- package/src/account/users/user.router.d.ts +3 -0
- package/src/account/users/user.router.d.ts.map +1 -0
- package/src/account/users/user.router.ts +9 -0
- package/src/account/users/user.validator.d.ts +12 -11
- package/src/account/users/user.validator.d.ts.map +1 -0
- package/src/account/users/user.validator.ts +29 -29
- package/src/app.config.d.ts +27 -0
- package/src/app.d.ts +2 -0
- package/src/app.d.ts.map +1 -0
- package/src/app.emitter.d.ts +17 -0
- package/src/app.emitter.d.ts.map +1 -0
- package/src/app.entity.d.ts +7 -0
- package/src/app.entity.d.ts.map +1 -0
- package/src/app.entity.ts +11 -13
- package/src/app.middleware.d.ts +3 -0
- package/src/app.middleware.d.ts.map +1 -0
- package/src/app.module.d.ts +6 -0
- package/src/app.repository.d.ts +6 -0
- package/src/app.router.d.ts +5 -0
- package/src/app.router.d.ts.map +1 -0
- package/src/{account/auth → auth}/auth.decorator.d.ts +5 -4
- package/src/auth/auth.decorator.d.ts.map +1 -0
- package/src/{account/auth → auth}/auth.decorator.ts +10 -10
- package/src/{account/auth → auth}/auth.guard.d.ts +16 -15
- package/src/auth/auth.guard.d.ts.map +1 -0
- package/src/{account/auth → auth}/auth.guard.ts +41 -41
- package/src/auth/auth.router.d.ts +3 -0
- package/src/auth/auth.router.d.ts.map +1 -0
- package/src/auth/auth.router.ts +7 -0
- package/src/{account/auth → auth}/auth.strategy.d.ts +18 -17
- package/src/auth/auth.strategy.d.ts.map +1 -0
- package/src/{account/auth → auth}/auth.strategy.ts +31 -31
- package/src/{account/auth → auth}/auth.validator.d.ts +5 -4
- package/src/auth/auth.validator.d.ts.map +1 -0
- package/src/{account/auth → auth}/auth.validator.ts +11 -11
- package/src/inventory/brands/brand.entity.d.ts +5 -5
- package/src/inventory/brands/brand.entity.d.ts.map +1 -0
- package/src/inventory/brands/brand.entity.ts +7 -10
- package/src/inventory/brands/brand.router.d.ts +3 -0
- package/src/inventory/brands/brand.router.d.ts.map +1 -0
- package/src/inventory/brands/brand.router.ts +7 -0
- package/src/inventory/brands/brand.validator.d.ts +7 -6
- package/src/inventory/brands/brand.validator.d.ts.map +1 -0
- package/src/inventory/brands/brand.validator.ts +12 -12
- package/src/inventory/categories/category.entity.d.ts +5 -5
- package/src/inventory/categories/category.entity.d.ts.map +1 -0
- package/src/inventory/categories/category.entity.ts +8 -10
- package/src/inventory/categories/category.router.d.ts +3 -0
- package/src/inventory/categories/category.router.d.ts.map +1 -0
- package/src/inventory/categories/category.router.ts +7 -0
- package/src/inventory/categories/category.validator.d.ts +7 -6
- package/src/inventory/categories/category.validator.d.ts.map +1 -0
- package/src/inventory/categories/category.validator.ts +11 -11
- package/src/inventory/inventory.router.d.ts +3 -0
- package/src/inventory/inventory.router.d.ts.map +1 -0
- package/src/inventory/inventory.router.ts +12 -0
- package/src/inventory/products/media/media.entity.d.ts +6 -6
- package/src/inventory/products/media/media.entity.d.ts.map +1 -0
- package/src/inventory/products/media/media.entity.ts +7 -10
- package/src/inventory/products/media/media.router.d.ts +3 -0
- package/src/inventory/products/media/media.router.d.ts.map +1 -0
- package/src/inventory/products/media/media.router.ts +7 -0
- package/src/inventory/products/media/media.validator.d.ts +5 -4
- package/src/inventory/products/media/media.validator.d.ts.map +1 -0
- package/src/inventory/products/media/media.validator.ts +7 -7
- package/src/inventory/products/product.entity.d.ts +32 -31
- package/src/inventory/products/product.entity.d.ts.map +1 -0
- package/src/inventory/products/product.entity.ts +59 -63
- package/src/inventory/products/product.router.d.ts +3 -0
- package/src/inventory/products/product.router.d.ts.map +1 -0
- package/src/inventory/products/product.router.ts +10 -0
- package/src/inventory/products/product.validator.d.ts +22 -21
- package/src/inventory/products/product.validator.d.ts.map +1 -0
- package/src/inventory/products/product.validator.ts +70 -70
- package/src/inventory/products/variants/variant.entity.d.ts +6 -6
- package/src/inventory/products/variants/variant.entity.d.ts.map +1 -0
- package/src/inventory/products/variants/variant.entity.ts +7 -11
- package/src/inventory/products/variants/variant.router.d.ts +3 -0
- package/src/inventory/products/variants/variant.router.d.ts.map +1 -0
- package/src/inventory/products/variants/variant.router.ts +7 -0
- package/src/inventory/products/variants/variant.validator.d.ts +5 -4
- package/src/inventory/products/variants/variant.validator.d.ts.map +1 -0
- package/src/inventory/products/variants/variant.validator.ts +7 -7
- package/src/inventory/properties/property.entity.d.ts +8 -8
- package/src/inventory/properties/property.entity.d.ts.map +1 -0
- package/src/inventory/properties/property.entity.ts +16 -19
- package/src/inventory/properties/property.router.d.ts +3 -0
- package/src/inventory/properties/property.router.d.ts.map +1 -0
- package/src/inventory/properties/property.router.ts +7 -0
- package/src/inventory/properties/property.validator.d.ts +9 -8
- package/src/inventory/properties/property.validator.d.ts.map +1 -0
- package/src/inventory/properties/property.validator.ts +20 -20
- package/src/store/carts/cart.entity.d.ts +14 -14
- package/src/store/carts/cart.entity.d.ts.map +1 -0
- package/src/store/carts/cart.entity.ts +19 -21
- package/src/store/carts/cart.router.d.ts +6 -0
- package/src/store/carts/cart.router.d.ts.map +1 -0
- package/src/store/carts/cart.router.ts +10 -0
- package/src/store/carts/cart.validator.d.ts +5 -4
- package/src/store/carts/cart.validator.d.ts.map +1 -0
- package/src/store/carts/cart.validator.ts +7 -7
- package/src/store/carts/index.d.ts +3 -2
- package/src/store/carts/index.d.ts.map +1 -0
- package/src/store/carts/index.ts +2 -2
- package/src/store/orders/items/item.entity.d.ts +7 -7
- package/src/store/orders/items/item.entity.d.ts.map +1 -0
- package/src/store/orders/items/item.entity.ts +11 -14
- package/src/store/orders/items/item.router.d.ts +3 -0
- package/src/store/orders/items/item.router.d.ts.map +1 -0
- package/src/store/orders/items/item.router.ts +7 -0
- package/src/store/orders/items/item.validator.d.ts +5 -4
- package/src/store/orders/items/item.validator.d.ts.map +1 -0
- package/src/store/orders/items/item.validator.ts +7 -7
- package/src/store/orders/order.entity.d.ts +12 -9
- package/src/store/orders/order.entity.d.ts.map +1 -0
- package/src/store/orders/order.entity.ts +24 -18
- package/src/store/orders/order.router.d.ts +3 -0
- package/src/store/orders/order.router.d.ts.map +1 -0
- package/src/store/orders/order.router.ts +9 -0
- package/src/store/orders/order.validator.d.ts +5 -4
- package/src/store/orders/order.validator.d.ts.map +1 -0
- package/src/store/orders/order.validator.ts +7 -7
- package/src/store/store.router.d.ts +3 -0
- package/src/store/store.router.d.ts.map +1 -0
- package/src/store/store.router.ts +10 -0
- package/src/account/auth/index.d.ts +0 -1
- package/src/account/auth/index.ts +0 -1
- package/src/account/index.d.ts +0 -4
- package/src/account/index.ts +0 -4
- package/src/account/organizations/index.d.ts +0 -3
- package/src/account/organizations/index.ts +0 -3
- package/src/account/organizations/members/index.d.ts +0 -1
- package/src/account/organizations/members/index.ts +0 -1
- package/src/account/roles/index.d.ts +0 -3
- package/src/account/roles/index.ts +0 -3
- package/src/account/roles/users/index.d.ts +0 -2
- package/src/account/roles/users/index.ts +0 -2
- package/src/account/users/index.d.ts +0 -3
- package/src/account/users/index.ts +0 -3
- package/src/account/users/roles/index.d.ts +0 -2
- package/src/account/users/roles/index.ts +0 -2
- package/src/app.ts +0 -40
- package/src/index.d.ts +0 -3
- package/src/index.ts +0 -3
- package/src/inventory/brands/index.d.ts +0 -2
- package/src/inventory/brands/index.ts +0 -2
- package/src/inventory/categories/index.d.ts +0 -2
- package/src/inventory/categories/index.ts +0 -2
- package/src/inventory/index.d.ts +0 -5
- package/src/inventory/index.ts +0 -6
- package/src/inventory/products/index.d.ts +0 -4
- package/src/inventory/products/index.ts +0 -4
- package/src/inventory/products/media/index.d.ts +0 -2
- package/src/inventory/products/media/index.ts +0 -2
- package/src/inventory/products/variants/index.d.ts +0 -2
- package/src/inventory/products/variants/index.ts +0 -2
- package/src/inventory/properties/index.d.ts +0 -2
- package/src/inventory/properties/index.ts +0 -2
- package/src/store/index.d.ts +0 -3
- package/src/store/index.ts +0 -4
- package/src/store/orders/index.d.ts +0 -3
- package/src/store/orders/index.ts +0 -3
- package/src/store/orders/items/index.d.ts +0 -2
- package/src/store/orders/items/index.ts +0 -2
package/README.md
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
[travis-image]: https://api.travis-ci.org/nestjs/nest.svg?branch=master
|
|
6
|
-
|
|
7
|
-
[travis-url]: https://travis-ci.org/nestjs/nest
|
|
8
|
-
|
|
9
|
-
[linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux
|
|
10
|
-
|
|
11
|
-
[linux-url]: https://travis-ci.org/nestjs/nest
|
|
12
|
-
|
|
13
|
-
<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications, heavily inspired by <a href="https://angular.io" target="blank">Angular</a>.</p>
|
|
14
|
-
<p align="center">
|
|
15
|
-
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
|
|
16
|
-
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
|
|
17
|
-
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/dm/@nestjs/core.svg" alt="NPM Downloads" /></a>
|
|
18
|
-
<a href="https://travis-ci.org/nestjs/nest"><img src="https://api.travis-ci.org/nestjs/nest.svg?branch=master" alt="Travis" /></a>
|
|
19
|
-
<a href="https://travis-ci.org/nestjs/nest"><img src="https://img.shields.io/travis/nestjs/nest/master.svg?label=linux" alt="Linux" /></a>
|
|
20
|
-
<a href="https://coveralls.io/github/nestjs/nest?branch=master"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#5" alt="Coverage" /></a>
|
|
21
|
-
<a href="https://gitter.im/nestjs/nestjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/nestjs/nestjs.svg" alt="Gitter" /></a>
|
|
22
|
-
<a href="https://opencollective.com/nest#backer"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
|
|
23
|
-
<a href="https://opencollective.com/nest#sponsor"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
|
|
24
|
-
<a href="https://paypal.me/kamilmysliwiec"><img src="https://img.shields.io/badge/Donate-PayPal-dc3d53.svg"/></a>
|
|
25
|
-
<a href="https://twitter.com/nestframework"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
|
|
26
|
-
</p>
|
|
27
|
-
<!--[](https://opencollective.com/nest#backer)
|
|
28
|
-
[](https://opencollective.com/nest#sponsor)-->
|
|
29
|
-
|
|
30
|
-
## Description
|
|
31
|
-
|
|
32
|
-
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
|
|
33
|
-
|
|
34
|
-
## Installation
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
$ npm install
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Running the app
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
# development
|
|
44
|
-
$ npm run start
|
|
45
|
-
|
|
46
|
-
# watch mode
|
|
47
|
-
$ npm run start:dev
|
|
48
|
-
|
|
49
|
-
# production mode
|
|
50
|
-
$ npm run start:prod
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Test
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
# unit tests
|
|
57
|
-
$ npm run test
|
|
58
|
-
|
|
59
|
-
# e2e tests
|
|
60
|
-
$ npm run test:e2e
|
|
61
|
-
|
|
62
|
-
# test coverage
|
|
63
|
-
$ npm run test:cov
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Support
|
|
67
|
-
|
|
68
|
-
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If
|
|
69
|
-
you'd like to join them, please [read more here](https://docs.nestjs.com/support).
|
|
70
|
-
|
|
71
|
-
## Stay in touch
|
|
72
|
-
|
|
73
|
-
- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
|
|
74
|
-
- Website - [https://nestjs.com](https://nestjs.com/)
|
|
75
|
-
- Twitter - [@nestframework](https://twitter.com/nestframework)
|
|
76
|
-
|
|
77
|
-
## License
|
|
78
|
-
|
|
79
|
-
Nest is [MIT licensed](LICENSE).
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
[travis-image]: https://api.travis-ci.org/nestjs/nest.svg?branch=master
|
|
6
|
+
|
|
7
|
+
[travis-url]: https://travis-ci.org/nestjs/nest
|
|
8
|
+
|
|
9
|
+
[linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux
|
|
10
|
+
|
|
11
|
+
[linux-url]: https://travis-ci.org/nestjs/nest
|
|
12
|
+
|
|
13
|
+
<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications, heavily inspired by <a href="https://angular.io" target="blank">Angular</a>.</p>
|
|
14
|
+
<p align="center">
|
|
15
|
+
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
|
|
16
|
+
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
|
|
17
|
+
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/dm/@nestjs/core.svg" alt="NPM Downloads" /></a>
|
|
18
|
+
<a href="https://travis-ci.org/nestjs/nest"><img src="https://api.travis-ci.org/nestjs/nest.svg?branch=master" alt="Travis" /></a>
|
|
19
|
+
<a href="https://travis-ci.org/nestjs/nest"><img src="https://img.shields.io/travis/nestjs/nest/master.svg?label=linux" alt="Linux" /></a>
|
|
20
|
+
<a href="https://coveralls.io/github/nestjs/nest?branch=master"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#5" alt="Coverage" /></a>
|
|
21
|
+
<a href="https://gitter.im/nestjs/nestjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/nestjs/nestjs.svg" alt="Gitter" /></a>
|
|
22
|
+
<a href="https://opencollective.com/nest#backer"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
|
|
23
|
+
<a href="https://opencollective.com/nest#sponsor"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
|
|
24
|
+
<a href="https://paypal.me/kamilmysliwiec"><img src="https://img.shields.io/badge/Donate-PayPal-dc3d53.svg"/></a>
|
|
25
|
+
<a href="https://twitter.com/nestframework"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
|
|
26
|
+
</p>
|
|
27
|
+
<!--[](https://opencollective.com/nest#backer)
|
|
28
|
+
[](https://opencollective.com/nest#sponsor)-->
|
|
29
|
+
|
|
30
|
+
## Description
|
|
31
|
+
|
|
32
|
+
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
|
|
33
|
+
|
|
34
|
+
## Installation
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
$ npm install
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Running the app
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# development
|
|
44
|
+
$ npm run start
|
|
45
|
+
|
|
46
|
+
# watch mode
|
|
47
|
+
$ npm run start:dev
|
|
48
|
+
|
|
49
|
+
# production mode
|
|
50
|
+
$ npm run start:prod
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Test
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# unit tests
|
|
57
|
+
$ npm run test
|
|
58
|
+
|
|
59
|
+
# e2e tests
|
|
60
|
+
$ npm run test:e2e
|
|
61
|
+
|
|
62
|
+
# test coverage
|
|
63
|
+
$ npm run test:cov
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Support
|
|
67
|
+
|
|
68
|
+
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If
|
|
69
|
+
you'd like to join them, please [read more here](https://docs.nestjs.com/support).
|
|
70
|
+
|
|
71
|
+
## Stay in touch
|
|
72
|
+
|
|
73
|
+
- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
|
|
74
|
+
- Website - [https://nestjs.com](https://nestjs.com/)
|
|
75
|
+
- Twitter - [@nestframework](https://twitter.com/nestframework)
|
|
76
|
+
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
Nest is [MIT licensed](LICENSE).
|
package/package.json
CHANGED
|
@@ -1,97 +1,89 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@merkaly/api",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "NestJS Backend ApiRest Service",
|
|
5
|
-
"author": "Randy Tellez Galan <kronhyx@gmail.com>",
|
|
6
|
-
"license": "UNLICENSED",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"@
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@nestjs/
|
|
47
|
-
"@nestjs/
|
|
48
|
-
"@nestjs/
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
"publishConfig": {
|
|
92
|
-
"access": "public"
|
|
93
|
-
},
|
|
94
|
-
"engines": {
|
|
95
|
-
"node": "^14"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@merkaly/api",
|
|
3
|
+
"version": "0.1.9-11",
|
|
4
|
+
"description": "NestJS Backend ApiRest Service",
|
|
5
|
+
"author": "Randy Tellez Galan <kronhyx@gmail.com>",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"prebuild": "yarn run clean",
|
|
9
|
+
"prepack": "yarn build",
|
|
10
|
+
"postpack": "yarn run clean",
|
|
11
|
+
"build": "nest build",
|
|
12
|
+
"clean": "tsc -b --clean",
|
|
13
|
+
"start": "nest start --preserveWatchOutput",
|
|
14
|
+
"dev": "yarn build && yarn start --watch",
|
|
15
|
+
"start:debug": "yarn dev -- --debug ",
|
|
16
|
+
"start:prod": "node dist/index.js",
|
|
17
|
+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" . ",
|
|
18
|
+
"test": "jest",
|
|
19
|
+
"test:watch": "yarn test -- --watch",
|
|
20
|
+
"test:cov": "yarn test -- --coverage",
|
|
21
|
+
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
22
|
+
"semantic-release": "yarn run build:package && semantic-release"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@nestjs/axios": "^0.0.5",
|
|
26
|
+
"@nestjs/swagger": "^5.0.9",
|
|
27
|
+
"@types/auth0": "^2.33.4",
|
|
28
|
+
"@types/node": "^17.0.2",
|
|
29
|
+
"auth0": "^2.35.0",
|
|
30
|
+
"class-transformer": "^0.5.1",
|
|
31
|
+
"class-validator": "^0.13.1",
|
|
32
|
+
"fireorm": "^0.23.0",
|
|
33
|
+
"reflect-metadata": "^0.1.13"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@commitlint/config-conventional": "^16.0.0",
|
|
37
|
+
"@elastic/elasticsearch": "^7.13.0",
|
|
38
|
+
"@nestjs/cli": "8.2.0",
|
|
39
|
+
"@nestjs/common": "8.3.1",
|
|
40
|
+
"@nestjs/config": "^1.0.0",
|
|
41
|
+
"@nestjs/core": "8.2.6",
|
|
42
|
+
"@nestjs/elasticsearch": "8.1.0",
|
|
43
|
+
"@nestjs/event-emitter": "^1.0.0",
|
|
44
|
+
"@nestjs/jwt": "8.0.0",
|
|
45
|
+
"@nestjs/passport": "8.1.0",
|
|
46
|
+
"@nestjs/platform-express": "8.2.6",
|
|
47
|
+
"@nestjs/schematics": "8.0.6",
|
|
48
|
+
"@nestjs/testing": "8.2.6",
|
|
49
|
+
"@semantic-release/exec": "^6.0.1",
|
|
50
|
+
"@semantic-release/git": "^10.0.0",
|
|
51
|
+
"@types/express": "^4.17.12",
|
|
52
|
+
"@types/faker": "^5.5.9",
|
|
53
|
+
"@types/jest": "^27.0.0",
|
|
54
|
+
"@types/multer": "^1.4.7",
|
|
55
|
+
"@types/passport-jwt": "^3.0.5",
|
|
56
|
+
"@types/supertest": "^2.0.11",
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "4.33.0",
|
|
58
|
+
"@typescript-eslint/parser": "4.33.0",
|
|
59
|
+
"commitlint": "^16.1.0",
|
|
60
|
+
"eslint": "7.32.0",
|
|
61
|
+
"eslint-plugin-import": "^2.23.4",
|
|
62
|
+
"faker": "^5.5.3",
|
|
63
|
+
"firebase": "^9.0.0",
|
|
64
|
+
"firebase-admin": "^10.0.2",
|
|
65
|
+
"husky": "^7.0.0",
|
|
66
|
+
"jest": "27.5.1",
|
|
67
|
+
"passport": "^0.4.1",
|
|
68
|
+
"passport-jwt": "^4.0.0",
|
|
69
|
+
"rimraf": "^3.0.2",
|
|
70
|
+
"rxjs": "^7.2.0",
|
|
71
|
+
"semantic-release": "^19.0.2",
|
|
72
|
+
"supertest": "^6.1.3",
|
|
73
|
+
"swagger-ui-express": "^4.1.5",
|
|
74
|
+
"ts-jest": "27.1.3",
|
|
75
|
+
"ts-loader": "^9.2.3",
|
|
76
|
+
"ts-node": "^10.0.0",
|
|
77
|
+
"tsconfig-paths": "^3.9.0"
|
|
78
|
+
},
|
|
79
|
+
"repository": {
|
|
80
|
+
"type": "git",
|
|
81
|
+
"url": "https://github.com/sk-merkaly/api.git"
|
|
82
|
+
},
|
|
83
|
+
"publishConfig": {
|
|
84
|
+
"access": "public"
|
|
85
|
+
},
|
|
86
|
+
"engines": {
|
|
87
|
+
"node": "16"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.router.d.ts","sourceRoot":"","sources":["account.router.ts"],"names":[],"mappings":";AAMA,wBAIE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useRoute } from '../app.router'
|
|
2
|
+
import AccountModule from './account.module'
|
|
3
|
+
import OrganizationRouter from './organizations/organization.router'
|
|
4
|
+
import RoleRouter from './roles/role.router'
|
|
5
|
+
import UserRouter from './users/user.router'
|
|
6
|
+
|
|
7
|
+
export default useRoute({
|
|
8
|
+
path: '/account',
|
|
9
|
+
module: AccountModule,
|
|
10
|
+
children: [OrganizationRouter, RoleRouter, UserRouter]
|
|
11
|
+
})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import AppEntity from '../../../app.entity';
|
|
2
|
-
import { UserEntity } from '../../users';
|
|
3
|
-
export declare class OrganizationMemberEntity extends AppEntity implements Pick<UserEntity, 'user_id' | 'email' | 'name' | 'picture'> {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import AppEntity from '../../../app.entity';
|
|
2
|
+
import { UserEntity } from '../../users/user.entity';
|
|
3
|
+
export declare class OrganizationMemberEntity extends AppEntity implements Pick<UserEntity, 'user_id' | 'email' | 'name' | 'picture'> {
|
|
4
|
+
user_id: string;
|
|
5
|
+
email: string;
|
|
6
|
+
name: string;
|
|
7
|
+
picture: string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=member.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member.entity.d.ts","sourceRoot":"","sources":["member.entity.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,qBAAa,wBAAyB,SAAQ,SAAU,YAAW,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IACpH,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CACvB"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import AppEntity from '../../../app.entity'
|
|
2
|
-
import { UserEntity } from '../../users'
|
|
3
|
-
|
|
4
|
-
export class OrganizationMemberEntity extends AppEntity implements Pick<UserEntity, 'user_id' | 'email' | 'name' | 'picture'> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
public
|
|
8
|
-
public
|
|
9
|
-
|
|
10
|
-
public picture: string
|
|
11
|
-
}
|
|
1
|
+
import AppEntity from '../../../app.entity'
|
|
2
|
+
import { UserEntity } from '../../users/user.entity'
|
|
3
|
+
|
|
4
|
+
export class OrganizationMemberEntity extends AppEntity implements Pick<UserEntity, 'user_id' | 'email' | 'name' | 'picture'> {
|
|
5
|
+
public user_id: string
|
|
6
|
+
public email: string
|
|
7
|
+
public name: string
|
|
8
|
+
public picture: string
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member.router.d.ts","sourceRoot":"","sources":["member.router.ts"],"names":[],"mappings":";AAGA,wBAGE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member.validator.d.ts","sourceRoot":"","sources":["member.validator.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB,GAAG,MAAM,EAAE,CAAA;AAE7C,oBAAY,yBAAyB,GAAG,MAAM,EAAE,CAAA"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
name: string;
|
|
13
|
-
display_name: string;
|
|
14
|
-
branding: OrganizationBranding;
|
|
15
|
-
|
|
1
|
+
import { Organization } from 'auth0';
|
|
2
|
+
import AppEntity from '../../app.entity';
|
|
3
|
+
export interface OrganizationBrandingColors {
|
|
4
|
+
page_background: string;
|
|
5
|
+
primary: string;
|
|
6
|
+
}
|
|
7
|
+
export interface OrganizationBranding {
|
|
8
|
+
logo_url: string;
|
|
9
|
+
colors: OrganizationBrandingColors;
|
|
10
|
+
}
|
|
11
|
+
export declare class OrganizationEntity extends AppEntity implements Organization {
|
|
12
|
+
name: string;
|
|
13
|
+
display_name: string;
|
|
14
|
+
branding: OrganizationBranding;
|
|
15
|
+
metadata: Record<string, string>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=organization.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["organization.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,SAAS,MAAM,kBAAkB,CAAA;AAExC,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,MAAM,CAAA;IACvB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,0BAA0B,CAAA;CACnC;AAED,qBAAa,kBAAmB,SAAQ,SAAU,YAAW,YAAY;IAChE,IAAI,EAAE,MAAM,CAAA;IAEZ,YAAY,EAAE,MAAM,CAAA;IAEpB,QAAQ,EAAE,oBAAoB,CAAA;IAE9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACxC"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { Organization } from 'auth0'
|
|
2
|
+
import AppEntity from '../../app.entity'
|
|
3
|
+
|
|
4
|
+
export interface OrganizationBrandingColors {
|
|
5
|
+
page_background: string
|
|
6
|
+
primary: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface OrganizationBranding {
|
|
10
|
+
logo_url: string
|
|
11
|
+
colors: OrganizationBrandingColors
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class OrganizationEntity extends AppEntity implements Organization {
|
|
15
|
+
public name: string
|
|
16
|
+
|
|
17
|
+
public display_name: string
|
|
18
|
+
|
|
19
|
+
public branding: OrganizationBranding
|
|
20
|
+
|
|
21
|
+
public metadata: Record<string, string>
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.router.d.ts","sourceRoot":"","sources":["organization.router.ts"],"names":[],"mappings":";AAIA,wBAIE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useRoute } from '../../app.router'
|
|
2
|
+
import MemberRouter from './members/member.router'
|
|
3
|
+
import OrganizationModule from './organization.module'
|
|
4
|
+
|
|
5
|
+
export default useRoute({
|
|
6
|
+
path: '/organizations',
|
|
7
|
+
module: OrganizationModule,
|
|
8
|
+
children: [MemberRouter]
|
|
9
|
+
})
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export declare class CreateOrganizationValidator {
|
|
2
|
-
name: string;
|
|
3
|
-
display_name: string;
|
|
4
|
-
logo_url?: string;
|
|
5
|
-
primary_color?: string;
|
|
6
|
-
secondary_color?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class UpdateOrganizationValidator {
|
|
9
|
-
display_name?: string;
|
|
10
|
-
logo_url?: string;
|
|
11
|
-
primary_color?: string;
|
|
12
|
-
secondary_color?: string;
|
|
13
|
-
}
|
|
1
|
+
export declare class CreateOrganizationValidator {
|
|
2
|
+
name: string;
|
|
3
|
+
display_name: string;
|
|
4
|
+
logo_url?: string;
|
|
5
|
+
primary_color?: string;
|
|
6
|
+
secondary_color?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class UpdateOrganizationValidator {
|
|
9
|
+
display_name?: string;
|
|
10
|
+
logo_url?: string;
|
|
11
|
+
primary_color?: string;
|
|
12
|
+
secondary_color?: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=organization.validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.validator.d.ts","sourceRoot":"","sources":["organization.validator.ts"],"names":[],"mappings":"AAEA,qBAAa,2BAA2B;IAGtC,IAAI,EAAE,MAAM,CAAA;IAGZ,YAAY,EAAE,MAAM,CAAA;IAIpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,aAAa,CAAC,EAAE,MAAM,CAAA;IAItB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,qBAAa,2BAA2B;IAGtC,YAAY,CAAC,EAAE,MAAM,CAAA;IAIrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,aAAa,CAAC,EAAE,MAAM,CAAA;IAKtB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
|