itlab-internal-services 1.3.0 → 1.3.1
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.
|
@@ -75,6 +75,16 @@ let ContentService = class ContentService {
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
+
getSummary(targetId) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
return new Promise((resolve, reject) => {
|
|
81
|
+
this.instance
|
|
82
|
+
.get(`${this.prefix}/${this.target}/${targetId}/summary`)
|
|
83
|
+
.then(({ data }) => resolve(data))
|
|
84
|
+
.catch(({ response }) => reject(new common_1.HttpException(response.data, response.status)));
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
}
|
|
78
88
|
};
|
|
79
89
|
ContentService = __decorate([
|
|
80
90
|
__param(0, (0, common_1.Inject)(internal_constants_1.AXIOS_INSTANCE_TOKEN)),
|