@serve.zone/interfaces 1.0.44 → 1.0.46

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.44',
6
+ version: '1.0.46',
7
7
  description: 'interfaces for working with containers'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
@@ -1,4 +1,4 @@
1
- import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
1
+ import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
2
2
  export { typedrequestInterfaces };
3
3
  import * as smartlogInterfaces from '@push.rocks/smartlog-interfaces';
4
4
  export { smartlogInterfaces, };
@@ -1,5 +1,5 @@
1
1
  // @apiglobal scope
2
- import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
2
+ import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
3
3
  export { typedrequestInterfaces };
4
4
  // @push.rocks scope
5
5
  import * as smartlogInterfaces from '@push.rocks/smartlog-interfaces';
@@ -7,4 +7,4 @@ export { smartlogInterfaces, };
7
7
  // tsclass scope
8
8
  import * as tsclass from '@tsclass/tsclass';
9
9
  export { tsclass };
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3BsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsbUJBQW1CO0FBQ25CLE9BQU8sS0FBSyxzQkFBc0IsTUFBTSxvQ0FBb0MsQ0FBQztBQUU3RSxPQUFPLEVBQ0wsc0JBQXNCLEVBQ3ZCLENBQUE7QUFFRCxvQkFBb0I7QUFDcEIsT0FBTyxLQUFLLGtCQUFrQixNQUFNLGlDQUFpQyxDQUFDO0FBRXRFLE9BQU8sRUFDTCxrQkFBa0IsR0FDbkIsQ0FBQTtBQUVELGdCQUFnQjtBQUNoQixPQUFPLEtBQUssT0FBTyxNQUFNLGtCQUFrQixDQUFDO0FBRTVDLE9BQU8sRUFDTCxPQUFPLEVBQ1IsQ0FBQSJ9
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3BsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsbUJBQW1CO0FBQ25CLE9BQU8sS0FBSyxzQkFBc0IsTUFBTSxxQ0FBcUMsQ0FBQztBQUU5RSxPQUFPLEVBQ0wsc0JBQXNCLEVBQ3ZCLENBQUE7QUFFRCxvQkFBb0I7QUFDcEIsT0FBTyxLQUFLLGtCQUFrQixNQUFNLGlDQUFpQyxDQUFDO0FBRXRFLE9BQU8sRUFDTCxrQkFBa0IsR0FDbkIsQ0FBQTtBQUVELGdCQUFnQjtBQUNoQixPQUFPLEtBQUssT0FBTyxNQUFNLGtCQUFrQixDQUFDO0FBRTVDLE9BQU8sRUFDTCxPQUFPLEVBQ1IsQ0FBQSJ9
@@ -1,28 +1,45 @@
1
1
  /// <reference types="node" resolution-mode="require"/>
2
2
  import * as plugins from '../plugins.js';
3
+ import type { IImage } from '../data/index.js';
4
+ export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_GetAllImages> {
5
+ method: 'getAllImages';
6
+ request: {
7
+ jwt: string;
8
+ };
9
+ response: {
10
+ images: IImage[];
11
+ };
12
+ }
13
+ export interface IRequest_CreateImage extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_CreateImage> {
14
+ method: 'createImage';
15
+ request: {
16
+ jwt: string;
17
+ name: string;
18
+ description: string;
19
+ };
20
+ response: {
21
+ image: IImage;
22
+ };
23
+ }
3
24
  export interface IRequest_PushImage extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_PushImage> {
4
25
  method: 'pushImage';
5
26
  request: {
6
27
  jwt: string;
7
28
  image: string;
8
29
  version: string;
9
- transferId?: string;
30
+ imageStream?: plugins.typedrequestInterfaces.IVirtualStream;
10
31
  chunk: Buffer;
11
32
  };
12
- response: {
13
- transferId: string;
14
- };
33
+ response: {};
15
34
  }
16
35
  export interface IRequest_DownloadImage extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_DownloadImage> {
17
- method: 'downloadImage';
36
+ method: 'pullImage';
18
37
  request: {
19
38
  jwt: string;
20
39
  image: string;
21
40
  version: string;
22
- transferId: string;
23
41
  };
24
42
  response: {
25
- transferId: string;
26
- chunk: Buffer;
43
+ imageStream: plugins.typedrequestInterfaces.IVirtualStream;
27
44
  };
28
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "private": false,
5
5
  "description": "interfaces for working with containers",
6
6
  "main": "dist_ts/index.js",
@@ -15,7 +15,7 @@
15
15
  "@types/node": "^20.11.24"
16
16
  },
17
17
  "dependencies": {
18
- "@apiglobal/typedrequest-interfaces": "^2.0.1",
18
+ "@api.global/typedrequest-interfaces": "^3.0.18",
19
19
  "@push.rocks/smartlog-interfaces": "^3.0.0",
20
20
  "@tsclass/tsclass": "^4.0.52"
21
21
  },
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '1.0.44',
6
+ version: '1.0.46',
7
7
  description: 'interfaces for working with containers'
8
8
  }
package/ts/plugins.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // @apiglobal scope
2
- import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
2
+ import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
3
3
 
4
4
  export {
5
5
  typedrequestInterfaces
@@ -1,5 +1,36 @@
1
1
  import * as plugins from '../plugins.js';
2
2
 
3
+ import type { IImage } from '../data/index.js';
4
+
5
+ export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.implementsTR<
6
+ plugins.typedrequestInterfaces.ITypedRequest,
7
+ IRequest_GetAllImages
8
+ > {
9
+ method: 'getAllImages';
10
+ request: {
11
+ jwt: string;
12
+ };
13
+ response: {
14
+ images: IImage[];
15
+ };
16
+ }
17
+
18
+ export interface IRequest_CreateImage extends plugins.typedrequestInterfaces.implementsTR<
19
+ plugins.typedrequestInterfaces.ITypedRequest,
20
+ IRequest_CreateImage
21
+ > {
22
+ method: 'createImage';
23
+ request: {
24
+ jwt: string;
25
+ name: string;
26
+ description: string;
27
+ };
28
+ response: {
29
+ image: IImage;
30
+ };
31
+
32
+ }
33
+
3
34
  export interface IRequest_PushImage extends plugins.typedrequestInterfaces.implementsTR<
4
35
  plugins.typedrequestInterfaces.ITypedRequest,
5
36
  IRequest_PushImage
@@ -9,11 +40,10 @@ export interface IRequest_PushImage extends plugins.typedrequestInterfaces.imple
9
40
  jwt: string;
10
41
  image: string;
11
42
  version: string;
12
- transferId?: string;
43
+ imageStream?: plugins.typedrequestInterfaces.IVirtualStream;
13
44
  chunk: Buffer;
14
45
  };
15
46
  response: {
16
- transferId: string;
17
47
  };
18
48
  }
19
49
 
@@ -21,15 +51,13 @@ export interface IRequest_DownloadImage extends plugins.typedrequestInterfaces.i
21
51
  plugins.typedrequestInterfaces.ITypedRequest,
22
52
  IRequest_DownloadImage
23
53
  > {
24
- method: 'downloadImage';
54
+ method: 'pullImage';
25
55
  request: {
26
56
  jwt: string;
27
57
  image: string;
28
58
  version: string;
29
- transferId: string;
30
59
  };
31
60
  response: {
32
- transferId: string;
33
- chunk: Buffer;
61
+ imageStream: plugins.typedrequestInterfaces.IVirtualStream;
34
62
  };
35
63
  }