@backstage/plugin-scaffolder-backend-module-notifications 0.1.12 → 0.1.13
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-backend-module-notifications
|
|
2
2
|
|
|
3
|
+
## 0.1.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/plugin-scaffolder-node@0.11.0
|
|
9
|
+
- @backstage/plugin-notifications-common@0.1.0
|
|
10
|
+
- @backstage/plugin-notifications-node@0.2.18
|
|
11
|
+
- @backstage/backend-plugin-api@1.4.2
|
|
12
|
+
|
|
13
|
+
## 0.1.13-next.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @backstage/plugin-scaffolder-node@0.11.0-next.0
|
|
19
|
+
- @backstage/plugin-notifications-node@0.2.18-next.0
|
|
20
|
+
- @backstage/backend-plugin-api@1.4.2-next.0
|
|
21
|
+
- @backstage/plugin-notifications-common@0.0.10
|
|
22
|
+
|
|
3
23
|
## 0.1.12
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendNotification.cjs.js","sources":["../../src/actions/sendNotification.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n NotificationRecipients,\n NotificationService,\n} from '@backstage/plugin-notifications-node';\nimport { NotificationPayload } from '@backstage/plugin-notifications-common';\nimport { createTemplateAction } from '@backstage/plugin-scaffolder-node';\nimport { examples } from './sendNotification.examples';\n\n/**\n * @public\n */\nexport function createSendNotificationAction(options: {\n notifications: NotificationService;\n}) {\n const { notifications } = options;\n return createTemplateAction({\n id: 'notification:send',\n description: 'Sends a notification using NotificationService',\n examples,\n schema: {\n input: {\n recipients: z =>\n z\n .enum(['broadcast', 'entity'])\n .describe(\n 'The recipient of the notification, either broadcast or entity. If using entity, also entityRef must be provided',\n ),\n entityRefs: z =>\n z\n .array(z.string())\n .optional()\n .describe(\n 'The entity references to send the notification to, required if using recipient of entity',\n ),\n title: z => z.string().describe('Notification title'),\n info: z => z.string().optional().describe('Notification description'),\n link: z => z.string().optional().describe('Notification link'),\n severity: z =>\n z\n .enum(['low', 'normal', 'high', 'critical'])\n .optional()\n .describe('Notification severity'),\n scope: z => z.string().optional().describe('Notification scope'),\n topic: z => z.string().optional().describe('Notification topic'),\n optional: z =>\n z\n .boolean()\n .optional()\n .describe(\n 'Do not fail the action if the notification sending fails',\n ),\n },\n },\n async handler(ctx) {\n const {\n recipients,\n entityRefs,\n title,\n info,\n link,\n severity,\n topic,\n scope,\n optional,\n } = ctx.input;\n\n ctx.logger.info(`Sending notification to ${recipients}`);\n if (recipients === 'entity' && !entityRefs) {\n if (optional !== true) {\n throw new Error('Entity references must be provided');\n }\n return;\n }\n\n const notificationRecipients: NotificationRecipients =\n recipients === 'broadcast'\n ? { type: 'broadcast' }\n : { type: 'entity', entityRef: entityRefs! };\n const payload: NotificationPayload = {\n title,\n description: info,\n link,\n severity,\n topic,\n scope,\n };\n\n try {\n await ctx.checkpoint({\n key: `send.notification.${payload.title}`,\n fn: async () => {\n await notifications.send({\n recipients: notificationRecipients,\n payload,\n });\n },\n });\n } catch (e) {\n ctx.logger.error(`Failed to send notification: ${e}`);\n if (optional !== true) {\n throw e;\n }\n }\n },\n });\n}\n"],"names":["createTemplateAction","examples"],"mappings":";;;;;AA0BO,SAAS,6BAA6B,
|
|
1
|
+
{"version":3,"file":"sendNotification.cjs.js","sources":["../../src/actions/sendNotification.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n NotificationRecipients,\n NotificationService,\n} from '@backstage/plugin-notifications-node';\nimport { NotificationPayload } from '@backstage/plugin-notifications-common';\nimport { createTemplateAction } from '@backstage/plugin-scaffolder-node';\nimport { examples } from './sendNotification.examples';\n\n/**\n * @public\n */\nexport function createSendNotificationAction(options: {\n notifications: NotificationService;\n}) {\n const { notifications } = options;\n return createTemplateAction({\n id: 'notification:send',\n description: 'Sends a notification using NotificationService',\n examples,\n schema: {\n input: {\n recipients: z =>\n z\n .enum(['broadcast', 'entity'])\n .describe(\n 'The recipient of the notification, either broadcast or entity. If using entity, also entityRef must be provided',\n ),\n entityRefs: z =>\n z\n .array(z.string())\n .optional()\n .describe(\n 'The entity references to send the notification to, required if using recipient of entity',\n ),\n title: z => z.string().describe('Notification title'),\n info: z => z.string().optional().describe('Notification description'),\n link: z => z.string().optional().describe('Notification link'),\n severity: z =>\n z\n .enum(['low', 'normal', 'high', 'critical'])\n .optional()\n .describe('Notification severity'),\n scope: z => z.string().optional().describe('Notification scope'),\n topic: z => z.string().optional().describe('Notification topic'),\n optional: z =>\n z\n .boolean()\n .optional()\n .describe(\n 'Do not fail the action if the notification sending fails',\n ),\n },\n },\n async handler(ctx) {\n const {\n recipients,\n entityRefs,\n title,\n info,\n link,\n severity,\n topic,\n scope,\n optional,\n } = ctx.input;\n\n ctx.logger.info(`Sending notification to ${recipients}`);\n if (recipients === 'entity' && !entityRefs) {\n if (optional !== true) {\n throw new Error('Entity references must be provided');\n }\n return;\n }\n\n const notificationRecipients: NotificationRecipients =\n recipients === 'broadcast'\n ? { type: 'broadcast' }\n : { type: 'entity', entityRef: entityRefs! };\n const payload: NotificationPayload = {\n title,\n description: info,\n link,\n severity,\n topic,\n scope,\n };\n\n try {\n await ctx.checkpoint({\n key: `send.notification.${payload.title}`,\n fn: async () => {\n await notifications.send({\n recipients: notificationRecipients,\n payload,\n });\n },\n });\n } catch (e) {\n ctx.logger.error(`Failed to send notification: ${e}`);\n if (optional !== true) {\n throw e;\n }\n }\n },\n });\n}\n"],"names":["createTemplateAction","examples"],"mappings":";;;;;AA0BO,SAAS,6BAA6B,OAAA,EAE1C;AACD,EAAA,MAAM,EAAE,eAAc,GAAI,OAAA;AAC1B,EAAA,OAAOA,yCAAA,CAAqB;AAAA,IAC1B,EAAA,EAAI,mBAAA;AAAA,IACJ,WAAA,EAAa,gDAAA;AAAA,cACbC,kCAAA;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,KAAA,EAAO;AAAA,QACL,UAAA,EAAY,OACV,CAAA,CACG,IAAA,CAAK,CAAC,WAAA,EAAa,QAAQ,CAAC,CAAA,CAC5B,QAAA;AAAA,UACC;AAAA,SACF;AAAA,QACJ,UAAA,EAAY,OACV,CAAA,CACG,KAAA,CAAM,EAAE,MAAA,EAAQ,CAAA,CAChB,QAAA,EAAS,CACT,QAAA;AAAA,UACC;AAAA,SACF;AAAA,QACJ,OAAO,CAAA,CAAA,KAAK,CAAA,CAAE,MAAA,EAAO,CAAE,SAAS,oBAAoB,CAAA;AAAA,QACpD,IAAA,EAAM,OAAK,CAAA,CAAE,MAAA,GAAS,QAAA,EAAS,CAAE,SAAS,0BAA0B,CAAA;AAAA,QACpE,IAAA,EAAM,OAAK,CAAA,CAAE,MAAA,GAAS,QAAA,EAAS,CAAE,SAAS,mBAAmB,CAAA;AAAA,QAC7D,QAAA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A;AAAA,OACF;AAEA,MAAA,IAAI;AACF,QAAA,MAAM,IAAI,UAAA,CAAW;AAAA,UACnB,GAAA,EAAK,CAAA,kBAAA,EAAqB,OAAA,CAAQ,KAAK,CAAA,CAAA;AAAA,UACvC,IAAI,YAAY;AACd,YAAA,MAAM,cAAc,IAAA,CAAK;AAAA,cACvB,UAAA,EAAY,sBAAA;AAAA,cACZ;AAAA,aACD,CAAA;AAAA,UACH;AAAA,SACD,CAAA;AAAA,MACH,SAAS,CAAA,EAAG;AACV,QAAA,GAAA,CAAI,MAAA,CAAO,KAAA,CAAM,CAAA,6BAAA,EAAgC,CAAC,CAAA,CAAE,CAAA;AACpD,QAAA,IAAI,aAAa,IAAA,EAAM;AACrB,UAAA,MAAM,CAAA;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,GACD,CAAA;AACH;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendNotification.examples.cjs.js","sources":["../../src/actions/sendNotification.examples.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TemplateExample } from '@backstage/plugin-scaffolder-node';\nimport yaml from 'yaml';\n\nexport const examples: TemplateExample[] = [\n {\n description: 'Sends a notification with minimal options',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Test notification',\n },\n },\n ],\n }),\n },\n {\n description: 'Sends a notification with entity recipients and link',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'entity',\n entityRefs: ['entity:component:1'],\n title: 'Security Update',\n info: 'A security update has been applied. Please review.',\n link: 'https://example.com/security/update',\n severity: 'high',\n scope: 'internal',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with entity recipients and optional flag',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'entity',\n entityRefs: ['entity:component:1'],\n title: 'Weekly Update',\n info: 'Here is your weekly update.',\n severity: 'low',\n optional: true,\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with broadcast recipients and custom scope',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'New Release Available',\n info: 'Version 2.0.0 is now available. Upgrade now!',\n severity: 'normal',\n scope: 'public',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with entity recipients and custom severity',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'entity',\n entityRefs: ['entity:component:1'],\n title: 'Critical Bug Found',\n info: 'A critical bug has been identified. Immediate action required.',\n severity: 'critical',\n scope: 'internal',\n },\n },\n ],\n }),\n },\n {\n description: 'Sends a notification with broadcast recipients and no link',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Server Maintenance Scheduled',\n info: 'Server maintenance will occur tonight at 11 PM.',\n severity: 'normal',\n scope: 'internal',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with broadcast recipients and optional flag',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'New Feature Deployment',\n info: 'New features have been deployed. Explore them now!',\n severity: 'normal',\n optional: true,\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with broadcast recipients and no description',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Holiday Office Closure',\n severity: 'low',\n scope: 'internal',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with broadcast recipients and no severity',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Reminder: Weekly Meeting Tomorrow',\n info: \"Don't forget, the weekly meeting is scheduled for tomorrow.\",\n scope: 'internal',\n },\n },\n ],\n }),\n },\n {\n description: 'Sends a notification with broadcast recipients and no scope',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Important Announcement',\n info: 'Please read the latest announcement regarding the upcoming changes.',\n severity: 'high',\n },\n },\n ],\n }),\n },\n {\n description: 'Sends a notification with optional parameters',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Broadcast Notification',\n info: 'This is a broadcast notification',\n severity: 'low',\n optional: true,\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with entity recipients and optional set to false',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification to Entity',\n input: {\n recipients: 'entity',\n entityRefs: ['entity:service1'],\n title: 'Entity Notification',\n info: 'This is a notification for entity service1',\n severity: 'normal',\n optional: false,\n },\n },\n ],\n }),\n },\n];\n"],"names":["yaml"],"mappings":";;;;;;;;AAmBO,MAAM,QAA8B,GAAA;AAAA,EACzC;AAAA,IACE,WAAa,EAAA,2CAAA;AAAA,IACb,OAAA,EAASA,sBAAK,SAAU,CAAA;AAAA,MACtB,KAAO,EAAA;AAAA,QACL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,EAAA;AAAA,QACL;AAAA,UACE,EAAI,EAAA,kBAAA;AAAA,UACJ,MAAQ,EAAA,mBAAA;AAAA,UACR,IAAM,EAAA,mBAAA;AAAA,UACN,KAAO,EAAA;AAAA,YACL,UAAY,EAAA,WAAA;AAAA,YACZ,KAAO,EAAA,wBAAA;AAAA,YACP,IAAM,EAAA,qEAAA;AAAA,YACN,QAAU,EAAA;AAAA;AACZ;AACF;AACF,KACD;AAAA,GACH;AAAA,EACA;AAAA,IACE,WAAa,EAAA,+CAAA;AAAA,IACb,OAAA,EAASA,sBAAK,SAAU,CAAA;AAAA,MACtB,KAAO,EAAA;AAAA,QACL;AAAA,UACE,EAAI,EAAA,kBAAA;AAAA,UACJ,MAAQ,EAAA,mBAAA;AAAA,UACR,IAAM,EAAA,mBAAA;AAAA,UACN,KAAO,EAAA;AAAA,YACL,UAAY,EAAA,WAAA;AAAA,YACZ,KAAO,EAAA,wBAAA;AAAA,YACP,IAAM,EAAA,kCAAA;AAAA,YACN,QAAU,EAAA,KAAA;AAAA,YACV,QAAU,EAAA;AAAA;AACZ;AACF;AACF,KACD;AAAA,GACH;AAAA,EACA;AAAA,IACE,WACE,EAAA,uEAAA;AAAA,IACF,OAAA,EAASA,sBAAK,SAAU,CAAA;AAAA,MACtB,KAAO,EAAA;AAAA,QACL;AAAA,UACE,EAAI,EAAA,kBAAA;AAAA,UACJ,MAAQ,EAAA,mBAAA;AAAA,UACR,IAAM,EAAA,6BAAA;AAAA,UACN,KAAO,EAAA;AAAA,YACL,UAAY,EAAA,QAAA;AAAA,YACZ,UAAA,EAAY,CAAC,iBAAiB,CAAA;AAAA,YAC9B,KAAO,EAAA,qBAAA;AAAA,YACP,IAAM,EAAA,4CAAA;AAAA,YACN,QAAU,EAAA,QAAA;AAAA,YACV,QAAU,EAAA;AAAA;AACZ;AACF;AACF,KACD;AAAA;AAEL;;;;"}
|
|
1
|
+
{"version":3,"file":"sendNotification.examples.cjs.js","sources":["../../src/actions/sendNotification.examples.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TemplateExample } from '@backstage/plugin-scaffolder-node';\nimport yaml from 'yaml';\n\nexport const examples: TemplateExample[] = [\n {\n description: 'Sends a notification with minimal options',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Test notification',\n },\n },\n ],\n }),\n },\n {\n description: 'Sends a notification with entity recipients and link',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'entity',\n entityRefs: ['entity:component:1'],\n title: 'Security Update',\n info: 'A security update has been applied. Please review.',\n link: 'https://example.com/security/update',\n severity: 'high',\n scope: 'internal',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with entity recipients and optional flag',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'entity',\n entityRefs: ['entity:component:1'],\n title: 'Weekly Update',\n info: 'Here is your weekly update.',\n severity: 'low',\n optional: true,\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with broadcast recipients and custom scope',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'New Release Available',\n info: 'Version 2.0.0 is now available. Upgrade now!',\n severity: 'normal',\n scope: 'public',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with entity recipients and custom severity',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'entity',\n entityRefs: ['entity:component:1'],\n title: 'Critical Bug Found',\n info: 'A critical bug has been identified. Immediate action required.',\n severity: 'critical',\n scope: 'internal',\n },\n },\n ],\n }),\n },\n {\n description: 'Sends a notification with broadcast recipients and no link',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Server Maintenance Scheduled',\n info: 'Server maintenance will occur tonight at 11 PM.',\n severity: 'normal',\n scope: 'internal',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with broadcast recipients and optional flag',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'New Feature Deployment',\n info: 'New features have been deployed. Explore them now!',\n severity: 'normal',\n optional: true,\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with broadcast recipients and no description',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Holiday Office Closure',\n severity: 'low',\n scope: 'internal',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with broadcast recipients and no severity',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Reminder: Weekly Meeting Tomorrow',\n info: \"Don't forget, the weekly meeting is scheduled for tomorrow.\",\n scope: 'internal',\n },\n },\n ],\n }),\n },\n {\n description: 'Sends a notification with broadcast recipients and no scope',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Important Announcement',\n info: 'Please read the latest announcement regarding the upcoming changes.',\n severity: 'high',\n },\n },\n ],\n }),\n },\n {\n description: 'Sends a notification with optional parameters',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification',\n input: {\n recipients: 'broadcast',\n title: 'Broadcast Notification',\n info: 'This is a broadcast notification',\n severity: 'low',\n optional: true,\n },\n },\n ],\n }),\n },\n {\n description:\n 'Sends a notification with entity recipients and optional set to false',\n example: yaml.stringify({\n steps: [\n {\n id: 'sendNotification',\n action: 'notification:send',\n name: 'Send Notification to Entity',\n input: {\n recipients: 'entity',\n entityRefs: ['entity:service1'],\n title: 'Entity Notification',\n info: 'This is a notification for entity service1',\n severity: 'normal',\n optional: false,\n },\n },\n ],\n }),\n },\n];\n"],"names":["yaml"],"mappings":";;;;;;;;AAmBO,MAAM,QAAA,GAA8B;AAAA,EACzC;AAAA,IACE,WAAA,EAAa,2CAAA;AAAA,IACb,OAAA,EAASA,sBAAK,SAAA,CAAU;AAAA,MACtB,KAAA,EAAO;AAAA,QACL;AAAA,UACE,EAAA,EAAI,kBAAA;AAAA,UACJ,MAAA,EAAQ,mBAAA;AAAA,UACR,IAAA,EAAM,mBAAA;AAAA,UACN,KAAA,EAAO;AAAA,YACL,UAAA,EAAY,WAAA;AAAA,YACZ,KAAA,EAAO;AAAA;AACT;AACF;AACF,KACD;AAAA,GACH;AAAA,EACA;AAAA,IACE,WAAA,EAAa,sDAAA;AAAA,IACb,OAAA,EAASA,sBAAK,SAAA,CAAU;AAAA,MACtB,KAAA,EAAO;AAAA,QACL;AAAA,UACE,EAAA,EAAI,kBAAA;AAAA,UACJ,MAAA,EAAQ,mBAAA;AAAA,UACR,IAAA,EAAM,mBAAA;AAAA,UACN,KAAA,EAAO;AAAA,YACL,UAAA,EAAY,QAAA;AAAA,YACZ,UAAA,EAAY,CAAC,oBAAoB,CAAA;AAAA,YACjC,KAAA,EAAO,iBAAA;AAAA,YACP,IAAA,EAAM,oDAAA;AAAA,YACN,IAAA,EAAM,qCAAA;AAAA,YACN,QAAA,E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A,EAAU,KAAA;AAAA,YACV,QAAA,EAAU;AAAA;AACZ;AACF;AACF,KACD;AAAA,GACH;AAAA,EACA;AAAA,IACE,WAAA,EACE,uEAAA;AAAA,IACF,OAAA,EAASA,sBAAK,SAAA,CAAU;AAAA,MACtB,KAAA,EAAO;AAAA,QACL;AAAA,UACE,EAAA,EAAI,kBAAA;AAAA,UACJ,MAAA,EAAQ,mBAAA;AAAA,UACR,IAAA,EAAM,6BAAA;AAAA,UACN,KAAA,EAAO;AAAA,YACL,UAAA,EAAY,QAAA;AAAA,YACZ,UAAA,EAAY,CAAC,iBAAiB,CAAA;AAAA,YAC9B,KAAA,EAAO,qBAAA;AAAA,YACP,IAAA,EAAM,4CAAA;AAAA,YACN,QAAA,EAAU,QAAA;AAAA,YACV,QAAA,EAAU;AAAA;AACZ;AACF;AACF,KACD;AAAA;AAEL;;;;"}
|
package/dist/module.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.cjs.js","sources":["../src/module.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createBackendModule } from '@backstage/backend-plugin-api';\nimport { notificationService } from '@backstage/plugin-notifications-node';\nimport { scaffolderActionsExtensionPoint } from '@backstage/plugin-scaffolder-node/alpha';\nimport { createSendNotificationAction } from './actions';\n\n/**\n * @public\n * The Notifications module for the Scaffolder Backend\n */\nexport const scaffolderModuleNotifications = createBackendModule({\n pluginId: 'scaffolder',\n moduleId: 'notifications',\n register(reg) {\n reg.registerInit({\n deps: {\n notifications: notificationService,\n scaffolder: scaffolderActionsExtensionPoint,\n },\n async init({ notifications, scaffolder }) {\n scaffolder.addActions(createSendNotificationAction({ notifications }));\n },\n });\n },\n});\n"],"names":["createBackendModule","notificationService","scaffolderActionsExtensionPoint","createSendNotificationAction"],"mappings":";;;;;;;AAwBO,MAAM,gCAAgCA,
|
|
1
|
+
{"version":3,"file":"module.cjs.js","sources":["../src/module.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createBackendModule } from '@backstage/backend-plugin-api';\nimport { notificationService } from '@backstage/plugin-notifications-node';\nimport { scaffolderActionsExtensionPoint } from '@backstage/plugin-scaffolder-node/alpha';\nimport { createSendNotificationAction } from './actions';\n\n/**\n * @public\n * The Notifications module for the Scaffolder Backend\n */\nexport const scaffolderModuleNotifications = createBackendModule({\n pluginId: 'scaffolder',\n moduleId: 'notifications',\n register(reg) {\n reg.registerInit({\n deps: {\n notifications: notificationService,\n scaffolder: scaffolderActionsExtensionPoint,\n },\n async init({ notifications, scaffolder }) {\n scaffolder.addActions(createSendNotificationAction({ notifications }));\n },\n });\n },\n});\n"],"names":["createBackendModule","notificationService","scaffolderActionsExtensionPoint","createSendNotificationAction"],"mappings":";;;;;;;AAwBO,MAAM,gCAAgCA,oCAAA,CAAoB;AAAA,EAC/D,QAAA,EAAU,YAAA;AAAA,EACV,QAAA,EAAU,eAAA;AAAA,EACV,SAAS,GAAA,EAAK;AACZ,IAAA,GAAA,CAAI,YAAA,CAAa;AAAA,MACf,IAAA,EAAM;AAAA,QACJ,aAAA,EAAeC,2CAAA;AAAA,QACf,UAAA,EAAYC;AAAA,OACd;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,aAAA,EAAe,YAAW,EAAG;AACxC,QAAA,UAAA,CAAW,UAAA,CAAWC,6CAAA,CAA6B,EAAE,aAAA,EAAe,CAAC,CAAA;AAAA,MACvE;AAAA,KACD,CAAA;AAAA,EACH;AACF,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-backend-module-notifications",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "The notifications backend module for the scaffolder plugin.",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin-module",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"test": "backstage-cli package test"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@backstage/backend-plugin-api": "^1.4.
|
|
40
|
-
"@backstage/plugin-notifications-common": "^0.0
|
|
41
|
-
"@backstage/plugin-notifications-node": "^0.2.
|
|
42
|
-
"@backstage/plugin-scaffolder-node": "^0.
|
|
39
|
+
"@backstage/backend-plugin-api": "^1.4.2",
|
|
40
|
+
"@backstage/plugin-notifications-common": "^0.1.0",
|
|
41
|
+
"@backstage/plugin-notifications-node": "^0.2.18",
|
|
42
|
+
"@backstage/plugin-scaffolder-node": "^0.11.0",
|
|
43
43
|
"yaml": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@backstage/cli": "^0.
|
|
47
|
-
"@backstage/plugin-scaffolder-node-test-utils": "^0.3.
|
|
46
|
+
"@backstage/cli": "^0.34.0",
|
|
47
|
+
"@backstage/plugin-scaffolder-node-test-utils": "^0.3.2"
|
|
48
48
|
},
|
|
49
49
|
"typesVersions": {
|
|
50
50
|
"*": {
|