@mittwald/api-models 0.0.0-development-07a2acd-20261013 → 0.0.0-development-eced17c-20261014

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.
@@ -49,6 +49,7 @@ declare const ProjectCommon_base: import("polytype").Polytype.ClusteredConstruct
49
49
  id: string;
50
50
  imageRefId?: string | undefined;
51
51
  isReady: boolean;
52
+ primaryIpAddresses?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectPrimaryIpAddresses | undefined;
52
53
  projectHostingId?: string | undefined;
53
54
  readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
54
55
  serverGroupId: string;
@@ -82,6 +83,7 @@ declare const ProjectCommon_base: import("polytype").Polytype.ClusteredConstruct
82
83
  id: string;
83
84
  imageRefId?: string | undefined;
84
85
  isReady: boolean;
86
+ primaryIpAddresses?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectPrimaryIpAddresses | undefined;
85
87
  projectHostingId?: string | undefined;
86
88
  readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
87
89
  serverGroupId: string;
@@ -123,6 +125,7 @@ declare const ProjectDetailed_base: import("polytype").Polytype.ClusteredConstru
123
125
  id: string;
124
126
  imageRefId?: string | undefined;
125
127
  isReady: boolean;
128
+ primaryIpAddresses?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectPrimaryIpAddresses | undefined;
126
129
  projectHostingId?: string | undefined;
127
130
  readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
128
131
  serverGroupId: string;
@@ -156,6 +159,7 @@ declare const ProjectDetailed_base: import("polytype").Polytype.ClusteredConstru
156
159
  id: string;
157
160
  imageRefId?: string | undefined;
158
161
  isReady: boolean;
162
+ primaryIpAddresses?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectPrimaryIpAddresses | undefined;
159
163
  projectHostingId?: string | undefined;
160
164
  readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
161
165
  serverGroupId: string;
@@ -33,6 +33,7 @@ declare const ServerCommon_base: import("polytype").Polytype.ClusteredConstructo
33
33
  imageRefId?: string | undefined;
34
34
  isReady: boolean;
35
35
  machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
36
+ primaryIpAddresses?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectPrimaryIpAddresses | undefined;
36
37
  readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
37
38
  shortId: string;
38
39
  statisticsBaseDomain?: string | undefined;
@@ -49,6 +50,7 @@ declare const ServerCommon_base: import("polytype").Polytype.ClusteredConstructo
49
50
  imageRefId?: string | undefined;
50
51
  isReady: boolean;
51
52
  machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
53
+ primaryIpAddresses?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectPrimaryIpAddresses | undefined;
52
54
  readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
53
55
  shortId: string;
54
56
  statisticsBaseDomain?: string | undefined;
@@ -71,6 +73,7 @@ declare const ServerDetailed_base: import("polytype").Polytype.ClusteredConstruc
71
73
  imageRefId?: string | undefined;
72
74
  isReady: boolean;
73
75
  machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
76
+ primaryIpAddresses?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectPrimaryIpAddresses | undefined;
74
77
  readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
75
78
  shortId: string;
76
79
  statisticsBaseDomain?: string | undefined;
@@ -87,6 +90,7 @@ declare const ServerDetailed_base: import("polytype").Polytype.ClusteredConstruc
87
90
  imageRefId?: string | undefined;
88
91
  isReady: boolean;
89
92
  machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
93
+ primaryIpAddresses?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectPrimaryIpAddresses | undefined;
90
94
  readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
91
95
  shortId: string;
92
96
  statisticsBaseDomain?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-models",
3
- "version": "0.0.0-development-07a2acd-20261013",
3
+ "version": "0.0.0-development-eced17c-20261014",
4
4
  "author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
5
5
  "type": "module",
6
6
  "description": "Collection of domain models for coherent interaction with the API",
@@ -31,7 +31,7 @@
31
31
  "dist"
32
32
  ],
33
33
  "scripts": {
34
- "build": "run build:clean && run tsc",
34
+ "build": "run build:clean && run tsc --project tsconfig.build.json",
35
35
  "build:clean": "rimraf dist",
36
36
  "lint": "run eslint .",
37
37
  "test": "",
@@ -39,24 +39,23 @@
39
39
  "test:unit": "node --experimental-vm-modules $(yarn bin jest)"
40
40
  },
