@contractspec/module.notifications 3.7.5 → 3.7.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/README.md +65 -109
- package/dist/browser/channels/index.js +27 -27
- package/dist/browser/contracts/index.js +2 -2
- package/dist/browser/i18n/catalogs/index.js +27 -27
- package/dist/browser/i18n/index.js +37 -37
- package/dist/browser/i18n/locale.js +2 -2
- package/dist/browser/i18n/messages.js +27 -27
- package/dist/browser/index.js +61 -61
- package/dist/channels/index.js +27 -27
- package/dist/contracts/index.js +2 -2
- package/dist/i18n/catalogs/index.d.ts +1 -1
- package/dist/i18n/catalogs/index.js +27 -27
- package/dist/i18n/index.d.ts +7 -7
- package/dist/i18n/index.js +37 -37
- package/dist/i18n/locale.d.ts +1 -1
- package/dist/i18n/locale.js +2 -2
- package/dist/i18n/messages.js +27 -27
- package/dist/index.d.ts +3 -3
- package/dist/index.js +61 -61
- package/dist/node/channels/index.js +27 -27
- package/dist/node/contracts/index.js +2 -2
- package/dist/node/i18n/catalogs/index.js +27 -27
- package/dist/node/i18n/index.js +37 -37
- package/dist/node/i18n/locale.js +2 -2
- package/dist/node/i18n/messages.js +27 -27
- package/dist/node/index.js +61 -61
- package/package.json +8 -8
|
@@ -62,96 +62,96 @@ var init_en = __esm(() => {
|
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
// src/i18n/catalogs/
|
|
65
|
+
// src/i18n/catalogs/es.ts
|
|
66
66
|
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
67
|
-
var
|
|
68
|
-
var
|
|
69
|
-
|
|
67
|
+
var esMessages;
|
|
68
|
+
var init_es = __esm(() => {
|
|
69
|
+
esMessages = defineTranslation2({
|
|
70
70
|
meta: {
|
|
71
71
|
key: "notifications.messages",
|
|
72
72
|
version: "1.0.0",
|
|
73
73
|
domain: "notifications",
|
|
74
|
-
description: "Template and channel strings (
|
|
74
|
+
description: "Template and channel strings (Spanish)",
|
|
75
75
|
owners: ["platform"],
|
|
76
76
|
stability: "experimental"
|
|
77
77
|
},
|
|
78
|
-
locale: "
|
|
78
|
+
locale: "es",
|
|
79
79
|
fallback: "en",
|
|
80
80
|
messages: {
|
|
81
81
|
"template.welcome.name": {
|
|
82
|
-
value: "
|
|
82
|
+
value: "Bienvenida",
|
|
83
83
|
description: "Welcome template display name"
|
|
84
84
|
},
|
|
85
85
|
"template.welcome.description": {
|
|
86
|
-
value: "
|
|
86
|
+
value: "Enviado cuando un usuario se registra.",
|
|
87
87
|
description: "Welcome template description"
|
|
88
88
|
},
|
|
89
89
|
"template.orgInvite.name": {
|
|
90
|
-
value: "
|
|
90
|
+
value: "Invitación a la organización",
|
|
91
91
|
description: "Org invite template display name"
|
|
92
92
|
},
|
|
93
93
|
"template.orgInvite.description": {
|
|
94
|
-
value: "
|
|
94
|
+
value: "Enviado cuando un usuario es invitado a una organización.",
|
|
95
95
|
description: "Org invite template description"
|
|
96
96
|
},
|
|
97
97
|
"template.mention.name": {
|
|
98
|
-
value: "
|
|
98
|
+
value: "Mención",
|
|
99
99
|
description: "Mention template display name"
|
|
100
100
|
},
|
|
101
101
|
"template.mention.description": {
|
|
102
|
-
value: "
|
|
102
|
+
value: "Enviado cuando un usuario es mencionado.",
|
|
103
103
|
description: "Mention template description"
|
|
104
104
|
},
|
|
105
105
|
"channel.webhook.noUrl": {
|
|
106
|
-
value: "
|
|
106
|
+
value: "No se ha configurado una URL de webhook",
|
|
107
107
|
description: "Error when webhook channel has no URL"
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
-
// src/i18n/catalogs/
|
|
113
|
+
// src/i18n/catalogs/fr.ts
|
|
114
114
|
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
115
|
-
var
|
|
116
|
-
var
|
|
117
|
-
|
|
115
|
+
var frMessages;
|
|
116
|
+
var init_fr = __esm(() => {
|
|
117
|
+
frMessages = defineTranslation3({
|
|
118
118
|
meta: {
|
|
119
119
|
key: "notifications.messages",
|
|
120
120
|
version: "1.0.0",
|
|
121
121
|
domain: "notifications",
|
|
122
|
-
description: "Template and channel strings (
|
|
122
|
+
description: "Template and channel strings (French)",
|
|
123
123
|
owners: ["platform"],
|
|
124
124
|
stability: "experimental"
|
|
125
125
|
},
|
|
126
|
-
locale: "
|
|
126
|
+
locale: "fr",
|
|
127
127
|
fallback: "en",
|
|
128
128
|
messages: {
|
|
129
129
|
"template.welcome.name": {
|
|
130
|
-
value: "
|
|
130
|
+
value: "Bienvenue",
|
|
131
131
|
description: "Welcome template display name"
|
|
132
132
|
},
|
|
133
133
|
"template.welcome.description": {
|
|
134
|
-
value: "
|
|
134
|
+
value: "Envoyé lorsqu'un utilisateur s'inscrit.",
|
|
135
135
|
description: "Welcome template description"
|
|
136
136
|
},
|
|
137
137
|
"template.orgInvite.name": {
|
|
138
|
-
value: "
|
|
138
|
+
value: "Invitation à l'organisation",
|
|
139
139
|
description: "Org invite template display name"
|
|
140
140
|
},
|
|
141
141
|
"template.orgInvite.description": {
|
|
142
|
-
value: "
|
|
142
|
+
value: "Envoyé lorsqu'un utilisateur est invité à une organisation.",
|
|
143
143
|
description: "Org invite template description"
|
|
144
144
|
},
|
|
145
145
|
"template.mention.name": {
|
|
146
|
-
value: "
|
|
146
|
+
value: "Mention",
|
|
147
147
|
description: "Mention template display name"
|
|
148
148
|
},
|
|
149
149
|
"template.mention.description": {
|
|
150
|
-
value: "
|
|
150
|
+
value: "Envoyé lorsqu'un utilisateur est mentionné.",
|
|
151
151
|
description: "Mention template description"
|
|
152
152
|
},
|
|
153
153
|
"channel.webhook.noUrl": {
|
|
154
|
-
value: "
|
|
154
|
+
value: "Aucune URL de webhook configurée",
|
|
155
155
|
description: "Error when webhook channel has no URL"
|
|
156
156
|
}
|
|
157
157
|
}
|
|
@@ -171,8 +171,8 @@ import {
|
|
|
171
171
|
var factory, createNotificationsI18n, getDefaultI18n, resetI18nRegistry;
|
|
172
172
|
var init_messages = __esm(() => {
|
|
173
173
|
init_en();
|
|
174
|
-
init_fr();
|
|
175
174
|
init_es();
|
|
175
|
+
init_fr();
|
|
176
176
|
factory = createI18nFactory({
|
|
177
177
|
specKey: "notifications.messages",
|
|
178
178
|
catalogs: [enMessages, frMessages, esMessages]
|
package/dist/browser/index.js
CHANGED
|
@@ -62,96 +62,96 @@ var init_en = __esm(() => {
|
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
// src/i18n/catalogs/
|
|
65
|
+
// src/i18n/catalogs/es.ts
|
|
66
66
|
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
67
|
-
var
|
|
68
|
-
var
|
|
69
|
-
|
|
67
|
+
var esMessages;
|
|
68
|
+
var init_es = __esm(() => {
|
|
69
|
+
esMessages = defineTranslation2({
|
|
70
70
|
meta: {
|
|
71
71
|
key: "notifications.messages",
|
|
72
72
|
version: "1.0.0",
|
|
73
73
|
domain: "notifications",
|
|
74
|
-
description: "Template and channel strings (
|
|
74
|
+
description: "Template and channel strings (Spanish)",
|
|
75
75
|
owners: ["platform"],
|
|
76
76
|
stability: "experimental"
|
|
77
77
|
},
|
|
78
|
-
locale: "
|
|
78
|
+
locale: "es",
|
|
79
79
|
fallback: "en",
|
|
80
80
|
messages: {
|
|
81
81
|
"template.welcome.name": {
|
|
82
|
-
value: "
|
|
82
|
+
value: "Bienvenida",
|
|
83
83
|
description: "Welcome template display name"
|
|
84
84
|
},
|
|
85
85
|
"template.welcome.description": {
|
|
86
|
-
value: "
|
|
86
|
+
value: "Enviado cuando un usuario se registra.",
|
|
87
87
|
description: "Welcome template description"
|
|
88
88
|
},
|
|
89
89
|
"template.orgInvite.name": {
|
|
90
|
-
value: "
|
|
90
|
+
value: "Invitación a la organización",
|
|
91
91
|
description: "Org invite template display name"
|
|
92
92
|
},
|
|
93
93
|
"template.orgInvite.description": {
|
|
94
|
-
value: "
|
|
94
|
+
value: "Enviado cuando un usuario es invitado a una organización.",
|
|
95
95
|
description: "Org invite template description"
|
|
96
96
|
},
|
|
97
97
|
"template.mention.name": {
|
|
98
|
-
value: "
|
|
98
|
+
value: "Mención",
|
|
99
99
|
description: "Mention template display name"
|
|
100
100
|
},
|
|
101
101
|
"template.mention.description": {
|
|
102
|
-
value: "
|
|
102
|
+
value: "Enviado cuando un usuario es mencionado.",
|
|
103
103
|
description: "Mention template description"
|
|
104
104
|
},
|
|
105
105
|
"channel.webhook.noUrl": {
|
|
106
|
-
value: "
|
|
106
|
+
value: "No se ha configurado una URL de webhook",
|
|
107
107
|
description: "Error when webhook channel has no URL"
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
-
// src/i18n/catalogs/
|
|
113
|
+
// src/i18n/catalogs/fr.ts
|
|
114
114
|
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
115
|
-
var
|
|
116
|
-
var
|
|
117
|
-
|
|
115
|
+
var frMessages;
|
|
116
|
+
var init_fr = __esm(() => {
|
|
117
|
+
frMessages = defineTranslation3({
|
|
118
118
|
meta: {
|
|
119
119
|
key: "notifications.messages",
|
|
120
120
|
version: "1.0.0",
|
|
121
121
|
domain: "notifications",
|
|
122
|
-
description: "Template and channel strings (
|
|
122
|
+
description: "Template and channel strings (French)",
|
|
123
123
|
owners: ["platform"],
|
|
124
124
|
stability: "experimental"
|
|
125
125
|
},
|
|
126
|
-
locale: "
|
|
126
|
+
locale: "fr",
|
|
127
127
|
fallback: "en",
|
|
128
128
|
messages: {
|
|
129
129
|
"template.welcome.name": {
|
|
130
|
-
value: "
|
|
130
|
+
value: "Bienvenue",
|
|
131
131
|
description: "Welcome template display name"
|
|
132
132
|
},
|
|
133
133
|
"template.welcome.description": {
|
|
134
|
-
value: "
|
|
134
|
+
value: "Envoyé lorsqu'un utilisateur s'inscrit.",
|
|
135
135
|
description: "Welcome template description"
|
|
136
136
|
},
|
|
137
137
|
"template.orgInvite.name": {
|
|
138
|
-
value: "
|
|
138
|
+
value: "Invitation à l'organisation",
|
|
139
139
|
description: "Org invite template display name"
|
|
140
140
|
},
|
|
141
141
|
"template.orgInvite.description": {
|
|
142
|
-
value: "
|
|
142
|
+
value: "Envoyé lorsqu'un utilisateur est invité à une organisation.",
|
|
143
143
|
description: "Org invite template description"
|
|
144
144
|
},
|
|
145
145
|
"template.mention.name": {
|
|
146
|
-
value: "
|
|
146
|
+
value: "Mention",
|
|
147
147
|
description: "Mention template display name"
|
|
148
148
|
},
|
|
149
149
|
"template.mention.description": {
|
|
150
|
-
value: "
|
|
150
|
+
value: "Envoyé lorsqu'un utilisateur est mentionné.",
|
|
151
151
|
description: "Mention template description"
|
|
152
152
|
},
|
|
153
153
|
"channel.webhook.noUrl": {
|
|
154
|
-
value: "
|
|
154
|
+
value: "Aucune URL de webhook configurée",
|
|
155
155
|
description: "Error when webhook channel has no URL"
|
|
156
156
|
}
|
|
157
157
|
}
|
|
@@ -171,8 +171,8 @@ import {
|
|
|
171
171
|
var factory, createNotificationsI18n, getDefaultI18n, resetI18nRegistry;
|
|
172
172
|
var init_messages = __esm(() => {
|
|
173
173
|
init_en();
|
|
174
|
-
init_fr();
|
|
175
174
|
init_es();
|
|
175
|
+
init_fr();
|
|
176
176
|
factory = createI18nFactory({
|
|
177
177
|
specKey: "notifications.messages",
|
|
178
178
|
catalogs: [enMessages, frMessages, esMessages]
|
|
@@ -307,9 +307,9 @@ function createChannelRegistry() {
|
|
|
307
307
|
// src/contracts/index.ts
|
|
308
308
|
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
309
309
|
import {
|
|
310
|
-
ScalarTypeEnum,
|
|
311
310
|
defineEnum,
|
|
312
|
-
defineSchemaModel
|
|
311
|
+
defineSchemaModel,
|
|
312
|
+
ScalarTypeEnum
|
|
313
313
|
} from "@contractspec/lib.schema";
|
|
314
314
|
var OWNERS = ["platform.notifications"];
|
|
315
315
|
var NotificationStatusSchemaEnum = defineEnum("NotificationStatus", [
|
|
@@ -842,6 +842,38 @@ var notificationsSchemaContribution = {
|
|
|
842
842
|
]
|
|
843
843
|
};
|
|
844
844
|
|
|
845
|
+
// src/notifications.feature.ts
|
|
846
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
847
|
+
var NotificationsFeature = defineFeature({
|
|
848
|
+
meta: {
|
|
849
|
+
key: "notifications",
|
|
850
|
+
title: "Notifications",
|
|
851
|
+
description: "Multi-channel notification delivery with preference management",
|
|
852
|
+
domain: "platform",
|
|
853
|
+
version: "1.0.0",
|
|
854
|
+
owners: ["@platform.notifications"],
|
|
855
|
+
tags: ["notifications", "email", "push", "in-app"],
|
|
856
|
+
stability: "stable"
|
|
857
|
+
},
|
|
858
|
+
operations: [
|
|
859
|
+
{ key: "notifications.send", version: "1.0.0" },
|
|
860
|
+
{ key: "notifications.markRead", version: "1.0.0" },
|
|
861
|
+
{ key: "notifications.markAllRead", version: "1.0.0" },
|
|
862
|
+
{ key: "notifications.delete", version: "1.0.0" },
|
|
863
|
+
{ key: "notifications.list", version: "1.0.0" },
|
|
864
|
+
{ key: "notifications.preferences.update", version: "1.0.0" },
|
|
865
|
+
{ key: "notifications.preferences.get", version: "1.0.0" }
|
|
866
|
+
],
|
|
867
|
+
events: [],
|
|
868
|
+
presentations: [],
|
|
869
|
+
opToPresentation: [],
|
|
870
|
+
presentationsTargets: [],
|
|
871
|
+
capabilities: {
|
|
872
|
+
provides: [{ key: "notifications", version: "1.0.0" }],
|
|
873
|
+
requires: [{ key: "identity", version: "1.0.0" }]
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
|
|
845
877
|
// src/templates/index.ts
|
|
846
878
|
function defineTemplate(def) {
|
|
847
879
|
return def;
|
|
@@ -1069,38 +1101,6 @@ var MentionTemplate = defineTemplate({
|
|
|
1069
1101
|
}
|
|
1070
1102
|
}
|
|
1071
1103
|
});
|
|
1072
|
-
|
|
1073
|
-
// src/notifications.feature.ts
|
|
1074
|
-
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
1075
|
-
var NotificationsFeature = defineFeature({
|
|
1076
|
-
meta: {
|
|
1077
|
-
key: "notifications",
|
|
1078
|
-
title: "Notifications",
|
|
1079
|
-
description: "Multi-channel notification delivery with preference management",
|
|
1080
|
-
domain: "platform",
|
|
1081
|
-
version: "1.0.0",
|
|
1082
|
-
owners: ["@platform.notifications"],
|
|
1083
|
-
tags: ["notifications", "email", "push", "in-app"],
|
|
1084
|
-
stability: "stable"
|
|
1085
|
-
},
|
|
1086
|
-
operations: [
|
|
1087
|
-
{ key: "notifications.send", version: "1.0.0" },
|
|
1088
|
-
{ key: "notifications.markRead", version: "1.0.0" },
|
|
1089
|
-
{ key: "notifications.markAllRead", version: "1.0.0" },
|
|
1090
|
-
{ key: "notifications.delete", version: "1.0.0" },
|
|
1091
|
-
{ key: "notifications.list", version: "1.0.0" },
|
|
1092
|
-
{ key: "notifications.preferences.update", version: "1.0.0" },
|
|
1093
|
-
{ key: "notifications.preferences.get", version: "1.0.0" }
|
|
1094
|
-
],
|
|
1095
|
-
events: [],
|
|
1096
|
-
presentations: [],
|
|
1097
|
-
opToPresentation: [],
|
|
1098
|
-
presentationsTargets: [],
|
|
1099
|
-
capabilities: {
|
|
1100
|
-
provides: [{ key: "notifications", version: "1.0.0" }],
|
|
1101
|
-
requires: [{ key: "identity", version: "1.0.0" }]
|
|
1102
|
-
}
|
|
1103
|
-
});
|
|
1104
1104
|
export {
|
|
1105
1105
|
renderTemplate,
|
|
1106
1106
|
renderNotificationTemplate,
|
package/dist/channels/index.js
CHANGED
|
@@ -63,96 +63,96 @@ var init_en = __esm(() => {
|
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
// src/i18n/catalogs/
|
|
66
|
+
// src/i18n/catalogs/es.ts
|
|
67
67
|
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
68
|
-
var
|
|
69
|
-
var
|
|
70
|
-
|
|
68
|
+
var esMessages;
|
|
69
|
+
var init_es = __esm(() => {
|
|
70
|
+
esMessages = defineTranslation2({
|
|
71
71
|
meta: {
|
|
72
72
|
key: "notifications.messages",
|
|
73
73
|
version: "1.0.0",
|
|
74
74
|
domain: "notifications",
|
|
75
|
-
description: "Template and channel strings (
|
|
75
|
+
description: "Template and channel strings (Spanish)",
|
|
76
76
|
owners: ["platform"],
|
|
77
77
|
stability: "experimental"
|
|
78
78
|
},
|
|
79
|
-
locale: "
|
|
79
|
+
locale: "es",
|
|
80
80
|
fallback: "en",
|
|
81
81
|
messages: {
|
|
82
82
|
"template.welcome.name": {
|
|
83
|
-
value: "
|
|
83
|
+
value: "Bienvenida",
|
|
84
84
|
description: "Welcome template display name"
|
|
85
85
|
},
|
|
86
86
|
"template.welcome.description": {
|
|
87
|
-
value: "
|
|
87
|
+
value: "Enviado cuando un usuario se registra.",
|
|
88
88
|
description: "Welcome template description"
|
|
89
89
|
},
|
|
90
90
|
"template.orgInvite.name": {
|
|
91
|
-
value: "
|
|
91
|
+
value: "Invitaci\xF3n a la organizaci\xF3n",
|
|
92
92
|
description: "Org invite template display name"
|
|
93
93
|
},
|
|
94
94
|
"template.orgInvite.description": {
|
|
95
|
-
value: "
|
|
95
|
+
value: "Enviado cuando un usuario es invitado a una organizaci\xF3n.",
|
|
96
96
|
description: "Org invite template description"
|
|
97
97
|
},
|
|
98
98
|
"template.mention.name": {
|
|
99
|
-
value: "
|
|
99
|
+
value: "Menci\xF3n",
|
|
100
100
|
description: "Mention template display name"
|
|
101
101
|
},
|
|
102
102
|
"template.mention.description": {
|
|
103
|
-
value: "
|
|
103
|
+
value: "Enviado cuando un usuario es mencionado.",
|
|
104
104
|
description: "Mention template description"
|
|
105
105
|
},
|
|
106
106
|
"channel.webhook.noUrl": {
|
|
107
|
-
value: "
|
|
107
|
+
value: "No se ha configurado una URL de webhook",
|
|
108
108
|
description: "Error when webhook channel has no URL"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
|
|
114
|
-
// src/i18n/catalogs/
|
|
114
|
+
// src/i18n/catalogs/fr.ts
|
|
115
115
|
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
|
|
116
|
+
var frMessages;
|
|
117
|
+
var init_fr = __esm(() => {
|
|
118
|
+
frMessages = defineTranslation3({
|
|
119
119
|
meta: {
|
|
120
120
|
key: "notifications.messages",
|
|
121
121
|
version: "1.0.0",
|
|
122
122
|
domain: "notifications",
|
|
123
|
-
description: "Template and channel strings (
|
|
123
|
+
description: "Template and channel strings (French)",
|
|
124
124
|
owners: ["platform"],
|
|
125
125
|
stability: "experimental"
|
|
126
126
|
},
|
|
127
|
-
locale: "
|
|
127
|
+
locale: "fr",
|
|
128
128
|
fallback: "en",
|
|
129
129
|
messages: {
|
|
130
130
|
"template.welcome.name": {
|
|
131
|
-
value: "
|
|
131
|
+
value: "Bienvenue",
|
|
132
132
|
description: "Welcome template display name"
|
|
133
133
|
},
|
|
134
134
|
"template.welcome.description": {
|
|
135
|
-
value: "
|
|
135
|
+
value: "Envoy\xE9 lorsqu'un utilisateur s'inscrit.",
|
|
136
136
|
description: "Welcome template description"
|
|
137
137
|
},
|
|
138
138
|
"template.orgInvite.name": {
|
|
139
|
-
value: "
|
|
139
|
+
value: "Invitation \xE0 l'organisation",
|
|
140
140
|
description: "Org invite template display name"
|
|
141
141
|
},
|
|
142
142
|
"template.orgInvite.description": {
|
|
143
|
-
value: "
|
|
143
|
+
value: "Envoy\xE9 lorsqu'un utilisateur est invit\xE9 \xE0 une organisation.",
|
|
144
144
|
description: "Org invite template description"
|
|
145
145
|
},
|
|
146
146
|
"template.mention.name": {
|
|
147
|
-
value: "
|
|
147
|
+
value: "Mention",
|
|
148
148
|
description: "Mention template display name"
|
|
149
149
|
},
|
|
150
150
|
"template.mention.description": {
|
|
151
|
-
value: "
|
|
151
|
+
value: "Envoy\xE9 lorsqu'un utilisateur est mentionn\xE9.",
|
|
152
152
|
description: "Mention template description"
|
|
153
153
|
},
|
|
154
154
|
"channel.webhook.noUrl": {
|
|
155
|
-
value: "
|
|
155
|
+
value: "Aucune URL de webhook configur\xE9e",
|
|
156
156
|
description: "Error when webhook channel has no URL"
|
|
157
157
|
}
|
|
158
158
|
}
|
|
@@ -172,8 +172,8 @@ import {
|
|
|
172
172
|
var factory, createNotificationsI18n, getDefaultI18n, resetI18nRegistry;
|
|
173
173
|
var init_messages = __esm(() => {
|
|
174
174
|
init_en();
|
|
175
|
-
init_fr();
|
|
176
175
|
init_es();
|
|
176
|
+
init_fr();
|
|
177
177
|
factory = createI18nFactory({
|
|
178
178
|
specKey: "notifications.messages",
|
|
179
179
|
catalogs: [enMessages, frMessages, esMessages]
|
package/dist/contracts/index.js
CHANGED
|
@@ -18,9 +18,9 @@ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
|
18
18
|
// src/contracts/index.ts
|
|
19
19
|
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
20
20
|
import {
|
|
21
|
-
ScalarTypeEnum,
|
|
22
21
|
defineEnum,
|
|
23
|
-
defineSchemaModel
|
|
22
|
+
defineSchemaModel,
|
|
23
|
+
ScalarTypeEnum
|
|
24
24
|
} from "@contractspec/lib.schema";
|
|
25
25
|
var OWNERS = ["platform.notifications"];
|
|
26
26
|
var NotificationStatusSchemaEnum = defineEnum("NotificationStatus", [
|
|
@@ -63,96 +63,96 @@ var init_en = __esm(() => {
|
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
// src/i18n/catalogs/
|
|
66
|
+
// src/i18n/catalogs/es.ts
|
|
67
67
|
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
68
|
-
var
|
|
69
|
-
var
|
|
70
|
-
|
|
68
|
+
var esMessages;
|
|
69
|
+
var init_es = __esm(() => {
|
|
70
|
+
esMessages = defineTranslation2({
|
|
71
71
|
meta: {
|
|
72
72
|
key: "notifications.messages",
|
|
73
73
|
version: "1.0.0",
|
|
74
74
|
domain: "notifications",
|
|
75
|
-
description: "Template and channel strings (
|
|
75
|
+
description: "Template and channel strings (Spanish)",
|
|
76
76
|
owners: ["platform"],
|
|
77
77
|
stability: "experimental"
|
|
78
78
|
},
|
|
79
|
-
locale: "
|
|
79
|
+
locale: "es",
|
|
80
80
|
fallback: "en",
|
|
81
81
|
messages: {
|
|
82
82
|
"template.welcome.name": {
|
|
83
|
-
value: "
|
|
83
|
+
value: "Bienvenida",
|
|
84
84
|
description: "Welcome template display name"
|
|
85
85
|
},
|
|
86
86
|
"template.welcome.description": {
|
|
87
|
-
value: "
|
|
87
|
+
value: "Enviado cuando un usuario se registra.",
|
|
88
88
|
description: "Welcome template description"
|
|
89
89
|
},
|
|
90
90
|
"template.orgInvite.name": {
|
|
91
|
-
value: "
|
|
91
|
+
value: "Invitaci\xF3n a la organizaci\xF3n",
|
|
92
92
|
description: "Org invite template display name"
|
|
93
93
|
},
|
|
94
94
|
"template.orgInvite.description": {
|
|
95
|
-
value: "
|
|
95
|
+
value: "Enviado cuando un usuario es invitado a una organizaci\xF3n.",
|
|
96
96
|
description: "Org invite template description"
|
|
97
97
|
},
|
|
98
98
|
"template.mention.name": {
|
|
99
|
-
value: "
|
|
99
|
+
value: "Menci\xF3n",
|
|
100
100
|
description: "Mention template display name"
|
|
101
101
|
},
|
|
102
102
|
"template.mention.description": {
|
|
103
|
-
value: "
|
|
103
|
+
value: "Enviado cuando un usuario es mencionado.",
|
|
104
104
|
description: "Mention template description"
|
|
105
105
|
},
|
|
106
106
|
"channel.webhook.noUrl": {
|
|
107
|
-
value: "
|
|
107
|
+
value: "No se ha configurado una URL de webhook",
|
|
108
108
|
description: "Error when webhook channel has no URL"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
|
|
114
|
-
// src/i18n/catalogs/
|
|
114
|
+
// src/i18n/catalogs/fr.ts
|
|
115
115
|
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
|
|
116
|
+
var frMessages;
|
|
117
|
+
var init_fr = __esm(() => {
|
|
118
|
+
frMessages = defineTranslation3({
|
|
119
119
|
meta: {
|
|
120
120
|
key: "notifications.messages",
|
|
121
121
|
version: "1.0.0",
|
|
122
122
|
domain: "notifications",
|
|
123
|
-
description: "Template and channel strings (
|
|
123
|
+
description: "Template and channel strings (French)",
|
|
124
124
|
owners: ["platform"],
|
|
125
125
|
stability: "experimental"
|
|
126
126
|
},
|
|
127
|
-
locale: "
|
|
127
|
+
locale: "fr",
|
|
128
128
|
fallback: "en",
|
|
129
129
|
messages: {
|
|
130
130
|
"template.welcome.name": {
|
|
131
|
-
value: "
|
|
131
|
+
value: "Bienvenue",
|
|
132
132
|
description: "Welcome template display name"
|
|
133
133
|
},
|
|
134
134
|
"template.welcome.description": {
|
|
135
|
-
value: "
|
|
135
|
+
value: "Envoy\xE9 lorsqu'un utilisateur s'inscrit.",
|
|
136
136
|
description: "Welcome template description"
|
|
137
137
|
},
|
|
138
138
|
"template.orgInvite.name": {
|
|
139
|
-
value: "
|
|
139
|
+
value: "Invitation \xE0 l'organisation",
|
|
140
140
|
description: "Org invite template display name"
|
|
141
141
|
},
|
|
142
142
|
"template.orgInvite.description": {
|
|
143
|
-
value: "
|
|
143
|
+
value: "Envoy\xE9 lorsqu'un utilisateur est invit\xE9 \xE0 une organisation.",
|
|
144
144
|
description: "Org invite template description"
|
|
145
145
|
},
|
|
146
146
|
"template.mention.name": {
|
|
147
|
-
value: "
|
|
147
|
+
value: "Mention",
|
|
148
148
|
description: "Mention template display name"
|
|
149
149
|
},
|
|
150
150
|
"template.mention.description": {
|
|
151
|
-
value: "
|
|
151
|
+
value: "Envoy\xE9 lorsqu'un utilisateur est mentionn\xE9.",
|
|
152
152
|
description: "Mention template description"
|
|
153
153
|
},
|
|
154
154
|
"channel.webhook.noUrl": {
|
|
155
|
-
value: "
|
|
155
|
+
value: "Aucune URL de webhook configur\xE9e",
|
|
156
156
|
description: "Error when webhook channel has no URL"
|
|
157
157
|
}
|
|
158
158
|
}
|
|
@@ -161,8 +161,8 @@ var init_es = __esm(() => {
|
|
|
161
161
|
|
|
162
162
|
// src/i18n/catalogs/index.ts
|
|
163
163
|
init_en();
|
|
164
|
-
init_fr();
|
|
165
164
|
init_es();
|
|
165
|
+
init_fr();
|
|
166
166
|
export {
|
|
167
167
|
frMessages,
|
|
168
168
|
esMessages,
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module i18n
|
|
5
5
|
*/
|
|
6
|
-
export { createNotificationsI18n, getDefaultI18n, resetI18nRegistry, } from './messages';
|
|
7
|
-
export type { NotificationsI18n } from './messages';
|
|
8
|
-
export { resolveLocale, isSupportedLocale, DEFAULT_LOCALE, SUPPORTED_LOCALES, } from './locale';
|
|
9
|
-
export type { SupportedLocale } from './locale';
|
|
10
|
-
export { I18N_KEYS, TEMPLATE_KEYS, CHANNEL_KEYS } from './keys';
|
|
11
|
-
export type { NotificationsMessageKey } from './keys';
|
|
12
6
|
export { enMessages } from './catalogs/en';
|
|
13
|
-
export { frMessages } from './catalogs/fr';
|
|
14
7
|
export { esMessages } from './catalogs/es';
|
|
8
|
+
export { frMessages } from './catalogs/fr';
|
|
9
|
+
export type { NotificationsMessageKey } from './keys';
|
|
10
|
+
export { CHANNEL_KEYS, I18N_KEYS, TEMPLATE_KEYS } from './keys';
|
|
11
|
+
export type { SupportedLocale } from './locale';
|
|
12
|
+
export { DEFAULT_LOCALE, isSupportedLocale, resolveLocale, SUPPORTED_LOCALES, } from './locale';
|
|
13
|
+
export type { NotificationsI18n } from './messages';
|
|
14
|
+
export { createNotificationsI18n, getDefaultI18n, resetI18nRegistry, } from './messages';
|