@thzero/library_server 0.15.33 → 0.15.34

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.
@@ -4,8 +4,6 @@ import NotImplementedError from '@thzero/library_common/errors/notImplemented';
4
4
 
5
5
  import AdminBootPlugin from './index';
6
6
 
7
- import adminNewsRoute from '../../../routes/admin/news';
8
-
9
7
  class NewsAdminBootPlugin extends AdminBootPlugin {
10
8
  async _initRoutes() {
11
9
  this._initRoute(this._initRoutesAdminNews());
@@ -24,7 +22,7 @@ class NewsAdminBootPlugin extends AdminBootPlugin {
24
22
  }
25
23
 
26
24
  _initRoutesAdminNews() {
27
- return new adminNewsRoute();
25
+ throw new NotImplementedError();;
28
26
  }
29
27
 
30
28
  _initServicesAdminNews() {
@@ -4,8 +4,6 @@ import NotImplementedError from '@thzero/library_common/errors/notImplemented';
4
4
 
5
5
  import AdminBootPlugin from './index';
6
6
 
7
- import adminUsersRoute from '../../../routes/admin/users'
8
-
9
7
  class UsersAdminBootPlugin extends AdminBootPlugin {
10
8
  async _initRoutes() {
11
9
  this._initRoute(this._initRoutesAdminUsers());
@@ -24,7 +22,7 @@ class UsersAdminBootPlugin extends AdminBootPlugin {
24
22
  }
25
23
 
26
24
  _initRoutesAdminUsers() {
27
- return new adminUsersRoute();
25
+ throw new NotImplementedError();
28
26
  }
29
27
 
30
28
  _initServicesAdminUsers() {
@@ -30,11 +30,11 @@ class ApiBootPlugin extends BootPlugin {
30
30
  }
31
31
 
32
32
  _initRoutesHome() {
33
- throw NotImplementedError();
33
+ throw new NotImplementedError();
34
34
  }
35
35
 
36
36
  _initRoutesVersion() {
37
- throw NotImplementedError();
37
+ throw new NotImplementedError();
38
38
  }
39
39
 
40
40
  _initServicesCrypto() {
@@ -20,7 +20,7 @@ class FrontApiBootPlugin extends ApiBootPlugin {
20
20
  }
21
21
 
22
22
  _initRoutesUtility() {
23
- throw NotImplementedError();
23
+ throw new NotImplementedError();
24
24
  }
25
25
 
26
26
  _initServicesUtility() {
@@ -29,7 +29,7 @@ class NewsApiBootPlugin extends BootPlugin {
29
29
  }
30
30
 
31
31
  _initRoutesNews() {
32
- throw NotImplementedError();
32
+ throw new NotImplementedError();
33
33
  }
34
34
 
35
35
  _initServicesNews() {
@@ -31,7 +31,7 @@ class UsersApiBootPlugin extends BootPlugin {
31
31
  }
32
32
 
33
33
  _initRoutesUsers() {
34
- throw NotImplementedError();
34
+ throw new NotImplementedError();
35
35
  }
36
36
 
37
37
  _initServicesAuth() {
@@ -4,6 +4,8 @@ import NotImplementedError from '@thzero/library_common/errors/notImplemented';
4
4
 
5
5
  import UsersApiBootPlugin from './users';
6
6
 
7
+ import plansService from '../../service/plans';
8
+
7
9
  class ExtendedUsersApiBootPlugin extends UsersApiBootPlugin {
8
10
  async _initRepositories() {
9
11
  await super._initRepositories();
@@ -23,7 +25,7 @@ class ExtendedUsersApiBootPlugin extends UsersApiBootPlugin {
23
25
  }
24
26
 
25
27
  _initServicesPlans() {
26
- throw NotImplementedError();
28
+ return new plansService();
27
29
  }
28
30
  }
29
31
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thzero/library_server",
3
3
  "type": "module",
4
- "version": "0.15.33",
4
+ "version": "0.15.34",
5
5
  "version_major": 0,
6
6
  "version_minor": 15,
7
- "version_patch": 33,
8
- "version_date": "04/18/2022",
7
+ "version_patch": 34,
8
+ "version_date": "04/19/2022",
9
9
  "description": "An opinionated library of common functionality to bootstrap an API application using MongoDb and Firebase. Currently either Fastify or Koa can be used as the web server.",
10
10
  "author": "thZero",
11
11
  "license": "MIT",