@heliyos/heliyos-api-core 1.0.57 → 1.0.58

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.
@@ -101,7 +101,42 @@
101
101
  padding: 12px;
102
102
  background-color: #ffffff;
103
103
  border-radius: 6px;
104
- border-left: 2px solid #ebe7db;
104
+ border: 1px solid #7c3aed;
105
+ }
106
+
107
+ .item-summary {
108
+ margin-top: 8px;
109
+ color: #2c2721;
110
+ font-size: 14px;
111
+ line-height: 1.6;
112
+ }
113
+
114
+ .item-details {
115
+ margin-top: 10px;
116
+ background-color: #f8f5ff;
117
+ border-radius: 6px;
118
+ padding: 10px;
119
+ }
120
+
121
+ .detail-row {
122
+ font-size: 13px;
123
+ color: #3f2d63;
124
+ margin: 4px 0;
125
+ }
126
+
127
+ .detail-row strong {
128
+ color: #2b1d4d;
129
+ }
130
+
131
+ .item-link {
132
+ margin-top: 10px;
133
+ }
134
+
135
+ .item-link a {
136
+ color: #7c3aed;
137
+ text-decoration: none;
138
+ font-weight: bold;
139
+ font-size: 13px;
105
140
  }
106
141
 
107
142
  .item-title {
@@ -162,15 +197,15 @@
162
197
  }
163
198
 
164
199
  .footer {
165
- background-color: #ebe7db;
200
+ background-color: #7c3aed;
166
201
  padding: 20px;
167
202
  text-align: center;
168
203
  font-size: 12px;
169
- color: #5c5545;
204
+ color: #ffffff;
170
205
  }
171
206
 
172
207
  .footer a {
173
- color: #1c6bba;
208
+ color: #ffffff;
174
209
  text-decoration: none;
175
210
  }
176
211
 
@@ -213,6 +248,21 @@
213
248
  <div class="item">
214
249
  <div class="item-title">{{this.title}}</div>
215
250
  <div class="item-meta">{{this.type}} • {{this.actor}} • {{this.time}}</div>
