@opentap/runner-client 2.32.0 → 2.33.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.
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -62,7 +62,7 @@ var BaseClient = /** @class */ (function () {
|
|
|
62
62
|
this.domainAccess = new Map();
|
|
63
63
|
this._headers = {};
|
|
64
64
|
this.baseSubject = baseSubject;
|
|
65
|
-
this.connectionOptions = __assign({}, options)
|
|
65
|
+
this.connectionOptions = __assign({}, options);
|
|
66
66
|
this.connectionOptions.timeout = (options === null || options === void 0 ? void 0 : options.timeout) || DEFAULT_TIMEOUT;
|
|
67
67
|
this.eventEmitter = new events_1.EventEmitter();
|
|
68
68
|
}
|
|
@@ -13,6 +13,12 @@ export declare class RunnerClient extends BaseClient {
|
|
|
13
13
|
setSettings: (repositoryPackageReference: RepositoryPackageReference) => Promise<void>;
|
|
14
14
|
};
|
|
15
15
|
constructor(baseSubject: string, options: ConnectionOptions);
|
|
16
|
+
/**
|
|
17
|
+
* Get the logs zip file from the server.
|
|
18
|
+
* @returns {{Promise<Uint8Array>}}
|
|
19
|
+
* @description The logs zip file contains the logs from the server.
|
|
20
|
+
*/
|
|
21
|
+
getLogsZip(): Promise<Uint8Array>;
|
|
16
22
|
/**
|
|
17
23
|
* Get the created image with the specified ID.
|
|
18
24
|
* @param imageId
|
package/dist/cjs/RunnerClient.js
CHANGED
|
@@ -139,6 +139,14 @@ var RunnerClient = /** @class */ (function (_super) {
|
|
|
139
139
|
_this.runnerId = (0, utils_1.getSubjectParts)(baseSubject).runnerId;
|
|
140
140
|
return _this;
|
|
141
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Get the logs zip file from the server.
|
|
144
|
+
* @returns {{Promise<Uint8Array>}}
|
|
145
|
+
* @description The logs zip file contains the logs from the server.
|
|
146
|
+
*/
|
|
147
|
+
RunnerClient.prototype.getLogsZip = function () {
|
|
148
|
+
return this.request('LogsZip', undefined, { rawResponse: true }).then(this.success()).catch(this.error());
|
|
149
|
+
};
|
|
142
150
|
/**
|
|
143
151
|
* Get the created image with the specified ID.
|
|
144
152
|
* @param imageId
|
package/dist/mjs/BaseClient.js
CHANGED
|
@@ -21,7 +21,7 @@ export class BaseClient {
|
|
|
21
21
|
this.domainAccess = new Map();
|
|
22
22
|
this._headers = {};
|
|
23
23
|
this.baseSubject = baseSubject;
|
|
24
|
-
this.connectionOptions = Object.assign({}, options)
|
|
24
|
+
this.connectionOptions = Object.assign({}, options);
|
|
25
25
|
this.connectionOptions.timeout = (options === null || options === void 0 ? void 0 : options.timeout) || DEFAULT_TIMEOUT;
|
|
26
26
|
this.eventEmitter = new EventEmitter();
|
|
27
27
|
}
|
|
@@ -13,6 +13,12 @@ export declare class RunnerClient extends BaseClient {
|
|
|
13
13
|
setSettings: (repositoryPackageReference: RepositoryPackageReference) => Promise<void>;
|
|
14
14
|
};
|
|
15
15
|
constructor(baseSubject: string, options: ConnectionOptions);
|
|
16
|
+
/**
|
|
17
|
+
* Get the logs zip file from the server.
|
|
18
|
+
* @returns {{Promise<Uint8Array>}}
|
|
19
|
+
* @description The logs zip file contains the logs from the server.
|
|
20
|
+
*/
|
|
21
|
+
getLogsZip(): Promise<Uint8Array>;
|
|
16
22
|
/**
|
|
17
23
|
* Get the created image with the specified ID.
|
|
18
24
|
* @param imageId
|
package/dist/mjs/RunnerClient.js
CHANGED
|
@@ -79,6 +79,14 @@ export class RunnerClient extends BaseClient {
|
|
|
79
79
|
};
|
|
80
80
|
this.runnerId = getSubjectParts(baseSubject).runnerId;
|
|
81
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Get the logs zip file from the server.
|
|
84
|
+
* @returns {{Promise<Uint8Array>}}
|
|
85
|
+
* @description The logs zip file contains the logs from the server.
|
|
86
|
+
*/
|
|
87
|
+
getLogsZip() {
|
|
88
|
+
return this.request('LogsZip', undefined, { rawResponse: true }).then(this.success()).catch(this.error());
|
|
89
|
+
}
|
|
82
90
|
/**
|
|
83
91
|
* Get the created image with the specified ID.
|
|
84
92
|
* @param imageId
|