itlab-internal-services 2.15.3 → 2.15.5
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/comment/comment.service.js +1 -1
- package/dist/modules/database/model-service/dbs/hub-tech-radar.db.d.ts +1 -1
- package/dist/modules/database/model-service/dbs/hub-tech-radar.db.js +1 -1
- package/dist/modules/database/model-service/model.service.d.ts +3 -3
- package/dist/modules/mail/mail.service.d.ts +5 -5
- package/dist/modules/mail/mail.service.js +9 -9
- package/dist/modules/notification/notification.service.js +2 -2
- package/dist/modules/pass/pass.service.js +2 -2
- package/dist/modules/search/search.service.js +2 -2
- package/package.json +3 -4
|
@@ -129,7 +129,7 @@ let CommentService = CommentService_1 = class CommentService {
|
|
|
129
129
|
this.logger.log(`All comments for ${this.resource} (${resourceId}) deleted`);
|
|
130
130
|
})
|
|
131
131
|
.catch(({ response }) => {
|
|
132
|
-
this.logger.error(`Couldn't delete all comments for ${this.resource} (${resourceId}): ${response === null || response === void 0 ? void 0 : response.data}`);
|
|
132
|
+
this.logger.error(`Couldn't delete all comments for ${this.resource} (${resourceId}): ${JSON.stringify(response === null || response === void 0 ? void 0 : response.data)}`);
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
};
|
|
@@ -68,7 +68,7 @@ __decorate([
|
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, mongoose_1.Prop)(),
|
|
70
70
|
__metadata("design:type", Array)
|
|
71
|
-
], EditionModel.prototype, "
|
|
71
|
+
], EditionModel.prototype, "techScoutIds", void 0);
|
|
72
72
|
EditionModel = __decorate([
|
|
73
73
|
(0, mongoose_1.Schema)({ collection: 'editions', toObject: transformEdition, toJSON: transformEdition })
|
|
74
74
|
], EditionModel);
|
|
@@ -5784,7 +5784,7 @@ export declare class ModelService {
|
|
|
5784
5784
|
_year: number;
|
|
5785
5785
|
_month: number;
|
|
5786
5786
|
draft: boolean;
|
|
5787
|
-
|
|
5787
|
+
techScoutIds: string[];
|
|
5788
5788
|
_id: unknown;
|
|
5789
5789
|
$assertPopulated<Paths = {}>(path: string | string[], values?: Partial<Paths>): Omit</*elided*/ any, keyof Paths> & Paths;
|
|
5790
5790
|
$clearModifiedPaths(): /*elided*/ any;
|
|
@@ -5930,7 +5930,7 @@ export declare class ModelService {
|
|
|
5930
5930
|
_year: number;
|
|
5931
5931
|
_month: number;
|
|
5932
5932
|
draft: boolean;
|
|
5933
|
-
|
|
5933
|
+
techScoutIds: string[];
|
|
5934
5934
|
_id: unknown;
|
|
5935
5935
|
$assertPopulated<Paths = {}>(path: string | string[], values?: Partial<Paths>): Omit</*elided*/ any, keyof Paths> & Paths;
|
|
5936
5936
|
$clearModifiedPaths(): /*elided*/ any;
|
|
@@ -6076,7 +6076,7 @@ export declare class ModelService {
|
|
|
6076
6076
|
_year: number;
|
|
6077
6077
|
_month: number;
|
|
6078
6078
|
draft: boolean;
|
|
6079
|
-
|
|
6079
|
+
techScoutIds: string[];
|
|
6080
6080
|
_id: unknown;
|
|
6081
6081
|
$assertPopulated<Paths = {}>(path: string | string[], values?: Partial<Paths>): Omit</*elided*/ any, keyof Paths> & Paths;
|
|
6082
6082
|
$clearModifiedPaths(): /*elided*/ any;
|
|
@@ -4,7 +4,7 @@ import { AuthLoginTokenMailDto, AuthPasswordResetMailDto, EventCancelMailDto, Ev
|
|
|
4
4
|
/**
|
|
5
5
|
* Constant list of supported mail types.
|
|
6
6
|
*/
|
|
7
|
-
declare const supportedMailTypes: readonly ["auth.login-token", "auth.password-reset", "event.invite", "event.cancel", "idea.submitted", "idea.status-update", "lunch-
|
|
7
|
+
declare const supportedMailTypes: readonly ["auth.login-token", "auth.password-reset", "event.invite", "event.cancel", "idea.submitted", "idea.status-update", "lunch-roulette.submitted", "lunch-roulette.cancel", "lunch-roulette.matched", "lunch-roulette.unmatched", "newsletter.subscribed", "newsletter.unsubscribed", "newsletter.issue", "notification.notification"];
|
|
8
8
|
/**
|
|
9
9
|
* Union type representing valid mail kinds.
|
|
10
10
|
*/
|
|
@@ -20,10 +20,10 @@ type MailTypeDtoMap = {
|
|
|
20
20
|
'event.cancel': EventCancelMailDto;
|
|
21
21
|
'idea.submitted': IdeaSubmittedMailDto;
|
|
22
22
|
'idea.status-update': IdeaStatusUpdateMailDto;
|
|
23
|
-
'lunch-
|
|
24
|
-
'lunch-
|
|
25
|
-
'lunch-
|
|
26
|
-
'lunch-
|
|
23
|
+
'lunch-roulette.submitted': LunchRouletteSubmittedMailDto;
|
|
24
|
+
'lunch-roulette.cancel': LunchRouletteCancelMailDto;
|
|
25
|
+
'lunch-roulette.matched': LunchRouletteMatchedMailDto;
|
|
26
|
+
'lunch-roulette.unmatched': LunchRouletteUnmatchedMailDto;
|
|
27
27
|
'newsletter.subscribed': NewsletterSubscribedMailDto;
|
|
28
28
|
'newsletter.unsubscribed': NewsletterUnsubscribedMailDto;
|
|
29
29
|
'newsletter.issue': NewsletterIssueMailDto;
|
|
@@ -28,10 +28,10 @@ const supportedMailTypes = [
|
|
|
28
28
|
'event.cancel',
|
|
29
29
|
'idea.submitted',
|
|
30
30
|
'idea.status-update',
|
|
31
|
-
'lunch-
|
|
32
|
-
'lunch-
|
|
33
|
-
'lunch-
|
|
34
|
-
'lunch-
|
|
31
|
+
'lunch-roulette.submitted',
|
|
32
|
+
'lunch-roulette.cancel',
|
|
33
|
+
'lunch-roulette.matched',
|
|
34
|
+
'lunch-roulette.unmatched',
|
|
35
35
|
'newsletter.subscribed',
|
|
36
36
|
'newsletter.unsubscribed',
|
|
37
37
|
'newsletter.issue',
|
|
@@ -89,7 +89,7 @@ let MailService = MailService_1 = class MailService {
|
|
|
89
89
|
this.logger.log(`Email sent successfully: ${type}`);
|
|
90
90
|
})
|
|
91
91
|
.catch(({ response }) => {
|
|
92
|
-
this.logger.error(`Failed to send email: ${type}: ${response.data}`);
|
|
92
|
+
this.logger.error(`Failed to send email: ${type}: ${JSON.stringify(response === null || response === void 0 ? void 0 : response.data)}`);
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
// ─────────────────────────────────────────────
|
|
@@ -151,28 +151,28 @@ let MailService = MailService_1 = class MailService {
|
|
|
151
151
|
* @param {LunchRouletteSubmittedMailDto} payload - DTO with recipient, location, and type.
|
|
152
152
|
*/
|
|
153
153
|
sendLunchRouletteSubmitted(payload) {
|
|
154
|
-
this.send('lunch-
|
|
154
|
+
this.send('lunch-roulette.submitted', payload);
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
157
|
* Sends a cancellation email for lunch roulette.
|
|
158
158
|
* @param {LunchRouletteCancelMailDto} payload - DTO containing the recipient.
|
|
159
159
|
*/
|
|
160
160
|
sendLunchRouletteCancel(payload) {
|
|
161
|
-
this.send('lunch-
|
|
161
|
+
this.send('lunch-roulette.cancel', payload);
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
164
|
* Sends a match notification to lunch roulette participants.
|
|
165
165
|
* @param {LunchRouletteMatchedMailDto} payload - DTO with recipients, message, and details URL.
|
|
166
166
|
*/
|
|
167
167
|
sendLunchRouletteMatched(payload) {
|
|
168
|
-
this.send('lunch-
|
|
168
|
+
this.send('lunch-roulette.matched', payload);
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
171
171
|
* Notifies a user that they were unmatched in lunch roulette.
|
|
172
172
|
* @param {LunchRouletteUnmatchedMailDto} payload - DTO with the unmatched recipient.
|
|
173
173
|
*/
|
|
174
174
|
sendLunchRouletteUnmatched(payload) {
|
|
175
|
-
this.send('lunch-
|
|
175
|
+
this.send('lunch-roulette.unmatched', payload);
|
|
176
176
|
}
|
|
177
177
|
// ─────────────────────────────────────────────
|
|
178
178
|
// Newsletter Emails
|
|
@@ -69,7 +69,7 @@ let NotificationService = NotificationService_1 = class NotificationService {
|
|
|
69
69
|
this.logger.log(`Successfully scheduled ${this.resource} (${resourceId})`);
|
|
70
70
|
})
|
|
71
71
|
.catch(({ response }) => {
|
|
72
|
-
this.logger.error(`Failed to schedule ${this.resource} (${resourceId})
|
|
72
|
+
this.logger.error(`Failed to schedule ${this.resource} (${resourceId}): ${JSON.stringify(response === null || response === void 0 ? void 0 : response.data)}`);
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
@@ -87,7 +87,7 @@ let NotificationService = NotificationService_1 = class NotificationService {
|
|
|
87
87
|
this.logger.log(`Successfully unscheduled ${this.resource} (${resourceId})`);
|
|
88
88
|
})
|
|
89
89
|
.catch(({ response }) => {
|
|
90
|
-
this.logger.error(`Failed to unschedule ${this.resource} (${resourceId})
|
|
90
|
+
this.logger.error(`Failed to unschedule ${this.resource} (${resourceId}): ${JSON.stringify(response === null || response === void 0 ? void 0 : response.data)}`);
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
};
|
|
@@ -96,7 +96,7 @@ let PassService = PassService_1 = class PassService {
|
|
|
96
96
|
this.logger.log(`Pass deleted for serial: ${serialNumber}`);
|
|
97
97
|
})
|
|
98
98
|
.catch(({ response }) => {
|
|
99
|
-
this.logger.error(`Error deleting pass with serial ${serialNumber}: ${response === null || response === void 0 ? void 0 : response.data}`);
|
|
99
|
+
this.logger.error(`Error deleting pass with serial ${serialNumber}: ${JSON.stringify(response === null || response === void 0 ? void 0 : response.data)}`);
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
// ─────────────────────────────────────────────
|
|
@@ -137,7 +137,7 @@ let PassService = PassService_1 = class PassService {
|
|
|
137
137
|
this.logger.log(`Pass deleted for ${type} member ID: ${memberId}`);
|
|
138
138
|
})
|
|
139
139
|
.catch(({ response }) => {
|
|
140
|
-
this.logger.error(`Error deleting ${type} pass for ${memberId}: ${response === null || response === void 0 ? void 0 : response.data}`);
|
|
140
|
+
this.logger.error(`Error deleting ${type} pass for ${memberId}: ${JSON.stringify(response === null || response === void 0 ? void 0 : response.data)}`);
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
@@ -77,7 +77,7 @@ let SearchService = SearchService_1 = class SearchService {
|
|
|
77
77
|
this.logger.log(`Indexed ${this.resource} (${resourceId}) successfully.`);
|
|
78
78
|
})
|
|
79
79
|
.catch(({ response }) => {
|
|
80
|
-
this.logger.error(`Failed to index ${this.resource} (${resourceId}): ${response === null || response === void 0 ? void 0 : response.data}`);
|
|
80
|
+
this.logger.error(`Failed to index ${this.resource} (${resourceId}): ${JSON.stringify(response === null || response === void 0 ? void 0 : response.data)}`);
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
@@ -94,7 +94,7 @@ let SearchService = SearchService_1 = class SearchService {
|
|
|
94
94
|
this.logger.log(`Removed ${this.resource} (${resourceId}) from index.`);
|
|
95
95
|
})
|
|
96
96
|
.catch(({ response }) => {
|
|
97
|
-
this.logger.error(`Failed to remove ${this.resource} (${resourceId}) from index: ${response === null || response === void 0 ? void 0 : response.data}`);
|
|
97
|
+
this.logger.error(`Failed to remove ${this.resource} (${resourceId}) from index: ${JSON.stringify(response === null || response === void 0 ? void 0 : response.data)}`);
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
// ─────────────────────────────────────────────
|
package/package.json
CHANGED
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
"name": "itlab-internal-services",
|
|
3
3
|
"author": {
|
|
4
4
|
"name": "Timo Scheuermann",
|
|
5
|
-
"email": "timo.scheuermann@sv-informatik.de"
|
|
6
|
-
"url": "https://timos.design"
|
|
5
|
+
"email": "timo.scheuermann@sv-informatik.de"
|
|
7
6
|
},
|
|
8
|
-
"version": "2.15.
|
|
7
|
+
"version": "2.15.5",
|
|
9
8
|
"type": "commonjs",
|
|
10
9
|
"files": [
|
|
11
10
|
"dist"
|
|
@@ -29,7 +28,7 @@
|
|
|
29
28
|
"@nestjs/jwt": "^11.0.0",
|
|
30
29
|
"axios": "^1.10.0",
|
|
31
30
|
"cache-manager": "^7.0.0",
|
|
32
|
-
"itlab-functions": "^1.0.
|
|
31
|
+
"itlab-functions": "^1.0.1"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
35
34
|
"@nestjs/common": "^11.1.3",
|