itlab-internal-services 2.16.8 → 2.16.10
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/classes/document/likeable-document.class.d.ts +2 -2
- package/dist/classes/document/likeable-document.class.js +6 -3
- package/dist/classes/document/viewable-document.class.d.ts +2 -2
- package/dist/classes/document/viewable-document.class.js +6 -3
- package/dist/classes/entity-map.class.d.ts +1 -1
- package/dist/classes/entity-map.class.js +2 -0
- package/dist/classes/fetch-options/base-options.class.d.ts +9 -0
- package/dist/classes/fetch-options/comments-options.class.d.ts +3 -0
- package/dist/classes/fetch-options/comments-options.class.js +1 -1
- package/dist/classes/fetch-options/content-options.class.d.ts +3 -0
- package/dist/classes/fetch-options/content-options.class.js +1 -1
- package/dist/classes/fetch-options/drafted-options.class.d.ts +5 -1
- package/dist/classes/fetch-options/drafted-options.class.js +3 -2
- package/dist/classes/fetch-options/liked-by-options.class.d.ts +4 -0
- package/dist/classes/fetch-options/liked-by-options.class.js +3 -2
- package/dist/classes/fetch-options/timestamps-options.class.d.ts +4 -1
- package/dist/classes/fetch-options/timestamps-options.class.js +1 -1
- package/dist/classes/fetch-options/viewed-by-options.class.d.ts +7 -2
- package/dist/classes/fetch-options/viewed-by-options.class.js +15 -4
- package/dist/hub-resource.enum.d.ts +10 -10
- package/dist/hub-resource.enum.js +16 -16
- package/dist/modules/comments/comments.controller.js +1 -1
- package/dist/modules/comments/comments.service.d.ts +5 -5
- package/dist/modules/comments/comments.service.js +21 -13
- package/dist/modules/like/like.service.d.ts +1 -1
- package/dist/modules/like/like.service.js +7 -7
- package/dist/modules/merge/merge-module-options.interface.d.ts +2 -2
- package/dist/modules/merge/merge.controller.d.ts +3 -3
- package/dist/modules/merge/merge.service.interface.d.ts +1 -1
- package/dist/modules/services/base-http.service.d.ts +44 -40
- package/dist/modules/services/base-http.service.js +72 -47
- package/dist/modules/services/base-urls.d.ts +22 -19
- package/dist/modules/services/base-urls.js +38 -19
- package/dist/modules/services/providers/accounts/accounts.service.d.ts +99 -0
- package/dist/modules/services/providers/accounts/accounts.service.js +154 -0
- package/dist/modules/services/providers/accounts/fetch-account-options.dto.v1.type.d.ts +29 -0
- package/dist/modules/services/providers/accounts/index.d.ts +2 -0
- package/dist/modules/services/providers/accounts/index.js +18 -0
- package/dist/modules/services/providers/books/books.service.d.ts +49 -0
- package/dist/modules/services/providers/books/books.service.js +79 -0
- package/dist/modules/services/providers/books/fetch-book-options.dto.v1.type.d.ts +27 -0
- package/dist/modules/services/providers/books/index.d.ts +2 -0
- package/dist/modules/services/providers/{notification → books}/index.js +2 -2
- package/dist/modules/services/providers/changelog/changelog.service.d.ts +62 -0
- package/dist/modules/services/providers/changelog/changelog.service.js +79 -0
- package/dist/modules/services/providers/changelog/fetch-change-options.dto.v1.type.d.ts +15 -0
- package/dist/modules/services/providers/changelog/index.d.ts +2 -0
- package/dist/modules/services/providers/changelog/index.js +18 -0
- package/dist/modules/services/providers/conflicts/conflicts.service.d.ts +59 -0
- package/dist/modules/services/providers/conflicts/conflicts.service.js +79 -0
- package/dist/modules/services/providers/conflicts/fetch-conflict-options.dto.v1.type.d.ts +18 -0
- package/dist/modules/services/providers/conflicts/index.d.ts +2 -0
- package/dist/modules/services/providers/conflicts/index.js +18 -0
- package/dist/modules/services/providers/content/content-return-types.d.ts +3 -2
- package/dist/modules/services/providers/content/content-return-types.js +8 -2
- package/dist/modules/services/providers/content/content.service.d.ts +49 -7
- package/dist/modules/services/providers/content/content.service.js +61 -19
- package/dist/modules/services/providers/content/fetch-content-options.dto.v1.type.d.ts +15 -0
- package/dist/modules/services/providers/content/index.d.ts +1 -0
- package/dist/modules/services/providers/content/index.js +1 -0
- package/dist/modules/services/providers/demo-hive/demo-hive.service.d.ts +49 -0
- package/dist/modules/services/providers/demo-hive/demo-hive.service.js +79 -0
- package/dist/modules/services/providers/demo-hive/fetch-demo-options.dto.v1.type.d.ts +16 -0
- package/dist/modules/services/providers/demo-hive/index.d.ts +2 -0
- package/dist/modules/services/providers/demo-hive/index.js +18 -0
- package/dist/modules/services/providers/events/events.service.d.ts +49 -0
- package/dist/modules/services/providers/events/events.service.js +79 -0
- package/dist/modules/services/providers/events/fetch-event-options.dto.v1.type.d.ts +27 -0
- package/dist/modules/services/providers/events/index.d.ts +2 -0
- package/dist/modules/services/providers/events/index.js +18 -0
- package/dist/modules/services/providers/files/crop-image-options.dto.v1.type.d.ts +13 -0
- package/dist/modules/services/providers/files/fetch-file-options.dto.v1.type.d.ts +21 -0
- package/dist/modules/services/providers/files/fetch-folder-options.dto.v1.type.d.ts +15 -0
- package/dist/modules/services/providers/files/files.service.d.ts +106 -0
- package/dist/modules/services/providers/files/files.service.js +146 -0
- package/dist/modules/services/providers/files/index.d.ts +4 -0
- package/dist/modules/services/providers/files/index.js +20 -0
- package/dist/modules/services/providers/hackschool/fetch-course-options.dto.v1.type.d.ts +15 -0
- package/dist/modules/services/providers/hackschool/fetch-doc-options.dto.v1.type.d.ts +17 -0
- package/dist/modules/services/providers/hackschool/fetch-thread-options.dto.v1.type.d.ts +18 -0
- package/dist/modules/services/providers/hackschool/hackschool.service.d.ts +93 -0
- package/dist/modules/services/providers/hackschool/hackschool.service.js +135 -0
- package/dist/modules/services/providers/hackschool/index.d.ts +2 -0
- package/dist/modules/services/providers/hackschool/index.js +18 -0
- package/dist/modules/services/providers/ideas.service.js +1 -1
- package/dist/modules/services/providers/index.d.ts +15 -12
- package/dist/modules/services/providers/index.js +17 -12
- package/dist/modules/services/providers/lunch-roulette.service.js +1 -1
- package/dist/modules/services/providers/mail/dtos/{auth-login-token-mail.dto.d.ts → auth-login-token-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/{auth-password-reset-mail.dto.d.ts → auth-password-reset-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/{event-cancel-mail.dto.d.ts → event-cancel-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/{event-invite-mail.dto.d.ts → event-invite-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/{idea-status-updated-mail.dto.d.ts → idea-status-updated-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/{idea-submitted-mail.dto.d.ts → idea-submitted-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/idea-submitted-mail.dto.v1.js +2 -0
- package/dist/modules/services/providers/mail/dtos/index.d.ts +14 -14
- package/dist/modules/services/providers/mail/dtos/index.js +14 -14
- package/dist/modules/services/providers/mail/dtos/{lunch-roulette-cancel-mail.dto.d.ts → lunch-roulette-cancel-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/lunch-roulette-cancel-mail.dto.v1.js +2 -0
- package/dist/modules/services/providers/mail/dtos/{lunch-roulette-matched-mail.dto.d.ts → lunch-roulette-matched-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/lunch-roulette-matched-mail.dto.v1.js +2 -0
- package/dist/modules/services/providers/mail/dtos/{lunch-roulette-submitted-mail.dto.d.ts → lunch-roulette-submitted-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/lunch-roulette-submitted-mail.dto.v1.js +2 -0
- package/dist/modules/services/providers/mail/dtos/{lunch-roulette-unmatched-mail.dto.d.ts → lunch-roulette-unmatched-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/lunch-roulette-unmatched-mail.dto.v1.js +2 -0
- package/dist/modules/services/providers/mail/dtos/{newsletter-issue-mail.dto.d.ts → newsletter-issue-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/newsletter-issue-mail.dto.v1.js +2 -0
- package/dist/modules/services/providers/mail/dtos/{newsletter-subscribed-mail.dto.d.ts → newsletter-subscribed-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/newsletter-subscribed-mail.dto.v1.js +2 -0
- package/dist/modules/services/providers/mail/dtos/{newsletter-unsubscribed-mail.dto.d.ts → newsletter-unsubscribed-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/newsletter-unsubscribed-mail.dto.v1.js +2 -0
- package/dist/modules/services/providers/mail/dtos/{notification-mail.dto.d.ts → notification-mail.dto.v1.d.ts} +1 -1
- package/dist/modules/services/providers/mail/dtos/notification-mail.dto.v1.js +2 -0
- package/dist/modules/services/providers/mail/mail-types.d.ts +17 -16
- package/dist/modules/services/providers/mail/mail-types.js +31 -14
- package/dist/modules/services/providers/mail/mail.service.d.ts +30 -31
- package/dist/modules/services/providers/mail/mail.service.js +49 -50
- package/dist/modules/services/providers/mail/models/mail-recipient.model.d.ts +2 -0
- package/dist/modules/services/providers/mail/models/mail-recipient.model.js +3 -0
- package/dist/modules/services/providers/newsletter/fetch-issue-options.dto.v1.type.d.ts +16 -0
- package/dist/modules/services/providers/newsletter/fetch-issue-options.dto.v1.type.js +2 -0
- package/dist/modules/services/providers/newsletter/index.d.ts +2 -0
- package/dist/modules/services/providers/newsletter/index.js +18 -0
- package/dist/modules/services/providers/newsletter/newsletter.service.d.ts +49 -0
- package/dist/modules/services/providers/newsletter/newsletter.service.js +79 -0
- package/dist/modules/services/providers/newsroom/fetch-news-options.dto.v1.type.d.ts +20 -0
- package/dist/modules/services/providers/newsroom/fetch-news-options.dto.v1.type.js +2 -0
- package/dist/modules/services/providers/newsroom/index.d.ts +2 -0
- package/dist/modules/services/providers/newsroom/index.js +18 -0
- package/dist/modules/services/providers/newsroom/newsroom.service.d.ts +49 -0
- package/dist/modules/services/providers/newsroom/newsroom.service.js +79 -0
- package/dist/modules/services/providers/notifications/dtos/index.d.ts +1 -0
- package/dist/modules/services/providers/{notification → notifications}/dtos/index.js +1 -1
- package/dist/modules/services/providers/{notification/dtos/schedule-notification.dto.d.ts → notifications/dtos/schedule-notification.dto.v1.d.ts} +2 -10
- package/dist/modules/services/providers/notifications/dtos/schedule-notification.dto.v1.js +2 -0
- package/dist/modules/services/providers/notifications/fetch-notification-options.dto.v1.type.d.ts +19 -0
- package/dist/modules/services/providers/notifications/fetch-notification-options.dto.v1.type.js +2 -0
- package/dist/modules/services/providers/notifications/index.d.ts +3 -0
- package/dist/modules/services/providers/notifications/index.js +19 -0
- package/dist/modules/services/providers/notifications/notifications.service-definition.d.ts +1 -0
- package/dist/modules/services/providers/notifications/notifications.service-definition.js +4 -0
- package/dist/modules/services/providers/{notification/notification.service.d.ts → notifications/notifications.service.d.ts} +41 -5
- package/dist/modules/services/providers/{notification/notification.service.js → notifications/notifications.service.js} +52 -26
- package/dist/modules/services/providers/pass/dtos/{create-guild-member-pass.dto.d.ts → create-guild-member-pass.dto.v1.d.ts} +2 -2
- package/dist/modules/services/providers/pass/dtos/create-guild-member-pass.dto.v1.js +2 -0
- package/dist/modules/services/providers/pass/dtos/{create-team-member-pass.dto.d.ts → create-team-member-pass.dto.v1.d.ts} +2 -2
- package/dist/modules/services/providers/pass/dtos/create-team-member-pass.dto.v1.js +2 -0
- package/dist/modules/services/providers/pass/dtos/index.d.ts +2 -2
- package/dist/modules/services/providers/pass/dtos/index.js +2 -2
- package/dist/modules/services/providers/pass/pass-types.d.ts +3 -3
- package/dist/modules/services/providers/pass/pass.service.d.ts +14 -14
- package/dist/modules/services/providers/pass/pass.service.js +28 -28
- package/dist/modules/services/providers/podcasts/fetch-episode-options.dto.v1.type.d.ts +19 -0
- package/dist/modules/services/providers/podcasts/fetch-episode-options.dto.v1.type.js +2 -0
- package/dist/modules/services/providers/podcasts/index.d.ts +2 -0
- package/dist/modules/services/providers/podcasts/index.js +18 -0
- package/dist/modules/services/providers/podcasts/podcasts.service.d.ts +49 -0
- package/dist/modules/services/providers/podcasts/podcasts.service.js +79 -0
- package/dist/modules/services/providers/quick-links/fetch-link-options.dto.v1.type.d.ts +14 -0
- package/dist/modules/services/providers/quick-links/fetch-link-options.dto.v1.type.js +2 -0
- package/dist/modules/services/providers/quick-links/index.d.ts +2 -0
- package/dist/modules/services/providers/quick-links/index.js +18 -0
- package/dist/modules/services/providers/quick-links/quick-links.service.d.ts +61 -0
- package/dist/modules/services/providers/quick-links/quick-links.service.js +79 -0
- package/dist/modules/services/providers/search/dtos/{index-search-document.dto.d.ts → index-document.dto.v1.d.ts} +2 -2
- package/dist/modules/services/providers/search/dtos/index-document.dto.v1.js +2 -0
- package/dist/modules/services/providers/search/dtos/index.d.ts +1 -1
- package/dist/modules/services/providers/search/dtos/index.js +1 -1
- package/dist/modules/services/providers/search/search.service.d.ts +6 -6
- package/dist/modules/services/providers/search/search.service.js +14 -17
- package/dist/modules/services/providers/team/fetch-member-options.dto.v1.type.d.ts +11 -0
- package/dist/modules/services/providers/team/fetch-member-options.dto.v1.type.js +2 -0
- package/dist/modules/services/providers/team/index.d.ts +2 -0
- package/dist/modules/services/providers/team/index.js +18 -0
- package/dist/modules/services/providers/team/team.service.d.ts +49 -0
- package/dist/modules/services/providers/team/team.service.js +79 -0
- package/dist/modules/services/providers/tech-radar/fetch-blip-options.dto.v1.type.d.ts +19 -0
- package/dist/modules/services/providers/tech-radar/fetch-blip-options.dto.v1.type.js +2 -0
- package/dist/modules/services/providers/tech-radar/fetch-edition-options.dto.v1.type copy.d.ts +15 -0
- package/dist/modules/services/providers/tech-radar/fetch-edition-options.dto.v1.type copy.js +2 -0
- package/dist/modules/services/providers/tech-radar/index.d.ts +3 -0
- package/dist/modules/services/providers/tech-radar/index.js +19 -0
- package/dist/modules/services/providers/tech-radar/tech-radar.service.d.ts +71 -0
- package/dist/modules/services/providers/tech-radar/tech-radar.service.js +107 -0
- package/dist/modules/services/services.module.js +6 -3
- package/dist/pipes/params/hub-id.pipe.js +6 -3
- package/dist/types/likeable.type.d.ts +2 -2
- package/dist/types/viewable.type.d.ts +2 -2
- package/package.json +1 -1
- package/dist/modules/services/providers/accounts.service.d.ts +0 -67
- package/dist/modules/services/providers/accounts.service.js +0 -131
- package/dist/modules/services/providers/books.service.d.ts +0 -29
- package/dist/modules/services/providers/books.service.js +0 -55
- package/dist/modules/services/providers/changelog.service.d.ts +0 -18
- package/dist/modules/services/providers/changelog.service.js +0 -43
- package/dist/modules/services/providers/demo-hive.service.d.ts +0 -29
- package/dist/modules/services/providers/demo-hive.service.js +0 -55
- package/dist/modules/services/providers/events.service.d.ts +0 -29
- package/dist/modules/services/providers/events.service.js +0 -55
- package/dist/modules/services/providers/hackschool.service.d.ts +0 -49
- package/dist/modules/services/providers/hackschool.service.js +0 -79
- package/dist/modules/services/providers/newletter.service.d.ts +0 -29
- package/dist/modules/services/providers/newletter.service.js +0 -55
- package/dist/modules/services/providers/newsroom.service.d.ts +0 -47
- package/dist/modules/services/providers/newsroom.service.js +0 -73
- package/dist/modules/services/providers/notification/dtos/index.d.ts +0 -1
- package/dist/modules/services/providers/notification/index.d.ts +0 -2
- package/dist/modules/services/providers/notification/notification.service-definition.d.ts +0 -1
- package/dist/modules/services/providers/notification/notification.service-definition.js +0 -4
- package/dist/modules/services/providers/podcasts.service.d.ts +0 -29
- package/dist/modules/services/providers/podcasts.service.js +0 -55
- package/dist/modules/services/providers/team.service.d.ts +0 -29
- package/dist/modules/services/providers/team.service.js +0 -55
- package/dist/modules/services/providers/tech-radar.service.d.ts +0 -39
- package/dist/modules/services/providers/tech-radar.service.js +0 -67
- /package/dist/modules/services/providers/{mail/dtos/auth-login-token-mail.dto.js → accounts/fetch-account-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/auth-password-reset-mail.dto.js → books/fetch-book-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/event-cancel-mail.dto.js → changelog/fetch-change-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/event-invite-mail.dto.js → conflicts/fetch-conflict-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/idea-status-updated-mail.dto.js → content/fetch-content-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/idea-submitted-mail.dto.js → demo-hive/fetch-demo-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/lunch-roulette-cancel-mail.dto.js → events/fetch-event-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/lunch-roulette-matched-mail.dto.js → files/crop-image-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/lunch-roulette-submitted-mail.dto.js → files/fetch-file-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/lunch-roulette-unmatched-mail.dto.js → files/fetch-folder-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/newsletter-issue-mail.dto.js → hackschool/fetch-course-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/newsletter-subscribed-mail.dto.js → hackschool/fetch-doc-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/{mail/dtos/newsletter-unsubscribed-mail.dto.js → hackschool/fetch-thread-options.dto.v1.type.js} +0 -0
- /package/dist/modules/services/providers/mail/dtos/{notification-mail.dto.js → auth-login-token-mail.dto.v1.js} +0 -0
- /package/dist/modules/services/providers/{notification/dtos/schedule-notification.dto.js → mail/dtos/auth-password-reset-mail.dto.v1.js} +0 -0
- /package/dist/modules/services/providers/{pass/dtos/create-guild-member-pass.dto.js → mail/dtos/event-cancel-mail.dto.v1.js} +0 -0
- /package/dist/modules/services/providers/{pass/dtos/create-team-member-pass.dto.js → mail/dtos/event-invite-mail.dto.v1.js} +0 -0
- /package/dist/modules/services/providers/{search/dtos/index-search-document.dto.js → mail/dtos/idea-status-updated-mail.dto.v1.js} +0 -0
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.HackschoolService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const config_1 = require("@nestjs/config");
|
|
18
|
+
const authentication_1 = require("../../../authentication");
|
|
19
|
+
const base_http_service_1 = require("../../base-http.service");
|
|
20
|
+
const base_urls_1 = require("../../base-urls");
|
|
21
|
+
/**
|
|
22
|
+
* HackschoolService
|
|
23
|
+
*
|
|
24
|
+
* Service client responsible for interacting with the Hackschool microservice.
|
|
25
|
+
* Extends `BaseHttpService` to inherit:
|
|
26
|
+
* - Environment-sensitive URL resolution (internal vs. external).
|
|
27
|
+
* - Secure inter-service authentication.
|
|
28
|
+
* - Structured logging for traceability of outbound requests.
|
|
29
|
+
*
|
|
30
|
+
* Why this pattern?
|
|
31
|
+
* - Ensures all outbound calls follow a unified configuration and logging structure.
|
|
32
|
+
* - Promotes strong typing and maintainable HTTP logic.
|
|
33
|
+
* - Makes service interactions predictable and debuggable across environments.
|
|
34
|
+
*/
|
|
35
|
+
let HackschoolService = class HackschoolService extends base_http_service_1.BaseHttpService {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs an Hackschool service client instance.
|
|
38
|
+
*
|
|
39
|
+
* @param {AuthenticationModuleOptions} authenticationOptions - Injected authentication configuration.
|
|
40
|
+
* @param {ConfigService} configService - NestJS ConfigService for environment detection.
|
|
41
|
+
*/
|
|
42
|
+
constructor(authenticationOptions, configService) {
|
|
43
|
+
super('Hackschool', base_urls_1.BaseUrls.hackschoolService, authenticationOptions, configService);
|
|
44
|
+
}
|
|
45
|
+
// ─────────────────────────────────────────────────────────────
|
|
46
|
+
// Course Resource Methods
|
|
47
|
+
// ─────────────────────────────────────────────────────────────
|
|
48
|
+
/**
|
|
49
|
+
* Retrieves a single course entry by its MongoDB identifier.
|
|
50
|
+
*
|
|
51
|
+
* This method gracefully handles downstream failures by logging
|
|
52
|
+
* and returning `undefined` instead of throwing.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} courseId - Unique MongoDB identifier of the course.
|
|
55
|
+
* @param {FetchCourseOptionsDtoV1} [options] - Optional query parameters for filtering or projection.
|
|
56
|
+
* @returns {Promise<LabHackschoolCourse | undefined>} Resolves to an Course or `undefined` on failure.
|
|
57
|
+
*/
|
|
58
|
+
async fetchCourseV1(courseId, options) {
|
|
59
|
+
return this.fetchResource(`v1/internal/course/${courseId}`, { params: options });
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves a collection of course entries.
|
|
63
|
+
*
|
|
64
|
+
* Useful for batch lookups or paginated listings.
|
|
65
|
+
* Returns an empty array if the downstream service call fails.
|
|
66
|
+
*
|
|
67
|
+
* @param {FetchCourseOptionsDtoV1} [options] - Optional filter options for narrowing results.
|
|
68
|
+
* @returns {Promise<LabHackschoolCourse[]>} Resolves to a list of courses, or an empty array if none found.
|
|
69
|
+
*/
|
|
70
|
+
async fetchCourseCollectionV1(options) {
|
|
71
|
+
return this.fetchResourceCollection(`v1/internal/courses`, { params: options });
|
|
72
|
+
}
|
|
73
|
+
// ─────────────────────────────────────────────────────────────
|
|
74
|
+
// Thread Resource Methods
|
|
75
|
+
// ─────────────────────────────────────────────────────────────
|
|
76
|
+
/**
|
|
77
|
+
* Retrieves a single thread entry by its MongoDB identifier.
|
|
78
|
+
*
|
|
79
|
+
* This method gracefully handles downstream failures by logging
|
|
80
|
+
* and returning `undefined` instead of throwing.
|
|
81
|
+
*
|
|
82
|
+
* @param {string} threadId - Unique MongoDB identifier of the thread.
|
|
83
|
+
* @param {FetchThreadOptionsDtoV1} [options] - Optional query parameters for filtering or projection.
|
|
84
|
+
* @returns {Promise<LabHackschoolThread | undefined>} Resolves to an Thread or `undefined` on failure.
|
|
85
|
+
*/
|
|
86
|
+
async fetchThreadV1(threadId, options) {
|
|
87
|
+
return this.fetchResource(`v1/internal/thread/${threadId}`, { params: options });
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves a collection of thread entries.
|
|
91
|
+
*
|
|
92
|
+
* Useful for batch lookups or paginated listings.
|
|
93
|
+
* Returns an empty array if the downstream service call fails.
|
|
94
|
+
*
|
|
95
|
+
* @param {FetchThreadOptionsDtoV1} [options] - Optional filter options for narrowing results.
|
|
96
|
+
* @returns {Promise<LabHackschoolThread[]>} Resolves to a list of threads, or an empty array if none found.
|
|
97
|
+
*/
|
|
98
|
+
async fetchThreadCollectionV1(options) {
|
|
99
|
+
return this.fetchResourceCollection(`v1/internal/threads`, { params: options });
|
|
100
|
+
}
|
|
101
|
+
// ─────────────────────────────────────────────────────────────
|
|
102
|
+
// Doc Resource Methods
|
|
103
|
+
// ─────────────────────────────────────────────────────────────
|
|
104
|
+
/**
|
|
105
|
+
* Retrieves a single doc entry by its MongoDB identifier.
|
|
106
|
+
*
|
|
107
|
+
* This method gracefully handles downstream failures by logging
|
|
108
|
+
* and returning `undefined` instead of throwing.
|
|
109
|
+
*
|
|
110
|
+
* @param {string} docId - Unique MongoDB identifier of the doc.
|
|
111
|
+
* @param {FetchDocOptionsDtoV1} [options] - Optional query parameters for filtering or projection.
|
|
112
|
+
* @returns {Promise<LabHackschoolDoc | undefined>} Resolves to an Doc or `undefined` on failure.
|
|
113
|
+
*/
|
|
114
|
+
async fetchDocV1(docId, options) {
|
|
115
|
+
return this.fetchResource(`v1/internal/doc/${docId}`, { params: options });
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Retrieves a collection of doc entries.
|
|
119
|
+
*
|
|
120
|
+
* Useful for batch lookups or paginated listings.
|
|
121
|
+
* Returns an empty array if the downstream service call fails.
|
|
122
|
+
*
|
|
123
|
+
* @param {FetchDocOptionsDtoV1} [options] - Optional filter options for narrowing results.
|
|
124
|
+
* @returns {Promise<LabHackschoolDoc[]>} Resolves to a list of docs, or an empty array if none found.
|
|
125
|
+
*/
|
|
126
|
+
async fetchDocCollectionV1(options) {
|
|
127
|
+
return this.fetchResourceCollection(`v1/internal/docs`, { params: options });
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
exports.HackschoolService = HackschoolService;
|
|
131
|
+
exports.HackschoolService = HackschoolService = __decorate([
|
|
132
|
+
(0, common_1.Injectable)(),
|
|
133
|
+
__param(0, (0, authentication_1.InjectAuthenticationOptions)()),
|
|
134
|
+
__metadata("design:paramtypes", [Object, config_1.ConfigService])
|
|
135
|
+
], HackschoolService);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./fetch-doc-options.dto.v1.type"), exports);
|
|
18
|
+
__exportStar(require("./hackschool.service"), exports);
|
|
@@ -32,7 +32,7 @@ let IdeasService = class IdeasService extends base_http_service_1.BaseHttpServic
|
|
|
32
32
|
* @param {ConfigService} configService - Global NestJS config service for environment detection.
|
|
33
33
|
*/
|
|
34
34
|
constructor(authenticationOptions, configService) {
|
|
35
|
-
super('Ideas', base_urls_1.BaseUrls.
|
|
35
|
+
super('Ideas', base_urls_1.BaseUrls.ideasService, authenticationOptions, configService);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
exports.IdeasService = IdeasService;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
export * from './books
|
|
2
|
-
export * from './demo-hive
|
|
3
|
-
export * from './events
|
|
4
|
-
export * from './hackschool
|
|
1
|
+
export * from './books';
|
|
2
|
+
export * from './demo-hive';
|
|
3
|
+
export * from './events';
|
|
4
|
+
export * from './hackschool';
|
|
5
5
|
export * from './ideas.service';
|
|
6
|
+
export * from './newsletter';
|
|
7
|
+
export * from './newsroom';
|
|
8
|
+
export * from './podcasts';
|
|
9
|
+
export * from './team';
|
|
10
|
+
export * from './tech-radar';
|
|
6
11
|
export * from './lunch-roulette.service';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './accounts.service';
|
|
13
|
-
export * from './changelog.service';
|
|
12
|
+
export * from './files';
|
|
13
|
+
export * from './quick-links';
|
|
14
|
+
export * from './accounts';
|
|
15
|
+
export * from './changelog';
|
|
16
|
+
export * from './conflicts';
|
|
14
17
|
export * from './mail';
|
|
15
|
-
export * from './
|
|
18
|
+
export * from './notifications';
|
|
16
19
|
export * from './search';
|
|
17
20
|
export * from './content';
|
|
18
21
|
export * from './pass';
|
|
@@ -14,21 +14,26 @@ 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("./books
|
|
18
|
-
__exportStar(require("./demo-hive
|
|
19
|
-
__exportStar(require("./events
|
|
20
|
-
__exportStar(require("./hackschool
|
|
17
|
+
__exportStar(require("./books"), exports);
|
|
18
|
+
__exportStar(require("./demo-hive"), exports);
|
|
19
|
+
__exportStar(require("./events"), exports);
|
|
20
|
+
__exportStar(require("./hackschool"), exports);
|
|
21
21
|
__exportStar(require("./ideas.service"), exports);
|
|
22
|
+
__exportStar(require("./newsletter"), exports);
|
|
23
|
+
__exportStar(require("./newsroom"), exports);
|
|
24
|
+
__exportStar(require("./podcasts"), exports);
|
|
25
|
+
__exportStar(require("./team"), exports);
|
|
26
|
+
__exportStar(require("./tech-radar"), exports);
|
|
22
27
|
__exportStar(require("./lunch-roulette.service"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
25
|
-
|
|
26
|
-
__exportStar(require("./
|
|
27
|
-
__exportStar(require("./
|
|
28
|
-
__exportStar(require("./
|
|
29
|
-
__exportStar(require("./changelog.service"), exports);
|
|
28
|
+
__exportStar(require("./files"), exports);
|
|
29
|
+
__exportStar(require("./quick-links"), exports);
|
|
30
|
+
// Comments are handled separately.
|
|
31
|
+
__exportStar(require("./accounts"), exports);
|
|
32
|
+
__exportStar(require("./changelog"), exports);
|
|
33
|
+
__exportStar(require("./conflicts"), exports);
|
|
30
34
|
__exportStar(require("./mail"), exports);
|
|
31
|
-
__exportStar(require("./
|
|
35
|
+
__exportStar(require("./notifications"), exports);
|
|
32
36
|
__exportStar(require("./search"), exports);
|
|
33
37
|
__exportStar(require("./content"), exports);
|
|
34
38
|
__exportStar(require("./pass"), exports);
|
|
39
|
+
// System Status will be ignored
|
|
@@ -32,7 +32,7 @@ let LunchRouletteService = class LunchRouletteService extends base_http_service_
|
|
|
32
32
|
* @param {ConfigService} configService - Global NestJS config service for environment detection.
|
|
33
33
|
*/
|
|
34
34
|
constructor(authenticationOptions, configService) {
|
|
35
|
-
super('LunchRoulette', base_urls_1.BaseUrls.
|
|
35
|
+
super('LunchRoulette', base_urls_1.BaseUrls.lunchRouletteService, authenticationOptions, configService);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
exports.LunchRouletteService = LunchRouletteService;
|
|
@@ -2,7 +2,7 @@ import { MailRecipient } from '../models';
|
|
|
2
2
|
/**
|
|
3
3
|
* Payload for sending a cancellation notification for an event.
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type EventCancelMailDtoV1 = {
|
|
6
6
|
recipient: MailRecipient;
|
|
7
7
|
/**
|
|
8
8
|
* Mode of participation (e.g., in person, online).
|
|
@@ -2,7 +2,7 @@ import { MailRecipient } from '../models';
|
|
|
2
2
|
/**
|
|
3
3
|
* Payload for notifying a user that an idea was submitted.
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type IdeaSubmittedMailDtoV1 = {
|
|
6
6
|
recipient: MailRecipient;
|
|
7
7
|
/**
|
|
8
8
|
* CMS URL linking to the submitted idea for internal management.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from './lunch-roulette-cancel-mail.dto';
|
|
2
|
-
export * from './lunch-roulette-matched-mail.dto';
|
|
3
|
-
export * from './lunch-roulette-submitted-mail.dto';
|
|
4
|
-
export * from './lunch-roulette-unmatched-mail.dto';
|
|
5
|
-
export * from './newsletter-issue-mail.dto';
|
|
6
|
-
export * from './newsletter-subscribed-mail.dto';
|
|
7
|
-
export * from './newsletter-unsubscribed-mail.dto';
|
|
8
|
-
export * from './event-cancel-mail.dto';
|
|
9
|
-
export * from './event-invite-mail.dto';
|
|
10
|
-
export * from './notification-mail.dto';
|
|
11
|
-
export * from './idea-status-updated-mail.dto';
|
|
12
|
-
export * from './idea-submitted-mail.dto';
|
|
13
|
-
export * from './auth-login-token-mail.dto';
|
|
14
|
-
export * from './auth-password-reset-mail.dto';
|
|
1
|
+
export * from './lunch-roulette-cancel-mail.dto.v1';
|
|
2
|
+
export * from './lunch-roulette-matched-mail.dto.v1';
|
|
3
|
+
export * from './lunch-roulette-submitted-mail.dto.v1';
|
|
4
|
+
export * from './lunch-roulette-unmatched-mail.dto.v1';
|
|
5
|
+
export * from './newsletter-issue-mail.dto.v1';
|
|
6
|
+
export * from './newsletter-subscribed-mail.dto.v1';
|
|
7
|
+
export * from './newsletter-unsubscribed-mail.dto.v1';
|
|
8
|
+
export * from './event-cancel-mail.dto.v1';
|
|
9
|
+
export * from './event-invite-mail.dto.v1';
|
|
10
|
+
export * from './notification-mail.dto.v1';
|
|
11
|
+
export * from './idea-status-updated-mail.dto.v1';
|
|
12
|
+
export * from './idea-submitted-mail.dto.v1';
|
|
13
|
+
export * from './auth-login-token-mail.dto.v1';
|
|
14
|
+
export * from './auth-password-reset-mail.dto.v1';
|
|
@@ -14,17 +14,17 @@ 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("./lunch-roulette-cancel-mail.dto"), exports);
|
|
18
|
-
__exportStar(require("./lunch-roulette-matched-mail.dto"), exports);
|
|
19
|
-
__exportStar(require("./lunch-roulette-submitted-mail.dto"), exports);
|
|
20
|
-
__exportStar(require("./lunch-roulette-unmatched-mail.dto"), exports);
|
|
21
|
-
__exportStar(require("./newsletter-issue-mail.dto"), exports);
|
|
22
|
-
__exportStar(require("./newsletter-subscribed-mail.dto"), exports);
|
|
23
|
-
__exportStar(require("./newsletter-unsubscribed-mail.dto"), exports);
|
|
24
|
-
__exportStar(require("./event-cancel-mail.dto"), exports);
|
|
25
|
-
__exportStar(require("./event-invite-mail.dto"), exports);
|
|
26
|
-
__exportStar(require("./notification-mail.dto"), exports);
|
|
27
|
-
__exportStar(require("./idea-status-updated-mail.dto"), exports);
|
|
28
|
-
__exportStar(require("./idea-submitted-mail.dto"), exports);
|
|
29
|
-
__exportStar(require("./auth-login-token-mail.dto"), exports);
|
|
30
|
-
__exportStar(require("./auth-password-reset-mail.dto"), exports);
|
|
17
|
+
__exportStar(require("./lunch-roulette-cancel-mail.dto.v1"), exports);
|
|
18
|
+
__exportStar(require("./lunch-roulette-matched-mail.dto.v1"), exports);
|
|
19
|
+
__exportStar(require("./lunch-roulette-submitted-mail.dto.v1"), exports);
|
|
20
|
+
__exportStar(require("./lunch-roulette-unmatched-mail.dto.v1"), exports);
|
|
21
|
+
__exportStar(require("./newsletter-issue-mail.dto.v1"), exports);
|
|
22
|
+
__exportStar(require("./newsletter-subscribed-mail.dto.v1"), exports);
|
|
23
|
+
__exportStar(require("./newsletter-unsubscribed-mail.dto.v1"), exports);
|
|
24
|
+
__exportStar(require("./event-cancel-mail.dto.v1"), exports);
|
|
25
|
+
__exportStar(require("./event-invite-mail.dto.v1"), exports);
|
|
26
|
+
__exportStar(require("./notification-mail.dto.v1"), exports);
|
|
27
|
+
__exportStar(require("./idea-status-updated-mail.dto.v1"), exports);
|
|
28
|
+
__exportStar(require("./idea-submitted-mail.dto.v1"), exports);
|
|
29
|
+
__exportStar(require("./auth-login-token-mail.dto.v1"), exports);
|
|
30
|
+
__exportStar(require("./auth-password-reset-mail.dto.v1"), exports);
|
|
@@ -2,7 +2,7 @@ import { MailRecipient } from '../models';
|
|
|
2
2
|
/**
|
|
3
3
|
* Payload for notifying users that they have been matched in lunch roulette.
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type LunchRouletteMatchedMailDtoV1 = {
|
|
6
6
|
/**
|
|
7
7
|
* Array of matched participants who will receive the message.
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@ import { MailRecipient } from '../models';
|
|
|
2
2
|
/**
|
|
3
3
|
* Payload confirming a user's lunch roulette registration.
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type LunchRouletteSubmittedMailDtoV1 = {
|
|
6
6
|
recipient: MailRecipient;
|
|
7
7
|
/**
|
|
8
8
|
* Location selected for participation.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthLoginTokenMailDtoV1, AuthPasswordResetMailDtoV1, EventCancelMailDtoV1, EventInviteMailDtoV1, IdeaStatusUpdateMailDtoV1, IdeaSubmittedMailDtoV1, LunchRouletteCancelMailDtoV1, LunchRouletteMatchedMailDtoV1, LunchRouletteSubmittedMailDtoV1, LunchRouletteUnmatchedMailDtoV1, NewsletterIssueMailDtoV1, NewsletterSubscribedMailDtoV1, NewsletterUnsubscribedMailDtoV1, NotificationMailDtoV1 } from './dtos';
|
|
2
2
|
/**
|
|
3
3
|
* Constant list of supported mail types.
|
|
4
4
|
*/
|
|
5
|
-
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"];
|
|
5
|
+
declare const supportedMailTypes: readonly ["v1.auth.login-token", "v1.auth.password-reset", "v1.event.invite", "v1.event.cancel", "v1.idea.submitted", "v1.idea.status-update", "v1.lunch-roulette.submitted", "v1.lunch-roulette.cancel", "v1.lunch-roulette.matched", "v1.lunch-roulette.unmatched", "v1.newsletter.subscribed", "v1.newsletter.unsubscribed", "v1.newsletter.issue", "v1.notification.notification"];
|
|
6
6
|
/**
|
|
7
7
|
* Union type representing valid mail kinds.
|
|
8
8
|
*/
|
|
@@ -12,19 +12,20 @@ export type MailType = (typeof supportedMailTypes)[number];
|
|
|
12
12
|
* This enables type-safe payload handling when creating passes.
|
|
13
13
|
*/
|
|
14
14
|
export type MailTypeDtoMap = {
|
|
15
|
-
'auth.login-token':
|
|
16
|
-
'auth.password-reset':
|
|
17
|
-
'event.invite':
|
|
18
|
-
'event.cancel':
|
|
19
|
-
'idea.submitted':
|
|
20
|
-
'idea.status-update':
|
|
21
|
-
'lunch-roulette.submitted':
|
|
22
|
-
'lunch-roulette.cancel':
|
|
23
|
-
'lunch-roulette.matched':
|
|
24
|
-
'lunch-roulette.unmatched':
|
|
25
|
-
'newsletter.subscribed':
|
|
26
|
-
'newsletter.unsubscribed':
|
|
27
|
-
'newsletter.issue':
|
|
28
|
-
'notification.notification':
|
|
15
|
+
'v1.auth.login-token': AuthLoginTokenMailDtoV1;
|
|
16
|
+
'v1.auth.password-reset': AuthPasswordResetMailDtoV1;
|
|
17
|
+
'v1.event.invite': EventInviteMailDtoV1;
|
|
18
|
+
'v1.event.cancel': EventCancelMailDtoV1;
|
|
19
|
+
'v1.idea.submitted': IdeaSubmittedMailDtoV1;
|
|
20
|
+
'v1.idea.status-update': IdeaStatusUpdateMailDtoV1;
|
|
21
|
+
'v1.lunch-roulette.submitted': LunchRouletteSubmittedMailDtoV1;
|
|
22
|
+
'v1.lunch-roulette.cancel': LunchRouletteCancelMailDtoV1;
|
|
23
|
+
'v1.lunch-roulette.matched': LunchRouletteMatchedMailDtoV1;
|
|
24
|
+
'v1.lunch-roulette.unmatched': LunchRouletteUnmatchedMailDtoV1;
|
|
25
|
+
'v1.newsletter.subscribed': NewsletterSubscribedMailDtoV1;
|
|
26
|
+
'v1.newsletter.unsubscribed': NewsletterUnsubscribedMailDtoV1;
|
|
27
|
+
'v1.newsletter.issue': NewsletterIssueMailDtoV1;
|
|
28
|
+
'v1.notification.notification': NotificationMailDtoV1;
|
|
29
29
|
};
|
|
30
|
+
export declare const MailTypeEndpointMap: Record<MailType, string>;
|
|
30
31
|
export {};
|
|
@@ -1,22 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MailTypeEndpointMap = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* Constant list of supported mail types.
|
|
5
6
|
*/
|
|
6
7
|
// eslint-disable-next-line
|
|
7
8
|
const supportedMailTypes = [
|
|
8
|
-
'auth.login-token',
|
|
9
|
-
'auth.password-reset',
|
|
10
|
-
'event.invite',
|
|
11
|
-
'event.cancel',
|
|
12
|
-
'idea.submitted',
|
|
13
|
-
'idea.status-update',
|
|
14
|
-
'lunch-roulette.submitted',
|
|
15
|
-
'lunch-roulette.cancel',
|
|
16
|
-
'lunch-roulette.matched',
|
|
17
|
-
'lunch-roulette.unmatched',
|
|
18
|
-
'newsletter.subscribed',
|
|
19
|
-
'newsletter.unsubscribed',
|
|
20
|
-
'newsletter.issue',
|
|
21
|
-
'notification.notification',
|
|
9
|
+
'v1.auth.login-token',
|
|
10
|
+
'v1.auth.password-reset',
|
|
11
|
+
'v1.event.invite',
|
|
12
|
+
'v1.event.cancel',
|
|
13
|
+
'v1.idea.submitted',
|
|
14
|
+
'v1.idea.status-update',
|
|
15
|
+
'v1.lunch-roulette.submitted',
|
|
16
|
+
'v1.lunch-roulette.cancel',
|
|
17
|
+
'v1.lunch-roulette.matched',
|
|
18
|
+
'v1.lunch-roulette.unmatched',
|
|
19
|
+
'v1.newsletter.subscribed',
|
|
20
|
+
'v1.newsletter.unsubscribed',
|
|
21
|
+
'v1.newsletter.issue',
|
|
22
|
+
'v1.notification.notification',
|
|
22
23
|
];
|
|
24
|
+
exports.MailTypeEndpointMap = {
|
|
25
|
+
'v1.auth.login-token': 'v1/auth/login-token',
|
|
26
|
+
'v1.auth.password-reset': 'v1/auth/password-reset',
|
|
27
|
+
'v1.event.invite': 'v1/event/invite',
|
|
28
|
+
'v1.event.cancel': 'v1/event/cancel',
|
|
29
|
+
'v1.idea.submitted': 'v1/idea/submitted',
|
|
30
|
+
'v1.idea.status-update': 'v1/idea/status-update',
|
|
31
|
+
'v1.lunch-roulette.submitted': 'v1/lunch-roulette/submitted',
|
|
32
|
+
'v1.lunch-roulette.cancel': 'v1/lunch-roulette/cancel',
|
|
33
|
+
'v1.lunch-roulette.matched': 'v1/lunch-roulette/matched',
|
|
34
|
+
'v1.lunch-roulette.unmatched': 'v1/lunch-roulette/unmatched',
|
|
35
|
+
'v1.newsletter.subscribed': 'v1/newsletter/subscribed',
|
|
36
|
+
'v1.newsletter.unsubscribed': 'v1/newsletter/unsubscribed',
|
|
37
|
+
'v1.newsletter.issue': 'v1/newsletter/issue',
|
|
38
|
+
'v1.notification.notification': 'v1/notification/notification',
|
|
39
|
+
};
|