@kumori/aurora-backend-handler 1.0.89 → 1.0.91

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.
@@ -642,6 +642,7 @@ export const createAccount = async (account: Account, security: Security) => {
642
642
  account: account.name,
643
643
  tenant: account.tenant,
644
644
  },
645
+ userError: true,
645
646
  };
646
647
  eventHelper.notification.publish.creation(accountErrorNotification);
647
648
  throw error;
@@ -758,6 +759,7 @@ export const deleteAccount = async (account: Account, security: Security) => {
758
759
  account: account.name,
759
760
  tenant: account.tenant,
760
761
  },
762
+ userError: true,
761
763
  };
762
764
  eventHelper.notification.publish.creation(accountErrorNotification);
763
765
  throw error;
@@ -818,6 +820,7 @@ export const clearAccount = async (account: Account, security: Security) => {
818
820
  account: account.name,
819
821
  tenant: account.tenant,
820
822
  },
823
+ userError: true,
821
824
  };
822
825
  eventHelper.notification.publish.creation(accountErrorNotification);
823
826
  throw error;
@@ -143,7 +143,8 @@ export const createEnvironment = async (
143
143
  environment: env.name,
144
144
  account: env.account,
145
145
  tenant: env.tenant
146
- }
146
+ },
147
+ userError: true,
147
148
  };
148
149
  eventHelper.notification.publish.creation(envErrorNotification);
149
150
  throw error;
@@ -232,7 +233,8 @@ export const deleteEnvironment = async (
232
233
  environment: env.name,
233
234
  account: env.account,
234
235
  tenant: env.tenant
235
- }
236
+ },
237
+ userError: true,
236
238
  };
237
239
  eventHelper.notification.publish.creation(envErrorNotification);
238
240
  throw error;
@@ -319,7 +321,8 @@ export const clearEnvironment = async (
319
321
  environment: env.name,
320
322
  account: env.account,
321
323
  tenant: env.tenant
322
- }
324
+ },
325
+ userError: true,
323
326
  };
324
327
  eventHelper.notification.publish.creation(envErrorNotification);
325
328
  throw error;
@@ -456,7 +459,8 @@ export const updateEnvironment = async (
456
459
  environment: env.name,
457
460
  account: env.account,
458
461
  tenant: env.tenant
459
- }
462
+ },
463
+ userError: true
460
464
  };
461
465
  eventHelper.notification.publish.creation(envErrorNotification);
462
466
  throw error;
@@ -534,7 +538,8 @@ export const scaleEnvironment = async (
534
538
  environment: env.name,
535
539
  account: env.account,
536
540
  tenant: env.tenant
537
- }
541
+ },
542
+ userError: true
538
543
  };
539
544
  eventHelper.notification.publish.creation(envErrorNotification);
540
545
  throw error;
@@ -972,6 +972,7 @@ const linkPendingServices = async (service: Service, token: string) => {
972
972
  service: service.name,
973
973
  tenant: service.tenant,
974
974
  },
975
+ userError: true,
975
976
  };
976
977
 
977
978
  eventHelper.notification.publish.creation(notification);
@@ -98,7 +98,8 @@ export const createDomain = async (
98
98
  data: {
99
99
  resource: domain.name,
100
100
  tenant: tenant
101
- }
101
+ },
102
+ userError: true,
102
103
  };
103
104
  eventHelper.notification.publish.creation(resourceErrorNotification);
104
105
  throw error;
@@ -177,7 +178,8 @@ export const createPort = async (
177
178
  data: {
178
179
  resource: port.name,
179
180
  tenant: tenant
180
- }
181
+ },
182
+ userError: true,
181
183
  };
182
184
  eventHelper.notification.publish.creation(resourceErrorNotification);
183
185
  throw error;
@@ -256,7 +258,8 @@ export const createCA = async (
256
258
  data: {
257
259
  resource: ca.name,
258
260
  tenant: tenant
259
- }
261
+ },
262
+ userError: true,
260
263
  };
261
264
  eventHelper.notification.publish.creation(resourceErrorNotification);
262
265
  throw error;
@@ -348,7 +351,8 @@ export const createCertificate = async (
348
351
  data: {
349
352
  resource: certificate.name,
350
353
  tenant: tenant
351
- }
354
+ },
355
+ userError: true,
352
356
  };
353
357
  eventHelper.notification.publish.creation(resourceErrorNotification);
354
358
  throw error;
@@ -427,7 +431,8 @@ export const createSecret = async (
427
431
  data: {
428
432
  resource: secret.name,
429
433
  tenant: tenant
430
- }
434
+ },
435
+ userError: true,
431
436
  };
432
437
  eventHelper.notification.publish.creation(resourceErrorNotification);
