@contractspec/module.notifications 3.7.15 → 3.7.17
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/browser/channels/index.js +1 -314
- package/dist/browser/contracts/index.js +1 -356
- package/dist/browser/entities/index.js +1 -239
- package/dist/browser/i18n/catalogs/en.js +1 -68
- package/dist/browser/i18n/catalogs/es.js +1 -68
- package/dist/browser/i18n/catalogs/fr.js +1 -68
- package/dist/browser/i18n/catalogs/index.js +1 -169
- package/dist/browser/i18n/index.js +1 -229
- package/dist/browser/i18n/keys.js +1 -37
- package/dist/browser/i18n/locale.js +1 -29
- package/dist/browser/i18n/messages.js +1 -190
- package/dist/browser/index.js +7 -1126
- package/dist/browser/notifications.capability.js +1 -35
- package/dist/browser/notifications.feature.js +1 -50
- package/dist/browser/templates/index.js +7 -235
- package/dist/channels/index.js +1 -314
- package/dist/contracts/index.js +1 -356
- package/dist/entities/index.js +1 -239
- package/dist/i18n/catalogs/en.js +1 -68
- package/dist/i18n/catalogs/es.js +1 -68
- package/dist/i18n/catalogs/fr.js +1 -68
- package/dist/i18n/catalogs/index.js +1 -169
- package/dist/i18n/index.js +1 -229
- package/dist/i18n/keys.js +1 -37
- package/dist/i18n/locale.js +1 -29
- package/dist/i18n/messages.js +1 -190
- package/dist/index.js +7 -1126
- package/dist/node/channels/index.js +1 -314
- package/dist/node/contracts/index.js +1 -356
- package/dist/node/entities/index.js +1 -239
- package/dist/node/i18n/catalogs/en.js +1 -68
- package/dist/node/i18n/catalogs/es.js +1 -68
- package/dist/node/i18n/catalogs/fr.js +1 -68
- package/dist/node/i18n/catalogs/index.js +1 -169
- package/dist/node/i18n/index.js +1 -229
- package/dist/node/i18n/keys.js +1 -37
- package/dist/node/i18n/locale.js +1 -29
- package/dist/node/i18n/messages.js +1 -190
- package/dist/node/index.js +7 -1126
- package/dist/node/notifications.capability.js +1 -35
- package/dist/node/notifications.feature.js +1 -50
- package/dist/node/templates/index.js +7 -235
- package/dist/notifications.capability.js +1 -35
- package/dist/notifications.feature.js +1 -50
- package/dist/templates/index.js +7 -235
- package/package.json +8 -8
|
@@ -1,239 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var __returnValue = (v) => v;
|
|
3
|
-
function __exportSetter(name, newValue) {
|
|
4
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
-
}
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true,
|
|
11
|
-
configurable: true,
|
|
12
|
-
set: __exportSetter.bind(all, name)
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
16
|
-
|
|
17
|
-
// src/entities/index.ts
|
|
18
|
-
import {
|
|
19
|
-
defineEntity,
|
|
20
|
-
defineEntityEnum,
|
|
21
|
-
field,
|
|
22
|
-
index
|
|
23
|
-
} from "@contractspec/lib.schema";
|
|
24
|
-
var NotificationStatusEnum = defineEntityEnum({
|
|
25
|
-
name: "NotificationStatus",
|
|
26
|
-
values: [
|
|
27
|
-
"PENDING",
|
|
28
|
-
"SENT",
|
|
29
|
-
"DELIVERED",
|
|
30
|
-
"READ",
|
|
31
|
-
"FAILED",
|
|
32
|
-
"CANCELLED"
|
|
33
|
-
],
|
|
34
|
-
schema: "lssm_notifications",
|
|
35
|
-
description: "Status of a notification."
|
|
36
|
-
});
|
|
37
|
-
var NotificationChannelEnum = defineEntityEnum({
|
|
38
|
-
name: "NotificationChannel",
|
|
39
|
-
values: ["EMAIL", "IN_APP", "PUSH", "WEBHOOK", "SMS"],
|
|
40
|
-
schema: "lssm_notifications",
|
|
41
|
-
description: "Delivery channel for notifications."
|
|
42
|
-
});
|
|
43
|
-
var NotificationEntity = defineEntity({
|
|
44
|
-
name: "Notification",
|
|
45
|
-
description: "An individual notification to be delivered to a user.",
|
|
46
|
-
schema: "lssm_notifications",
|
|
47
|
-
map: "notification",
|
|
48
|
-
fields: {
|
|
49
|
-
id: field.id({ description: "Unique notification ID" }),
|
|
50
|
-
userId: field.foreignKey({ description: "Target user ID" }),
|
|
51
|
-
orgId: field.string({
|
|
52
|
-
isOptional: true,
|
|
53
|
-
description: "Organization context"
|
|
54
|
-
}),
|
|
55
|
-
templateId: field.string({
|
|
56
|
-
isOptional: true,
|
|
57
|
-
description: "Template used"
|
|
58
|
-
}),
|
|
59
|
-
title: field.string({ description: "Notification title" }),
|
|
60
|
-
body: field.string({ description: "Notification body" }),
|
|
61
|
-
actionUrl: field.string({ isOptional: true, description: "Action URL" }),
|
|
62
|
-
imageUrl: field.string({ isOptional: true, description: "Image URL" }),
|
|
63
|
-
type: field.string({
|
|
64
|
-
description: "Notification type (e.g., mention, update)"
|
|
65
|
-
}),
|
|
66
|
-
category: field.string({
|
|
67
|
-
isOptional: true,
|
|
68
|
-
description: "Notification category"
|
|
69
|
-
}),
|
|
70
|
-
priority: field.enum("NotificationPriority", { default: "NORMAL" }),
|
|
71
|
-
channels: field.string({
|
|
72
|
-
isArray: true,
|
|
73
|
-
description: "Target delivery channels"
|
|
74
|
-
}),
|
|
75
|
-
status: field.enum("NotificationStatus", { default: "PENDING" }),
|
|
76
|
-
sentAt: field.dateTime({ isOptional: true }),
|
|
77
|
-
deliveredAt: field.dateTime({ isOptional: true }),
|
|
78
|
-
readAt: field.dateTime({ isOptional: true }),
|
|
79
|
-
metadata: field.json({
|
|
80
|
-
isOptional: true,
|
|
81
|
-
description: "Additional metadata"
|
|
82
|
-
}),
|
|
83
|
-
variables: field.json({
|
|
84
|
-
isOptional: true,
|
|
85
|
-
description: "Template variables used"
|
|
86
|
-
}),
|
|
87
|
-
triggeredBy: field.string({
|
|
88
|
-
isOptional: true,
|
|
89
|
-
description: "Event/action that triggered"
|
|
90
|
-
}),
|
|
91
|
-
sourceId: field.string({
|
|
92
|
-
isOptional: true,
|
|
93
|
-
description: "Source entity ID"
|
|
94
|
-
}),
|
|
95
|
-
sourceType: field.string({
|
|
96
|
-
isOptional: true,
|
|
97
|
-
description: "Source entity type"
|
|
98
|
-
}),
|
|
99
|
-
createdAt: field.createdAt(),
|
|
100
|
-
updatedAt: field.updatedAt(),
|
|
101
|
-
expiresAt: field.dateTime({
|
|
102
|
-
isOptional: true,
|
|
103
|
-
description: "Notification expiry"
|
|
104
|
-
}),
|
|
105
|
-
deliveryLogs: field.hasMany("DeliveryLog")
|
|
106
|
-
},
|
|
107
|
-
indexes: [
|
|
108
|
-
index.on(["userId", "status", "createdAt"]),
|
|
109
|
-
index.on(["userId", "readAt"]),
|
|
110
|
-
index.on(["orgId", "createdAt"]),
|
|
111
|
-
index.on(["type", "createdAt"])
|
|
112
|
-
],
|
|
113
|
-
enums: [NotificationStatusEnum, NotificationChannelEnum]
|
|
114
|
-
});
|
|
115
|
-
var NotificationPriorityEnum = defineEntityEnum({
|
|
116
|
-
name: "NotificationPriority",
|
|
117
|
-
values: ["LOW", "NORMAL", "HIGH", "URGENT"],
|
|
118
|
-
schema: "lssm_notifications",
|
|
119
|
-
description: "Priority level of a notification."
|
|
120
|
-
});
|
|
121
|
-
var NotificationTemplateEntity = defineEntity({
|
|
122
|
-
name: "NotificationTemplate",
|
|
123
|
-
description: "Reusable notification template.",
|
|
124
|
-
schema: "lssm_notifications",
|
|
125
|
-
map: "notification_template",
|
|
126
|
-
fields: {
|
|
127
|
-
id: field.id(),
|
|
128
|
-
templateId: field.string({
|
|
129
|
-
isUnique: true,
|
|
130
|
-
description: "Template identifier"
|
|
131
|
-
}),
|
|
132
|
-
name: field.string({ description: "Template display name" }),
|
|
133
|
-
description: field.string({ isOptional: true }),
|
|
134
|
-
emailSubject: field.string({ isOptional: true }),
|
|
135
|
-
emailBody: field.string({ isOptional: true }),
|
|
136
|
-
inAppTitle: field.string({ isOptional: true }),
|
|
137
|
-
inAppBody: field.string({ isOptional: true }),
|
|
138
|
-
pushTitle: field.string({ isOptional: true }),
|
|
139
|
-
pushBody: field.string({ isOptional: true }),
|
|
140
|
-
defaultChannels: field.string({ isArray: true }),
|
|
141
|
-
category: field.string({ isOptional: true }),
|
|
142
|
-
priority: field.enum("NotificationPriority", { default: "NORMAL" }),
|
|
143
|
-
variablesSchema: field.json({
|
|
144
|
-
isOptional: true,
|
|
145
|
-
description: "JSON schema for variables"
|
|
146
|
-
}),
|
|
147
|
-
enabled: field.boolean({ default: true }),
|
|
148
|
-
createdAt: field.createdAt(),
|
|
149
|
-
updatedAt: field.updatedAt()
|
|
150
|
-
},
|
|
151
|
-
enums: [NotificationPriorityEnum]
|
|
152
|
-
});
|
|
153
|
-
var NotificationPreferenceEntity = defineEntity({
|
|
154
|
-
name: "NotificationPreference",
|
|
155
|
-
description: "User notification preferences by type and channel.",
|
|
156
|
-
schema: "lssm_notifications",
|
|
157
|
-
map: "notification_preference",
|
|
158
|
-
fields: {
|
|
159
|
-
id: field.id(),
|
|
160
|
-
userId: field.foreignKey(),
|
|
161
|
-
globalEnabled: field.boolean({ default: true }),
|
|
162
|
-
quietHoursStart: field.string({
|
|
163
|
-
isOptional: true,
|
|
164
|
-
description: "Quiet hours start (HH:MM)"
|
|
165
|
-
}),
|
|
166
|
-
quietHoursEnd: field.string({
|
|
167
|
-
isOptional: true,
|
|
168
|
-
description: "Quiet hours end (HH:MM)"
|
|
169
|
-
}),
|
|
170
|
-
timezone: field.string({ default: '"UTC"' }),
|
|
171
|
-
channelPreferences: field.json({
|
|
172
|
-
description: "Channel-level preferences"
|
|
173
|
-
}),
|
|
174
|
-
typePreferences: field.json({ description: "Type-level preferences" }),
|
|
175
|
-
digestEnabled: field.boolean({ default: false }),
|
|
176
|
-
digestFrequency: field.string({
|
|
177
|
-
isOptional: true,
|
|
178
|
-
description: "daily, weekly, etc."
|
|
179
|
-
}),
|
|
180
|
-
digestTime: field.string({
|
|
181
|
-
isOptional: true,
|
|
182
|
-
description: "Digest send time (HH:MM)"
|
|
183
|
-
}),
|
|
184
|
-
createdAt: field.createdAt(),
|
|
185
|
-
updatedAt: field.updatedAt()
|
|
186
|
-
},
|
|
187
|
-
indexes: [index.unique(["userId"])]
|
|
188
|
-
});
|
|
189
|
-
var DeliveryLogEntity = defineEntity({
|
|
190
|
-
name: "DeliveryLog",
|
|
191
|
-
description: "Log of notification delivery attempts.",
|
|
192
|
-
schema: "lssm_notifications",
|
|
193
|
-
map: "delivery_log",
|
|
194
|
-
fields: {
|
|
195
|
-
id: field.id(),
|
|
196
|
-
notificationId: field.foreignKey(),
|
|
197
|
-
channel: field.enum("NotificationChannel"),
|
|
198
|
-
status: field.enum("NotificationStatus"),
|
|
199
|
-
attemptedAt: field.dateTime(),
|
|
200
|
-
deliveredAt: field.dateTime({ isOptional: true }),
|
|
201
|
-
responseCode: field.string({ isOptional: true }),
|
|
202
|
-
responseMessage: field.string({ isOptional: true }),
|
|
203
|
-
externalId: field.string({
|
|
204
|
-
isOptional: true,
|
|
205
|
-
description: "Provider message ID"
|
|
206
|
-
}),
|
|
207
|
-
metadata: field.json({ isOptional: true }),
|
|
208
|
-
notification: field.belongsTo("Notification", ["notificationId"], ["id"], {
|
|
209
|
-
onDelete: "Cascade"
|
|
210
|
-
})
|
|
211
|
-
},
|
|
212
|
-
indexes: [index.on(["notificationId", "channel"])]
|
|
213
|
-
});
|
|
214
|
-
var notificationEntities = [
|
|
215
|
-
NotificationEntity,
|
|
216
|
-
NotificationTemplateEntity,
|
|
217
|
-
NotificationPreferenceEntity,
|
|
218
|
-
DeliveryLogEntity
|
|
219
|
-
];
|
|
220
|
-
var notificationsSchemaContribution = {
|
|
221
|
-
moduleId: "@contractspec/module.notifications",
|
|
222
|
-
entities: notificationEntities,
|
|
223
|
-
enums: [
|
|
224
|
-
NotificationStatusEnum,
|
|
225
|
-
NotificationChannelEnum,
|
|
226
|
-
NotificationPriorityEnum
|
|
227
|
-
]
|
|
228
|
-
};
|
|
229
|
-
export {
|
|
230
|
-
notificationsSchemaContribution,
|
|
231
|
-
notificationEntities,
|
|
232
|
-
NotificationTemplateEntity,
|
|
233
|
-
NotificationStatusEnum,
|
|
234
|
-
NotificationPriorityEnum,
|
|
235
|
-
NotificationPreferenceEntity,
|
|
236
|
-
NotificationEntity,
|
|
237
|
-
NotificationChannelEnum,
|
|
238
|
-
DeliveryLogEntity
|
|
239
|
-
};
|
|
1
|
+
var I=Object.defineProperty;var J=(k)=>k;function K(k,q){this[k]=J.bind(null,q)}var W=(k,q)=>{for(var A in q)I(k,A,{get:q[A],enumerable:!0,configurable:!0,set:K.bind(q,A)})};var X=(k,q)=>()=>(k&&(q=k(k=0)),q);import{defineEntity as z,defineEntityEnum as B,field as j,index as w}from"@contractspec/lib.schema";var F=B({name:"NotificationStatus",values:["PENDING","SENT","DELIVERED","READ","FAILED","CANCELLED"],schema:"lssm_notifications",description:"Status of a notification."}),G=B({name:"NotificationChannel",values:["EMAIL","IN_APP","PUSH","WEBHOOK","SMS"],schema:"lssm_notifications",description:"Delivery channel for notifications."}),O=z({name:"Notification",description:"An individual notification to be delivered to a user.",schema:"lssm_notifications",map:"notification",fields:{id:j.id({description:"Unique notification ID"}),userId:j.foreignKey({description:"Target user ID"}),orgId:j.string({isOptional:!0,description:"Organization context"}),templateId:j.string({isOptional:!0,description:"Template used"}),title:j.string({description:"Notification title"}),body:j.string({description:"Notification body"}),actionUrl:j.string({isOptional:!0,description:"Action URL"}),imageUrl:j.string({isOptional:!0,description:"Image URL"}),type:j.string({description:"Notification type (e.g., mention, update)"}),category:j.string({isOptional:!0,description:"Notification category"}),priority:j.enum("NotificationPriority",{default:"NORMAL"}),channels:j.string({isArray:!0,description:"Target delivery channels"}),status:j.enum("NotificationStatus",{default:"PENDING"}),sentAt:j.dateTime({isOptional:!0}),deliveredAt:j.dateTime({isOptional:!0}),readAt:j.dateTime({isOptional:!0}),metadata:j.json({isOptional:!0,description:"Additional metadata"}),variables:j.json({isOptional:!0,description:"Template variables used"}),triggeredBy:j.string({isOptional:!0,description:"Event/action that triggered"}),sourceId:j.string({isOptional:!0,description:"Source entity ID"}),sourceType:j.string({isOptional:!0,description:"Source entity type"}),createdAt:j.createdAt(),updatedAt:j.updatedAt(),expiresAt:j.dateTime({isOptional:!0,description:"Notification expiry"}),deliveryLogs:j.hasMany("DeliveryLog")},indexes:[w.on(["userId","status","createdAt"]),w.on(["userId","readAt"]),w.on(["orgId","createdAt"]),w.on(["type","createdAt"])],enums:[F,G]}),H=B({name:"NotificationPriority",values:["LOW","NORMAL","HIGH","URGENT"],schema:"lssm_notifications",description:"Priority level of a notification."}),Q=z({name:"NotificationTemplate",description:"Reusable notification template.",schema:"lssm_notifications",map:"notification_template",fields:{id:j.id(),templateId:j.string({isUnique:!0,description:"Template identifier"}),name:j.string({description:"Template display name"}),description:j.string({isOptional:!0}),emailSubject:j.string({isOptional:!0}),emailBody:j.string({isOptional:!0}),inAppTitle:j.string({isOptional:!0}),inAppBody:j.string({isOptional:!0}),pushTitle:j.string({isOptional:!0}),pushBody:j.string({isOptional:!0}),defaultChannels:j.string({isArray:!0}),category:j.string({isOptional:!0}),priority:j.enum("NotificationPriority",{default:"NORMAL"}),variablesSchema:j.json({isOptional:!0,description:"JSON schema for variables"}),enabled:j.boolean({default:!0}),createdAt:j.createdAt(),updatedAt:j.updatedAt()},enums:[H]}),R=z({name:"NotificationPreference",description:"User notification preferences by type and channel.",schema:"lssm_notifications",map:"notification_preference",fields:{id:j.id(),userId:j.foreignKey(),globalEnabled:j.boolean({default:!0}),quietHoursStart:j.string({isOptional:!0,description:"Quiet hours start (HH:MM)"}),quietHoursEnd:j.string({isOptional:!0,description:"Quiet hours end (HH:MM)"}),timezone:j.string({default:'"UTC"'}),channelPreferences:j.json({description:"Channel-level preferences"}),typePreferences:j.json({description:"Type-level preferences"}),digestEnabled:j.boolean({default:!1}),digestFrequency:j.string({isOptional:!0,description:"daily, weekly, etc."}),digestTime:j.string({isOptional:!0,description:"Digest send time (HH:MM)"}),createdAt:j.createdAt(),updatedAt:j.updatedAt()},indexes:[w.unique(["userId"])]}),U=z({name:"DeliveryLog",description:"Log of notification delivery attempts.",schema:"lssm_notifications",map:"delivery_log",fields:{id:j.id(),notificationId:j.foreignKey(),channel:j.enum("NotificationChannel"),status:j.enum("NotificationStatus"),attemptedAt:j.dateTime(),deliveredAt:j.dateTime({isOptional:!0}),responseCode:j.string({isOptional:!0}),responseMessage:j.string({isOptional:!0}),externalId:j.string({isOptional:!0,description:"Provider message ID"}),metadata:j.json({isOptional:!0}),notification:j.belongsTo("Notification",["notificationId"],["id"],{onDelete:"Cascade"})},indexes:[w.on(["notificationId","channel"])]}),V=[O,Q,R,U],_={moduleId:"@contractspec/module.notifications",entities:V,enums:[F,G,H]};export{_ as notificationsSchemaContribution,V as notificationEntities,Q as NotificationTemplateEntity,F as NotificationStatusEnum,H as NotificationPriorityEnum,R as NotificationPreferenceEntity,O as NotificationEntity,G as NotificationChannelEnum,U as DeliveryLogEntity};
|
|
@@ -1,68 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var __returnValue = (v) => v;
|
|
3
|
-
function __exportSetter(name, newValue) {
|
|
4
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
-
}
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true,
|
|
11
|
-
configurable: true,
|
|
12
|
-
set: __exportSetter.bind(all, name)
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
16
|
-
|
|
17
|
-
// src/i18n/catalogs/en.ts
|
|
18
|
-
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
19
|
-
var enMessages;
|
|
20
|
-
var init_en = __esm(() => {
|
|
21
|
-
enMessages = defineTranslation({
|
|
22
|
-
meta: {
|
|
23
|
-
key: "notifications.messages",
|
|
24
|
-
version: "1.0.0",
|
|
25
|
-
domain: "notifications",
|
|
26
|
-
description: "Template and channel strings for the notifications module",
|
|
27
|
-
owners: ["platform"],
|
|
28
|
-
stability: "experimental"
|
|
29
|
-
},
|
|
30
|
-
locale: "en",
|
|
31
|
-
fallback: "en",
|
|
32
|
-
messages: {
|
|
33
|
-
"template.welcome.name": {
|
|
34
|
-
value: "Welcome",
|
|
35
|
-
description: "Welcome template display name"
|
|
36
|
-
},
|
|
37
|
-
"template.welcome.description": {
|
|
38
|
-
value: "Sent when a user signs up.",
|
|
39
|
-
description: "Welcome template description"
|
|
40
|
-
},
|
|
41
|
-
"template.orgInvite.name": {
|
|
42
|
-
value: "Organization Invitation",
|
|
43
|
-
description: "Org invite template display name"
|
|
44
|
-
},
|
|
45
|
-
"template.orgInvite.description": {
|
|
46
|
-
value: "Sent when a user is invited to an organization.",
|
|
47
|
-
description: "Org invite template description"
|
|
48
|
-
},
|
|
49
|
-
"template.mention.name": {
|
|
50
|
-
value: "Mention",
|
|
51
|
-
description: "Mention template display name"
|
|
52
|
-
},
|
|
53
|
-
"template.mention.description": {
|
|
54
|
-
value: "Sent when a user is mentioned.",
|
|
55
|
-
description: "Mention template description"
|
|
56
|
-
},
|
|
57
|
-
"channel.webhook.noUrl": {
|
|
58
|
-
value: "No webhook URL configured",
|
|
59
|
-
description: "Error when webhook channel has no URL"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
init_en();
|
|
65
|
-
|
|
66
|
-
export {
|
|
67
|
-
enMessages
|
|
68
|
-
};
|
|
1
|
+
var k=Object.defineProperty;var m=(g)=>g;function q(g,h){this[g]=m.bind(null,h)}var x=(g,h)=>{for(var j in h)k(g,j,{get:h[j],enumerable:!0,configurable:!0,set:q.bind(h,j)})};var u=(g,h)=>()=>(g&&(h=g(g=0)),h);import{defineTranslation as v}from"@contractspec/lib.contracts-spec/translations";var A;var w=u(()=>{A=v({meta:{key:"notifications.messages",version:"1.0.0",domain:"notifications",description:"Template and channel strings for the notifications module",owners:["platform"],stability:"experimental"},locale:"en",fallback:"en",messages:{"template.welcome.name":{value:"Welcome",description:"Welcome template display name"},"template.welcome.description":{value:"Sent when a user signs up.",description:"Welcome template description"},"template.orgInvite.name":{value:"Organization Invitation",description:"Org invite template display name"},"template.orgInvite.description":{value:"Sent when a user is invited to an organization.",description:"Org invite template description"},"template.mention.name":{value:"Mention",description:"Mention template display name"},"template.mention.description":{value:"Sent when a user is mentioned.",description:"Mention template description"},"channel.webhook.noUrl":{value:"No webhook URL configured",description:"Error when webhook channel has no URL"}}})});w();export{A as enMessages};
|
|
@@ -1,68 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var __returnValue = (v) => v;
|
|
3
|
-
function __exportSetter(name, newValue) {
|
|
4
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
-
}
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true,
|
|
11
|
-
configurable: true,
|
|
12
|
-
set: __exportSetter.bind(all, name)
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
16
|
-
|
|
17
|
-
// src/i18n/catalogs/es.ts
|
|
18
|
-
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
19
|
-
var esMessages;
|
|
20
|
-
var init_es = __esm(() => {
|
|
21
|
-
esMessages = defineTranslation({
|
|
22
|
-
meta: {
|
|
23
|
-
key: "notifications.messages",
|
|
24
|
-
version: "1.0.0",
|
|
25
|
-
domain: "notifications",
|
|
26
|
-
description: "Template and channel strings (Spanish)",
|
|
27
|
-
owners: ["platform"],
|
|
28
|
-
stability: "experimental"
|
|
29
|
-
},
|
|
30
|
-
locale: "es",
|
|
31
|
-
fallback: "en",
|
|
32
|
-
messages: {
|
|
33
|
-
"template.welcome.name": {
|
|
34
|
-
value: "Bienvenida",
|
|
35
|
-
description: "Welcome template display name"
|
|
36
|
-
},
|
|
37
|
-
"template.welcome.description": {
|
|
38
|
-
value: "Enviado cuando un usuario se registra.",
|
|
39
|
-
description: "Welcome template description"
|
|
40
|
-
},
|
|
41
|
-
"template.orgInvite.name": {
|
|
42
|
-
value: "Invitación a la organización",
|
|
43
|
-
description: "Org invite template display name"
|
|
44
|
-
},
|
|
45
|
-
"template.orgInvite.description": {
|
|
46
|
-
value: "Enviado cuando un usuario es invitado a una organización.",
|
|
47
|
-
description: "Org invite template description"
|
|
48
|
-
},
|
|
49
|
-
"template.mention.name": {
|
|
50
|
-
value: "Mención",
|
|
51
|
-
description: "Mention template display name"
|
|
52
|
-
},
|
|
53
|
-
"template.mention.description": {
|
|
54
|
-
value: "Enviado cuando un usuario es mencionado.",
|
|
55
|
-
description: "Mention template description"
|
|
56
|
-
},
|
|
57
|
-
"channel.webhook.noUrl": {
|
|
58
|
-
value: "No se ha configurado una URL de webhook",
|
|
59
|
-
description: "Error when webhook channel has no URL"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
init_es();
|
|
65
|
-
|
|
66
|
-
export {
|
|
67
|
-
esMessages
|
|
68
|
-
};
|
|
1
|
+
var k=Object.defineProperty;var m=(g)=>g;function q(g,h){this[g]=m.bind(null,h)}var x=(g,h)=>{for(var j in h)k(g,j,{get:h[j],enumerable:!0,configurable:!0,set:q.bind(h,j)})};var u=(g,h)=>()=>(g&&(h=g(g=0)),h);import{defineTranslation as v}from"@contractspec/lib.contracts-spec/translations";var A;var w=u(()=>{A=v({meta:{key:"notifications.messages",version:"1.0.0",domain:"notifications",description:"Template and channel strings (Spanish)",owners:["platform"],stability:"experimental"},locale:"es",fallback:"en",messages:{"template.welcome.name":{value:"Bienvenida",description:"Welcome template display name"},"template.welcome.description":{value:"Enviado cuando un usuario se registra.",description:"Welcome template description"},"template.orgInvite.name":{value:"Invitación a la organización",description:"Org invite template display name"},"template.orgInvite.description":{value:"Enviado cuando un usuario es invitado a una organización.",description:"Org invite template description"},"template.mention.name":{value:"Mención",description:"Mention template display name"},"template.mention.description":{value:"Enviado cuando un usuario es mencionado.",description:"Mention template description"},"channel.webhook.noUrl":{value:"No se ha configurado una URL de webhook",description:"Error when webhook channel has no URL"}}})});w();export{A as esMessages};
|
|
@@ -1,68 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var __returnValue = (v) => v;
|
|
3
|
-
function __exportSetter(name, newValue) {
|
|
4
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
-
}
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true,
|
|
11
|
-
configurable: true,
|
|
12
|
-
set: __exportSetter.bind(all, name)
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
16
|
-
|
|
17
|
-
// src/i18n/catalogs/fr.ts
|
|
18
|
-
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
19
|
-
var frMessages;
|
|
20
|
-
var init_fr = __esm(() => {
|
|
21
|
-
frMessages = defineTranslation({
|
|
22
|
-
meta: {
|
|
23
|
-
key: "notifications.messages",
|
|
24
|
-
version: "1.0.0",
|
|
25
|
-
domain: "notifications",
|
|
26
|
-
description: "Template and channel strings (French)",
|
|
27
|
-
owners: ["platform"],
|
|
28
|
-
stability: "experimental"
|
|
29
|
-
},
|
|
30
|
-
locale: "fr",
|
|
31
|
-
fallback: "en",
|
|
32
|
-
messages: {
|
|
33
|
-
"template.welcome.name": {
|
|
34
|
-
value: "Bienvenue",
|
|
35
|
-
description: "Welcome template display name"
|
|
36
|
-
},
|
|
37
|
-
"template.welcome.description": {
|
|
38
|
-
value: "Envoyé lorsqu'un utilisateur s'inscrit.",
|
|
39
|
-
description: "Welcome template description"
|
|
40
|
-
},
|
|
41
|
-
"template.orgInvite.name": {
|
|
42
|
-
value: "Invitation à l'organisation",
|
|
43
|
-
description: "Org invite template display name"
|
|
44
|
-
},
|
|
45
|
-
"template.orgInvite.description": {
|
|
46
|
-
value: "Envoyé lorsqu'un utilisateur est invité à une organisation.",
|
|
47
|
-
description: "Org invite template description"
|
|
48
|
-
},
|
|
49
|
-
"template.mention.name": {
|
|
50
|
-
value: "Mention",
|
|
51
|
-
description: "Mention template display name"
|
|
52
|
-
},
|
|
53
|
-
"template.mention.description": {
|
|
54
|
-
value: "Envoyé lorsqu'un utilisateur est mentionné.",
|
|
55
|
-
description: "Mention template description"
|
|
56
|
-
},
|
|
57
|
-
"channel.webhook.noUrl": {
|
|
58
|
-
value: "Aucune URL de webhook configurée",
|
|
59
|
-
description: "Error when webhook channel has no URL"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
init_fr();
|
|
65
|
-
|
|
66
|
-
export {
|
|
67
|
-
frMessages
|
|
68
|
-
};
|
|
1
|
+
var k=Object.defineProperty;var m=(g)=>g;function q(g,h){this[g]=m.bind(null,h)}var x=(g,h)=>{for(var j in h)k(g,j,{get:h[j],enumerable:!0,configurable:!0,set:q.bind(h,j)})};var u=(g,h)=>()=>(g&&(h=g(g=0)),h);import{defineTranslation as v}from"@contractspec/lib.contracts-spec/translations";var A;var w=u(()=>{A=v({meta:{key:"notifications.messages",version:"1.0.0",domain:"notifications",description:"Template and channel strings (French)",owners:["platform"],stability:"experimental"},locale:"fr",fallback:"en",messages:{"template.welcome.name":{value:"Bienvenue",description:"Welcome template display name"},"template.welcome.description":{value:"Envoyé lorsqu'un utilisateur s'inscrit.",description:"Welcome template description"},"template.orgInvite.name":{value:"Invitation à l'organisation",description:"Org invite template display name"},"template.orgInvite.description":{value:"Envoyé lorsqu'un utilisateur est invité à une organisation.",description:"Org invite template description"},"template.mention.name":{value:"Mention",description:"Mention template display name"},"template.mention.description":{value:"Envoyé lorsqu'un utilisateur est mentionné.",description:"Mention template description"},"channel.webhook.noUrl":{value:"Aucune URL de webhook configurée",description:"Error when webhook channel has no URL"}}})});w();export{A as frMessages};
|
|
@@ -1,169 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var __returnValue = (v) => v;
|
|
3
|
-
function __exportSetter(name, newValue) {
|
|
4
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
-
}
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true,
|
|
11
|
-
configurable: true,
|
|
12
|
-
set: __exportSetter.bind(all, name)
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
16
|
-
|
|
17
|
-
// src/i18n/catalogs/en.ts
|
|
18
|
-
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
19
|
-
var enMessages;
|
|
20
|
-
var init_en = __esm(() => {
|
|
21
|
-
enMessages = defineTranslation({
|
|
22
|
-
meta: {
|
|
23
|
-
key: "notifications.messages",
|
|
24
|
-
version: "1.0.0",
|
|
25
|
-
domain: "notifications",
|
|
26
|
-
description: "Template and channel strings for the notifications module",
|
|
27
|
-
owners: ["platform"],
|
|
28
|
-
stability: "experimental"
|
|
29
|
-
},
|
|
30
|
-
locale: "en",
|
|
31
|
-
fallback: "en",
|
|
32
|
-
messages: {
|
|
33
|
-
"template.welcome.name": {
|
|
34
|
-
value: "Welcome",
|
|
35
|
-
description: "Welcome template display name"
|
|
36
|
-
},
|
|
37
|
-
"template.welcome.description": {
|
|
38
|
-
value: "Sent when a user signs up.",
|
|
39
|
-
description: "Welcome template description"
|
|
40
|
-
},
|
|
41
|
-
"template.orgInvite.name": {
|
|
42
|
-
value: "Organization Invitation",
|
|
43
|
-
description: "Org invite template display name"
|
|
44
|
-
},
|
|
45
|
-
"template.orgInvite.description": {
|
|
46
|
-
value: "Sent when a user is invited to an organization.",
|
|
47
|
-
description: "Org invite template description"
|
|
48
|
-
},
|
|
49
|
-
"template.mention.name": {
|
|
50
|
-
value: "Mention",
|
|
51
|
-
description: "Mention template display name"
|
|
52
|
-
},
|
|
53
|
-
"template.mention.description": {
|
|
54
|
-
value: "Sent when a user is mentioned.",
|
|
55
|
-
description: "Mention template description"
|
|
56
|
-
},
|
|
57
|
-
"channel.webhook.noUrl": {
|
|
58
|
-
value: "No webhook URL configured",
|
|
59
|
-
description: "Error when webhook channel has no URL"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
// src/i18n/catalogs/es.ts
|
|
66
|
-
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
67
|
-
var esMessages;
|
|
68
|
-
var init_es = __esm(() => {
|
|
69
|
-
esMessages = defineTranslation2({
|
|
70
|
-
meta: {
|
|
71
|
-
key: "notifications.messages",
|
|
72
|
-
version: "1.0.0",
|
|
73
|
-
domain: "notifications",
|
|
74
|
-
description: "Template and channel strings (Spanish)",
|
|
75
|
-
owners: ["platform"],
|
|
76
|
-
stability: "experimental"
|
|
77
|
-
},
|
|
78
|
-
locale: "es",
|
|
79
|
-
fallback: "en",
|
|
80
|
-
messages: {
|
|
81
|
-
"template.welcome.name": {
|
|
82
|
-
value: "Bienvenida",
|
|
83
|
-
description: "Welcome template display name"
|
|
84
|
-
},
|
|
85
|
-
"template.welcome.description": {
|
|
86
|
-
value: "Enviado cuando un usuario se registra.",
|
|
87
|
-
description: "Welcome template description"
|
|
88
|
-
},
|
|
89
|
-
"template.orgInvite.name": {
|
|
90
|
-
value: "Invitación a la organización",
|
|
91
|
-
description: "Org invite template display name"
|
|
92
|
-
},
|
|
93
|
-
"template.orgInvite.description": {
|
|
94
|
-
value: "Enviado cuando un usuario es invitado a una organización.",
|
|
95
|
-
description: "Org invite template description"
|
|
96
|
-
},
|
|
97
|
-
"template.mention.name": {
|
|
98
|
-
value: "Mención",
|
|
99
|
-
description: "Mention template display name"
|
|
100
|
-
},
|
|
101
|
-
"template.mention.description": {
|
|
102
|
-
value: "Enviado cuando un usuario es mencionado.",
|
|
103
|
-
description: "Mention template description"
|
|
104
|
-
},
|
|
105
|
-
"channel.webhook.noUrl": {
|
|
106
|
-
value: "No se ha configurado una URL de webhook",
|
|
107
|
-
description: "Error when webhook channel has no URL"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
// src/i18n/catalogs/fr.ts
|
|
114
|
-
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
115
|
-
var frMessages;
|
|
116
|
-
var init_fr = __esm(() => {
|
|
117
|
-
frMessages = defineTranslation3({
|
|
118
|
-
meta: {
|
|
119
|
-
key: "notifications.messages",
|
|
120
|
-
version: "1.0.0",
|
|
121
|
-
domain: "notifications",
|
|
122
|
-
description: "Template and channel strings (French)",
|
|
123
|
-
owners: ["platform"],
|
|
124
|
-
stability: "experimental"
|
|
125
|
-
},
|
|
126
|
-
locale: "fr",
|
|
127
|
-
fallback: "en",
|
|
128
|
-
messages: {
|
|
129
|
-
"template.welcome.name": {
|
|
130
|
-
value: "Bienvenue",
|
|
131
|
-
description: "Welcome template display name"
|
|
132
|
-
},
|
|
133
|
-
"template.welcome.description": {
|
|
134
|
-
value: "Envoyé lorsqu'un utilisateur s'inscrit.",
|
|
135
|
-
description: "Welcome template description"
|
|
136
|
-
},
|
|
137
|
-
"template.orgInvite.name": {
|
|
138
|
-
value: "Invitation à l'organisation",
|
|
139
|
-
description: "Org invite template display name"
|
|
140
|
-
},
|
|
141
|
-
"template.orgInvite.description": {
|
|
142
|
-
value: "Envoyé lorsqu'un utilisateur est invité à une organisation.",
|
|
143
|
-
description: "Org invite template description"
|
|
144
|
-
},
|
|
145
|
-
"template.mention.name": {
|
|
146
|
-
value: "Mention",
|
|
147
|
-
description: "Mention template display name"
|
|
148
|
-
},
|
|
149
|
-
"template.mention.description": {
|
|
150
|
-
value: "Envoyé lorsqu'un utilisateur est mentionné.",
|
|
151
|
-
description: "Mention template description"
|
|
152
|
-
},
|
|
153
|
-
"channel.webhook.noUrl": {
|
|
154
|
-
value: "Aucune URL de webhook configurée",
|
|
155
|
-
description: "Error when webhook channel has no URL"
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
// src/i18n/catalogs/index.ts
|
|
162
|
-
init_en();
|
|
163
|
-
init_es();
|
|
164
|
-
init_fr();
|
|
165
|
-
export {
|
|
166
|
-
frMessages,
|
|
167
|
-
esMessages,
|
|
168
|
-
enMessages
|
|
169
|
-
};
|
|
1
|
+
var h=Object.defineProperty;var j=(g)=>g;function k(g,m){this[g]=j.bind(null,m)}var B=(g,m)=>{for(var x in m)h(g,x,{get:m[x],enumerable:!0,configurable:!0,set:k.bind(m,x)})};var M=(g,m)=>()=>(g&&(m=g(g=0)),m);import{defineTranslation as q}from"@contractspec/lib.contracts-spec/translations";var v;var e=M(()=>{v=q({meta:{key:"notifications.messages",version:"1.0.0",domain:"notifications",description:"Template and channel strings for the notifications module",owners:["platform"],stability:"experimental"},locale:"en",fallback:"en",messages:{"template.welcome.name":{value:"Welcome",description:"Welcome template display name"},"template.welcome.description":{value:"Sent when a user signs up.",description:"Welcome template description"},"template.orgInvite.name":{value:"Organization Invitation",description:"Org invite template display name"},"template.orgInvite.description":{value:"Sent when a user is invited to an organization.",description:"Org invite template description"},"template.mention.name":{value:"Mention",description:"Mention template display name"},"template.mention.description":{value:"Sent when a user is mentioned.",description:"Mention template description"},"channel.webhook.noUrl":{value:"No webhook URL configured",description:"Error when webhook channel has no URL"}}})});import{defineTranslation as w}from"@contractspec/lib.contracts-spec/translations";var y;var f=M(()=>{y=w({meta:{key:"notifications.messages",version:"1.0.0",domain:"notifications",description:"Template and channel strings (Spanish)",owners:["platform"],stability:"experimental"},locale:"es",fallback:"en",messages:{"template.welcome.name":{value:"Bienvenida",description:"Welcome template display name"},"template.welcome.description":{value:"Enviado cuando un usuario se registra.",description:"Welcome template description"},"template.orgInvite.name":{value:"Invitación a la organización",description:"Org invite template display name"},"template.orgInvite.description":{value:"Enviado cuando un usuario es invitado a una organización.",description:"Org invite template description"},"template.mention.name":{value:"Mención",description:"Mention template display name"},"template.mention.description":{value:"Enviado cuando un usuario es mencionado.",description:"Mention template description"},"channel.webhook.noUrl":{value:"No se ha configurado una URL de webhook",description:"Error when webhook channel has no URL"}}})});import{defineTranslation as z}from"@contractspec/lib.contracts-spec/translations";var A;var u=M(()=>{A=z({meta:{key:"notifications.messages",version:"1.0.0",domain:"notifications",description:"Template and channel strings (French)",owners:["platform"],stability:"experimental"},locale:"fr",fallback:"en",messages:{"template.welcome.name":{value:"Bienvenue",description:"Welcome template display name"},"template.welcome.description":{value:"Envoyé lorsqu'un utilisateur s'inscrit.",description:"Welcome template description"},"template.orgInvite.name":{value:"Invitation à l'organisation",description:"Org invite template display name"},"template.orgInvite.description":{value:"Envoyé lorsqu'un utilisateur est invité à une organisation.",description:"Org invite template description"},"template.mention.name":{value:"Mention",description:"Mention template display name"},"template.mention.description":{value:"Envoyé lorsqu'un utilisateur est mentionné.",description:"Mention template description"},"channel.webhook.noUrl":{value:"Aucune URL de webhook configurée",description:"Error when webhook channel has no URL"}}})});e();f();u();export{A as frMessages,y as esMessages,v as enMessages};
|