@drax/audit-back 0.43.0 → 0.44.1
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/factory/services/AuditServiceFactory.js +16 -2
- package/dist/index.js +3 -2
- package/dist/repository/mongo/AuditMongoRepository.js +12 -0
- package/dist/repository/sqlite/AuditSqliteRepository.js +65 -0
- package/package.json +4 -4
- package/src/factory/services/AuditServiceFactory.ts +17 -2
- package/src/index.ts +4 -2
- package/src/repository/{AuditRepository.ts → mongo/AuditMongoRepository.ts} +2 -2
- package/src/repository/sqlite/AuditSqliteRepository.ts +93 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/types/factory/services/AuditServiceFactory.d.ts.map +1 -1
- package/types/index.d.ts +3 -2
- package/types/index.d.ts.map +1 -1
- package/types/repository/{AuditRepository.d.ts → mongo/AuditMongoRepository.d.ts} +2 -2
- package/types/repository/mongo/AuditMongoRepository.d.ts.map +1 -0
- package/types/repository/sqlite/AuditSqliteRepository.d.ts +20 -0
- package/types/repository/sqlite/AuditSqliteRepository.d.ts.map +1 -0
- package/types/repository/AuditRepository.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditServiceFactory.d.ts","sourceRoot":"","sources":["../../../src/factory/services/AuditServiceFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuditServiceFactory.d.ts","sourceRoot":"","sources":["../../../src/factory/services/AuditServiceFactory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAA;AAI3D,cAAM,mBAAmB;IACrB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAe;IAErC,WAAkB,QAAQ,IAAI,YAAY,CAmBzC;CACJ;AAED,eAAe,mBAAmB,CAAA;AAClC,OAAO,EACH,mBAAmB,EACtB,CAAA"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import AuditPermissions from './permissions/AuditPermissions.js';
|
|
2
2
|
import AuditSchema from './schemas/AuditSchema.js';
|
|
3
3
|
import AuditModel from './models/AuditModel.js';
|
|
4
|
-
import
|
|
4
|
+
import AuditMongoRepository from './repository/mongo/AuditMongoRepository.js';
|
|
5
|
+
import AuditSqliteRepository from './repository/sqlite/AuditSqliteRepository.js';
|
|
5
6
|
import AuditService from './services/AuditService.js';
|
|
6
7
|
import AuditServiceFactory from './factory/services/AuditServiceFactory.js';
|
|
7
8
|
import AuditController from './controllers/AuditController.js';
|
|
@@ -9,5 +10,5 @@ import AuditRoutes from './routes/AuditRoutes.js';
|
|
|
9
10
|
import { RegisterCrudEvent } from './utils/RegisterCrudEvent.js';
|
|
10
11
|
import type { IAuditRepository } from './interfaces/IAuditRepository';
|
|
11
12
|
export type { IAuditRepository };
|
|
12
|
-
export { AuditPermissions, AuditSchema, AuditModel,
|
|
13
|
+
export { AuditPermissions, AuditSchema, AuditModel, AuditMongoRepository, AuditSqliteRepository, AuditService, AuditServiceFactory, AuditController, AuditRoutes, RegisterCrudEvent };
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,mCAAmC,CAAA;AAChE,OAAO,WAAW,MAAM,0BAA0B,CAAA;AAClD,OAAO,UAAU,MAAM,wBAAwB,CAAA;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,mCAAmC,CAAA;AAChE,OAAO,WAAW,MAAM,0BAA0B,CAAA;AAClD,OAAO,UAAU,MAAM,wBAAwB,CAAA;AAC/C,OAAO,oBAAoB,MAAM,4CAA4C,CAAA;AAC7E,OAAO,qBAAqB,MAAM,8CAA8C,CAAA;AAChF,OAAO,YAAY,MAAM,4BAA4B,CAAA;AACrD,OAAO,mBAAmB,MAAM,2CAA2C,CAAA;AAC3E,OAAO,eAAe,MAAM,kCAAkC,CAAA;AAC9D,OAAO,WAAW,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAA;AAC9D,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAA;AAEnE,YAAW,EACP,gBAAgB,EACnB,CAAA;AAED,OAAO,EACH,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,iBAAiB,EACpB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AbstractMongoRepository } from "@drax/crud-back";
|
|
2
|
-
import type { IAuditRepository } from '
|
|
2
|
+
import type { IAuditRepository } from '../../interfaces/IAuditRepository';
|
|
3
3
|
import type { IAudit, IAuditBase } from "@drax/audit-share";
|
|
4
4
|
declare class AuditMongoRepository extends AbstractMongoRepository<IAudit, IAuditBase, IAuditBase> implements IAuditRepository {
|
|
5
5
|
constructor();
|
|
6
6
|
}
|
|
7
7
|
export default AuditMongoRepository;
|
|
8
8
|
export { AuditMongoRepository };
|
|
9
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=AuditMongoRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditMongoRepository.d.ts","sourceRoot":"","sources":["../../../src/repository/mongo/AuditMongoRepository.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,uBAAuB,EAAC,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AACvE,OAAO,KAAK,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAG1D,cAAM,oBAAqB,SAAQ,uBAAuB,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,CAAE,YAAW,gBAAgB;;CASrH;AAED,eAAe,oBAAoB,CAAA;AACnC,OAAO,EAAC,oBAAoB,EAAC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IAuditRepository } from '../../interfaces/IAuditRepository';
|
|
2
|
+
import { IAudit, IAuditBase } from "@drax/audit-share";
|
|
3
|
+
import { SqliteTableField } from "@drax/common-back";
|
|
4
|
+
import { AbstractSqliteRepository } from "@drax/crud-back";
|
|
5
|
+
declare class AuditSqliteRepository extends AbstractSqliteRepository<IAudit, IAuditBase, IAuditBase> implements IAuditRepository {
|
|
6
|
+
protected db: any;
|
|
7
|
+
protected tableName: string;
|
|
8
|
+
protected dataBaseFile: string;
|
|
9
|
+
protected searchFields: string[];
|
|
10
|
+
protected booleanFields: string[];
|
|
11
|
+
protected identifier: string;
|
|
12
|
+
protected populateFields: any[];
|
|
13
|
+
protected tableFields: SqliteTableField[];
|
|
14
|
+
protected verbose: boolean;
|
|
15
|
+
prepareData(data: any): Promise<void>;
|
|
16
|
+
prepareItem(item: any): Promise<any>;
|
|
17
|
+
}
|
|
18
|
+
export default AuditSqliteRepository;
|
|
19
|
+
export { AuditSqliteRepository };
|
|
20
|
+
//# sourceMappingURL=AuditSqliteRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditSqliteRepository.d.ts","sourceRoot":"","sources":["../../../src/repository/sqlite/AuditSqliteRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AACvE,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,mBAAmB,CAAC;AACrD,OAAO,EACH,gBAAgB,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAC,wBAAwB,EAAC,MAAM,iBAAiB,CAAC;AAGzD,cAAM,qBAAsB,SAAQ,wBAAwB,CAAC,MAAM,EAAE,UAAU,EAAE,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