cc-core-cli 1.0.28 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-core-cli",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "Command Line Interface tool for generating project templates for the (Your Platform's Name) platform.",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {
@@ -55,6 +55,7 @@ const RUN_CUSTOM_MODULES =
55
55
  AddressModule,
56
56
  ApiKeyModule,
57
57
  AttachmentModule,
58
+ AuditLogModule,
58
59
  CommentDataModule,
59
60
  CustomFunctionModule,
60
61
  DeployModule,
@@ -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);