@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.
Files changed (46) hide show
  1. package/dist/browser/channels/index.js +1 -314
  2. package/dist/browser/contracts/index.js +1 -356
  3. package/dist/browser/entities/index.js +1 -239
  4. package/dist/browser/i18n/catalogs/en.js +1 -68
  5. package/dist/browser/i18n/catalogs/es.js +1 -68
  6. package/dist/browser/i18n/catalogs/fr.js +1 -68
  7. package/dist/browser/i18n/catalogs/index.js +1 -169
  8. package/dist/browser/i18n/index.js +1 -229
  9. package/dist/browser/i18n/keys.js +1 -37
  10. package/dist/browser/i18n/locale.js +1 -29
  11. package/dist/browser/i18n/messages.js +1 -190
  12. package/dist/browser/index.js +7 -1126
  13. package/dist/browser/notifications.capability.js +1 -35
  14. package/dist/browser/notifications.feature.js +1 -50
  15. package/dist/browser/templates/index.js +7 -235
  16. package/dist/channels/index.js +1 -314
  17. package/dist/contracts/index.js +1 -356
  18. package/dist/entities/index.js +1 -239
  19. package/dist/i18n/catalogs/en.js +1 -68
  20. package/dist/i18n/catalogs/es.js +1 -68
  21. package/dist/i18n/catalogs/fr.js +1 -68
  22. package/dist/i18n/catalogs/index.js +1 -169
  23. package/dist/i18n/index.js +1 -229
  24. package/dist/i18n/keys.js +1 -37
  25. package/dist/i18n/locale.js +1 -29
  26. package/dist/i18n/messages.js +1 -190
  27. package/dist/index.js +7 -1126
  28. package/dist/node/channels/index.js +1 -314
  29. package/dist/node/contracts/index.js +1 -356
  30. package/dist/node/entities/index.js +1 -239
  31. package/dist/node/i18n/catalogs/en.js +1 -68
  32. package/dist/node/i18n/catalogs/es.js +1 -68
  33. package/dist/node/i18n/catalogs/fr.js +1 -68
  34. package/dist/node/i18n/catalogs/index.js +1 -169
  35. package/dist/node/i18n/index.js +1 -229
  36. package/dist/node/i18n/keys.js +1 -37
  37. package/dist/node/i18n/locale.js +1 -29
  38. package/dist/node/i18n/messages.js +1 -190
  39. package/dist/node/index.js +7 -1126
  40. package/dist/node/notifications.capability.js +1 -35
  41. package/dist/node/notifications.feature.js +1 -50
  42. package/dist/node/templates/index.js +7 -235
  43. package/dist/notifications.capability.js +1 -35
  44. package/dist/notifications.feature.js +1 -50
  45. package/dist/templates/index.js +7 -235
  46. package/package.json +8 -8
