@tekkare/romulus 0.1.108 → 0.1.109
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/dist/module.json
CHANGED
|
@@ -54,6 +54,11 @@ const props = withDefaults(
|
|
|
54
54
|
mode?: 'create' | 'edit'
|
|
55
55
|
/** Alerte a modifier, en mode `edit`. */
|
|
56
56
|
initial?: Partial<RmAlertDraft>
|
|
57
|
+
/**
|
|
58
|
+
* Le mode d'essai est ouvert cote API : la cadence courte apparait. Hors
|
|
59
|
+
* de la, elle n'existe pas a l'ecran.
|
|
60
|
+
*/
|
|
61
|
+
testCadence?: boolean
|
|
57
62
|
lang?: 'fr' | 'en'
|
|
58
63
|
}>(),
|
|
59
64
|
{
|
|
@@ -64,6 +69,7 @@ const props = withDefaults(
|
|
|
64
69
|
submitting: false,
|
|
65
70
|
mode: 'create',
|
|
66
71
|
initial: undefined,
|
|
72
|
+
testCadence: false,
|
|
67
73
|
lang: 'fr',
|
|
68
74
|
},
|
|
69
75
|
)
|
|
@@ -109,6 +115,7 @@ const FR = {
|
|
|
109
115
|
daily: 'Quotidienne (un envoi par jour au plus)',
|
|
110
116
|
weekly: 'Hebdomadaire (un envoi par semaine au plus)',
|
|
111
117
|
monthly: 'Mensuelle (un envoi par mois au plus)',
|
|
118
|
+
test5: 'Toutes les 5 minutes (mode essai)',
|
|
112
119
|
cadenceHint:
|
|
113
120
|
'Un plafond, pas un rythme : rien ne part quand rien n’a bougé, et la détection suit celle des données.',
|
|
114
121
|
submit: 'Créer l’alerte',
|
|
@@ -150,6 +157,7 @@ const EN = {
|
|
|
150
157
|
daily: 'Daily (at most one a day)',
|
|
151
158
|
weekly: 'Weekly (at most one a week)',
|
|
152
159
|
monthly: 'Monthly (at most one a month)',
|
|
160
|
+
test5: 'Every 5 minutes (test mode)',
|
|
153
161
|
cadenceHint:
|
|
154
162
|
'A cap, not a rhythm: nothing goes out when nothing moved, and detection follows the data.',
|
|
155
163
|
submit: 'Create the alert',
|
|
@@ -246,6 +254,9 @@ const cadenceOptions = computed(() => [
|
|
|
246
254
|
{ value: 'monthly' as const, label: T.value.monthly },
|
|
247
255
|
{ value: 'weekly' as const, label: T.value.weekly },
|
|
248
256
|
{ value: 'daily' as const, label: T.value.daily },
|
|
257
|
+
...(props.testCadence
|
|
258
|
+
? [{ value: 'test5' as const, label: T.value.test5 }]
|
|
259
|
+
: []),
|
|
249
260
|
])
|
|
250
261
|
|
|
251
262
|
const cadenceLabel = computed(
|
|
@@ -6,8 +6,13 @@
|
|
|
6
6
|
* importer un `.vue`. Meme raison que pour `utils/export.ts`.
|
|
7
7
|
*/
|
|
8
8
|
export type RmAlertStatus = 'seeding' | 'active' | 'paused' | 'stale' | 'failing';
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Plafond d'envoi du mail, jamais une promesse de frequence.
|
|
11
|
+
*
|
|
12
|
+
* `test5` n'est pas un produit : c'est le mode d'essai (cinq minutes), qui
|
|
13
|
+
* n'apparait que si l'API dit l'avoir ouvert.
|
|
14
|
+
*/
|
|
15
|
+
export type RmAlertCadence = 'daily' | 'weekly' | 'monthly' | 'test5';
|
|
11
16
|
/**
|
|
12
17
|
* Surveiller le document entier plutot qu'une liste de champs. Les champs
|
|
13
18
|
* d'ingestion (horodatage, date de collecte) restent exclus cote moteur,
|