itlab-internal-services 2.16.19 → 2.16.20

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 (26) hide show
  1. package/dist/classes/document/commentable-document.class.d.ts +3 -199
  2. package/dist/classes/document/content-document.class.d.ts +3 -199
  3. package/dist/classes/document/likeable-document.class.d.ts +2 -205
  4. package/dist/classes/document/timestamps-document.class.d.ts +4 -200
  5. package/dist/classes/document/viewable-document.class.d.ts +2 -205
  6. package/dist/modules/services/providers/mail/dtos/{event-cancel-mail.dto.v1.d.ts → event-user-cancellation-mail.dto.v1.d.ts} +1 -1
  7. package/dist/modules/services/providers/mail/dtos/{event-invite-mail.dto.v1.d.ts → event-user-registration-mail.dto.v1.d.ts} +7 -3
  8. package/dist/modules/services/providers/mail/dtos/index.d.ts +4 -4
  9. package/dist/modules/services/providers/mail/dtos/index.js +4 -4
  10. package/dist/modules/services/providers/mail/dtos/{lunch-roulette-cancel-mail.dto.v1.d.ts → lunch-roulette-cancellation-mail.dto.v1.d.ts} +1 -1
  11. package/dist/modules/services/providers/mail/dtos/{lunch-roulette-submitted-mail.dto.v1.d.ts → lunch-roulette-registration-mail.dto.v1.d.ts} +1 -1
  12. package/dist/modules/services/providers/mail/mail-types.d.ts +6 -6
  13. package/dist/modules/services/providers/mail/mail-types.js +8 -8
  14. package/dist/modules/services/providers/mail/mail.service.d.ts +9 -9
  15. package/dist/modules/services/providers/mail/mail.service.js +12 -12
  16. package/dist/modules/services/providers/mail/models/index.d.ts +1 -0
  17. package/dist/modules/services/providers/mail/models/index.js +1 -0
  18. package/dist/modules/services/providers/mail/models/mail-attachment.model.d.ts +36 -0
  19. package/dist/modules/services/providers/mail/models/mail-attachment.model.js +38 -0
  20. package/dist/modules/services/providers/mail/models/mail-recipient.model.d.ts +2 -2
  21. package/dist/modules/services/providers/mail/models/mail-recipient.model.js +2 -2
  22. package/package.json +1 -1
  23. /package/dist/modules/services/providers/mail/dtos/{event-cancel-mail.dto.v1.js → event-user-cancellation-mail.dto.v1.js} +0 -0
  24. /package/dist/modules/services/providers/mail/dtos/{event-invite-mail.dto.v1.js → event-user-registration-mail.dto.v1.js} +0 -0
  25. /package/dist/modules/services/providers/mail/dtos/{lunch-roulette-cancel-mail.dto.v1.js → lunch-roulette-cancellation-mail.dto.v1.js} +0 -0
  26. /package/dist/modules/services/providers/mail/dtos/{lunch-roulette-submitted-mail.dto.v1.js → lunch-roulette-registration-mail.dto.v1.js} +0 -0
@@ -77,17 +77,17 @@ let MailService = class MailService extends base_http_service_1.BaseHttpService
77
77
  // ─────────────────────────────────────────────
78
78
  /**
79
79
  * Sends an event invitation email.
80
- * @param {EventInviteMailDtoV1} payload - DTO containing event details and recipient.
80
+ * @param {EventUserRegistrationMailDtoV1} payload - DTO containing event details and recipient.
81
81
  */
