autoinspector 2.2.0 → 2.3.0
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.
|
@@ -4,5 +4,7 @@ export declare class Template {
|
|
|
4
4
|
private readonly httpClient;
|
|
5
5
|
constructor(httpClient: HTTPClient);
|
|
6
6
|
list(input?: ITemplateListInput): Promise<ITemplate[]>;
|
|
7
|
+
listWithOAuth(token: string): Promise<ITemplate[]>;
|
|
8
|
+
preview(input?: ITemplateListInput): Promise<ITemplate[]>;
|
|
7
9
|
retrieve(templateId: string): Promise<ITemplate[]>;
|
|
8
10
|
}
|
|
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Template = void 0;
|
|
13
|
+
const build_oauth_header_1 = require("../utils/build-oauth-header");
|
|
13
14
|
class Template {
|
|
14
15
|
constructor(httpClient) {
|
|
15
16
|
this.httpClient = httpClient;
|
|
@@ -23,6 +24,24 @@ class Template {
|
|
|
23
24
|
});
|
|
24
25
|
});
|
|
25
26
|
}
|
|
27
|
+
listWithOAuth(token) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
return yield this.httpClient.makeRequest({
|
|
30
|
+
method: 'GET',
|
|
31
|
+
path: '/inspection/template/oauth/list/all',
|
|
32
|
+
headers: (0, build_oauth_header_1.buildOAuthHeader)(token),
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
preview(input = {}) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
return yield this.httpClient.makeRequest({
|
|
39
|
+
method: 'GET',
|
|
40
|
+
path: '/inspection/template/preview',
|
|
41
|
+
params: input,
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}
|
|
26
45
|
retrieve(templateId) {
|
|
27
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
47
|
return yield this.httpClient.makeRequest({
|