433
438
  throw error;
@@ -526,7 +531,8 @@ export const createVolume = async (
526
531
  data: {
527
532
  resource: volume.name,
528
533
  tenant: tenant
529
- }
534
+ },
535
+ userError: true,
530
536
  };
531
537
  eventHelper.notification.publish.creation(resourceErrorNotification);
532
538
  throw error;
@@ -632,7 +638,8 @@ const deleteResourceBase = async (
632
638
  resource: resource.name,
633
639
  type: resource.type,
634
640
  tenant: tenant
635
- }
641
+ },
642
+ userError: true,
636
643
  };
637
644
  eventHelper.notification.publish.creation(resourceErrorNotification);
638
645
  throw error;
@@ -726,7 +733,8 @@ const updateResourceBase = async (
726
733
  resource: resource.name,
727
734
  type: resource.type,
728
735
  tenant: tenant
729
- }
736
+ },
737
+ userError: true,
730
738
  };
731
739
  eventHelper.notification.publish.creation(resourceErrorNotification);
732
740
  throw error;
@@ -354,6 +354,7 @@ export const linkPendingServices = async (service: Service, token: string) => {
354
354
  service: service.name,
355
355
  tenant: service.tenant,
356
356
  },
357
+ userError: true,
357
358
  };
358
359
 
359
360
  eventHelper.notification.publish.creation(notification);
@@ -636,6 +637,7 @@ export const updateService = async (
636
637
  service: data.name,
637
638
  tenant: data.tenant,
638
639
  },
640
+ userError: true,
639
641
  };
640
642
  eventHelper.notification.publish.creation(notification);
641
643
  eventHelper.service.publish.updateError(data);
@@ -692,6 +694,7 @@ export const unlinkServices = async (service: Service, token: string) => {
692
694
  service: service.name,
693
695
  tenant: service.tenant,
694
696
  },
697
+ userError: true,
695
698
  };
696
699
  eventHelper.notification.publish.creation(notification);
697
700
  }
@@ -753,6 +756,7 @@ export const updateServiceLinks = async (link: Link, token: string) => {
753
756
  service: link.origin,
754
757
  tenant: link.tenant,
755
758
  },
759
+ userError: true,
756
760
  };
757
761
  eventHelper.notification.publish.creation(notification);
758
762
  }
@@ -779,6 +783,7 @@ export const updateServiceLinks = async (link: Link, token: string) => {
779
783
  service: link.origin,
780
784
  tenant: link.tenant,
781
785
  },
786
+ userError: true,
782
787
  };
783
788
 
784
789
  eventHelper.notification.publish.creation(notification);
@@ -109,6 +109,7 @@ export const createTenant = async (tenant: Tenant, security: Security) => {
109
109
  data: {
110
110
  tenant: tenant.name,
111
111
  },
112
+ userError: true,
112
113
  };
113
114
  eventHelper.notification.publish.creation(tenantCreationErrorNotification);
114
115
  throw error;
@@ -176,6 +177,7 @@ export const deleteTenant = async (tenant: Tenant, security: string) => {
176
177
  data: {
177
178
  tenant: tenant.name,
178
179
  },
180
+ userError: true,
179
181
  };
180
182
  eventHelper.notification.publish.creation(tenantDeletionErrorNotification);
181
183
  throw err;
@@ -265,6 +267,7 @@ export const updateTenant = async (tenant: Tenant, security: string) => {
265
267
  data: {
266
268
  tenant: tenant.name,
267
269
  },
270
+ userError: true,
268
271
  };
269
272
  eventHelper.notification.publish.creation(tenantUpdateErrorNotification);
270
273
  throw err;
@@ -364,6 +367,7 @@ export const createTenantHTTP = async (tenant: Tenant) => {
364
367
  data: {
365
368
  tenant: tenant.name,
366
369
  },
370
+ userError: true,
367
371
  };
368
372
 
369
373
  eventHelper.notification.publish.creation(tenantCreationErrorNotification);
@@ -423,6 +427,7 @@ export const deleteTenantHTTP = async (tenant: Tenant) => {
423
427
  data: {
424
428
  tenant: tenant.name,
425
429
  },
430
+ userError: true,
426
431
  };
427
432
  eventHelper.notification.publish.creation(tenantDeletionErrorNotification);
428
433
  }
@@ -514,6 +519,7 @@ export const updateTenantHTTP = async (tenant: Tenant) => {
514
519
  data: {
515
520
  tenant: tenant.name,
516
521
  },
522
+ userError: true,
517
523
  };
518
524
  eventHelper.notification.publish.creation(tenantUpdateErrorNotification);
519
525
  }
