@serve.zone/interfaces 4.3.20 → 4.3.21

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * results from a DeploymentDirective
2
+ * a deployment happens when a service is deployed
3
3
  * tracks the status of a deployment
4
4
  */
5
5
  export interface IDeployment {
@@ -2,7 +2,6 @@ export * from './cloudlyconfig.js';
2
2
  export * from './cluster.js';
3
3
  export * from './config.js';
4
4
  export * from './deployment.js';
5
- export * from './deploymentdirective.js';
6
5
  export * from './docker.js';
7
6
  export * from './env.js';
8
7
  export * from './event.js';
@@ -2,7 +2,6 @@ export * from './cloudlyconfig.js';
2
2
  export * from './cluster.js';
3
3
  export * from './config.js';
4
4
  export * from './deployment.js';
5
- export * from './deploymentdirective.js';
6
5
  export * from './docker.js';
7
6
  export * from './env.js';
8
7
  export * from './event.js';
@@ -15,4 +14,4 @@ export * from './status.js';
15
14
  export * from './traffic.js';
16
15
  export * from './user.js';
17
16
  export * from './version.js';
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL2RhdGEvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLGtCQUFrQixDQUFBO0FBQ2hDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsV0FBVyxDQUFDO0FBQzFCLGNBQWMsY0FBYyxDQUFDIn0=
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL2RhdGEvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxrQkFBa0IsQ0FBQTtBQUNoQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLGNBQWMsQ0FBQyJ9
@@ -24,6 +24,5 @@ export interface IService {
24
24
  protocol?: 'http' | 'https' | 'ssh';
25
25
  }[];
26
26
  deploymentIds: string[];
27
- deploymentDirectiveIds: string[];
28
27
  };
29
28
  }
@@ -2,7 +2,7 @@ import * as plugins from '../plugins.js';
2
2
  import * as clusterInterfaces from '../data/cluster.js';
3
3
  import * as serverInterfaces from '../data/server.js';
4
4
  import * as userInterfaces from '../data/user.js';
5
- import type { IDeploymentDirective } from '../data/deploymentdirective.js';
5
+ import type { IService } from '../data/service.js';
6
6
  export interface IRequest_Any_Cloudly_GetServerConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServerConfig> {
7
7
  method: 'getServerConfig';
8
8
  request: {
@@ -20,14 +20,14 @@ export interface IRequest_Any_Cloudly_GetClusterConfig extends plugins.typedrequ
20
20
  };
21
21
  response: {
22
22
  configData: clusterInterfaces.ICluster;
23
- deploymentDirectives: IDeploymentDirective[];
23
+ services: IService[];
24
24
  };
25
25
  }
26
26
  export interface IRequest_Cloudly_Coreflow_PushClusterConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Cloudly_Coreflow_PushClusterConfig> {
27
27
  method: 'pushClusterConfig';
28
28
  request: {
29
29
  configData: clusterInterfaces.ICluster;
30
- deploymentDirectives: IDeploymentDirective[];
30
+ services: IService[];
31
31
  };
32
32
  response: {};
33
33
  }
@@ -12,6 +12,7 @@ export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.im
12
12
  }
13
13
  /**
14
14
  * gets a single image
15
+ * authentication can happen via imageClaim or identity
15
16
  */
16
17
  export interface IRequest_GetImage extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_GetImage> {
17
18
  method: 'getImage';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "4.3.20",
3
+ "version": "4.3.21",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "exports": {
@@ -1,7 +1,7 @@
1
1
  import * as plugins from '../plugins.js';
2
2
 
3
3
  /**
4
- * results from a DeploymentDirective
4
+ * a deployment happens when a service is deployed
5
5
  * tracks the status of a deployment
6
6
  */
7
7
  export interface IDeployment {
@@ -2,7 +2,6 @@ export * from './cloudlyconfig.js';
2
2
  export * from './cluster.js';
3
3
  export * from './config.js';
4
4
  export * from './deployment.js';
5
- export * from './deploymentdirective.js';
6
5
  export * from './docker.js';
7
6
  export * from './env.js';
8
7
  export * from './event.js';
@@ -21,6 +21,5 @@ export interface IService {
21
21
  protocol?: 'http' | 'https' | 'ssh';
22
22
  }[];
23
23
  deploymentIds: string[];
24
- deploymentDirectiveIds: string[];
25
24
  };
26
25
  }
@@ -3,7 +3,6 @@ import * as clusterInterfaces from '../data/cluster.js';
3
3
  import * as serverInterfaces from '../data/server.js';
4
4
  import * as userInterfaces from '../data/user.js';
5
5
  import type { IService } from '../data/service.js';
6
- import type { IDeploymentDirective } from '../data/deploymentdirective.js';
7
6
 
8
7
  export interface IRequest_Any_Cloudly_GetServerConfig
9
8
  extends plugins.typedrequestInterfaces.implementsTR<
@@ -31,7 +30,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
31
30
  };
32
31
  response: {
33
32
  configData: clusterInterfaces.ICluster;
34
- deploymentDirectives: IDeploymentDirective[];
33
+ services: IService[];
35
34
  };
36
35
  }
37
36
 
@@ -43,7 +42,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
43
42
  method: 'pushClusterConfig';
44
43
  request: {
45
44
  configData: clusterInterfaces.ICluster;
46
- deploymentDirectives: IDeploymentDirective[];
45
+ services: IService[];
47
46
  };
48
47
  response: {};
49
48
  }
@@ -18,6 +18,7 @@ export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.im
18
18
 
19
19
  /**
20
20
  * gets a single image
21
+ * authentication can happen via imageClaim or identity
21
22
  */
22
23
  export interface IRequest_GetImage extends plugins.typedrequestInterfaces.implementsTR<
23
24
  plugins.typedrequestInterfaces.ITypedRequest,
@@ -1,23 +0,0 @@
1
- import type { IServiceRessources } from "./docker.js";
2
- /**
3
- * used for tellilng a cluster about a disired deployment
4
- * and specifies its configuration
5
- */
6
- export interface IDeploymentDirective {
7
- id: string;
8
- name: string;
9
- imageClaim: string;
10
- /**
11
- * ports to be exposed
12
- * hostPort is the port on the host
13
- * containerPort is the port on the container
14
- */
15
- ports: {
16
- hostPort: number;
17
- containerPort: number;
18
- }[];
19
- environment: {
20
- [key: string]: string;
21
- };
22
- resources?: IServiceRessources;
23
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwbG95bWVudGRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzX2ludGVyZmFjZXMvZGF0YS9kZXBsb3ltZW50ZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -1,19 +0,0 @@
1
- import type { IServiceRessources } from "./docker.js";
2
-
3
- /**
4
- * used for tellilng a cluster about a disired deployment
5
- * and specifies its configuration
6
- */
7
- export interface IDeploymentDirective {
8
- id: string;
9
- name: string;
10
- imageClaim: string;
11
- /**
12
- * ports to be exposed
13
- * hostPort is the port on the host
14
- * containerPort is the port on the container
15
- */
16
- ports: { hostPort: number; containerPort: number }[];
17
- environment: { [key: string]: string };
18
- resources?: IServiceRessources;
19
- }