@ccci/micro-server 0.0.9 → 0.0.10
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 +4 -0
- package/dist/index.js +29 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,3 +3,7 @@ export { default as ApplicationServer } from './utils/ApplicationServer';
|
|
|
3
3
|
export { default as RouterFactory } from './utils/RouterFactory';
|
|
4
4
|
export { default as BaseRouter } from './utils/BaseRouter';
|
|
5
5
|
export { default as BaseController } from './utils/BaseController';
|
|
6
|
+
export { ConstructQuery, ResponseHelper, ErrorResponseHandler, } from './utils/BaseControllerHelper';
|
|
7
|
+
export { default as BaseModel } from './utils/BaseModel';
|
|
8
|
+
export { default as BaseModelClass } from './utils/BaseModelClass';
|
|
9
|
+
export { default as DatabaseConnector } from './utils/DatabaseConnector';
|
package/dist/index.js
CHANGED
|
@@ -78673,9 +78673,38 @@ class BaseController {
|
|
|
78673
78673
|
async afterFind(req) {
|
|
78674
78674
|
}
|
|
78675
78675
|
}
|
|
78676
|
+
// src/utils/BaseModelClass.ts
|
|
78677
|
+
class BaseModelClass extends Model {
|
|
78678
|
+
constructor() {
|
|
78679
|
+
super(...arguments);
|
|
78680
|
+
}
|
|
78681
|
+
static getCommonAttributes() {
|
|
78682
|
+
return {
|
|
78683
|
+
createdById: {
|
|
78684
|
+
type: new DataTypes.INTEGER,
|
|
78685
|
+
comment: "UserId of the creator"
|
|
78686
|
+
},
|
|
78687
|
+
updatedById: {
|
|
78688
|
+
type: new DataTypes.INTEGER,
|
|
78689
|
+
comment: "UserId of the modifier"
|
|
78690
|
+
},
|
|
78691
|
+
isActive: {
|
|
78692
|
+
type: new DataTypes.BOOLEAN,
|
|
78693
|
+
comment: "Record active indicator"
|
|
78694
|
+
}
|
|
78695
|
+
};
|
|
78696
|
+
}
|
|
78697
|
+
static getCommonAssociations() {
|
|
78698
|
+
}
|
|
78699
|
+
}
|
|
78676
78700
|
export {
|
|
78677
78701
|
RouterFactory,
|
|
78702
|
+
ResponseHelper,
|
|
78703
|
+
ErrorResponseHandler,
|
|
78704
|
+
DatabaseConnector,
|
|
78705
|
+
ConstructQuery,
|
|
78678
78706
|
BaseRouter,
|
|
78707
|
+
BaseModelClass,
|
|
78679
78708
|
BaseController,
|
|
78680
78709
|
ApplicationServer
|
|
78681
78710
|
};
|