itlab-internal-services 2.16.27 → 2.16.28
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/modules/services/providers/files/crop-image-options.dto.v1.type.d.ts +1 -0
- package/dist/modules/services/providers/mail/dtos/{auth-login-token-mail.dto.v1.d.ts → account-login-token-mail.dto.v1.d.ts} +2 -6
- package/dist/modules/services/providers/mail/dtos/{auth-password-reset-mail.dto.v1.d.ts → account-password-reset-mail.dto.v1.d.ts} +2 -6
- package/dist/modules/services/providers/mail/dtos/event-user-cancellation-mail.dto.v1.d.ts +2 -7
- package/dist/modules/services/providers/mail/dtos/event-user-registration-mail.dto.v1.d.ts +2 -7
- package/dist/modules/services/providers/mail/dtos/idea-status-updated-mail.dto.v1.d.ts +2 -3
- package/dist/modules/services/providers/mail/dtos/idea-submitted-mail.dto.v1.d.ts +2 -3
- package/dist/modules/services/providers/mail/dtos/index.d.ts +2 -2
- package/dist/modules/services/providers/mail/dtos/index.js +2 -2
- package/dist/modules/services/providers/mail/dtos/lunch-roulette-cancellation-mail.dto.v1.d.ts +2 -4
- package/dist/modules/services/providers/mail/dtos/lunch-roulette-matched-mail.dto.v1.d.ts +2 -6
- package/dist/modules/services/providers/mail/dtos/lunch-roulette-registration-mail.dto.v1.d.ts +2 -3
- package/dist/modules/services/providers/mail/dtos/lunch-roulette-unmatched-mail.dto.v1.d.ts +2 -4
- package/dist/modules/services/providers/mail/dtos/newsletter-issue-mail.dto.v1.d.ts +2 -3
- package/dist/modules/services/providers/mail/dtos/newsletter-subscribed-mail.dto.v1.d.ts +2 -4
- package/dist/modules/services/providers/mail/dtos/newsletter-unsubscribed-mail.dto.v1.d.ts +2 -4
- package/dist/modules/services/providers/mail/dtos/notification-mail.dto.v1.d.ts +2 -3
- package/dist/modules/services/providers/mail/mail-types.d.ts +10 -0
- package/dist/modules/services/providers/notifications/dtos/schedule-notification.dto.v1.d.ts +8 -0
- package/package.json +1 -1
- /package/dist/modules/services/providers/mail/dtos/{auth-login-token-mail.dto.v1.js → account-login-token-mail.dto.v1.js} +0 -0
- /package/dist/modules/services/providers/mail/dtos/{auth-password-reset-mail.dto.v1.js → account-password-reset-mail.dto.v1.js} +0 -0
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleRecipientMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload for sending a login token email to a user.
|
|
4
4
|
*/
|
|
5
|
-
export type AccountLoginTokenMailDtoV1 = {
|
|
6
|
-
/**
|
|
7
|
-
* Recipient information for the email.
|
|
8
|
-
*/
|
|
9
|
-
recipient: MailRecipient;
|
|
5
|
+
export type AccountLoginTokenMailDtoV1 = SingleRecipientMail & {
|
|
10
6
|
/**
|
|
11
7
|
* Unique one-time login token sent to the user.
|
|
12
8
|
* @example "001704"
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleRecipientMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload for sending a password reset email to a user.
|
|
4
4
|
*/
|
|
5
|
-
export type AccountPasswordResetMailDtoV1 = {
|
|
6
|
-
/**
|
|
7
|
-
* Recipient information for the email.
|
|
8
|
-
*/
|
|
9
|
-
recipient: MailRecipient;
|
|
5
|
+
export type AccountPasswordResetMailDtoV1 = SingleRecipientMail & {
|
|
10
6
|
/**
|
|
11
7
|
* Secure password reset URL the user can click to reset their password.
|
|
12
8
|
* @example "http://cms.example.com"
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleRecipientMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload for sending a cancellation notification for an event.
|
|
4
4
|
*/
|
|
5
|
-
export type EventUserCancellationMailDtoV1 = {
|
|
6
|
-
recipient: MailRecipient;
|
|
7
|
-
/**
|
|
8
|
-
* Optional attachments
|
|
9
|
-
*/
|
|
10
|
-
attachments?: MailAttachment[];
|
|
5
|
+
export type EventUserCancellationMailDtoV1 = SingleRecipientMail & {
|
|
11
6
|
/**
|
|
12
7
|
* Mode of participation (e.g., vor Ort, Online).
|
|
13
8
|
*/
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleRecipientMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload for sending an registration to an event.
|
|
4
4
|
*/
|
|
5
|
-
export type EventUserRegistrationMailDtoV1 = {
|
|
6
|
-
recipient: MailRecipient;
|
|
7
|
-
/**
|
|
8
|
-
* Optional attachments
|
|
9
|
-
*/
|
|
10
|
-
attachments?: MailAttachment[];
|
|
5
|
+
export type EventUserRegistrationMailDtoV1 = SingleRecipientMail & {
|
|
11
6
|
/**
|
|
12
7
|
* Mode of participation (e.g., vor Ort, Online).
|
|
13
8
|
*/
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleRecipientMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload for notifying users of an idea status update.
|
|
4
4
|
*/
|
|
5
|
-
export type IdeaStatusUpdateMailDtoV1 = {
|
|
6
|
-
recipient: MailRecipient;
|
|
5
|
+
export type IdeaStatusUpdateMailDtoV1 = SingleRecipientMail & {
|
|
7
6
|
/**
|
|
8
7
|
* Previous status of the idea.
|
|
9
8
|
* @example "In Bearbeitung"
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleRecipientMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload for notifying a user that an idea was submitted.
|
|
4
4
|
*/
|
|
5
|
-
export type IdeaSubmittedMailDtoV1 = {
|
|
6
|
-
recipient: MailRecipient;
|
|
5
|
+
export type IdeaSubmittedMailDtoV1 = SingleRecipientMail & {
|
|
7
6
|
/**
|
|
8
7
|
* CMS URL linking to the submitted idea for internal management.
|
|
9
8
|
*/
|
|
@@ -10,5 +10,5 @@ export * from './event-user-registration-mail.dto.v1';
|
|
|
10
10
|
export * from './notification-mail.dto.v1';
|
|
11
11
|
export * from './idea-status-updated-mail.dto.v1';
|
|
12
12
|
export * from './idea-submitted-mail.dto.v1';
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
13
|
+
export * from './account-login-token-mail.dto.v1';
|
|
14
|
+
export * from './account-password-reset-mail.dto.v1';
|
|
@@ -26,5 +26,5 @@ __exportStar(require("./event-user-registration-mail.dto.v1"), exports);
|
|
|
26
26
|
__exportStar(require("./notification-mail.dto.v1"), exports);
|
|
27
27
|
__exportStar(require("./idea-status-updated-mail.dto.v1"), exports);
|
|
28
28
|
__exportStar(require("./idea-submitted-mail.dto.v1"), exports);
|
|
29
|
-
__exportStar(require("./
|
|
30
|
-
__exportStar(require("./
|
|
29
|
+
__exportStar(require("./account-login-token-mail.dto.v1"), exports);
|
|
30
|
+
__exportStar(require("./account-password-reset-mail.dto.v1"), exports);
|
package/dist/modules/services/providers/mail/dtos/lunch-roulette-cancellation-mail.dto.v1.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleRecipientMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload for cancelling a user's lunch roulette participation.
|
|
4
4
|
*/
|
|
5
|
-
export type LunchRouletteCancellationMailDtoV1 = {
|
|
6
|
-
recipient: MailRecipient;
|
|
7
|
-
};
|
|
5
|
+
export type LunchRouletteCancellationMailDtoV1 = SingleRecipientMail & {};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MultiRecipientsMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload for notifying users that they have been matched in lunch roulette.
|
|
4
4
|
*/
|
|
5
|
-
export type LunchRouletteMatchedMailDtoV1 = {
|
|
6
|
-
/**
|
|
7
|
-
* Array of matched participants who will receive the message.
|
|
8
|
-
*/
|
|
9
|
-
recipients: MailRecipient[];
|
|
5
|
+
export type LunchRouletteMatchedMailDtoV1 = MultiRecipientsMail & {
|
|
10
6
|
/**
|
|
11
7
|
* Personalized message sent to the matched pair.
|
|
12
8
|
* @example "Have a great coffee chat!"
|
package/dist/modules/services/providers/mail/dtos/lunch-roulette-registration-mail.dto.v1.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleRecipientMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload confirming a user's lunch roulette registration.
|
|
4
4
|
*/
|
|
5
|
-
export type LunchRouletteRegistrationMailDtoV1 = {
|
|
6
|
-
recipient: MailRecipient;
|
|
5
|
+
export type LunchRouletteRegistrationMailDtoV1 = SingleRecipientMail & {
|
|
7
6
|
/**
|
|
8
7
|
* Location selected for participation.
|
|
9
8
|
* @example "Mannheim"
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleRecipientMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload for notifying a user they were not matched in lunch roulette.
|
|
4
4
|
*/
|
|
5
|
-
export type LunchRouletteUnmatchedMailDtoV1 = {
|
|
6
|
-
recipient: MailRecipient;
|
|
7
|
-
};
|
|
5
|
+
export type LunchRouletteUnmatchedMailDtoV1 = SingleRecipientMail & {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { LabHtmlPopulatedContent } from 'itlab-functions';
|
|
2
|
-
import {
|
|
2
|
+
import { MultiRecipientsMail } from '../mail-types';
|
|
3
3
|
/**
|
|
4
4
|
* Payload for sending a newsletter issue to recipients.
|
|
5
5
|
*/
|
|
6
|
-
export type NewsletterIssueMailDtoV1 = {
|
|
7
|
-
recipients: MailRecipient[];
|
|
6
|
+
export type NewsletterIssueMailDtoV1 = MultiRecipientsMail & {
|
|
8
7
|
/**
|
|
9
8
|
* Title of the newsletter issue.
|
|
10
9
|
* @example "Newsletter #174"
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleRecipientMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload confirming newsletter subscription.
|
|
4
4
|
*/
|
|
5
|
-
export type NewsletterSubscribedMailDtoV1 = {
|
|
6
|
-
recipient: MailRecipient;
|
|
7
|
-
};
|
|
5
|
+
export type NewsletterSubscribedMailDtoV1 = SingleRecipientMail & {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleRecipientMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload confirming newsletter unsubscription.
|
|
4
4
|
*/
|
|
5
|
-
export type NewsletterUnsubscribedMailDtoV1 = {
|
|
6
|
-
recipient: MailRecipient;
|
|
7
|
-
};
|
|
5
|
+
export type NewsletterUnsubscribedMailDtoV1 = SingleRecipientMail & {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MultiRecipientsMail } from '../mail-types';
|
|
2
2
|
/**
|
|
3
3
|
* Payload for sending a general notification email.
|
|
4
4
|
*/
|
|
5
|
-
export type NotificationMailDtoV1 = {
|
|
6
|
-
recipients: MailRecipient[];
|
|
5
|
+
export type NotificationMailDtoV1 = MultiRecipientsMail & {
|
|
7
6
|
/**
|
|
8
7
|
* Subject line of the notification email.
|
|
9
8
|
* @example "Neuer Blogpost"
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { AccountLoginTokenMailDtoV1, AccountPasswordResetMailDtoV1, EventUserCancellationMailDtoV1, EventUserRegistrationMailDtoV1, IdeaStatusUpdateMailDtoV1, IdeaSubmittedMailDtoV1, LunchRouletteCancellationMailDtoV1, LunchRouletteMatchedMailDtoV1, LunchRouletteRegistrationMailDtoV1, LunchRouletteUnmatchedMailDtoV1, NewsletterIssueMailDtoV1, NewsletterSubscribedMailDtoV1, NewsletterUnsubscribedMailDtoV1, NotificationMailDtoV1 } from './dtos';
|
|
2
|
+
import { MailAttachment, MailRecipient } from './models';
|
|
2
3
|
/**
|
|
3
4
|
* Constant list of supported mail types.
|
|
4
5
|
*/
|
|
5
6
|
declare const supportedMailTypes: readonly ["v1.account.login-token", "v1.account.password-reset", "v1.event.user-registration", "v1.event.user-cancellation", "v1.idea.submitted", "v1.idea.status-update", "v1.lunch-roulette.registration", "v1.lunch-roulette.cancellation", "v1.lunch-roulette.matched", "v1.lunch-roulette.unmatched", "v1.newsletter.subscribed", "v1.newsletter.unsubscribed", "v1.newsletter.issue", "v1.notification.notification"];
|
|
7
|
+
type BaseMail = {
|
|
8
|
+
attachments?: MailAttachment[];
|
|
9
|
+
};
|
|
10
|
+
export type SingleRecipientMail = BaseMail & {
|
|
11
|
+
recipient: MailRecipient;
|
|
12
|
+
};
|
|
13
|
+
export type MultiRecipientsMail = BaseMail & {
|
|
14
|
+
recipients: MailRecipient[];
|
|
15
|
+
};
|
|
6
16
|
/**
|
|
7
17
|
* Union type representing valid mail kinds.
|
|
8
18
|
*/
|
package/dist/modules/services/providers/notifications/dtos/schedule-notification.dto.v1.d.ts
CHANGED
|
@@ -66,4 +66,12 @@ export type ScheduleNotificationDtoV1 = {
|
|
|
66
66
|
*/
|
|
67
67
|
silenced?: boolean;
|
|
68
68
|
recipientIds?: string[];
|
|
69
|
+
/**
|
|
70
|
+
* Optional: Callback Url to be called if the notification is sent
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @default undefined
|
|
74
|
+
* @example https://services.svi-itlab.com/
|
|
75
|
+
*/
|
|
76
|
+
callbackUrl?: string;
|
|
69
77
|
};
|
package/package.json
CHANGED
|
File without changes
|