251
+ {{#if this.summary}}
252
+ <div class="item-summary">{{this.summary}}</div>
253
+ {{/if}}
254
+ {{#if this.details}}
255
+ <div class="item-details">
256
+ {{#each this.details}}
257
+ <div class="detail-row"><strong>{{this.label}}:</strong> {{this.value}}</div>
258
+ {{/each}}
259
+ </div>
260
+ {{/if}}
261
+ {{#if this.view_url}}
262
+ <div class="item-link">
263
+ <a href="{{this.view_url}}">View in App →</a>
264
+ </div>
265
+ {{/if}}
216
266
  </div>
217
267
  {{/each}}
218
268
  </div>
@@ -233,6 +283,21 @@
233
283
  <div class="item">
234
284
  <div class="item-title">{{this.title}}</div>
235
285
  <div class="item-meta">{{this.type}} • {{this.actor}} • {{this.time}}</div>
286
+ {{#if this.summary}}
287
+ <div class="item-summary">{{this.summary}}</div>
288
+ {{/if}}
289
+ {{#if this.details}}
290
+ <div class="item-details">
291
+ {{#each this.details}}
292
+ <div class="detail-row"><strong>{{this.label}}:</strong> {{this.value}}</div>
293
+ {{/each}}
294
+ </div>
295
+ {{/if}}
296
+ {{#if this.view_url}}
297
+ <div class="item-link">
298
+ <a href="{{this.view_url}}">View in App →</a>
299
+ </div>
300
+ {{/if}}
236
301
  </div>
237
302
  {{/each}}
238
303
  </div>
@@ -253,6 +318,21 @@
253
318
  <div class="item">
254
319
  <div class="item-title">{{this.title}}</div>
255
320
  <div class="item-meta">{{this.status}} • {{this.actor}} • {{this.time}}</div>
321
+ {{#if this.summary}}
322
+ <div class="item-summary">{{this.summary}}</div>
323
+ {{/if}}
324
+ {{#if this.details}}
325
+ <div class="item-details">
326
+ {{#each this.details}}
327
+ <div class="detail-row"><strong>{{this.label}}:</strong> {{this.value}}</div>
328
+ {{/each}}
329
+ </div>
330
+ {{/if}}
331
+ {{#if this.view_url}}
332
+ <div class="item-link">
333
+ <a href="{{this.view_url}}">View in App →</a>
334
+ </div>
335
+ {{/if}}
256
336
  </div>
257
337
  {{/each}}
258
338
  </div>
@@ -273,6 +353,21 @@
273
353
  <div class="item">
274
354
  <div class="item-title">{{this.title}}</div>
275
355
  <div class="item-meta">{{this.records_count}} records available • {{this.time}}</div>
356
+ {{#if this.summary}}
357
+ <div class="item-summary">{{this.summary}}</div>
358
+ {{/if}}
359
+ {{#if this.details}}
360
+ <div class="item-details">
361
+ {{#each this.details}}
362
+ <div class="detail-row"><strong>{{this.label}}:</strong> {{this.value}}</div>
363
+ {{/each}}
364
+ </div>
365
+ {{/if}}
366
+ {{#if this.view_url}}
367
+ <div class="item-link">
368
+ <a href="{{this.view_url}}">View in App →</a>
369
+ </div>
370
+ {{/if}}
276
371
  </div>
277
372
  {{/each}}
278
373
  </div>
@@ -42,7 +42,7 @@
42
42
 
43
43
  .event-card {
44
44
  background-color: #f5f2e9;
45
- border-left: 4px solid #7c3aed;
45
+ border: 1px solid #7c3aed;
46
46
  border-radius: 8px;
47
47
  padding: 20px;
48
48
  margin: 20px 0;
@@ -73,6 +73,23 @@
73
73
  line-height: 1.6;
74
74
  }
75
75
 
76
+ .event-details {
77
+ margin-top: 12px;
78
+ background-color: #f8f5ff;
79
+ border-radius: 6px;
80
+ padding: 12px;
81
+ }
82
+
83
+ .detail-row {
84
+ font-size: 14px;
85
+ color: #3f2d63;
86
+ margin: 6px 0;
87
+ }
88
+
89
+ .detail-row strong {
90
+ color: #2b1d4d;
91
+ }
92
+
76
93
  .event-meta {
77
94
  margin-top: 16px;
78
95
  padding-top: 16px;
@@ -107,15 +124,15 @@
107
124
  }
108
125
 
109
126
  .footer {
110
- background-color: #ebe7db;
127
+ background-color: #7c3aed;
111
128
  padding: 20px;
112
129
  text-align: center;
113
130
  font-size: 12px;
114
- color: #5c5545;
131
+ color: #ffffff;
115
132
  }
116
133
 
117
134
  .footer a {
118
- color: #1c6bba;
135
+ color: #ffffff;
119
136
  text-decoration: none;
120
137
  }
121
138
  </style>
@@ -134,6 +151,13 @@
134
151
  <div class="event-badge">{{event_type_label}}</div>
135
152
  <div class="event-title">{{object_name}}</div>
136
153
  <div class="event-summary">{{summary}}</div>
154
+ {{#if details}}
155
+ <div class="event-details">
156
+ {{#each details}}
157
+ <div class="detail-row"><strong>{{this.label}}:</strong> {{this.value}}</div>
158
+ {{/each}}
159
+ </div>
160
+ {{/if}}
137
161
  <div class="event-meta">
138
162
  <strong>By:</strong> {{actor_name}}<br>
139
163
  <strong>When:</strong> {{timestamp}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heliyos/heliyos-api-core",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "Heliyos's core api functions and middlewares. Its a private package hosted on npm.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -101,7 +101,42 @@
101
101
  padding: 12px;
102
102
  background-color: #ffffff;
103
103
  border-radius: 6px;
104
- border-left: 2px solid #ebe7db;
104
+ border: 1px solid #7c3aed;
105
+ }
106
+
107
+ .item-summary {
108
+ margin-top: 8px;
109
+ color: #2c2721;
110
+ font-size: 14px;
111
+ line-height: 1.6;
112
+ }
113
+
114
+ .item-details {
115
+ margin-top: 10px;
116
+ background-color: #f8f5ff;
117
+ border-radius: 6px;
118
+ padding: 10px;
119
+ }
120
+
121
+ .detail-row {
122
+ font-size: 13px;
123
+ color: #3f2d63;
124
+ margin: 4px 0;
125
+ }
126
+
127
+ .detail-row strong {
128
+ color: #2b1d4d;
129
+ }
130
+
131
+ .item-link {
132
+ margin-top: 10px;
133
+ }
134
+
135
+ .item-link a {
136
+ color: #7c3aed;
137
+ text-decoration: none;
138
+ font-weight: bold;
139
+ font-size: 13px;
105
140
  }
106
141
 
107
142
  .item-title {
@@ -162,15 +197,15 @@
162
197
  }
163
198
 
164
199
  .footer {
165
- background-color: #ebe7db;
200
+ background-color: #7c3aed;
166
201
  padding: 20px;
167
202
  text-align: center;
168
203
  font-size: 12px;
169
- color: #5c5545;
204
+ color: #ffffff;
170
205
  }
171
206
 
172
207
  .footer a {
173
- color: #1c6bba;
208
+ color: #ffffff;
174
209
  text-decoration: none;
175
210
  }
176
211
 
@@ -213,6 +248,21 @@
213
248
  <div class="item">
214
249
  <div class="item-title">{{this.title}}</div>
215
250
  <div class="item-meta">{{this.type}} • {{this.actor}} • {{this.time}}</div>
251
+ {{#if this.summary}}
252
+ <div class="item-summary">{{this.summary}}</div>
253
+ {{/if}}
254
+ {{#if this.details}}
255
+ <div class="item-details">
256
+ {{#each this.details}}
257
+ <div class="detail-row"><strong>{{this.label}}:</strong> {{this.value}}</div>
258
+ {{/each}}
259
+ </div>
260
+ {{/if}}
261
+ {{#if this.view_url}}
262
+ <div class="item-link">
263
+ <a href="{{this.view_url}}">View in App →</a>
264
+ </div>
265
+ {{/if}}
216
266
  </div>
217
267
  {{/each}}
218
268
  </div>
@@ -233,6 +283,21 @@
233
283
  <div class="item">
234
284
  <div class="item-title">{{this.title}}</div>
235
285
  <div class="item-meta">{{this.type}} • {{this.actor}} • {{this.time}}</div>
286
+ {{#if this.summary}}
287
+ <div class="item-summary">{{this.summary}}</div>
288
+ {{/if}}
289
+ {{#if this.details}}
290
+ <div class="item-details">
291
+ {{#each this.details}}
292
+ <div class="detail-row"><strong>{{this.label}}:</strong> {{this.value}}</div>
293
+ {{/each}}
294
+ </div>
295
+ {{/if}}
296
+ {{#if this.view_url}}
297
+ <div class="item-link">
298
+ <a href="{{this.view_url}}">View in App →</a>
299
+ </div>
300
+ {{/if}}
236
301
  </div>
237
302
  {{/each}}
238
303
  </div>
@@ -253,6 +318,21 @@
253
318
  <div class="item">
254
319
  <div class="item-title">{{this.title}}</div>
255
320
  <div class="item-meta">{{this.status}} • {{this.actor}} • {{this.time}}</div>
321
+ {{#if this.summary}}
322
+ <div class="item-summary">{{this.summary}}</div>
323
+ {{/if}}
324
+ {{#if this.details}}
325
+ <div class="item-details">
326
+ {{#each this.details}}
327
+ <div class="detail-row"><strong>{{this.label}}:</strong> {{this.value}}</div>
328
+ {{/each}}
329
+ </div>
330
+ {{/if}}
331
+ {{#if this.view_url}}
332
+ <div class="item-link">
333
+ <a href="{{this.view_url}}">View in App →</a>
334
+ </div>
335
+ {{/if}}
256
336
  </div>
257
337
  {{/each}}
258
338
  </div>
@@ -273,6 +353,21 @@
273
353
  <div class="item">
274
354
  <div class="item-title">{{this.title}}</div>
275
355
  <div class="item-meta">{{this.records_count}} records available • {{this.time}}</div>
356
+ {{#if this.summary}}
357
+ <div class="item-summary">{{this.summary}}</div>
358
+ {{/if}}
359
+ {{#if this.details}}
360
+ <div class="item-details">
361
+ {{#each this.details}}
362
+ <div class="detail-row"><strong>{{this.label}}:</strong> {{this.value}}</div>
363
+ {{/each}}
364
+ </div>
365
+ {{/if}}
366
+ {{#if this.view_url}}
367
+ <div class="item-link">
368
+ <a href="{{this.view_url}}">View in App →</a>
369
+ </div>
370
+ {{/if}}
276
371
  </div>
277
372
  {{/each}}
278
373
  </div>
@@ -42,7 +42,7 @@
42
42
 
43
43
  .event-card {
44
44
  background-color: #f5f2e9;
45
- border-left: 4px solid #7c3aed;
45
+ border: 1px solid #7c3aed;
46
46
  border-radius: 8px;
47
47
  padding: 20px;
48
48
  margin: 20px 0;
@@ -73,6 +73,23 @@
73
73
  line-height: 1.6;
74
74
  }
75
75
 
76
+ .event-details {
77
+ margin-top: 12px;
78
+ background-color: #f8f5ff;
79
+ border-radius: 6px;
80
+ padding: 12px;
81
+ }
82
+
83
+ .detail-row {
84
+ font-size: 14px;
85
+ color: #3f2d63;
86
+ margin: 6px 0;
87
+ }
88
+
89
+ .detail-row strong {
90
+ color: #2b1d4d;
91
+ }
92
+
76
93
  .event-meta {
77
94
  margin-top: 16px;
78
95
  padding-top: 16px;
@@ -107,15 +124,15 @@
107
124
  }
108
125
 
109
126
  .footer {
110
- background-color: #ebe7db;
127
+ background-color: #7c3aed;
111
128
  padding: 20px;
112
129
  text-align: center;
113
130
  font-size: 12px;
114
- color: #5c5545;
131
+ color: #ffffff;
115
132
  }
116
133
 
117
134
  .footer a {
118
- color: #1c6bba;
135
+ color: #ffffff;
119
136
  text-decoration: none;
120
137
  }
121
138
  </style>
@@ -134,6 +151,13 @@
134
151
  <div class="event-badge">{{event_type_label}}</div>
135
152
  <div class="event-title">{{object_name}}</div>
136
153
  <div class="event-summary">{{summary}}</div>
154
+ {{#if details}}
155
+ <div class="event-details">
156
+ {{#each details}}
157
+ <div class="detail-row"><strong>{{this.label}}:</strong> {{this.value}}</div>
158
+ {{/each}}
159
+ </div>
160
+ {{/if}}
137
161
  <div class="event-meta">
138
162
  <strong>By:</strong> {{actor_name}}<br>
139
163
  <strong>When:</strong> {{timestamp}}