@geode/vease-back 1.13.0 → 1.14.0-rc.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/vease-back",
3
- "version": "1.13.0",
3
+ "version": "1.14.0-rc.2",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/Geode-solutions/Vease-Back",
6
6
  "bugs": {
@@ -17,23 +17,29 @@
17
17
  "url": "git+https://github.com/Geode-solutions/Vease-Back.git"
18
18
  },
19
19
  "files": [
20
- "vease_back_schemas.json"
20
+ "vease_back_schemas.json",
21
+ "vease_back_typed_schemas.js",
22
+ "vease_back_typed_schemas.d.ts"
21
23
  ],
22
24
  "exports": {
23
25
  "./vease_back_schemas.json": {
24
26
  "import": "./vease_back_schemas.json",
25
27
  "require": "./vease_back_schemas.json"
28
+ },
29
+ "./vease_back_typed_schemas.js": {
30
+ "types": "./vease_back_typed_schemas.d.ts",
31
+ "default": "./vease_back_typed_schemas.js"
26
32
  }
27
33
  },
28
34
  "publishConfig": {
29
35
  "access": "public"
30
36
  },
31
37
  "scripts": {
32
- "json": "npx opengeodeweb-microservice-generate --startDir src/vease_back/routes --key route --separator /",
38
+ "json": "npx opengeodeweb-microservice-generate --startDir src/vease_back/routes --key route --separator / --requireResponse",
33
39
  "test": "npm run json",
34
40
  "build": "npm run json"
35
41
  },
36
42
  "dependencies": {
37
- "@geode/opengeodeweb-microservice": "latest"
43
+ "@geode/opengeodeweb-microservice": "next"
38
44
  }
39
45
  }
@@ -7,7 +7,35 @@
7
7
  "GET"
8
8
  ],
9
9
  "type": "object",
10
- "additionalProperties": false
10
+ "additionalProperties": false,
11
+ "response": {
12
+ "type": "object",
13
+ "properties": {
14
+ "packages_versions": {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "object",
18
+ "properties": {
19
+ "package": {
20
+ "type": "string"
21
+ },
22
+ "version": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ "required": [
27
+ "package",
28
+ "version"
29
+ ],
30
+ "additionalProperties": false
31
+ }
32
+ }
33
+ },
34
+ "required": [
35
+ "packages_versions"
36
+ ],
37
+ "additionalProperties": false
38
+ }
11
39
  },
12
40
  "microservice_version": {
13
41
  "$id": "vease_back/microservice_version",
@@ -16,7 +44,19 @@
16
44
  "GET"
17
45
  ],
18
46
  "type": "object",
19
- "additionalProperties": false
47
+ "additionalProperties": false,
48
+ "response": {
49
+ "type": "object",
50
+ "properties": {
51
+ "microservice_version": {
52
+ "type": "string"
53
+ }
54
+ },
55
+ "required": [
56
+ "microservice_version"
57
+ ],
58
+ "additionalProperties": false
59
+ }
20
60
  },
21
61
  "healthcheck": {
22
62
  "$id": "vease_back/healthcheck",
@@ -25,7 +65,19 @@
25
65
  "GET"
26
66
  ],
27
67
  "type": "object",
28
- "additionalProperties": false
68
+ "additionalProperties": false,
69
+ "response": {
70
+ "type": "object",
71
+ "properties": {
72
+ "message": {
73
+ "type": "string"
74
+ }
75
+ },
76
+ "required": [
77
+ "message"
78
+ ],
79
+ "additionalProperties": false
80
+ }
29
81
  }
30
82
  }
31
83
  }
@@ -0,0 +1,52 @@
1
+ // Generated by opengeodeweb-microservice-generate, do not edit.
2
+ import type json from "./vease_back_schemas.json";
3
+
4
+ export interface PackagesVersionsParams {
5
+ }
6
+
7
+ export interface PackagesVersionsResponse {
8
+ packages_versions: PackagesVersion[];
9
+ }
10
+
11
+ export interface PackagesVersion {
12
+ package: string;
13
+ version: string;
14
+ }
15
+
16
+ export interface MicroserviceVersionParams {
17
+ }
18
+
19
+ export interface MicroserviceVersionResponse {
20
+ microservice_version: string;
21
+ }
22
+
23
+ export interface HealthcheckParams {
24
+ }
25
+
26
+ export interface HealthcheckResponse {
27
+ message: string;
28
+ }
29
+
30
+ export interface ErrorResponse {
31
+ code: number;
32
+ description: string;
33
+ name: string;
34
+ }
35
+
36
+ // `__params` and `__response` only exist at type level, to infer request/response types from a schema.
37
+ // A type alias (not an interface) keeps the implicit index signature of the JSON type it is intersected with.
38
+ export type TypedSchema<Params, Response> = {
39
+ readonly __params?: Params;
40
+ readonly __response?: Response;
41
+ };
42
+
43
+ export interface Schemas {
44
+ readonly vease_back: {
45
+ readonly packages_versions: (typeof json)["vease_back"]["packages_versions"] & TypedSchema<PackagesVersionsParams, PackagesVersionsResponse>;
46
+ readonly microservice_version: (typeof json)["vease_back"]["microservice_version"] & TypedSchema<MicroserviceVersionParams, MicroserviceVersionResponse>;
47
+ readonly healthcheck: (typeof json)["vease_back"]["healthcheck"] & TypedSchema<HealthcheckParams, HealthcheckResponse>;
48
+ };
49
+ }
50
+
51
+ declare const schemas: Schemas;
52
+ export default schemas;
@@ -0,0 +1,4 @@
1
+ // Generated by opengeodeweb-microservice-generate, do not edit.
2
+ import schemas from "./vease_back_schemas.json" with { type: "json" };
3
+
4
+ export default schemas;