itlab-internal-services 0.0.2 → 0.0.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.
- package/dist/services/comment.service.d.ts +2 -2
- package/dist/services/comment.service.js +3 -3
- package/dist/services/content.service.d.ts +2 -2
- package/dist/services/content.service.js +3 -3
- package/dist/services/search.service.d.ts +2 -2
- package/dist/services/search.service.js +3 -3
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ export declare type Comment = unknown;
|
|
|
4
4
|
export declare class CommentService {
|
|
5
5
|
protected readonly instance: AxiosInstance;
|
|
6
6
|
protected readonly target: Targets;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
constructor(instance?: AxiosInstance, target?: Targets);
|
|
8
|
+
protected prefix: string;
|
|
9
9
|
post(targetId: string, authorId: string, comment: Comment): Promise<Comment>;
|
|
10
10
|
delete(targetId: string): Promise<void>;
|
|
11
11
|
}
|
|
@@ -30,10 +30,10 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
30
30
|
const internal_constants_1 = require("../internal.constants");
|
|
31
31
|
const target_pipe_1 = require("../pipes/target.pipe");
|
|
32
32
|
let CommentService = class CommentService {
|
|
33
|
-
constructor(instance = axios_1.default, target = target_pipe_1.Targets.UNKNOWN
|
|
33
|
+
constructor(instance = axios_1.default, target = target_pipe_1.Targets.UNKNOWN) {
|
|
34
34
|
this.instance = instance;
|
|
35
35
|
this.target = target;
|
|
36
|
-
this.prefix =
|
|
36
|
+
this.prefix = 'comment/internal';
|
|
37
37
|
}
|
|
38
38
|
post(targetId, authorId, comment) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -59,6 +59,6 @@ let CommentService = class CommentService {
|
|
|
59
59
|
CommentService = __decorate([
|
|
60
60
|
__param(0, (0, common_1.Inject)(internal_constants_1.AXIOS_INSTANCE_TOKEN)),
|
|
61
61
|
__param(1, (0, common_1.Inject)(internal_constants_1.INTERNAL_MODULE_TARGET)),
|
|
62
|
-
__metadata("design:paramtypes", [Function, String
|
|
62
|
+
__metadata("design:paramtypes", [Function, String])
|
|
63
63
|
], CommentService);
|
|
64
64
|
exports.CommentService = CommentService;
|
|
@@ -4,8 +4,8 @@ export declare type Content = unknown[];
|
|
|
4
4
|
export declare class ContentService {
|
|
5
5
|
protected readonly instance: AxiosInstance;
|
|
6
6
|
protected readonly target: Targets;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
constructor(instance?: AxiosInstance, target?: Targets);
|
|
8
|
+
protected prefix: string;
|
|
9
9
|
verify(contents: Content): Promise<void>;
|
|
10
10
|
post(targetId: string, contents: Content): Promise<void>;
|
|
11
11
|
delete(targetId: string): Promise<void>;
|
|
@@ -30,10 +30,10 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
30
30
|
const internal_constants_1 = require("../internal.constants");
|
|
31
31
|
const target_pipe_1 = require("../pipes/target.pipe");
|
|
32
32
|
let ContentService = class ContentService {
|
|
33
|
-
constructor(instance = axios_1.default, target = target_pipe_1.Targets.UNKNOWN
|
|
33
|
+
constructor(instance = axios_1.default, target = target_pipe_1.Targets.UNKNOWN) {
|
|
34
34
|
this.instance = instance;
|
|
35
35
|
this.target = target;
|
|
36
|
-
this.prefix =
|
|
36
|
+
this.prefix = 'content/internal';
|
|
37
37
|
}
|
|
38
38
|
verify(contents) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -69,6 +69,6 @@ let ContentService = class ContentService {
|
|
|
69
69
|
ContentService = __decorate([
|
|
70
70
|
__param(0, (0, common_1.Inject)(internal_constants_1.AXIOS_INSTANCE_TOKEN)),
|
|
71
71
|
__param(1, (0, common_1.Inject)(internal_constants_1.INTERNAL_MODULE_TARGET)),
|
|
72
|
-
__metadata("design:paramtypes", [Function, String
|
|
72
|
+
__metadata("design:paramtypes", [Function, String])
|
|
73
73
|
], ContentService);
|
|
74
74
|
exports.ContentService = ContentService;
|
|
@@ -3,6 +3,6 @@ import { Targets } from '../pipes/target.pipe';
|
|
|
3
3
|
export declare class SearchService {
|
|
4
4
|
protected readonly instance: AxiosInstance;
|
|
5
5
|
protected readonly target: Targets;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
constructor(instance?: AxiosInstance, target?: Targets);
|
|
7
|
+
protected prefix: string;
|
|
8
8
|
}
|
|
@@ -21,15 +21,15 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
21
21
|
const internal_constants_1 = require("../internal.constants");
|
|
22
22
|
const target_pipe_1 = require("../pipes/target.pipe");
|
|
23
23
|
let SearchService = class SearchService {
|
|
24
|
-
constructor(instance = axios_1.default, target = target_pipe_1.Targets.UNKNOWN
|
|
24
|
+
constructor(instance = axios_1.default, target = target_pipe_1.Targets.UNKNOWN) {
|
|
25
25
|
this.instance = instance;
|
|
26
26
|
this.target = target;
|
|
27
|
-
this.prefix =
|
|
27
|
+
this.prefix = 'search/internal';
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
SearchService = __decorate([
|
|
31
31
|
__param(0, (0, common_1.Inject)(internal_constants_1.AXIOS_INSTANCE_TOKEN)),
|
|
32
32
|
__param(1, (0, common_1.Inject)(internal_constants_1.INTERNAL_MODULE_TARGET)),
|
|
33
|
-
__metadata("design:paramtypes", [Function, String
|
|
33
|
+
__metadata("design:paramtypes", [Function, String])
|
|
34
34
|
], SearchService);
|
|
35
35
|
exports.SearchService = SearchService;
|