@mittwald/api-models 4.53.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.
- package/dist/esm/app/AppInstallation/AppInstallation.js +1 -0
- package/dist/esm/customer/Customer/Customer.js +1 -0
- package/dist/esm/domain/Ingress/Ingress.js +1 -0
- package/dist/esm/project/Project/Project.js +1 -0
- package/dist/esm/server/Server/Server.js +1 -0
- package/dist/types/app/AppInstallation/AppInstallation.d.ts +1 -0
- package/dist/types/customer/Customer/Customer.d.ts +1 -0
- package/dist/types/domain/Ingress/Ingress.d.ts +1 -0
- package/dist/types/project/Project/Project.d.ts +1 -0
- package/dist/types/server/Server/Server.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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>;
|
|
@@ -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.
|
|
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",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"optional": true
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "7a402b9e0f16e0412eb6791eabb61a4f695e1557"
|
|
77
77
|
}
|