@@ -602,6 +608,7 @@ export const createRegistry = async (
602
608
  data: {
603
609
  tenant: tenant.name,
604
610
  },
611
+ userError: true,
605
612
  };
606
613
  eventHelper.notification.publish.creation(
607
614
  dregistryCreationErrorNotification
@@ -703,6 +710,7 @@ export const updateRegistry = async (
703
710
  data: {
704
711
  tenant: tenant.name,
705
712
  },
713
+ userError: true,
706
714
  };
707
715
  eventHelper.notification.publish.creation(dregistryUpdateErrorNotification);
708
716
  throw error;
@@ -785,6 +793,7 @@ export const deleteRegistry = async (
785
793
  data: {
786
794
  tenant: tenant.name,
787
795
  },
796
+ userError: true,
788
797
  };
789
798
  eventHelper.notification.publish.creation(
790
799
  dregistryDeletionErrorNotification
@@ -872,6 +881,7 @@ export const inviteUser = async (
872
881
  role,
873
882
  tenantRole,
874
883
  },
884
+ userError: true,
875
885
  };
876
886
  eventHelper.notification.publish.creation(tenantInviteErrorNotification);
877
887
  throw error;
@@ -948,6 +958,7 @@ export const removeUser = async (
948
958
  tenant: tenant,
949
959
  user: userId,
950
960
  },
961
+ userError: true,
951
962
  };
952
963
  eventHelper.notification.publish.creation(
953
964
  tenantUserRemovedErrorNotification
@@ -1031,6 +1042,7 @@ export const updateUserRole = async (
1031
1042
  user: userId,
1032
1043
  role: role,
1033
1044
  },
1045
+ userError: true,
1034
1046
  };
1035
1047
  eventHelper.notification.publish.creation(
1036
1048
  tenantUserUpdatedErrorNotification
@@ -1099,6 +1111,7 @@ export const acceptInvite = async (tenant: string, security: string) => {
1099
1111
  data: {
1100
1112
  tenant: tenant,
1101
1113
  },
1114
+ userError: true,
1102
1115
  };
1103
1116
  eventHelper.notification.publish.creation(
1104
1117
  tenantInviteAcceptedErrorNotification
@@ -1167,6 +1180,7 @@ export const rejectInvite = async (tenant: string, security: string) => {
1167
1180
  data: {
1168
1181
  tenant: tenant,
1169
1182
  },
1183
+ userError: true,
1170
1184
  };
1171
1185
  eventHelper.notification.publish.creation(
1172
1186
  tenantInviteRejectedErrorNotification
@@ -1091,6 +1091,7 @@ export const updateUser = async (user: User) => {
1091
1091
  message: (error as any).error.content,
1092
1092
  },
1093
1093
  data: { user: user.name },
1094
+ userError: true,
1094
1095
  });
1095
1096
  throw error;
1096
1097
  }
@@ -1129,6 +1130,7 @@ export const deleteUSer = async (user: User, security: string) => {
1129
1130
  message: (error as any).error.content,
1130
1131
  },
1131
1132
  data: { user: user.name },
1133
+ userError: true,
1132
1134
  });
1133
1135
  throw error;
1134
1136
  }
@@ -376,6 +376,7 @@ export const handleAccountOperationError = ({
376
376
  entityName || originalData?.name || originalData?.account || "unknown",
377
377
  tenant: originalData?.tenant ?? "unknown",
378
378
  },
379
+ userError: true,
379
380
  };
380
381
  if (isCreate) {
381
382
  return {
@@ -270,6 +270,7 @@ export const handleEnvironmentOperationError = ({
270
270
  account: originalData.account,
271
271
  tenant: originalData.tenant,
272
272
  },
273
+ userError: true,
273
274
  };
274
275
 
275
276
  const updatedEnvironment: Environment = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumori/aurora-backend-handler",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "description": "backend handler",
5
5
  "main": "backend-handler.ts",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "glob": "^11.0.0"
12
12
  },
13
13
  "dependencies": {
14
- "@kumori/aurora-interfaces": "^1.0.9",
14
+ "@kumori/aurora-interfaces": "^1.0.11",
15
15
  "@kumori/kumori-dsl-generator": "^1.0.4",
16
16
  "@kumori/kumori-module-generator": "^1.1.6",
17
17
  "ts-node": "^10.9.2",
@@ -1738,6 +1738,7 @@ const handleDeleteEvent = async (message: WSMessage) => {
1738
1738
  targetChannel: deletedLinkInfo.targetChannel,
1739
1739
  tenant: deletedLinkInfo.tenant,
1740
1740
  },
1741
+ userError: true,
1741
1742
  };
1742
1743
  eventHelper.notification.publish.creation(unlinkNotification);
1743
1744
  }