@@ -1,35 +1 @@
1
- var __defProp = Object.defineProperty;
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/notifications.capability.ts
18
- import {
19
- defineCapability,
20
- StabilityEnum
21
- } from "@contractspec/lib.contracts-spec";
22
- var NotificationsCapability = defineCapability({
23
- meta: {
24
- key: "notifications",
25
- version: "1.0.0",
26
- kind: "ui",
27
- stability: StabilityEnum.Experimental,
28
- description: "User notifications and alerts",
29
- owners: ["@platform.messaging"],
30
- tags: ["notifications", "messaging", "alerts"]
31
- }
32
- });
33
- export {
34
- NotificationsCapability
35
- };
1
+ var k=Object.defineProperty;var q=(g)=>g;function v(g,h){this[g]=q.bind(null,h)}var z=(g,h)=>{for(var j in h)k(g,j,{get:h[j],enumerable:!0,configurable:!0,set:v.bind(h,j)})};var A=(g,h)=>()=>(g&&(h=g(g=0)),h);import{defineCapability as w,StabilityEnum as x}from"@contractspec/lib.contracts-spec";var F=w({meta:{key:"notifications",version:"1.0.0",kind:"ui",stability:x.Experimental,description:"User notifications and alerts",owners:["@platform.messaging"],tags:["notifications","messaging","alerts"]}});export{F as NotificationsCapability};
@@ -1,50 +1 @@
1
- var __defProp = Object.defineProperty;
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/notifications.feature.ts
18
- import { defineFeature } from "@contractspec/lib.contracts-spec";
19
- var NotificationsFeature = defineFeature({
20
- meta: {
21
- key: "notifications",
22
- title: "Notifications",
23
- description: "Multi-channel notification delivery with preference management",
24
- domain: "platform",
25
- version: "1.0.0",
26
- owners: ["@platform.notifications"],
27
- tags: ["notifications", "email", "push", "in-app"],
28
- stability: "stable"
29
- },
30
- operations: [
31
- { key: "notifications.send", version: "1.0.0" },
32
- { key: "notifications.markRead", version: "1.0.0" },
33
- { key: "notifications.markAllRead", version: "1.0.0" },
34
- { key: "notifications.delete", version: "1.0.0" },
35
- { key: "notifications.list", version: "1.0.0" },
36
- { key: "notifications.preferences.update", version: "1.0.0" },
37
- { key: "notifications.preferences.get", version: "1.0.0" }
38
- ],
39
- events: [],
40
- presentations: [],
41
- opToPresentation: [],
42
- presentationsTargets: [],
43
- capabilities: {
44
- provides: [{ key: "notifications", version: "1.0.0" }],
45
- requires: [{ key: "identity", version: "1.0.0" }]
46
- }
47
- });
48
- export {
49
- NotificationsFeature
50
- };
1
+ var k=Object.defineProperty;var m=(g)=>g;function q(g,h){this[g]=m.bind(null,h)}var w=(g,h)=>{for(var j in h)k(g,j,{get:h[j],enumerable:!0,configurable:!0,set:q.bind(h,j)})};var x=(g,h)=>()=>(g&&(h=g(g=0)),h);import{defineFeature as v}from"@contractspec/lib.contracts-spec";var A=v({meta:{key:"notifications",title:"Notifications",description:"Multi-channel notification delivery with preference management",domain:"platform",version:"1.0.0",owners:["@platform.notifications"],tags:["notifications","email","push","in-app"],stability:"stable"},operations:[{key:"notifications.send",version:"1.0.0"},{key:"notifications.markRead",version:"1.0.0"},{key:"notifications.markAllRead",version:"1.0.0"},{key:"notifications.delete",version:"1.0.0"},{key:"notifications.list",version:"1.0.0"},{key:"notifications.preferences.update",version:"1.0.0"},{key:"notifications.preferences.get",version:"1.0.0"}],events:[],presentations:[],opToPresentation:[],presentationsTargets:[],capabilities:{provides:[{key:"notifications",version:"1.0.0"}],requires:[{key:"identity",version:"1.0.0"}]}});export{A as NotificationsFeature};
@@ -1,253 +1,25 @@
1
- var __defProp = Object.defineProperty;
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/templates/index.ts
18
- function defineTemplate(def) {
19
- return def;
20
- }
21
- function renderTemplate(content, variables) {
22
- return content.replace(/\{\{(\w+)\}\}/g, (match, key) => {
23
- const value = variables[key];
24
- if (value === undefined || value === null) {
25
- return match;
26
- }
27
- return String(value);
28
- });
29
- }
30
- function renderNotificationTemplate(template, channel, variables, locale) {
31
- const channelContent = (locale && template.localeChannels?.[locale]?.[channel]) ?? template.channels[channel];
32
- if (!channelContent) {
33
- return null;
34
- }
35
- const title = channelContent.title ? renderTemplate(channelContent.title, variables) : template.name;
36
- const body = renderTemplate(channelContent.body, variables);
37
- const actionUrl = channelContent.actionUrl ? renderTemplate(channelContent.actionUrl, variables) : undefined;
38
- const result = {
39
- title,
40
- body,
41
- actionUrl
42
- };
43
- if (channel === "email" && channelContent.subject) {
44
- result.email = {
45
- subject: renderTemplate(channelContent.subject, variables),
46
- html: body,
47
- text: stripHtml(body)
48
- };
49
- }
50
- return result;
51
- }
52
- function stripHtml(html) {
53
- return html.replace(/<[^>]*>/g, "").replace(/\s+/g, " ").trim();
54
- }
55
-
56
- class TemplateRegistry {
57
- templates = new Map;
58
- register(template) {
59
- this.templates.set(template.id, template);
60
- }
61
- get(templateId) {
62
- return this.templates.get(templateId);
63
- }
64
- getAll() {
65
- return Array.from(this.templates.values());
66
- }
67
- getByCategory(category) {
68
- return this.getAll().filter((t) => t.category === category);
69
- }
70
- }
71
- function createTemplateRegistry() {
72
- return new TemplateRegistry;
73
- }
74
- var WelcomeTemplate = defineTemplate({
75
- id: "welcome",
76
- name: "Welcome",
77
- description: "Sent when a user signs up.",
78
- category: "onboarding",
79
- variables: [
80
- { name: "name", type: "string", required: true },
81
- { name: "appName", type: "string", default: "ContractSpec" },
82
- { name: "actionUrl", type: "url" }
83
- ],
84
- defaultChannels: ["EMAIL", "IN_APP"],
85
- channels: {
86
- email: {
87
- subject: "Welcome to {{appName}}, {{name}}!",
88
- body: `
1
+ var L=Object.defineProperty;var N=(j)=>j;function P(j,q){this[j]=N.bind(null,q)}var S=(j,q)=>{for(var x in q)L(j,x,{get:q[x],enumerable:!0,configurable:!0,set:P.bind(q,x)})};var V=(j,q)=>()=>(j&&(q=j(j=0)),q);function E(j){return j}function B(j,q){return j.replace(/\{\{(\w+)\}\}/g,(x,A)=>{let w=q[A];if(w===void 0||w===null)return x;return String(w)})}function X(j,q,x,A){let w=(A&&j.localeChannels?.[A]?.[q])??j.channels[q];if(!w)return null;let J=w.title?B(w.title,x):j.name,D=B(w.body,x),K=w.actionUrl?B(w.actionUrl,x):void 0,F={title:J,body:D,actionUrl:K};if(q==="email"&&w.subject)F.email={subject:B(w.subject,x),html:D,text:Q(D)};return F}function Q(j){return j.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim()}class G{templates=new Map;register(j){this.templates.set(j.id,j)}get(j){return this.templates.get(j)}getAll(){return Array.from(this.templates.values())}getByCategory(j){return this.getAll().filter((q)=>q.category===j)}}function Y(){return new G}var Z=E({id:"welcome",name:"Welcome",description:"Sent when a user signs up.",category:"onboarding",variables:[{name:"name",type:"string",required:!0},{name:"appName",type:"string",default:"ContractSpec"},{name:"actionUrl",type:"url"}],defaultChannels:["EMAIL","IN_APP"],channels:{email:{subject:"Welcome to {{appName}}, {{name}}!",body:`
89
2
  <h1>Welcome, {{name}}!</h1>
90
3
  <p>Thanks for joining {{appName}}. We're excited to have you on board.</p>
91
4
  <p><a href="{{actionUrl}}">Get started now</a></p>
92
- `
93
- },
94
- inApp: {
95
- title: "Welcome to {{appName}}!",
96
- body: "Thanks for joining. Click to complete your profile.",
97
- actionUrl: "{{actionUrl}}"
98
- }
99
- },
100
- localeChannels: {
101
- fr: {
102
- email: {
103
- subject: "Bienvenue sur {{appName}}, {{name}} !",
104
- body: `
5
+ `},inApp:{title:"Welcome to {{appName}}!",body:"Thanks for joining. Click to complete your profile.",actionUrl:"{{actionUrl}}"}},localeChannels:{fr:{email:{subject:"Bienvenue sur {{appName}}, {{name}} !",body:`
105
6
  <h1>Bienvenue, {{name}} !</h1>
106
7
  <p>Merci d’avoir rejoint {{appName}}. Nous sommes ravis de vous compter parmi nous.</p>
107
8
  <p><a href="{{actionUrl}}">Commencer maintenant</a></p>
108
- `
109
- },
110
- inApp: {
111
- title: "Bienvenue sur {{appName}} !",
112
- body: "Merci de nous avoir rejoint. Cliquez pour compléter votre profil.",
113
- actionUrl: "{{actionUrl}}"
114
- }
115
- },
116
- es: {
117
- email: {
118
- subject: "¡Bienvenido a {{appName}}, {{name}}!",
119
- body: `
9
+ `},inApp:{title:"Bienvenue sur {{appName}} !",body:"Merci de nous avoir rejoint. Cliquez pour compléter votre profil.",actionUrl:"{{actionUrl}}"}},es:{email:{subject:"¡Bienvenido a {{appName}}, {{name}}!",body:`
120
10
  <h1>¡Bienvenido, {{name}}!</h1>
121
11
  <p>Gracias por unirte a {{appName}}. Estamos encantados de tenerte.</p>
122
12
  <p><a href="{{actionUrl}}">Comenzar ahora</a></p>
123
- `
124
- },
125
- inApp: {
126
- title: "¡Bienvenido a {{appName}}!",
127
- body: "Gracias por unirte. Haz clic para completar tu perfil.",
128
- actionUrl: "{{actionUrl}}"
129
- }
130
- }
131
- }
132
- });
133
- var OrgInviteTemplate = defineTemplate({
134
- id: "org-invite",
135
- name: "Organization Invitation",
136
- description: "Sent when a user is invited to an organization.",
137
- category: "organization",
138
- variables: [
139
- { name: "inviterName", type: "string", required: true },
140
- { name: "orgName", type: "string", required: true },
141
- { name: "role", type: "string", default: "member" },
142
- { name: "actionUrl", type: "url", required: true }
143
- ],
144
- defaultChannels: ["EMAIL"],
145
- channels: {
146
- email: {
147
- subject: "{{inviterName}} invited you to join {{orgName}}",
148
- body: `
13
+ `},inApp:{title:"¡Bienvenido a {{appName}}!",body:"Gracias por unirte. Haz clic para completar tu perfil.",actionUrl:"{{actionUrl}}"}}}}),_=E({id:"org-invite",name:"Organization Invitation",description:"Sent when a user is invited to an organization.",category:"organization",variables:[{name:"inviterName",type:"string",required:!0},{name:"orgName",type:"string",required:!0},{name:"role",type:"string",default:"member"},{name:"actionUrl",type:"url",required:!0}],defaultChannels:["EMAIL"],channels:{email:{subject:"{{inviterName}} invited you to join {{orgName}}",body:`
149
14
  <h1>You've been invited!</h1>
150
15
  <p>{{inviterName}} has invited you to join <strong>{{orgName}}</strong> as a {{role}}.</p>
151
16
  <p><a href="{{actionUrl}}">Accept invitation</a></p>
152
- `
153
- },
154
- inApp: {
155
- title: "Invitation to {{orgName}}",
156
- body: "{{inviterName}} invited you to join as {{role}}.",
157
- actionUrl: "{{actionUrl}}",
158
- actionText: "Accept"
159
- }
160
- },
161
- localeChannels: {
162
- fr: {
163
- email: {
164
- subject: "{{inviterName}} vous invite à rejoindre {{orgName}}",
165
- body: `
17
+ `},inApp:{title:"Invitation to {{orgName}}",body:"{{inviterName}} invited you to join as {{role}}.",actionUrl:"{{actionUrl}}",actionText:"Accept"}},localeChannels:{fr:{email:{subject:"{{inviterName}} vous invite à rejoindre {{orgName}}",body:`
166
18
  <h1>Vous êtes invité !</h1>
167
19
  <p>{{inviterName}} vous a invité à rejoindre <strong>{{orgName}}</strong> en tant que {{role}}.</p>
168
20
  <p><a href="{{actionUrl}}">Accepter l’invitation</a></p>
169
- `
170
- },
171
- inApp: {
172
- title: "Invitation à {{orgName}}",
173
- body: "{{inviterName}} vous a invité à rejoindre en tant que {{role}}.",
174
- actionUrl: "{{actionUrl}}",
175
- actionText: "Accepter"
176
- }
177
- },
178
- es: {
179
- email: {
180
- subject: "{{inviterName}} te invitó a unirte a {{orgName}}",
181
- body: `
21
+ `},inApp:{title:"Invitation à {{orgName}}",body:"{{inviterName}} vous a invité à rejoindre en tant que {{role}}.",actionUrl:"{{actionUrl}}",actionText:"Accepter"}},es:{email:{subject:"{{inviterName}} te invitó a unirte a {{orgName}}",body:`
182
22
  <h1>¡Has sido invitado!</h1>
183
23
  <p>{{inviterName}} te ha invitado a unirte a <strong>{{orgName}}</strong> como {{role}}.</p>
184
24
  <p><a href="{{actionUrl}}">Aceptar invitación</a></p>
185
- `
186
- },
187
- inApp: {
188
- title: "Invitación a {{orgName}}",
189
- body: "{{inviterName}} te invitó a unirte como {{role}}.",
190
- actionUrl: "{{actionUrl}}",
191
- actionText: "Aceptar"
192
- }
193
- }
194
- }
195
- });
196
- var MentionTemplate = defineTemplate({
197
- id: "mention",
198
- name: "Mention",
199
- description: "Sent when a user is mentioned.",
200
- category: "social",
201
- variables: [
202
- { name: "mentionerName", type: "string", required: true },
203
- { name: "context", type: "string", required: true },
204
- { name: "preview", type: "string" },
205
- { name: "actionUrl", type: "url", required: true }
206
- ],
207
- defaultChannels: ["IN_APP", "PUSH"],
208
- channels: {
209
- inApp: {
210
- title: "{{mentionerName}} mentioned you",
211
- body: 'In {{context}}: "{{preview}}"',
212
- actionUrl: "{{actionUrl}}"
213
- },
214
- push: {
215
- title: "{{mentionerName}} mentioned you",
216
- body: "{{preview}}"
217
- }
218
- },
219
- localeChannels: {
220
- fr: {
221
- inApp: {
222
- title: "{{mentionerName}} vous a mentionné",
223
- body: "Dans {{context}} : « {{preview}} »",
224
- actionUrl: "{{actionUrl}}"
225
- },
226
- push: {
227
- title: "{{mentionerName}} vous a mentionné",
228
- body: "{{preview}}"
229
- }
230
- },
231
- es: {
232
- inApp: {
233
- title: "{{mentionerName}} te mencionó",
234
- body: 'En {{context}}: "{{preview}}"',
235
- actionUrl: "{{actionUrl}}"
236
- },
237
- push: {
238
- title: "{{mentionerName}} te mencionó",
239
- body: "{{preview}}"
240
- }
241
- }
242
- }
243
- });
244
- export {
245
- renderTemplate,
246
- renderNotificationTemplate,
247
- defineTemplate,
248
- createTemplateRegistry,
249
- WelcomeTemplate,
250
- TemplateRegistry,
251
- OrgInviteTemplate,
252
- MentionTemplate
253
- };
25
+ `},inApp:{title:"Invitación a {{orgName}}",body:"{{inviterName}} te invitó a unirte como {{role}}.",actionUrl:"{{actionUrl}}",actionText:"Aceptar"}}}}),$=E({id:"mention",name:"Mention",description:"Sent when a user is mentioned.",category:"social",variables:[{name:"mentionerName",type:"string",required:!0},{name:"context",type:"string",required:!0},{name:"preview",type:"string"},{name:"actionUrl",type:"url",required:!0}],defaultChannels:["IN_APP","PUSH"],channels:{inApp:{title:"{{mentionerName}} mentioned you",body:'In {{context}}: "{{preview}}"',actionUrl:"{{actionUrl}}"},push:{title:"{{mentionerName}} mentioned you",body:"{{preview}}"}},localeChannels:{fr:{inApp:{title:"{{mentionerName}} vous a mentionné",body:"Dans {{context}} : « {{preview}} »",actionUrl:"{{actionUrl}}"},push:{title:"{{mentionerName}} vous a mentionné",body:"{{preview}}"}},es:{inApp:{title:"{{mentionerName}} te mencionó",body:'En {{context}}: "{{preview}}"',actionUrl:"{{actionUrl}}"},push:{title:"{{mentionerName}} te mencionó",body:"{{preview}}"}}}});export{B as renderTemplate,X as renderNotificationTemplate,E as defineTemplate,Y as createTemplateRegistry,Z as WelcomeTemplate,G as TemplateRegistry,_ as OrgInviteTemplate,$ as MentionTemplate};
@@ -1,36 +1,2 @@
1
1
  // @bun
