intelica-library-components 1.1.42 → 1.1.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.
@@ -10858,7 +10858,7 @@ class NotificationOrchestratorService {
10858
10858
  return this.jobStateSubject.value;
10859
10859
  }
10860
10860
  async ensureActiveOrCreateJobNotifications(totalCount, totalNotificationsCount, notificationDraft) {
10861
- if (!this.featureCode || !this.origin)
10861
+ if (!this.origin || !this.featureCode)
10862
10862
  throw new Error("Scope not initialized. Call rehydrateScope(featureCode, origin) first.");
10863
10863
  if (this.currentJobId) {
10864
10864
  return { jobId: this.currentJobId, mode: "active" };
@@ -10881,7 +10881,6 @@ class NotificationOrchestratorService {
10881
10881
  });
10882
10882
  await this.subscribeToJob(this.currentJobId);
10883
10883
  const notifications = notificationDraft.map(draft => ({
10884
- origin: job.origin,
10885
10884
  originReference: `${draft.originReference}-${job.jobId}`,
10886
10885
  notificationTypeCode: draft.notificationTypeCode,
10887
10886
  destination: draft.destination,
@@ -10900,8 +10899,8 @@ class NotificationOrchestratorService {
10900
10899
  await firstValueFrom(this.jobService.createNotifications(job.jobId, notifications));
10901
10900
  return { jobId: this.currentJobId, mode: "created" };
10902
10901
  }
10903
- async ensureCreateJobNotifications(featureCode, origin, totalCount, totalNotificationsCount, notificationDraft) {
10904
- if (!featureCode || !origin)
10902
+ async ensureCreateJobNotifications(origin, featureCode, totalCount, totalNotificationsCount, notificationDraft) {
10903
+ if (!origin || featureCode)
10905
10904
  throw new Error("Scope not initialized.");
10906
10905
  const jobPayload = {
10907
10906
  featureCode: featureCode,
@@ -10909,7 +10908,6 @@ class NotificationOrchestratorService {
10909
10908
  totalCount,
10910
10909
  totalNotificationsCount,
10911
10910
  notifications: notificationDraft.map(draft => ({
10912
- origin: origin,
10913
10911
  originReference: draft.originReference,
10914
10912
  notificationTypeCode: draft.notificationTypeCode,
10915
10913
  destination: draft.destination,