@serve.zone/interfaces 4.4.0 → 4.5.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.
@@ -4,7 +4,6 @@
4
4
  */
5
5
  export interface IDeployment {
6
6
  id: string;
7
- deploymentDirectiveId: string;
8
7
  affectedServiceIds: string[];
9
8
  usedImageId: string;
10
9
  deploymentLog: string[];
@@ -3,6 +3,7 @@ export interface IService {
3
3
  id: string;
4
4
  data: {
5
5
  name: string;
6
+ description: string;
6
7
  imageId: string;
7
8
  imageVersion: string;
8
9
  environment: {
@@ -9,7 +9,8 @@ import * as networkRequests from './network.js';
9
9
  import * as routingRequests from './routing.js';
10
10
  import * as secretRequests from './secret.js';
11
11
  import * as serverRequests from './server.js';
12
+ import * as serviceRequests from './service.js';
12
13
  import * as statusRequests from './status.js';
13
14
  import * as versionRequests from './version.js';
14
- export { certificateRequests as certificate, clusterRequests as cluster, configRequests as config, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, routingRequests as routing, secretRequests as secret, serverRequests as server, statusRequests as status, versionRequests as version, };
15
+ export { certificateRequests as certificate, clusterRequests as cluster, configRequests as config, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, routingRequests as routing, secretRequests as secret, serverRequests as server, serviceRequests as service, statusRequests as status, versionRequests as version, };
15
16
  export * from './inform.js';
@@ -10,8 +10,9 @@ import * as networkRequests from './network.js';
10
10
  import * as routingRequests from './routing.js';
11
11
  import * as secretRequests from './secret.js';
12
12
  import * as serverRequests from './server.js';
13
+ import * as serviceRequests from './service.js';
13
14
  import * as statusRequests from './status.js';
14
15
  import * as versionRequests from './version.js';
15
- export { certificateRequests as certificate, clusterRequests as cluster, configRequests as config, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, routingRequests as routing, secretRequests as secret, serverRequests as server, statusRequests as status, versionRequests as version, };
16
+ export { certificateRequests as certificate, clusterRequests as cluster, configRequests as config, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, routingRequests as routing, secretRequests as secret, serverRequests as server, serviceRequests as service, statusRequests as status, versionRequests as version, };
16
17
  export * from './inform.js';
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL3JlcXVlc3RzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sS0FBSyxtQkFBbUIsTUFBTSxrQkFBa0IsQ0FBQztBQUN4RCxPQUFPLEtBQUssZUFBZSxNQUFNLGNBQWMsQ0FBQztBQUNoRCxPQUFPLEtBQUssY0FBYyxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEtBQUssZ0JBQWdCLE1BQU0sZUFBZSxDQUFDO0FBQ2xELE9BQU8sS0FBSyxhQUFhLE1BQU0sWUFBWSxDQUFDO0FBQzVDLE9BQU8sS0FBSyxjQUFjLE1BQU0sYUFBYSxDQUFDO0FBQzlDLE9BQU8sS0FBSyxXQUFXLE1BQU0sVUFBVSxDQUFDO0FBQ3hDLE9BQU8sS0FBSyxlQUFlLE1BQU0sY0FBYyxDQUFDO0FBQ2hELE9BQU8sS0FBSyxlQUFlLE1BQU0sY0FBYyxDQUFDO0FBQ2hELE9BQU8sS0FBSyxjQUFjLE1BQU0sYUFBYSxDQUFDO0FBQzlDLE9BQU8sS0FBSyxjQUFjLE1BQU0sYUFBYSxDQUFDO0FBQzlDLE9BQU8sS0FBSyxjQUFjLE1BQU0sYUFBYSxDQUFDO0FBQzlDLE9BQU8sS0FBSyxlQUFlLE1BQU0sY0FBYyxDQUFDO0FBRWhELE9BQU8sRUFDTCxtQkFBbUIsSUFBSSxXQUFXLEVBQ2xDLGVBQWUsSUF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FDO0FBQ2hELE9BQU8sS0FBSyxjQUFjLE1BQU0sYUFBYSxDQUFDO0FBQzlDLE9BQU8sS0FBSyxjQUFjLE1BQU0sYUFBYSxDQUFDO0FBQzlDLE9BQU8sS0FBSyxlQUFlLE1BQU0sY0FBYyxDQUFDO0FBQ2hELE9BQU8sS0FBSyxjQUFjLE1BQU0sYUFBYSxDQUFDO0FBQzlDLE9BQU8sS0FBSyxlQUFlLE1BQU0sY0FBYyxDQUFDO0FBRWhELE9BQU8sRUFDTCxtQkFBbUIsSUFBSSxXQUFXLEVBQ2xDLGVBQWUsSUFBSSxPQUFPLEVBQzFCLGNBQWMsSUFBSSxNQUFNLEVBQ3hCLGdCQUFnQixJQUFJLFFBQVEsRUFDNUIsYUFBYSxJQUFJLEtBQUssRUFDdEIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsV0FBVyxJQUFJLEdBQUcsRUFDbEIsZUFBZSxJQUFJLE9BQU8sRUFDMUIsZUFBZSxJQUFJLE9BQU8sRUFDMUIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsZUFBZSxJQUFJLE9BQU8sRUFDMUIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsZUFBZSxJQUFJLE9BQU8sR0FDM0IsQ0FBQztBQUVGLGNBQWMsYUFBYSxDQUFDIn0=
@@ -0,0 +1,96 @@
1
+ import * as plugins from '../plugins.js';
2
+ import type { IService } from '../data/service.js';
3
+ import type { IIdentity } from '../data/user.js';
4
+ import type { IServiceRessources } from '../data/docker.js';
5
+ export interface IRequest_Any_Cloudly_GetServiceById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServiceById> {
6
+ method: 'getServiceById';
7
+ request: {
8
+ identity: IIdentity;
9
+ serviceId: string;
10
+ };
11
+ response: {
12
+ service: IService;
13
+ };
14
+ }
15
+ export interface IRequest_Any_Cloudly_GetServices extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServices> {
16
+ method: 'getServices';
17
+ request: {
18
+ identity: IIdentity;
19
+ };
20
+ response: {
21
+ services: IService[];
22
+ };
23
+ }
24
+ export interface IRequest_Any_Cloudly_CreateService extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_CreateService> {
25
+ method: 'createService';
26
+ request: {
27
+ identity: IIdentity;
28
+ name: string;
29
+ description: string;
30
+ imageId: string;
31
+ imageVersion: string;
32
+ environment: {
33
+ [key: string]: string;
34
+ };
35
+ secretBundleId: string;
36
+ scaleFactor: number;
37
+ balancingStrategy: 'round-robin' | 'least-connections';
38
+ ports: {
39
+ web: number;
40
+ custom?: {
41
+ [domain: string]: string;
42
+ };
43
+ };
44
+ resources?: IServiceRessources;
45
+ domains: {
46
+ name: string;
47
+ port?: number;
48
+ protocol?: 'http' | 'https' | 'ssh';
49
+ }[];
50
+ };
51
+ response: {
52
+ service: IService;
53
+ };
54
+ }
55
+ export interface IRequest_Any_Cloudly_UpdateService extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_UpdateService> {
56
+ method: 'updateService';
57
+ request: {
58
+ identity: IIdentity;
59
+ serviceId: string;
60
+ name: string;
61
+ description: string;
62
+ imageId: string;
63
+ imageVersion: string;
64
+ environment: {
65
+ [key: string]: string;
66
+ };
67
+ secretBundleId: string;
68
+ scaleFactor: number;
69
+ balancingStrategy: 'round-robin' | 'least-connections';
70
+ ports: {
71
+ web: number;
72
+ custom?: {
73
+ [domain: string]: string;
74
+ };
75
+ };
76
+ resources?: IServiceRessources;
77
+ domains: {
78
+ name: string;
79
+ port?: number;
80
+ protocol?: 'http' | 'https' | 'ssh';
81
+ }[];
82
+ };
83
+ response: {
84
+ service: IService;
85
+ };
86
+ }
87
+ export interface IRequest_Any_Cloudly_DeleteService extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_DeleteService> {
88
+ method: 'deleteService';
89
+ request: {
90
+ identity: IIdentity;
91
+ serviceId: string;
92
+ };
93
+ response: {
94
+ success: boolean;
95
+ };
96
+ }
@@ -0,0 +1,2 @@
1
+ import * as plugins from '../plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzX2ludGVyZmFjZXMvcmVxdWVzdHMvc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "4.4.0",
3
+ "version": "4.5.1",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "exports": {
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@api.global/typedrequest-interfaces": "^3.0.19",
13
13
  "@push.rocks/smartlog-interfaces": "^3.0.2",
14
- "@tsclass/tsclass": "^4.1.2"
14
+ "@tsclass/tsclass": "^4.2.0"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@git.zone/tsbuild": "2.1.67"
@@ -6,7 +6,6 @@ import * as plugins from '../plugins.js';
6
6
  */
7
7
  export interface IDeployment {
8
8
  id: string;
9
- deploymentDirectiveId: string;
10
9
  affectedServiceIds: string[];
11
10
  usedImageId: string;
12
11
  deploymentLog: string[];
@@ -4,6 +4,7 @@ export interface IService {
4
4
  id: string;
5
5
  data: {
6
6
  name: string;
7
+ description: string;
7
8
  imageId: string;
8
9
  imageVersion: string;
9
10
  environment: { [key: string]: string };
@@ -11,6 +11,7 @@ import * as networkRequests from './network.js';
11
11
  import * as routingRequests from './routing.js';
12
12
  import * as secretRequests from './secret.js';
13
13
  import * as serverRequests from './server.js';
14
+ import * as serviceRequests from './service.js';
14
15
  import * as statusRequests from './status.js';
15
16
  import * as versionRequests from './version.js';
16
17
 
@@ -26,6 +27,7 @@ export {
26
27
  routingRequests as routing,
27
28
  secretRequests as secret,
28
29
  serverRequests as server,
30
+ serviceRequests as service,
29
31
  statusRequests as status,
30
32
  versionRequests as version,
31
33
  };
@@ -0,0 +1,113 @@
1
+ import * as plugins from '../plugins.js';
2
+ import type { IService } from '../data/service.js';
3
+ import type { IIdentity } from '../data/user.js';
4
+ import type { IServiceRessources } from '../data/docker.js';
5
+
6
+ export interface IRequest_Any_Cloudly_GetServiceById
7
+ extends plugins.typedrequestInterfaces.implementsTR<
8
+ plugins.typedrequestInterfaces.ITypedRequest,
9
+ IRequest_Any_Cloudly_GetServiceById
10
+ > {
11
+ method: 'getServiceById';
12
+ request: {
13
+ identity: IIdentity;
14
+ serviceId: string;
15
+ };
16
+ response: {
17
+ service: IService;
18
+ };
19
+ }
20
+
21
+ export interface IRequest_Any_Cloudly_GetServices
22
+ extends plugins.typedrequestInterfaces.implementsTR<
23
+ plugins.typedrequestInterfaces.ITypedRequest,
24
+ IRequest_Any_Cloudly_GetServices
25
+ > {
26
+ method: 'getServices';
27
+ request: {
28
+ identity: IIdentity;
29
+ };
30
+ response: {
31
+ services: IService[];
32
+ };
33
+ }
34
+
35
+ export interface IRequest_Any_Cloudly_CreateService
36
+ extends plugins.typedrequestInterfaces.implementsTR<
37
+ plugins.typedrequestInterfaces.ITypedRequest,
38
+ IRequest_Any_Cloudly_CreateService
39
+ > {
40
+ method: 'createService';
41
+ request: {
42
+ identity: IIdentity;
43
+ name: string;
44
+ description: string;
45
+ imageId: string;
46
+ imageVersion: string;
47
+ environment: { [key: string]: string };
48
+ secretBundleId: string;
49
+ scaleFactor: number;
50
+ balancingStrategy: 'round-robin' | 'least-connections';
51
+ ports: {
52
+ web: number;
53
+ custom?: { [domain: string]: string };
54
+ };
55
+ resources?: IServiceRessources;
56
+ domains: {
57
+ name: string;
58
+ port?: number;
59
+ protocol?: 'http' | 'https' | 'ssh';
60
+ }[];
61
+ };
62
+ response: {
63
+ service: IService;
64
+ };
65
+ }
66
+
67
+ export interface IRequest_Any_Cloudly_UpdateService
68
+ extends plugins.typedrequestInterfaces.implementsTR<
69
+ plugins.typedrequestInterfaces.ITypedRequest,
70
+ IRequest_Any_Cloudly_UpdateService
71
+ > {
72
+ method: 'updateService';
73
+ request: {
74
+ identity: IIdentity;
75
+ serviceId: string;
76
+ name: string;
77
+ description: string;
78
+ imageId: string;
79
+ imageVersion: string;
80
+ environment: { [key: string]: string };
81
+ secretBundleId: string;
82
+ scaleFactor: number;
83
+ balancingStrategy: 'round-robin' | 'least-connections';
84
+ ports: {
85
+ web: number;
86
+ custom?: { [domain: string]: string };
87
+ };
88
+ resources?: IServiceRessources;
89
+ domains: {
90
+ name: string;
91
+ port?: number;
92
+ protocol?: 'http' | 'https' | 'ssh';
93
+ }[];
94
+ };
95
+ response: {
96
+ service: IService;
97
+ };
98
+ }
99
+
100
+ export interface IRequest_Any_Cloudly_DeleteService
101
+ extends plugins.typedrequestInterfaces.implementsTR<
102
+ plugins.typedrequestInterfaces.ITypedRequest,
103
+ IRequest_Any_Cloudly_DeleteService
104
+ > {
105
+ method: 'deleteService';
106
+ request: {
107
+ identity: IIdentity;
108
+ serviceId: string;
109
+ };
110
+ response: {
111
+ success: boolean;
112
+ };
113
+ }