41
41
  "dependencies": {
42
- "@mittwald/api-client": "^0.0.0-development-07a2acd-20261013",
42
+ "@mittwald/api-client": "^0.0.0-development-eced17c-20261014",
43
43
  "another-deep-freeze": "1.0.0",
44
- "context": "^3.0.33",
44
+ "context": "^4.0.17",
45
45
  "dinero.js": "^1.9.1",
46
- "object-code": "^1.3.4",
46
+ "object-code": "^2.0.0",
47
47
  "polytype": "^0.17.0",
48
- "tsd": "^0.31.2",
49
48
  "type-fest": "^4.30.0"
50
49
  },
51
50
  "devDependencies": {
52
51
  "@eslint/js": "^10.0.1",
53
- "@jest/globals": "^29.7.0",
52
+ "@jest/globals": "^30.5.0",
54
53
  "@mittwald/react-use-promise": "^4.3.0",
55
54
  "@testing-library/dom": "^10.4.1",
56
- "@testing-library/jest-dom": "^6.9.1",
55
+ "@testing-library/jest-dom": "^7.0.1",
57
56
  "@testing-library/react": "^16.3.0",
58
57
  "@types/dinero.js": "^1.9.4",
59
- "@types/jest": "^29.5.14",
58
+ "@types/jest": "^30.0.0",
60
59
  "@types/luxon": "^3.7.1",
61
60
  "@types/react": "^18.3.26",
62
61
  "@types/react-dom": "^18.3.7",
@@ -65,13 +64,13 @@
65
64
  "eslint-plugin-json": "^5.0.0",
66
65
  "eslint-plugin-prettier": "^5.5.6",
67
66
  "globals": "^17.11.0",
68
- "jest": "^29.7.0",
69
- "jest-environment-jsdom": "^29.7.0",
67
+ "jest": "^30.5.0",
68
+ "jest-environment-jsdom": "^30.5.0",
70
69
  "luxon": "^3.7.2",
71
70
  "prettier": "^3.6.2",
72
71
  "react": "^18.3.1",
73
72
  "react-dom": "^18.3.1",
74
- "rimraf": "^5.0.10",
73
+ "rimraf": "^6.1.3",
75
74
  "ts-jest": "^29.2.5",
76
75
  "typescript": "^5.7.2",
77
76
  "typescript-eslint": "^8.68.0"
@@ -87,5 +86,5 @@
87
86
  "optional": true
88
87
  }
89
88
  },
90
- "gitHead": "c08cb5c277a1bc3d34a8339bc97078cdefe91911"
89
+ "gitHead": "9ce9e95dc8c95691273f5b4d31112797a477717b"
91
90
  }
@@ -1,16 +0,0 @@
1
- import { IngressPath } from "./IngressPath.js";
2
- import { IngressDetailed } from "../Ingress/index.js";
3
- const ingressData = {
4
- id: "abc",
5
- paths: [],
6
- };
7
- const corruptIngressTargetData = {};
8
- const ingressPathData = {
9
- path: "/",
10
- target: corruptIngressTargetData,
11
- };
12
- test("Creating IngressPath with corrupt IngressTarget throws error", () => {
13
- expect(() => {
14
- new IngressPath(new IngressDetailed(ingressData), ingressPathData);
15
- }).toThrowError("Ingress IngressDetailed@abc has no default path.");
16
- });
@@ -1,10 +0,0 @@
1
- const target = {};
2
- // @ts-expect-error use type-guard first
3
- void target.url;
4
- if (target.type === "redirect") {
5
- void target.url;
6
- }
7
- if (target.type === "appInstallation") {
8
- void target.appInstallation.id;
9
- }
10
- export {};
@@ -1,21 +0,0 @@
1
- import { provideReact } from "./provideReact.js";
2
- import { expectType } from "tsd";
3
- const reactProvided = provideReact(async (ignoredP1, ignoredP2) => Promise.resolve("foo"));
4
- function ignoredTestReturnTypesOfProvideReact() {
5
- const usedValue = reactProvided.use("foo");
6
- const asAsyncResource = reactProvided.asResource("foo");
7
- expectType(usedValue);
8
- expectType(asAsyncResource.use());
9
- }
10
- function ignoredTestParameterTypesOfProvideReact() {
11
- reactProvided.use("foo", true);
12
- reactProvided.asResource("foo", true);
13
- reactProvided.use("foo");
14
- reactProvided.asResource("foo");
15
- // @ts-expect-error Not assignable
16
- reactProvided.asResource(42);
17
- // @ts-expect-error Not assignable
18
- reactProvided.asResource("foo", 42);
19
- // @ts-expect-error Not assignable
20
- reactProvided.asResource("foo", true, 42);
21
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};