@kumori/aurora-interfaces 1.0.24 → 1.0.26

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.
@@ -4,6 +4,7 @@ import { buttonAction, CallToActionNotification, Notification } from "../interfa
4
4
  interface callToAction {
5
5
  type: string;
6
6
  criticality: "critical" | "high" | "low";
7
+ infoContent?: { code: string; message: string };
7
8
  support?: boolean;
8
9
  noActions?: boolean;
9
10
  actions?: buttonAction[];
@@ -29,6 +30,7 @@ const callToActionDefinitions: callToAction[] = [
29
30
  {
30
31
  type: "tenant-creation-error",
31
32
  criticality: "high",
33
+ infoContent: { code: "tenant-creation-error", message: "We couldn't create this tenant. Try again or contact support if the problem continues." },
32
34
  support: true,
33
35
  actions: [
34
36
  { label: "Retry", buttonType: "primary", icon: "refresh", route: ROUTE_NAMES.CREATE_TENANT },
@@ -38,6 +40,7 @@ const callToActionDefinitions: callToAction[] = [
38
40
  {
39
41
  type: "tenant-deletion-error",
40
42
  criticality: "high",
43
+ infoContent: { code: "tenant-deletion-error", message: "We couldn't delete this tenant. Retry the deletion to try again." },
41
44
  support: true,
42
45
  actions: [
43
46
  { label: "Retry deletion", buttonType: "primary", icon: "delete", route: ROUTE_NAMES.TENANTS },
@@ -46,6 +49,7 @@ const callToActionDefinitions: callToAction[] = [
46
49
  {
47
50
  type: "tenant-user-invite-error",
48
51
  criticality: "low",
52
+ infoContent: { code: "tenant-user-invite-error", message: "No action needed." },
49
53
  actions: [
50
54
  { label: "Retry invite", buttonType: "secondary", route: ROUTE_NAMES.TENANTS },
51
55
  ],
@@ -53,6 +57,7 @@ const callToActionDefinitions: callToAction[] = [
53
57
  {
54
58
  type: "account-creation-error",
55
59
  criticality: "high",
60
+ infoContent: { code: "account-creation-error", message: "We couldn't create this account. Try again or contact support if the problem continues." },
56
61
  support: true,
57
62
  actions: [
58
63
  { label: "Retry", buttonType: "primary", icon: "refresh", route: ROUTE_NAMES.CREATE_ACCOUNT },
@@ -61,6 +66,7 @@ const callToActionDefinitions: callToAction[] = [
61
66
  {
62
67
  type: "account-deletion-error",
63
68
  criticality: "high",
69
+ infoContent: { code: "account-deletion-error", message: "We couldn't delete this account. Retry to try again." },
64
70
  support: true,
65
71
  actions: [
66
72
  { label: "Retry", buttonType: "primary", icon: "delete", route: ROUTE_NAMES.ACCOUNTS },
@@ -69,6 +75,7 @@ const callToActionDefinitions: callToAction[] = [
69
75
  {
70
76
  type: "account-clean-error",
71
77
  criticality: "low",
78
+ infoContent: { code: "account-clean-error", message: "No action needed." },
72
79
  actions: [
73
80
  { label: "View account", buttonType: "text", route: ROUTE_NAMES.ACCOUNTS },
74
81
  ],
@@ -76,6 +83,7 @@ const callToActionDefinitions: callToAction[] = [
76
83
  {
77
84
  type: "environment-creation-error",
78
85
  criticality: "high",
86
+ infoContent: { code: "environment-creation-error", message: "We couldn't create this environment. Try again or contact support if the problem continues." },
79
87
  support: true,
80
88
  actions: [
81
89
  { label: "Retry", buttonType: "primary", icon: "refresh", route: ROUTE_NAMES.CREATE_ENVIRONMENT },
@@ -84,6 +92,7 @@ const callToActionDefinitions: callToAction[] = [
84
92
  {
85
93
  type: "environment-deletion-error",
86
94
  criticality: "high",
95
+ infoContent: { code: "environment-deletion-error", message: "We couldn't delete this environment. Retry to try again." },
87
96
  support: true,
88
97
  actions: [
89
98
  { label: "Retry", buttonType: "primary", icon: "delete", route: ROUTE_NAMES.ENVIRONMENTS },
@@ -92,6 +101,7 @@ const callToActionDefinitions: callToAction[] = [
92
101
  {
93
102
  type: "environment-scale-error",
94
103
  criticality: "low",
104
+ infoContent: { code: "environment-scale-error", message: "No action needed." },
95
105
  actions: [
96
106
  { label: "View environment", buttonType: "text", route: ROUTE_NAMES.ENVIRONMENTS },
97
107
  ],
@@ -99,6 +109,7 @@ const callToActionDefinitions: callToAction[] = [
99
109
  {
100
110
  type: "deployment-error",
101
111
  criticality: "critical",
112
+ infoContent: { code: "deployment-error", message: "This deployment couldn't be completed. Retry the deployment or check the logs for details." },
102
113
  support: true,
103
114
  actions: [
104
115
  { label: "Retry deployment", buttonType: "primary", icon: "refresh", route: ROUTE_NAMES.DEPLOY_SERVICE },
@@ -108,6 +119,7 @@ const callToActionDefinitions: callToAction[] = [
108
119
  {
109
120
  type: "error-instance-update",
110
121
  criticality: "critical",
122
+ infoContent: { code: "error-instance-update", message: "We couldn't update this instance. Retry to try again." },
111
123
  support: true,
112
124
  actions: [
113
125
  { label: "Retry", buttonType: "primary", icon: "refresh", route: ROUTE_NAMES.RUNTIME },
@@ -116,6 +128,7 @@ const callToActionDefinitions: callToAction[] = [
116
128
  {
117
129
  type: "error-service-link",
118
130
  criticality: "high",
131
+ infoContent: { code: "error-service-link", message: "We couldn't link these services. Retry to try again." },
119
132
  actions: [
120
133
  { label: "Retry link", buttonType: "primary", route: ROUTE_NAMES.LINK_SERVICES },
121
134
  ],
@@ -123,6 +136,7 @@ const callToActionDefinitions: callToAction[] = [
123
136
  {
124
137
  type: "resource-creation-error",
125
138
  criticality: "high",
139
+ infoContent: { code: "resource-creation-error", message: "We couldn't create this resource. Try again or contact support if the problem continues." },
126
140
  support: true,
127
141
  actions: [
128
142
  { label: "Retry", buttonType: "primary", icon: "refresh", route: ROUTE_NAMES.CREATE_RESOURCE },
@@ -131,6 +145,7 @@ const callToActionDefinitions: callToAction[] = [
131
145
  {
132
146
  type: "resource-deletion-error",
133
147
  criticality: "high",
148
+ infoContent: { code: "resource-deletion-error", message: "We couldn't delete this resource. Retry to try again." },
134
149
  support: true,
135
150
  actions: [
136
151
  { label: "Retry", buttonType: "primary", icon: "delete", route: ROUTE_NAMES.RESOURCES },
@@ -139,6 +154,7 @@ const callToActionDefinitions: callToAction[] = [
139
154
  {
140
155
  type: "user-delete-error",
141
156
  criticality: "critical",
157
+ infoContent: { code: "user-delete-error", message: "We couldn't delete your user account. Contact support for help." },
142
158
  support: true,
143
159
  actions: [
144
160
  { label: "Contact support", buttonType: "primary", route: ROUTE_NAMES.USER_INFO },
@@ -148,7 +164,8 @@ const callToActionDefinitions: callToAction[] = [
148
164
  // (exitos) que conviene que el usuario pueda abrir con un click.
149
165
  {
150
166
  type: "tenant-created",
151
- criticality: "low",
167
+ criticality: "high",
168
+ infoContent: { code: "tenant-created", message: "Your new tenant is ready to use." },
152
169
  actions: [
153
170
  { label: "View tenant", buttonType: "text", route: ROUTE_NAMES.TENANTS },
154
171
  ],
@@ -156,6 +173,7 @@ const callToActionDefinitions: callToAction[] = [
156
173
  {
157
174
  type: "account-created",
158
175
  criticality: "low",
176
+ infoContent: { code: "account-created", message: "No action needed." },
159
177
  actions: [
160
178
  { label: "View account", buttonType: "text", route: ROUTE_NAMES.ACCOUNTS },
161
179
  ],
@@ -163,6 +181,7 @@ const callToActionDefinitions: callToAction[] = [
163
181
  {
164
182
  type: "deployment-success",
165
183
  criticality: "low",
184
+ infoContent: { code: "deployment-success", message: "No action needed." },
166
185
  actions: [
167
186
  { label: "View service", buttonType: "text", route: ROUTE_NAMES.SERVICE_DETAIL },
168
187
  ],
@@ -172,6 +191,7 @@ const callToActionDefinitions: callToAction[] = [
172
191
  // createCallToActionNotification cuando cta.actions es undefined.
173
192
  type: "plan-upgrade",
174
193
  criticality: "low",
194
+ infoContent: { code: "plan-upgrade", message: "No action needed." },
175
195
  noActions: true,
176
196
  },
177
197
  ];
@@ -193,6 +213,7 @@ export function createCallToActionNotification(
193
213
  ...notification,
194
214
  notificationType: 'callToAction',
195
215
  criticality: cta.criticality,
216
+ info_content: notification.info_content ?? cta.infoContent,
196
217
  support: cta.support,
197
218
  noActions: cta.noActions,
198
219
  actions: cta.actions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumori/aurora-interfaces",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "aurora interfaces",
5
5
  "main": "export-interfaces.ts",
6
6
  "repository": {