cc-core-cli 1.0.41 → 1.0.43
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
|
@@ -40,7 +40,8 @@ import {
|
|
|
40
40
|
DatabaseModule,
|
|
41
41
|
DeployModule,
|
|
42
42
|
CustomFunctionModule,
|
|
43
|
-
CacheModule
|
|
43
|
+
CacheModule,
|
|
44
|
+
PipelineModule
|
|
44
45
|
} from '@shopstack/cc-core-lib/core'
|
|
45
46
|
|
|
46
47
|
import { CoreModule } from './core/core.module'
|
|
@@ -150,7 +151,7 @@ if (+process.env.MONGODB_MAX_POOL_SIZE) {
|
|
|
150
151
|
NotificationModule,
|
|
151
152
|
ShortlyModule,
|
|
152
153
|
UserModule,
|
|
153
|
-
|
|
154
|
+
PipelineModule,
|
|
154
155
|
LayoutModule,
|
|
155
156
|
|
|
156
157
|
// ...RUN_CUSTOM_MODULES,
|
|
@@ -34,7 +34,8 @@ import {
|
|
|
34
34
|
ShortlyModule,
|
|
35
35
|
WidgetModule,
|
|
36
36
|
LayoutModule,
|
|
37
|
-
AuditLogModule
|
|
37
|
+
AuditLogModule,
|
|
38
|
+
PipelineModule
|
|
38
39
|
} from '@shopstack/cc-core-lib/core'
|
|
39
40
|
|
|
40
41
|
const SPECIFY_CUSTOM_MODULES =
|
|
@@ -76,6 +77,7 @@ const RUN_CUSTOM_MODULES =
|
|
|
76
77
|
NotificationModule,
|
|
77
78
|
ShortlyModule,
|
|
78
79
|
WidgetModule,
|
|
80
|
+
PipelineModule,
|
|
79
81
|
LayoutModule,
|
|
80
82
|
|
|
81
83
|
...RUN_CUSTOM_MODULES
|
|
@@ -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 =
|
|
@@ -231,6 +234,13 @@ export class CoreService implements OnModuleInit {
|
|
|
231
234
|
private readonly _widgetService: WidgetService;
|
|
232
235
|
@Inject(AuditLogService)
|
|
233
236
|
private readonly _auditLogService: AuditLogService;
|
|
237
|
+
@Inject(PipelineService)
|
|
238
|
+
private readonly _pipelineService: PipelineService;
|
|
239
|
+
@Inject(PipelineJobService)
|
|
240
|
+
private readonly _pipelineJobService: PipelineJobService;
|
|
241
|
+
@Inject(PipelineLogService)
|
|
242
|
+
private readonly _pipelineLogService: PipelineLogService;
|
|
243
|
+
|
|
234
244
|
|
|
235
245
|
private services: any = {};
|
|
236
246
|
|
|
@@ -293,6 +303,12 @@ export class CoreService implements OnModuleInit {
|
|
|
293
303
|
return this._notificationMessageQueueService;
|
|
294
304
|
case "notification_log":
|
|
295
305
|
return this._notificationLogService;
|
|
306
|
+
case "pipeline":
|
|
307
|
+
return this._pipelineService;
|
|
308
|
+
case "pipeline_job":
|
|
309
|
+
return this._pipelineJobService;
|
|
310
|
+
case "pipeline_log":
|
|
311
|
+
return this._pipelineLogService;
|
|
296
312
|
case "province":
|
|
297
313
|
return this._provinceService;
|
|
298
314
|
case "report_report":
|
|
@@ -609,6 +625,9 @@ export class CoreLogService implements OnModuleInit {
|
|
|
609
625
|
private readonly _smsLogService: SmsLogService;
|
|
610
626
|
@Inject(AuditLogService)
|
|
611
627
|
private readonly _auditLogService: AuditLogService;
|
|
628
|
+
@Inject(PipelineLogService)
|
|
629
|
+
private readonly _pipelineLogService: PipelineLogService;
|
|
630
|
+
|
|
612
631
|
|
|
613
632
|
private services: any = {};
|
|
614
633
|
|
|
@@ -634,6 +653,8 @@ export class CoreLogService implements OnModuleInit {
|
|
|
634
653
|
return this._notificationLogService;
|
|
635
654
|
case "audit_log":
|
|
636
655
|
return this._auditLogService;
|
|
656
|
+
case "pipeline_log":
|
|
657
|
+
return this._pipelineLogService;
|
|
637
658
|
default:
|
|
638
659
|
const customService = this.services[entityName];
|
|
639
660
|
if (_.isEmpty(customService)) {
|