@serve.zone/interfaces 1.0.35 → 1.0.37

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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '1.0.35',
6
+ version: '1.0.37',
7
7
  description: 'interfaces for working with containers'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
@@ -1,5 +1,4 @@
1
1
  import * as plugins from '../plugins.js';
2
- import { type IServiceRessources } from '../data/docker.js';
3
2
  import type { IServer } from './server.js';
4
3
  export interface IClusterIdentifier {
5
4
  clusterName: string;
@@ -34,18 +33,3 @@ export interface ICluster {
34
33
  sshKeys: plugins.tsclass.network.ISshKey[];
35
34
  };
36
35
  }
37
- export interface IService {
38
- name: string;
39
- image: string;
40
- ports: {
41
- web: number;
42
- custom?: {
43
- [domain: string]: string;
44
- };
45
- };
46
- resources?: IServiceRessources;
47
- domains: string[];
48
- secrets: {
49
- [key: string]: string;
50
- };
51
- }
@@ -1,3 +1,3 @@
1
1
  import * as plugins from '../plugins.js';
2
2
  import {} from '../data/docker.js';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2x1c3Rlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2RhdGEvY2x1c3Rlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQXFELE1BQU0sbUJBQW1CLENBQUMifQ==
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2x1c3Rlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2RhdGEvY2x1c3Rlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQTRCLE1BQU0sbUJBQW1CLENBQUMifQ==
@@ -7,6 +7,7 @@ export * from './env.js';
7
7
  export * from './event.js';
8
8
  export * from './secret.js';
9
9
  export * from './server.js';
10
+ export * from './service.js';
10
11
  export * from './status.js';
11
12
  export * from './traffic.js';
12
13
  export * from './version.js';
@@ -7,7 +7,8 @@ export * from './env.js';
7
7
  export * from './event.js';
8
8
  export * from './secret.js';
9
9
  export * from './server.js';
10
+ export * from './service.js';
10
11
  export * from './status.js';
11
12
  export * from './traffic.js';
12
13
  export * from './version.js';
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLGFBQWEsQ0FBQTtBQUMzQixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGNBQWMsQ0FBQyJ9
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLGFBQWEsQ0FBQTtBQUMzQixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGNBQWMsQ0FBQyJ9
@@ -13,13 +13,16 @@ export interface IServerMetrics {
13
13
  }>;
14
14
  }
15
15
  export interface IServer {
16
- type: 'server';
17
- /**
18
- * a list of debian packages to be installed
19
- */
20
- requiredDebianPackages: string[];
21
- /**
22
- * a list of SSH keys to deploy
23
- */
24
- sshKeys: plugins.tsclass.network.ISshKey[];
16
+ id: string;
17
+ data: {
18
+ type: 'baremetal' | 'hetzner';
19
+ /**
20
+ * a list of debian packages to be installed
21
+ */
22
+ requiredDebianPackages: string[];
23
+ /**
24
+ * a list of SSH keys to deploy
25
+ */
26
+ sshKeys: plugins.tsclass.network.ISshKey[];
27
+ };
25
28
  }
@@ -0,0 +1,16 @@
1
+ import type { IServiceRessources } from "./docker.js";
2
+ export interface IService {
3
+ name: string;
4
+ image: string;
5
+ ports: {
6
+ web: number;
7
+ custom?: {
8
+ [domain: string]: string;
9
+ };
10
+ };
11
+ resources?: IServiceRessources;
12
+ domains: string[];
13
+ secrets: {
14
+ [key: string]: string;
15
+ };
16
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2RhdGEvc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -1,6 +1,7 @@
1
1
  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
+ import type { IService } from '../data/service.js';
4
5
  export interface IRequest_Any_Cloudly_GetServerConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServerConfig> {
5
6
  method: 'getServerConfig';
6
7
  request: {
@@ -30,7 +31,7 @@ export interface IRequest_Cloudly_Coreflow_PushContainerUpdate extends plugins.t
30
31
  method: 'pushContainerUpdate';
31
32
  request: {
32
33
  configData: clusterInterfaces.ICluster;
33
- specificContainerConfigToUpdate: clusterInterfaces.IService;
34
+ specificContainerConfigToUpdate: IService;
34
35
  };
35
36
  response: {};
36
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "private": false,
5
5
  "description": "interfaces for working with containers",
6
6
  "main": "dist_ts/index.js",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '1.0.35',
6
+ version: '1.0.37',
7
7
  description: 'interfaces for working with containers'
8
8
  }
@@ -1,6 +1,6 @@
1
1
  import * as plugins from '../plugins.js';
2
2
 
3
- import { type IDockerRegistryInfo, type IServiceRessources } from '../data/docker.js';
3
+ import { type IDockerRegistryInfo } from '../data/docker.js';
4
4
  import type { IServer } from './server.js';
5
5
 
6
6
  export interface IClusterIdentifier {
@@ -42,15 +42,3 @@ export interface ICluster {
42
42
  sshKeys: plugins.tsclass.network.ISshKey[];
43
43
  };
44
44
  }
45
-
46
- export interface IService {
47
- name: string;
48
- image: string;
49
- ports: {
50
- web: number;
51
- custom?: { [domain: string]: string };
52
- };
53
- resources?: IServiceRessources;
54
- domains: string[];
55
- secrets: { [key: string]: string };
56
- }
package/ts/data/index.ts CHANGED
@@ -7,6 +7,7 @@ export * from './env.js';
7
7
  export * from './event.js';
8
8
  export * from './secret.js'
9
9
  export * from './server.js';
10
+ export * from './service.js';
10
11
  export * from './status.js';
11
12
  export * from './traffic.js';
12
13
  export * from './version.js';
package/ts/data/server.ts CHANGED
@@ -17,15 +17,18 @@ export interface IServerMetrics {
17
17
  }
18
18
 
19
19
  export interface IServer {
20
- type: 'server';
20
+ id: string;
21
+ data: {
22
+ type: 'baremetal' | 'hetzner';
21
23
 
22
- /**
23
- * a list of debian packages to be installed
24
- */
25
- requiredDebianPackages: string[];
24
+ /**
25
+ * a list of debian packages to be installed
26
+ */
27
+ requiredDebianPackages: string[];
26
28
 
27
- /**
28
- * a list of SSH keys to deploy
29
- */
30
- sshKeys: plugins.tsclass.network.ISshKey[];
29
+ /**
30
+ * a list of SSH keys to deploy
31
+ */
32
+ sshKeys: plugins.tsclass.network.ISshKey[];
33
+ };
31
34
  }
@@ -0,0 +1,13 @@
1
+ import type { IServiceRessources } from "./docker.js";
2
+
3
+ export interface IService {
4
+ name: string;
5
+ image: string;
6
+ ports: {
7
+ web: number;
8
+ custom?: { [domain: string]: string };
9
+ };
10
+ resources?: IServiceRessources;
11
+ domains: string[];
12
+ secrets: { [key: string]: string };
13
+ }
@@ -1,6 +1,7 @@
1
1
  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
+ import type { IService } from '../data/service.js';
4
5
 
5
6
  export interface IRequest_Any_Cloudly_GetServerConfig
6
7
  extends plugins.typedrequestInterfaces.implementsTR<
@@ -50,7 +51,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
50
51
  method: 'pushContainerUpdate'
51
52
  request: {
52
53
  configData: clusterInterfaces.ICluster;
53
- specificContainerConfigToUpdate: clusterInterfaces.IService;
54
+ specificContainerConfigToUpdate: IService;
54
55
  };
55
56
  response: {}
56
57
  }