cc-core-cli 1.0.27 → 1.0.29
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/package.json
CHANGED
|
@@ -6,5 +6,5 @@ COOKIE_SAME_SITE=
|
|
|
6
6
|
SYSTEM_APP_KEY=0939f325-e24f-4de3-8796-4d5e7243849c
|
|
7
7
|
SYSTEM_SECRET_KEY=ogi6xld0kftb5yvm6t17x2a6bmyipnfja6s7v5v2
|
|
8
8
|
API_GATEWAY=http://localhost:3000/api/v1
|
|
9
|
-
API_GATEWAY_MEDIA=http://localhost:3000
|
|
9
|
+
API_GATEWAY_MEDIA=http://localhost:3000
|
|
10
10
|
GOOGLE_MAP_KEY=
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
ActivityLogService,
|
|
15
15
|
ApiKeyService,
|
|
16
16
|
AttachmentService,
|
|
17
|
+
AuditLogService,
|
|
17
18
|
CommentDataService,
|
|
18
19
|
CustomFunctionService,
|
|
19
20
|
AddressService,
|
|
@@ -228,6 +229,8 @@ export class CoreService implements OnModuleInit {
|
|
|
228
229
|
private readonly _versionDataService: VersionDataService;
|
|
229
230
|
@Inject(WidgetService)
|
|
230
231
|
private readonly _widgetService: WidgetService;
|
|
232
|
+
@Inject(AuditLogService)
|
|
233
|
+
private readonly _auditLogService: AuditLogService;
|
|
231
234
|
|
|
232
235
|
private services: any = {};
|
|
233
236
|
|
|
@@ -330,6 +333,8 @@ export class CoreService implements OnModuleInit {
|
|
|
330
333
|
return this._versionDataService;
|
|
331
334
|
case "widget":
|
|
332
335
|
return this._widgetService;
|
|
336
|
+
case "audit_log":
|
|
337
|
+
return this._auditLogService;
|
|
333
338
|
|
|
334
339
|
default:
|
|
335
340
|
const customService = this.services[entityName];
|
|
@@ -598,6 +603,8 @@ export class CoreLogService implements OnModuleInit {
|
|
|
598
603
|
private readonly _scheduleLogService: ScheduleLogService;
|
|
599
604
|
@Inject(SmsLogService)
|
|
600
605
|
private readonly _smsLogService: SmsLogService;
|
|
606
|
+
@Inject(AuditLogService)
|
|
607
|
+
private readonly _auditLogService: AuditLogService;
|
|
601
608
|
|
|
602
609
|
private services: any = {};
|
|
603
610
|
|
|
@@ -621,6 +628,8 @@ export class CoreLogService implements OnModuleInit {
|
|
|
621
628
|
return this._executionLogService;
|
|
622
629
|
case "notification_log":
|
|
623
630
|
return this._notificationLogService;
|
|
631
|
+
case "audit_log":
|
|
632
|
+
return this._auditLogService;
|
|
624
633
|
default:
|
|
625
634
|
const customService = this.services[entityName];
|
|
626
635
|
if (_.isEmpty(customService)) {
|
|
@@ -74,7 +74,8 @@ import {
|
|
|
74
74
|
ApiKeyService,
|
|
75
75
|
JWTAuthGuard,
|
|
76
76
|
CsrfGuard,
|
|
77
|
-
CacheInterceptor
|
|
77
|
+
CacheInterceptor,
|
|
78
|
+
AuditLogService
|
|
78
79
|
} from '@shopstack/cc-core-lib/core'
|
|
79
80
|
|
|
80
81
|
import { CUSTOM_MODULES } from "src/modules/modules";
|
|
@@ -140,6 +141,7 @@ async function initial(app: NestFastifyApplication) {
|
|
|
140
141
|
await initialService(app, ActivityLogService);
|
|
141
142
|
await initialService(app, TemplateService);
|
|
142
143
|
await initialService(app, AttachmentService);
|
|
144
|
+
await initialService(app, AuditLogService);
|
|
143
145
|
|
|
144
146
|
await initialService(app, TimeZoneService);
|
|
145
147
|
await initialService(app, CountryService);
|