feat: expose service registry target helper

This commit is contained in:
2026-04-28 15:44:16 +00:00
parent 665d3aca90
commit 35dbbd5a59
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@serve.zone/api", "name": "@serve.zone/api",
"version": "5.3.3", "version": "5.3.4",
"private": false, "private": false,
"description": "Type-safe API client for Cloudly and the serve.zone control plane.", "description": "Type-safe API client for Cloudly and the serve.zone control plane.",
"exports": { "exports": {
+3
View File
@@ -260,6 +260,9 @@ export class CloudlyApiClient {
createService: async (optionsArg: Parameters<typeof Service.createService>[1]) => { createService: async (optionsArg: Parameters<typeof Service.createService>[1]) => {
return Service.createService(this, optionsArg); 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 }> => { updateService: async (serviceId: string, serviceData: plugins.servezoneInterfaces.data.IService['data']): Promise<{ service: plugins.servezoneInterfaces.data.IService }> => {
const op = 'updateService'; const op = 'updateService';
const payload = { identity: this.identity, serviceId, serviceData } as any; const payload = { identity: this.identity, serviceId, serviceData } as any;