@ccci/micro-server 1.0.91 → 1.0.93

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.
@@ -7,7 +7,7 @@ export default class BaseModel extends Model implements IBaseModel {
7
7
  * Sets common model attributes
8
8
  * @returns
9
9
  */
10
- static getCommonAttributes(): {
10
+ static getCommonAttributes(defaultAttributes: boolean): {
11
11
  createdById: {
12
12
  type: DataTypes.IntegerDataType;
13
13
  comment: string;
@@ -20,7 +20,7 @@ export default class BaseModel extends Model implements IBaseModel {
20
20
  type: DataTypes.AbstractDataType;
21
21
  comment: string;
22
22
  };
23
- };
23
+ } | null;
24
24
  static getCommonAssociations(): void;
25
25
  /**
26
26
  *
@@ -28,7 +28,8 @@ export default class BaseModel extends Model implements IBaseModel {
28
28
  * @param {string} tableName name of the table
29
29
  * @param {string} schema this will overwrite the default schema
30
30
  * @param {boolean} paranoid paranoid option. defaults to true
31
+ * @param {boolean} defaultAttributes need to inherit default attributes. defaults to true
31
32
  */
32
- static initialize(fields: ModelAttributes, tableName: string, schema?: string, paranoid?: boolean): void;
33
+ static initialize(fields: ModelAttributes, tableName: string, schema?: string, paranoid?: boolean, defaultAttributes?: boolean): void;
33
34
  }
34
35
  //# sourceMappingURL=BaseModel.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",