itlab-internal-services 2.15.2 → 2.15.3
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.
|
@@ -70,7 +70,7 @@ __decorate([
|
|
|
70
70
|
__metadata("design:type", Array)
|
|
71
71
|
], EditionModel.prototype, "credits", void 0);
|
|
72
72
|
EditionModel = __decorate([
|
|
73
|
-
(0, mongoose_1.Schema)({ collection: '
|
|
73
|
+
(0, mongoose_1.Schema)({ collection: 'editions', toObject: transformEdition, toJSON: transformEdition })
|
|
74
74
|
], EditionModel);
|
|
75
75
|
const EditionSchema = mongoose_1.SchemaFactory.createForClass(EditionModel);
|
|
76
76
|
// ================================================================================
|
|
@@ -89,10 +89,10 @@ export declare class FetchService {
|
|
|
89
89
|
/**
|
|
90
90
|
* Fetches a technology radar edition by ID.
|
|
91
91
|
*
|
|
92
|
-
* @param {string}
|
|
92
|
+
* @param {string} editionId - The ID of the edition to fetch.
|
|
93
93
|
* @returns {Promise<LabTechRadarEdition | undefined>} - The fetched edition or undefined if not found.
|
|
94
94
|
*/
|
|
95
|
-
fetchTechRadarEdition(
|
|
95
|
+
fetchTechRadarEdition(editionId: string): Promise<LabTechRadarEdition | undefined>;
|
|
96
96
|
/**
|
|
97
97
|
* Fetches a podcast by ID.
|
|
98
98
|
*
|
|
@@ -50,8 +50,8 @@ const resourceEndpoints = {
|
|
|
50
50
|
'tech-radar/internal/blip/%id%',
|
|
51
51
|
],
|
|
52
52
|
[hub_resource_enum_1.FetchableHubResource.TECH_RADAR_EDITION]: [
|
|
53
|
-
'http://organisation-hub-tech-radar-backend.organisation-hub-services.svc.cluster.local:3000/internal/
|
|
54
|
-
'tech-radar/internal/
|
|
53
|
+
'http://organisation-hub-tech-radar-backend.organisation-hub-services.svc.cluster.local:3000/internal/edition/%id%',
|
|
54
|
+
'tech-radar/internal/edition/%id%',
|
|
55
55
|
],
|
|
56
56
|
[hub_resource_enum_1.FetchableHubResource.PODCASTS_PODCAST]: [
|
|
57
57
|
'http://organisation-hub-podcasts-backend.organisation-hub-services.svc.cluster.local:3000/internal/podcast/%id%',
|
|
@@ -207,12 +207,12 @@ let FetchService = FetchService_1 = class FetchService {
|
|
|
207
207
|
/**
|
|
208
208
|
* Fetches a technology radar edition by ID.
|
|
209
209
|
*
|
|
210
|
-
* @param {string}
|
|
210
|
+
* @param {string} editionId - The ID of the edition to fetch.
|
|
211
211
|
* @returns {Promise<LabTechRadarEdition | undefined>} - The fetched edition or undefined if not found.
|
|
212
212
|
*/
|
|
213
|
-
fetchTechRadarEdition(
|
|
213
|
+
fetchTechRadarEdition(editionId) {
|
|
214
214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
215
|
-
return this.fetch(hub_resource_enum_1.FetchableHubResource.TECH_RADAR_EDITION,
|
|
215
|
+
return this.fetch(hub_resource_enum_1.FetchableHubResource.TECH_RADAR_EDITION, editionId);
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
/**
|