@mittwald/api-models 4.93.0 → 4.94.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.
@@ -31,9 +31,13 @@ export const apiProjectBehaviors = (client) => ({
31
31
  return response.data;
32
32
  },
33
33
  leave: async (id) => {
34
- const response = await client.project.leaveProject({
34
+ const selfMembershipResponse = await client.project.getSelfMembershipForProject({
35
35
  projectId: id,
36
36
  });
37
+ assertStatus(selfMembershipResponse, 200);
38
+ const response = await client.project.deleteProjectMembership({
39
+ projectMembershipId: selfMembershipResponse.data.id,
40
+ });
37
41
  assertStatus(response, 204);
38
42
  },
39
43
  delete: async (id) => {
@@ -19,6 +19,7 @@ declare const AppInstallationCommon_base: import("polytype").Polytype.ClusteredC
19
19
  new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.AppAppInstallation | {
20
20
  appId: string;
21
21
  appVersion: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.AppVersionStatus;
22
+ createdAt: string;
22
23
  customDocumentRoot?: string | undefined;
23
24
  description: string;
24
25
  disabled: boolean;
@@ -36,6 +37,7 @@ declare const AppInstallationCommon_base: import("polytype").Polytype.ClusteredC
36
37
  }): DataModel<import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.AppAppInstallation | {
37
38
  appId: string;
38
39
  appVersion: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.AppVersionStatus;
40
+ createdAt: string;
39
41
  customDocumentRoot?: string | undefined;
40
42
  description: string;
41
43
  disabled: boolean;
@@ -59,6 +61,7 @@ declare const AppInstallationDetailed_base: import("polytype").Polytype.Clustere
59
61
  new (data: {
60
62
  appId: string;
61
63
  appVersion: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.AppVersionStatus;
64
+ createdAt: string;
62
65
  customDocumentRoot?: string | undefined;
63
66
  description: string;
64
67
  disabled: boolean;
@@ -76,6 +79,7 @@ declare const AppInstallationDetailed_base: import("polytype").Polytype.Clustere
76
79
  }): DataModel<{
77
80
  appId: string;
78
81
  appVersion: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.AppVersionStatus;
82
+ createdAt: string;
79
83
  customDocumentRoot?: string | undefined;
80
84
  description: string;
81
85
  disabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-models",
3
- "version": "4.93.0",
3
+ "version": "4.94.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.93.0",
42
+ "@mittwald/api-client": "^4.94.0",
43
43
  "another-deep-freeze": "^1.0.0",
44
44
  "context": "^3.0.33",
45
45
  "dinero.js": "^1.9.1",
@@ -84,5 +84,5 @@
84
84
  "optional": true
85
85
  }
86
86
  },
87
- "gitHead": "3adfe8830f8e191181f0bedc8c5e1ec0fd8d79f8"
87
+ "gitHead": "fb69f9a5369b220b317e96f19732b9c9b5d7feea"
88
88
  }