@ccci/micro-server 0.0.20 → 0.0.21

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/dist/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export { ConstructQuery, ResponseHelper, ErrorResponseHandler, } from './utils/B
7
7
  export { default as BaseModel } from './utils/BaseModel';
8
8
  export { default as BaseModelClass } from './utils/BaseModelClass';
9
9
  export { default as DatabaseConnector } from './utils/DatabaseConnector';
10
+ export { PublicAccess, PrivateAccess, endpoint } from './decorators/Endpoints';
package/dist/index.js CHANGED
@@ -78699,9 +78699,29 @@ class BaseModelClass extends Model {
78699
78699
  static getCommonAssociations() {
78700
78700
  }
78701
78701
  }
78702
+ // src/decorators/Endpoints.ts
78703
+ var endpoint = (target, methodName, descriptor) => {
78704
+ console.log("Method decorator!");
78705
+ console.log(target);
78706
+ console.log(methodName);
78707
+ console.log(descriptor);
78708
+ };
78709
+ var PublicAccess = (constructor) => {
78710
+ return class extends constructor {
78711
+ grantPublicAccess = true;
78712
+ };
78713
+ };
78714
+ var PrivateAccess = (constructor) => {
78715
+ return class extends constructor {
78716
+ grantPublicAccess = false;
78717
+ };
78718
+ };
78702
78719
  export {
78720
+ endpoint,
78703
78721
  RouterFactory,
78704
78722
  ResponseHelper,
78723
+ PublicAccess,
78724
+ PrivateAccess,
78705
78725
  ErrorResponseHandler,
78706
78726
  DatabaseConnector,
78707
78727
  ConstructQuery,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",