@quantum-hub/qhub-service 1.0.8 → 1.1.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.
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +9 -0
- package/package.json +10 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HubServiceClient as BaseHubServiceClient } from '@quantum-hub/qhub-api/service';
|
|
1
|
+
import { HubServiceClient as BaseHubServiceClient, type HubService } from '@quantum-hub/qhub-api/service';
|
|
2
2
|
type ServiceApiClient = InstanceType<typeof BaseHubServiceClient>['serviceApi'];
|
|
3
3
|
export declare const DEFAULT_TOKEN_ENDPOINT = "https://gateway.hub.kipu-quantum.com/token";
|
|
4
4
|
export declare class HubServiceAuth {
|
|
@@ -14,6 +14,7 @@ export declare class HubServiceClient {
|
|
|
14
14
|
private _api;
|
|
15
15
|
constructor(serviceEndpoint: string, accessKeyId?: string, secretAccessKey?: string, tokenEndpoint?: string);
|
|
16
16
|
api(): ServiceApiClient;
|
|
17
|
+
run(request: Record<string, unknown>, secrets?: Record<string, unknown>, tags?: string[]): Promise<HubService.ServiceExecution>;
|
|
17
18
|
}
|
|
18
19
|
export {};
|
|
19
20
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,IAAI,oBAAoB,EAAC,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,IAAI,oBAAoB,EAAE,KAAK,UAAU,EAAC,MAAM,+BAA+B,CAAA;AAEvG,KAAK,gBAAgB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC,YAAY,CAAC,CAAA;AAE/E,eAAO,MAAM,sBAAsB,+CAA+C,CAAA;AAElF,qBAAa,cAAc;IACzB,OAAO,CAAC,WAAW,CAAyB;IAC5C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAQ;IACpC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAQ;IACxC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAQ;gBAE1B,WAAW,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,aAAa,GAAE,MAA+B;IAMlG,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAYvC,OAAO,CAAC,gBAAgB;CAiBzB;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,IAAI,CAAsB;gBAEtB,eAAe,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,EAAE,aAAa,GAAE,MAA+B;IAe5H,GAAG,IAAI,gBAAgB;IAIjB,GAAG,CACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,IAAI,CAAC,EAAE,MAAM,EAAE,GACd,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;CASxC"}
|
package/dist/client.js
CHANGED
|
@@ -58,4 +58,13 @@ export class HubServiceClient {
|
|
|
58
58
|
api() {
|
|
59
59
|
return this._api.serviceApi;
|
|
60
60
|
}
|
|
61
|
+
async run(request, secrets, tags) {
|
|
62
|
+
if (tags !== undefined && !('$tags' in request)) {
|
|
63
|
+
request['$tags'] = tags;
|
|
64
|
+
}
|
|
65
|
+
if (secrets !== undefined && !('$secrets' in request)) {
|
|
66
|
+
request['$secrets'] = secrets;
|
|
67
|
+
}
|
|
68
|
+
return this.api().startExecution(request);
|
|
69
|
+
}
|
|
61
70
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quantum-hub/qhub-service",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "SDK to interact with managed services on the Kipu Quantum Hub.",
|
|
5
5
|
"author": "Kipu Quantum GmbH",
|
|
6
6
|
"contributors": [
|
|
@@ -9,6 +9,15 @@
|
|
|
9
9
|
],
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"type": "module",
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
12
21
|
"files": [
|
|
13
22
|
"dist",
|
|
14
23
|
"LICENSE"
|