@mittwald/api-models 4.52.0 → 4.54.0

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.
@@ -24,6 +24,7 @@ export class AppInstallation extends ReferenceModel {
24
24
  return data.map((d) => new AppInstallationListItem(d));
25
25
  });
26
26
  getDetailed = provideReact(() => AppInstallation.get(this.id), [this.id]);
27
+ findDetailed = provideReact(() => AppInstallation.find(this.id), [this.id]);
27
28
  }
28
29
  // Common class for future extension
29
30
  class AppInstallationCommon extends classes((DataModel), AppInstallation) {
@@ -24,6 +24,7 @@ export class Customer extends ReferenceModel {
24
24
  return customer;
25
25
  });
26
26
  getDetailed = provideReact(() => Customer.get(this.id), [this.id]);
27
+ findDetailed = provideReact(() => Customer.find(this.id), [this.id]);
27
28
  }
28
29
  // Common class for future extension
29
30
  class CustomerCommon extends classes((DataModel), Customer) {
@@ -28,6 +28,7 @@ export class Ingress extends ReferenceModel {
28
28
  return ingress;
29
29
  });
30
30
  getDetailed = provideReact(() => Ingress.get(this.id), [this.id]);
31
+ findDetailed = provideReact(() => Ingress.find(this.id), [this.id]);
31
32
  }
32
33
  export class IngressCommon extends classes((DataModel), Ingress) {
33
34
  baseUrl;
@@ -31,6 +31,7 @@ export class Project extends ReferenceModel {
31
31
  return new Project(id);
32
32
  }
33
33
  getDetailed = provideReact(() => Project.get(this.id), [this.id]);
34
+ findDetailed = provideReact(() => Project.find(this.id), [this.id]);
34
35
  listIngresses = provideReact(() => Ingress.list({ projectId: this.id }));
35
36
  getDefaultIngress = provideReact(async () => {
36
37
  const ingresses = await Project.ofId(this.id).listIngresses();
@@ -34,6 +34,7 @@ export class Server extends ReferenceModel {
34
34
  });
35
35
  });
36
36
  getDetailed = provideReact(() => Server.get(this.id), [this.id]);
37
+ findDetailed = provideReact(() => Server.find(this.id), [this.id]);
37
38
  }
38
39
  // Common class for future extension
39
40
  class ServerCommon extends classes((DataModel), Server) {
@@ -17,6 +17,7 @@ export declare class AppInstallation extends ReferenceModel {
17
17
  use: (projectId: string, query?: import("@mittwald/api-client").MittwaldAPIV2.Paths.V2ProjectsProjectIdAppInstallations.Get.Parameters.Query | undefined) => AppInstallationListItem[];
18
18
  };
19
19
  getDetailed: AsyncResourceVariant<AppInstallationDetailed, []>;
20
+ findDetailed: AsyncResourceVariant<AppInstallationDetailed | undefined, []>;
20
21
  }
21
22
  declare const AppInstallationCommon_base: import("polytype").Polytype.ClusteredConstructor<[{
22
23
  new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.AppAppInstallation | {
@@ -17,6 +17,7 @@ export declare class Customer extends ReferenceModel {
17
17
  use: (id: string) => CustomerDetailed;
18
18
  };
19
19
  getDetailed: AsyncResourceVariant<CustomerDetailed, []>;
20
+ findDetailed: AsyncResourceVariant<CustomerDetailed | undefined, []>;
20
21
  }
21
22
  declare const CustomerCommon_base: import("polytype").Polytype.ClusteredConstructor<[{
22
23
  new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomer | {
@@ -19,6 +19,7 @@ export declare class Ingress extends ReferenceModel {
19
19
  use: (id: string) => IngressDetailed;
20
20
  };
21
21
  getDetailed: AsyncResourceVariant<IngressDetailed, []>;
22
+ findDetailed: AsyncResourceVariant<IngressDetailed | undefined, []>;
22
23
  }
23
24
  declare const IngressCommon_base: import("polytype").Polytype.ClusteredConstructor<[{
24
25
  new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressIngress | {
@@ -21,6 +21,7 @@ export declare class Project extends ReferenceModel {
21
21
  };
22
22
  static create(serverId: string, description: string): Promise<Project>;
23
23
  getDetailed: AsyncResourceVariant<ProjectDetailed, []>;
24
+ findDetailed: AsyncResourceVariant<ProjectDetailed | undefined, []>;
24
25
  listIngresses: AsyncResourceVariant<IngressListItem[], []>;
25
26
  getDefaultIngress: AsyncResourceVariant<IngressListItem, []>;
26
27
  updateDescription(description: string): Promise<void>;
@@ -31,6 +32,7 @@ declare const ProjectCommon_base: import("polytype").Polytype.ClusteredConstruct
31
32
  new (data: {
32
33
  clusterDomain?: string | undefined;
33
34
  clusterID?: string | undefined;
35
+ clusterId?: string | undefined;
34
36
  createdAt: string;
35
37
  customerId: string;
36
38
  description: string;
@@ -78,6 +80,7 @@ declare const ProjectCommon_base: import("polytype").Polytype.ClusteredConstruct
78
80
  }): DataModel<{
79
81
  clusterDomain?: string | undefined;
80
82
  clusterID?: string | undefined;
83
+ clusterId?: string | undefined;
81
84
  createdAt: string;
82
85
  customerId: string;
83
86
  description: string;
@@ -133,6 +136,7 @@ declare const ProjectDetailed_base: import("polytype").Polytype.ClusteredConstru
133
136
  new (data: {
134
137
  clusterDomain?: string | undefined;
135
138
  clusterID?: string | undefined;
139
+ clusterId?: string | undefined;
136
140
  createdAt: string;
137
141
  customerId: string;
138
142
  description: string;
@@ -159,6 +163,7 @@ declare const ProjectDetailed_base: import("polytype").Polytype.ClusteredConstru
159
163
  }): DataModel<{
160
164
  clusterDomain?: string | undefined;
161
165
  clusterID?: string | undefined;
166
+ clusterId?: string | undefined;
162
167
  createdAt: string;
163
168
  customerId: string;
164
169
  description: string;
@@ -24,6 +24,7 @@ export declare class Server extends ReferenceModel {
24
24
  use: (query?: Omit<import("@mittwald/api-client").MittwaldAPIV2.Paths.V2Projects.Get.Parameters.Query | undefined, "serverId"> | undefined) => readonly import("../../project/index.js").ProjectListItem[];
25
25
  };
26
26
  getDetailed: AsyncResourceVariant<ServerDetailed, []>;
27
+ findDetailed: AsyncResourceVariant<ServerDetailed | undefined, []>;
27
28
  }
28
29
  declare const ServerCommon_base: import("polytype").Polytype.ClusteredConstructor<[{
29
30
  new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServer | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-models",
3
- "version": "4.52.0",
3
+ "version": "4.54.0",
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",
@@ -39,7 +39,7 @@
39
39
  "test:unit": "node --experimental-vm-modules $(yarn bin jest)"
40
40
  },
41
41
  "dependencies": {
42
- "@mittwald/api-client": "^4.52.0",
42
+ "@mittwald/api-client": "^4.53.0",
43
43
  "another-deep-freeze": "^1.0.0",
44
44
  "polytype": "^0.17.0",
45
45
  "type-fest": "^4.23.0"
@@ -73,5 +73,5 @@
73
73
  "optional": true
74
74
  }
75
75
  },
76
- "gitHead": "39cb6ca7ad0d171d7347229695ad0139c5dfad8a"
76
+ "gitHead": "7a402b9e0f16e0412eb6791eabb61a4f695e1557"
77
77
  }