82
- sendEventInviteMailV1(payload) {
83
- this.sendMail('v1.event.invite', payload);
82
+ sendEventUserRegistrationMailV1(payload) {
83
+ this.sendMail('v1.event.user-registration', payload);
84
84
  }
85
85
  /**
86
86
  * Sends a notification about an event cancellation.
87
- * @param {EventCancelMailDtoV1} payload - DTO containing event title, time, and links.
87
+ * @param {EventUserCancellationMailDtoV1} payload - DTO containing event title, time, and links.
88
88
  */
89
- sendEventCancelMailV1(payload) {
90
- this.sendMail('v1.event.cancel', payload);
89
+ sendEventUserCancellationMailV1(payload) {
90
+ this.sendMail('v1.event.user-cancellation', payload);
91
91
  }
92
92
  // ─────────────────────────────────────────────
93
93
  // Idea Submission Emails
@@ -111,17 +111,17 @@ let MailService = class MailService extends base_http_service_1.BaseHttpService
111
111
  // ─────────────────────────────────────────────
112
112
  /**
113
113
  * Sends confirmation of lunch roulette participation.
114
- * @param {LunchRouletteSubmittedMailDtoV1} payload - DTO with recipient, location, and type.
114
+ * @param {LunchRouletteRegistrationMailDtoV1} payload - DTO with recipient, location, and type.
115
115
  */
116
- sendLunchRouletteSubmittedMailV1(payload) {
117
- this.sendMail('v1.lunch-roulette.submitted', payload);
116
+ sendLunchRouletteRegistrationMailV1(payload) {
117
+ this.sendMail('v1.lunch-roulette.registration', payload);
118
118
  }
119
119
  /**
120
120
  * Sends a cancellation email for lunch roulette.
121
- * @param {LunchRouletteCancelMailDtoV1} payload - DTO containing the recipient.
121
+ * @param {LunchRouletteCancellationMailDtoV1} payload - DTO containing the recipient.
122
122
  */
123
- sendLunchRouletteCancelMailV1(payload) {
124
- this.sendMail('v1.lunch-roulette.cancel', payload);
123
+ sendLunchRouletteCancellationMailV1(payload) {
124
+ this.sendMail('v1.lunch-roulette.cancellation', payload);
125
125
  }
126
126
  /**
127
127
  * Sends a match notification to lunch roulette participants.
@@ -1 +1,2 @@
1
+ export * from './mail-attachment.model';
1
2
  export * from './mail-recipient.model';
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./mail-attachment.model"), exports);
17
18
  __exportStar(require("./mail-recipient.model"), exports);
@@ -0,0 +1,36 @@
1
+ import { WithImplicitCoercion } from 'buffer';
2
+ type MailAttachmentData = {
3
+ /**
4
+ * The name of the attachment
5
+ */
6
+ name: string;
7
+ /**
8
+ * The content type of the attachment
9
+ */
10
+ contentType: string;
11
+ /**
12
+ * The content of the attachment
13
+ */
14
+ content: WithImplicitCoercion<ArrayLike<number> | string>;
15
+ };
16
+ /**
17
+ * MailAttachment class
18
+ * @class MailAttachment
19
+ * @description Represents an attachment, which can be sent with an email
20
+ */
21
+ export declare class MailAttachment {
22
+ constructor(data: MailAttachmentData);
23
+ /**
24
+ * The name of the attachment
25
+ */
26
+ name: string;
27
+ /**
28
+ * The content type of the attachment
29
+ */
30
+ contentType: string;
31
+ /**
32
+ * The content encoded in base64 of the attachment
33
+ */
34
+ contentInBase64: string;
35
+ }
36
+ export {};
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MailAttachment = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ /**
15
+ * MailAttachment class
16
+ * @class MailAttachment
17
+ * @description Represents an attachment, which can be sent with an email
18
+ */
19
+ class MailAttachment {
20
+ constructor(data) {
21
+ this.name = data.name;
22
+ this.contentType = data.contentType;
23
+ this.contentInBase64 = Buffer.from(data.content).toString('base64');
24
+ }
25
+ }
26
+ exports.MailAttachment = MailAttachment;
27
+ __decorate([
28
+ (0, swagger_1.ApiProperty)({ description: 'Name des Anhangs' }),
29
+ __metadata("design:type", String)
30
+ ], MailAttachment.prototype, "name", void 0);
31
+ __decorate([
32
+ (0, swagger_1.ApiProperty)({ description: 'Content-Type des Anhangs' }),
33
+ __metadata("design:type", String)
34
+ ], MailAttachment.prototype, "contentType", void 0);
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({ description: 'Inhalt des Anhangs (in base64 encoded)' }),
37
+ __metadata("design:type", String)
38
+ ], MailAttachment.prototype, "contentInBase64", void 0);
@@ -1,7 +1,7 @@
1
1
  import { User } from '../../../../../models';
2
2
  /**
3
- * Recipient class
4
- * @class Recipient
3
+ * MailRecipient class
4
+ * @class MailRecipient
5
5
  * @description Represents a recipient, which may be an email address or a username
6
6
  */
7
7
  export declare class MailRecipient {
@@ -14,8 +14,8 @@ const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const itlab_functions_1 = require("itlab-functions");
16
16
  /**
17
- * Recipient class
18
- * @class Recipient
17
+ * MailRecipient class
18
+ * @class MailRecipient
19
19
  * @description Represents a recipient, which may be an email address or a username
20
20
  */
21
21
  class MailRecipient {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Timo Scheuermann",
5
5
  "email": "timo.scheuermann@sv-informatik.de"
6
6
  },
7
- "version": "2.16.19",
7
+ "version": "2.16.20",
8
8
  "type": "commonjs",
9
9
  "files": [
10
10
  "dist"