@deveye/types 0.21.6 → 0.21.7
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/package.json +1 -1
- package/src/domain/featureRegistry.ts +8 -16
- package/src/sdk/server.ts +1 -2
package/package.json
CHANGED
|
@@ -61,11 +61,11 @@ export interface FeatureDescriptor {
|
|
|
61
61
|
* servent. Exigée dès que `notifies` est vrai. `perItem: false` quand rien
|
|
62
62
|
* ne part jamais au nom d'un élément : ses réglages n'ont alors pas
|
|
63
63
|
* d'onglet Notifications qui ne recevrait rien, et la route se coche à
|
|
64
|
-
* l'échelle de la fonctionnalité.
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* l'échelle de la fonctionnalité. Un avis qui concerne plusieurs éléments
|
|
65
|
+
* à la fois suit leurs canaux, chacun une fois (`notify.send(alert,
|
|
66
|
+
* { itemIds })`) : il n'a pas de route à lui.
|
|
67
67
|
*/
|
|
68
|
-
notifications?: { hint: string; perItem?: boolean
|
|
68
|
+
notifications?: { hint: string; perItem?: boolean };
|
|
69
69
|
/**
|
|
70
70
|
* Un de ses éléments peut-il être rendu visible depuis un autre espace ?
|
|
71
71
|
* Décidé par le chiffrement : un élément partagé reste chiffré sous la clé
|
|
@@ -207,9 +207,7 @@ export const FEATURE_REGISTRY: readonly (FeatureDescriptor & { id: WorkspaceFeat
|
|
|
207
207
|
icon: 'rocket',
|
|
208
208
|
notifies: true,
|
|
209
209
|
notifications: {
|
|
210
|
-
hint: 'Envoyées à l’atterrissage d’un déploiement, échec comme succès, y compris ceux lancés ailleurs : depuis Dokploy, une CI ou un push git.'
|
|
211
|
-
feature:
|
|
212
|
-
'Quand le lien avec l’instance d’un accès se perd, puis revient : un seul avis pour toutes les cibles qu’il dessert.'
|
|
210
|
+
hint: 'Envoyées à l’atterrissage d’un déploiement, échec comme succès, y compris ceux lancés ailleurs : depuis Dokploy, une CI ou un push git. Et quand le lien avec l’instance d’un accès se perd, puis revient : un seul avis, vers les canaux de toutes les cibles qu’il dessert.'
|
|
213
211
|
},
|
|
214
212
|
hasItems: true,
|
|
215
213
|
itemNoun: 'cible',
|
|
@@ -394,18 +392,12 @@ export function maybeFeatureDescriptor(id: FeatureId): FeatureDescriptor | undef
|
|
|
394
392
|
/** L'intitulé seul : le besoin de très loin le plus courant. */
|
|
395
393
|
/**
|
|
396
394
|
* Does this feature send notifications in its own name, by the route with no
|
|
397
|
-
* item (`item_id = 0`)? True without items, when nothing goes out per item
|
|
398
|
-
* (`notifications.perItem: false`)
|
|
399
|
-
* items (`notifications.feature`). The shell shows that route's checkboxes,
|
|
395
|
+
* item (`item_id = 0`)? True without items, and when nothing goes out per item
|
|
396
|
+
* (`notifications.perItem: false`). The shell shows that route's checkboxes,
|
|
400
397
|
* and the server accepts its selection, on exactly this rule.
|
|
401
398
|
*/
|
|
402
399
|
export function featureNotifiesItself(descriptor: FeatureDescriptor): boolean {
|
|
403
|
-
|
|
404
|
-
return (
|
|
405
|
-
!descriptor.hasItems ||
|
|
406
|
-
notifications?.perItem === false ||
|
|
407
|
-
notifications?.feature !== undefined
|
|
408
|
-
);
|
|
400
|
+
return !descriptor.hasItems || descriptor.notifications?.perItem === false;
|
|
409
401
|
}
|
|
410
402
|
|
|
411
403
|
export function featureLabel(id: FeatureId): string {
|
package/src/sdk/server.ts
CHANGED
|
@@ -251,8 +251,7 @@ export interface DevEyeFacade {
|
|
|
251
251
|
* (`postLive`) already concluded on, so a channel never hears the
|
|
252
252
|
* same news twice. `itemIds`: the channels routed to ANY of these
|
|
253
253
|
* items, each channel once: for news that concerns several items at
|
|
254
|
-
* a time (the instance they share went down)
|
|
255
|
-
* route (`hasRoute()` with no item) has nothing checked.
|
|
254
|
+
* a time (the instance they share went down), told once.
|
|
256
255
|
*/
|
|
257
256
|
send(
|
|
258
257
|
alert: SdkAlert,
|