2
- var __defProp = Object.defineProperty;
3
- var __returnValue = (v) => v;
4
- function __exportSetter(name, newValue) {
5
- this[name] = __returnValue.bind(null, newValue);
6
- }
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, {
10
- get: all[name],
11
- enumerable: true,
12
- configurable: true,
13
- set: __exportSetter.bind(all, name)
14
- });
15
- };
16
- var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
17
-
18
- // src/notifications.capability.ts
19
- import {
20
- defineCapability,
21
- StabilityEnum
22
- } from "@contractspec/lib.contracts-spec";
23
- var NotificationsCapability = defineCapability({
24
- meta: {
25
- key: "notifications",
26
- version: "1.0.0",
27
- kind: "ui",
28
- stability: StabilityEnum.Experimental,
29
- description: "User notifications and alerts",
30
- owners: ["@platform.messaging"],
31
- tags: ["notifications", "messaging", "alerts"]
32
- }
33
- });
34
- export {
35
- NotificationsCapability
36
- };
2
+ var k=Object.defineProperty;var q=(g)=>g;function v(g,h){this[g]=q.bind(null,h)}var z=(g,h)=>{for(var j in h)k(g,j,{get:h[j],enumerable:!0,configurable:!0,set:v.bind(h,j)})};var A=(g,h)=>()=>(g&&(h=g(g=0)),h);import{defineCapability as w,StabilityEnum as x}from"@contractspec/lib.contracts-spec";var F=w({meta:{key:"notifications",version:"1.0.0",kind:"ui",stability:x.Experimental,description:"User notifications and alerts",owners:["@platform.messaging"],tags:["notifications","messaging","alerts"]}});export{F as NotificationsCapability};
@@ -1,51 +1,2 @@
1
1
  // @bun
