cc-core-cli 1.0.42 → 1.0.44
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
|
@@ -57,6 +57,9 @@ import {
|
|
|
57
57
|
NotificationSubscriptionService,
|
|
58
58
|
NotificationMessageService,
|
|
59
59
|
NotificationMessageQueueService,
|
|
60
|
+
PipelineService,
|
|
61
|
+
PipelineJobService,
|
|
62
|
+
PipelineLogService
|
|
60
63
|
} from '@shopstack/cc-core-lib/core'
|
|
61
64
|
|
|
62
65
|
const SPECIFY_CUSTOM_MODULES =
|
|
@@ -77,6 +80,9 @@ const CUSTOM_SERVICES = _.reduce(
|
|
|
77
80
|
const moduleName = _.snakeCase(
|
|
78
81
|
`${v.module.name.slice(0, 2).toLowerCase()}${v.module.name.slice(2)}`
|
|
79
82
|
)
|
|
83
|
+
.replace(/_[0-9]*_/g, (m, g1, g2, i) => {
|
|
84
|
+
return m.slice(1);
|
|
85
|
+
})
|
|
80
86
|
.toLowerCase()
|
|
81
87
|
.replace("_module", "");
|
|
82
88
|
for (const service of v.services || []) {
|
|
@@ -84,6 +90,9 @@ const CUSTOM_SERVICES = _.reduce(
|
|
|
84
90
|
.slice(0, 2)
|
|
85
91
|
.toLowerCase()}${service.name.slice(2)}`;
|
|
86
92
|
let key = `${moduleName}_${_.snakeCase(serviceName)
|
|
93
|
+
.replace(/_[0-9]*_/g, (m, g1, g2, i) => {
|
|
94
|
+
return m.slice(1);
|
|
95
|
+
})
|
|
87
96
|
.toLowerCase()
|
|
88
97
|
.replace("_service", "")
|
|
89
98
|
.replace(`${moduleName}_`, "")}`;
|
|
@@ -231,6 +240,13 @@ export class CoreService implements OnModuleInit {
|
|
|
231
240
|
private readonly _widgetService: WidgetService;
|
|
232
241
|
@Inject(AuditLogService)
|
|
233
242
|
private readonly _auditLogService: AuditLogService;
|
|
243
|
+
@Inject(PipelineService)
|
|
244
|
+
private readonly _pipelineService: PipelineService;
|
|
245
|
+
@Inject(PipelineJobService)
|
|
246
|
+
private readonly _pipelineJobService: PipelineJobService;
|
|
247
|
+
@Inject(PipelineLogService)
|
|
248
|
+
private readonly _pipelineLogService: PipelineLogService;
|
|
249
|
+
|
|
234
250
|
|
|
235
251
|
private services: any = {};
|
|
236
252
|
|
|
@@ -293,6 +309,12 @@ export class CoreService implements OnModuleInit {
|
|
|
293
309
|
return this._notificationMessageQueueService;
|
|
294
310
|
case "notification_log":
|
|
295
311
|
return this._notificationLogService;
|
|
312
|
+
case "pipeline":
|
|
313
|
+
return this._pipelineService;
|
|
314
|
+
case "pipeline_job":
|
|
315
|
+
return this._pipelineJobService;
|
|
316
|
+
case "pipeline_log":
|
|
317
|
+
return this._pipelineLogService;
|
|
296
318
|
case "province":
|
|
297
319
|
return this._provinceService;
|
|
298
320
|
case "report_report":
|
|
@@ -609,6 +631,9 @@ export class CoreLogService implements OnModuleInit {
|
|
|
609
631
|
private readonly _smsLogService: SmsLogService;
|
|
610
632
|
@Inject(AuditLogService)
|
|
611
633
|
private readonly _auditLogService: AuditLogService;
|
|
634
|
+
@Inject(PipelineLogService)
|
|
635
|
+
private readonly _pipelineLogService: PipelineLogService;
|
|
636
|
+
|
|
612
637
|
|
|
613
638
|
private services: any = {};
|
|
614
639
|
|
|
@@ -634,6 +659,8 @@ export class CoreLogService implements OnModuleInit {
|
|
|
634
659
|
return this._notificationLogService;
|
|
635
660
|
case "audit_log":
|
|
636
661
|
return this._auditLogService;
|
|
662
|
+
case "pipeline_log":
|
|
663
|
+
return this._pipelineLogService;
|
|
637
664
|
default:
|
|
638
665
|
const customService = this.services[entityName];
|
|
639
666
|
if (_.isEmpty(customService)) {
|