Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions packages/common-types/access-ref/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
},
oneOf: [
{
title: "Un membre de l'organisation",
title: 'An organization member',
'x-i18n-title': {
fr: "Un membre de l'organisation",
en: 'An organization member',
Expand All @@ -37,7 +37,7 @@ export default {
type: { type: 'string', const: 'user' },
id: {
type: 'string',
title: 'Membre',
title: 'Member',
'x-i18n-title': {
fr: 'Membre',
en: 'Member',
Expand All @@ -59,7 +59,7 @@ export default {
}
},
{
title: 'Un email',
title: 'An email',
'x-i18n-title': {
fr: 'Un email',
en: 'An email',
Expand All @@ -76,7 +76,7 @@ export default {
email: {
type: 'string',
format: 'email',
title: 'Adresse mail',
title: 'Email address',
'x-i18n-title': {
fr: 'Adresse mail',
en: 'Email address',
Expand All @@ -89,7 +89,7 @@ export default {
}
},
{
title: 'Une organisation partenaire',
title: 'A partner organization',
'x-i18n-title': {
fr: 'Une organisation partenaire',
en: 'A partner organization',
Expand All @@ -108,7 +108,7 @@ export default {
roles: { type: 'array', const: [], items: { type: 'string' } },
id: {
type: 'string',
title: 'Partenaire',
title: 'Partner',
'x-i18n-title': {
fr: 'Partenaire',
en: 'Partner',
Expand All @@ -130,7 +130,7 @@ export default {
}
},
{
title: 'Un role ou département de mon organisation',
title: 'A role or department of my organization',
'x-i18n-title': {
fr: 'Un rôle ou département de mon organisation',
en: 'A role or department of my organization',
Expand All @@ -154,7 +154,7 @@ export default {
},
department: {
type: 'string',
title: 'Département',
title: 'Department',
'x-i18n-title': {
fr: 'Département',
en: 'Department',
Expand All @@ -174,7 +174,7 @@ export default {
},
roles: {
type: 'array',
title: 'Rôles',
title: 'Roles',
'x-i18n-title': {
fr: 'Rôles',
en: 'Roles',
Expand Down
25 changes: 13 additions & 12 deletions packages/common-types/notification/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,30 @@ export default {
},
origin: {
type: 'string',
title: 'Site d\'origine de la souscription',
title: 'Origin site of the subscription',
readOnly: true
},
title: {
type: 'string',
title: 'Titre'
title: 'Title'
},
body: {
type: 'string',
title: 'Contenu'
title: 'Content'
},
htmlBody: {
type: 'string',
title: 'Contenu HTML'
title: 'HTML content'
},
locale: {
type: 'string',
title: 'Langue de la notification',
enum: ['fr', 'en']
title: 'Language of the notification',
description: 'Two letters code: the language of the subscription, any language offered by simple-directory',
pattern: '^[a-z]{2}$'
},
icon: {
type: 'string',
title: 'URL de l\'icone de la notification'
title: 'URL of the notification icon'
},
// sender is the owner of the topic, topic is global if no sender is given
sender: { $ref: 'https://github.com/data-fair/lib/event#/$defs/sender' },
Expand All @@ -59,21 +60,21 @@ export default {
},
outputs: {
type: 'array',
title: 'Sorties',
title: 'Outputs',
items: {
type: 'string',
oneOf: [{
const: 'devices',
title: 'recevoir la notification sur vos appareils configurés'
title: 'Receive the notification on your configured devices'
}, {
const: 'email',
title: 'recevoir la notification par email'
title: 'Receive the notification by email'
}]
}
},
url: {
type: 'string',
title: 'défini explicitement ou calculé à partir de subscription.urlTemplate et event.urlParams',
title: 'Explicitly defined, or computed from subscription.urlTemplate and event.urlParams',
},
date: {
type: 'string',
Expand All @@ -86,7 +87,7 @@ export default {
},
extra: {
type: 'object',
description: 'propriétés libres qui varient en fonction du type de notification'
description: 'Free properties that vary depending on the type of notification'
}
}
}
Loading
Loading