2
- var __defProp = Object.defineProperty;
3
- var __returnValue = (v) => v;
4
- function __exportSetter(name, newValue) {
5
- this[name] = __returnValue.bind(null, newValue);
6
- }
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, {
10
- get: all[name],
11
- enumerable: true,
12
- configurable: true,
13
- set: __exportSetter.bind(all, name)
14
- });
15
- };
16
- var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
17
-
18
- // src/notifications.feature.ts
19
- import { defineFeature } from "@contractspec/lib.contracts-spec";
20
- var NotificationsFeature = defineFeature({
21
- meta: {
22
- key: "notifications",
23
- title: "Notifications",
24
- description: "Multi-channel notification delivery with preference management",
25
- domain: "platform",
26
- version: "1.0.0",
27
- owners: ["@platform.notifications"],
28
- tags: ["notifications", "email", "push", "in-app"],
29
- stability: "stable"
30
- },
31
- operations: [
32
- { key: "notifications.send", version: "1.0.0" },
33
- { key: "notifications.markRead", version: "1.0.0" },
34
- { key: "notifications.markAllRead", version: "1.0.0" },
35
- { key: "notifications.delete", version: "1.0.0" },
36
- { key: "notifications.list", version: "1.0.0" },
37
- { key: "notifications.preferences.update", version: "1.0.0" },
38
- { key: "notifications.preferences.get", version: "1.0.0" }
39
- ],
40
- events: [],
41
- presentations: [],
42
- opToPresentation: [],
43
- presentationsTargets: [],
44
- capabilities: {
45
- provides: [{ key: "notifications", version: "1.0.0" }],
46
- requires: [{ key: "identity", version: "1.0.0" }]
47
- }
48
- });
49
- export {
50
- NotificationsFeature
51
- };
2
+ var k=Object.defineProperty;var m=(g)=>g;function q(g,h){this[g]=m.bind(null,h)}var w=(g,h)=>{for(var j in h)k(g,j,{get:h[j],enumerable:!0,configurable:!0,set:q.bind(h,j)})};var x=(g,h)=>()=>(g&&(h=g(g=0)),h);import{defineFeature as v}from"@contractspec/lib.contracts-spec";var A=v({meta:{key:"notifications",title:"Notifications",description:"Multi-channel notification delivery with preference management",domain:"platform",version:"1.0.0",owners:["@platform.notifications"],tags:["notifications","email","push","in-app"],stability:"stable"},operations:[{key:"notifications.send",version:"1.0.0"},{key:"notifications.markRead",version:"1.0.0"},{key:"notifications.markAllRead",version:"1.0.0"},{key:"notifications.delete",version:"1.0.0"},{key:"notifications.list",version:"1.0.0"},{key:"notifications.preferences.update",version:"1.0.0"},{key:"notifications.preferences.get",version:"1.0.0"}],events:[],presentations:[],opToPresentation:[],presentationsTargets:[],capabilities:{provides:[{key:"notifications",version:"1.0.0"}],requires:[{key:"identity",version:"1.0.0"}]}});export{A as NotificationsFeature};