feat: expose service registry target helper
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@serve.zone/api",
|
||||
"version": "5.3.3",
|
||||
"version": "5.3.4",
|
||||
"private": false,
|
||||
"description": "Type-safe API client for Cloudly and the serve.zone control plane.",
|
||||
"exports": {
|
||||
|
||||
@@ -260,6 +260,9 @@ export class CloudlyApiClient {
|
||||
createService: async (optionsArg: Parameters<typeof Service.createService>[1]) => {
|
||||
return Service.createService(this, optionsArg);
|
||||
},
|
||||
getRegistryTarget: async (serviceId: string, tag = 'latest') => {
|
||||
return Service.getServiceRegistryTarget(this, serviceId, tag);
|
||||
},
|
||||
updateService: async (serviceId: string, serviceData: plugins.servezoneInterfaces.data.IService['data']): Promise<{ service: plugins.servezoneInterfaces.data.IService }> => {
|
||||
const op = 'updateService';
|
||||
const payload = { identity: this.identity, serviceId, serviceData } as any;
|
||||
|
||||
Reference in New Issue
Block a user