@mittwald/api-models 4.241.0 → 4.242.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.
Files changed (179) hide show
  1. package/package.json +15 -15
  2. package/dist/esm/app/AppInstallation/AppInstallation.js +0 -89
  3. package/dist/esm/app/AppInstallation/behaviors/api.js +0 -24
  4. package/dist/esm/app/AppInstallation/behaviors/index.js +0 -2
  5. package/dist/esm/app/AppInstallation/behaviors/types.js +0 -1
  6. package/dist/esm/app/AppInstallation/index.js +0 -2
  7. package/dist/esm/app/AppInstallation/types.js +0 -1
  8. package/dist/esm/app/index.js +0 -1
  9. package/dist/esm/article/Article/Article.js +0 -79
  10. package/dist/esm/article/Article/behaviors/api.js +0 -22
  11. package/dist/esm/article/Article/behaviors/index.js +0 -2
  12. package/dist/esm/article/Article/behaviors/types.js +0 -1
  13. package/dist/esm/article/Article/index.js +0 -2
  14. package/dist/esm/article/Article/types.js +0 -1
  15. package/dist/esm/article/index.js +0 -1
  16. package/dist/esm/base/DataModel.js +0 -7
  17. package/dist/esm/base/ListDataModel.js +0 -8
  18. package/dist/esm/base/ListQueryModel.js +0 -11
  19. package/dist/esm/base/Money.js +0 -5
  20. package/dist/esm/base/ReferenceModel.js +0 -9
  21. package/dist/esm/base/assertObjectFound.js +0 -9
  22. package/dist/esm/base/index.js +0 -6
  23. package/dist/esm/base/types.js +0 -1
  24. package/dist/esm/config/behaviors/api.js +0 -49
  25. package/dist/esm/config/behaviors/index.js +0 -1
  26. package/dist/esm/config/config.js +0 -13
  27. package/dist/esm/config/index.js +0 -1
  28. package/dist/esm/contract/Contract/Contract.js +0 -78
  29. package/dist/esm/contract/Contract/behaviors/api.js +0 -20
  30. package/dist/esm/contract/Contract/behaviors/index.js +0 -2
  31. package/dist/esm/contract/Contract/behaviors/types.js +0 -1
  32. package/dist/esm/contract/Contract/index.js +0 -2
  33. package/dist/esm/contract/Contract/types.js +0 -1
  34. package/dist/esm/contract/ContractItem/ContractItem.js +0 -31
  35. package/dist/esm/contract/ContractItem/behaviors/api.js +0 -13
  36. package/dist/esm/contract/ContractItem/behaviors/index.js +0 -2
  37. package/dist/esm/contract/ContractItem/behaviors/types.js +0 -1
  38. package/dist/esm/contract/ContractItem/index.js +0 -2
  39. package/dist/esm/contract/ContractItem/types.js +0 -1
  40. package/dist/esm/contract/index.js +0 -2
  41. package/dist/esm/customer/Customer/Customer.js +0 -96
  42. package/dist/esm/customer/Customer/behaviors/api.js +0 -30
  43. package/dist/esm/customer/Customer/behaviors/index.js +0 -2
  44. package/dist/esm/customer/Customer/behaviors/types.js +0 -1
  45. package/dist/esm/customer/Customer/index.js +0 -2
  46. package/dist/esm/customer/Customer/types.js +0 -1
  47. package/dist/esm/customer/index.js +0 -1
  48. package/dist/esm/domain/Ingress/Ingress.js +0 -106
  49. package/dist/esm/domain/Ingress/behaviors/api.js +0 -25
  50. package/dist/esm/domain/Ingress/behaviors/index.js +0 -2
  51. package/dist/esm/domain/Ingress/behaviors/types.js +0 -1
  52. package/dist/esm/domain/Ingress/index.js +0 -2
  53. package/dist/esm/domain/Ingress/types.js +0 -1
  54. package/dist/esm/domain/IngressPath/IngressPath.js +0 -15
  55. package/dist/esm/domain/IngressPath/IngressPath.test.js +0 -16
  56. package/dist/esm/domain/IngressPath/index.js +0 -2
  57. package/dist/esm/domain/IngressPath/types.js +0 -1
  58. package/dist/esm/domain/IngressTarget/IngressTarget.js +0 -40
  59. package/dist/esm/domain/IngressTarget/IngressTarget.test-types.js +0 -10
  60. package/dist/esm/domain/IngressTarget/index.js +0 -2
  61. package/dist/esm/domain/IngressTarget/types.js +0 -1
  62. package/dist/esm/domain/index.js +0 -1
  63. package/dist/esm/errors/ObjectNotFoundError.js +0 -7
  64. package/dist/esm/index.js +0 -7
  65. package/dist/esm/lib/deepFreeze.js +0 -4
  66. package/dist/esm/lib/joinedId.js +0 -1
  67. package/dist/esm/lib/types.js +0 -1
  68. package/dist/esm/project/Project/Project.js +0 -121
  69. package/dist/esm/project/Project/behaviors/api.js +0 -58
  70. package/dist/esm/project/Project/behaviors/inMem.js +0 -27
  71. package/dist/esm/project/Project/behaviors/index.js +0 -3
  72. package/dist/esm/project/Project/behaviors/types.js +0 -1
  73. package/dist/esm/project/Project/index.js +0 -2
  74. package/dist/esm/project/Project/types.js +0 -1
  75. package/dist/esm/project/index.js +0 -1
  76. package/dist/esm/react/MittwaldApiModelProvider.js +0 -12
  77. package/dist/esm/react/asyncResourceInvalidation.js +0 -29
  78. package/dist/esm/react/index.js +0 -4
  79. package/dist/esm/react/provideReact.js +0 -27
  80. package/dist/esm/react/provideReact.test-types.js +0 -21
  81. package/dist/esm/react/reactProvisionContext.js +0 -2
  82. package/dist/esm/react/reactUsePromise.js +0 -17
  83. package/dist/esm/react.js +0 -1
  84. package/dist/esm/server/Server/Server.js +0 -102
  85. package/dist/esm/server/Server/behaviors/api.js +0 -22
  86. package/dist/esm/server/Server/behaviors/index.js +0 -2
  87. package/dist/esm/server/Server/behaviors/types.js +0 -1
  88. package/dist/esm/server/Server/index.js +0 -1
  89. package/dist/esm/server/Server/types.js +0 -1
  90. package/dist/esm/server/index.js +0 -1
  91. package/dist/types/app/AppInstallation/AppInstallation.d.ts +0 -138
  92. package/dist/types/app/AppInstallation/behaviors/api.d.ts +0 -3
  93. package/dist/types/app/AppInstallation/behaviors/index.d.ts +0 -2
  94. package/dist/types/app/AppInstallation/behaviors/types.d.ts +0 -6
  95. package/dist/types/app/AppInstallation/index.d.ts +0 -2
  96. package/dist/types/app/AppInstallation/types.d.ts +0 -4
  97. package/dist/types/app/index.d.ts +0 -1
  98. package/dist/types/article/Article/Article.d.ts +0 -133
  99. package/dist/types/article/Article/behaviors/api.d.ts +0 -3
  100. package/dist/types/article/Article/behaviors/index.d.ts +0 -2
  101. package/dist/types/article/Article/behaviors/types.d.ts +0 -6
  102. package/dist/types/article/Article/index.d.ts +0 -2
  103. package/dist/types/article/Article/types.d.ts +0 -5
  104. package/dist/types/article/index.d.ts +0 -1
  105. package/dist/types/base/DataModel.d.ts +0 -5
  106. package/dist/types/base/ListDataModel.d.ts +0 -5
  107. package/dist/types/base/ListQueryModel.d.ts +0 -9
  108. package/dist/types/base/Money.d.ts +0 -3
  109. package/dist/types/base/ReferenceModel.d.ts +0 -5
  110. package/dist/types/base/assertObjectFound.d.ts +0 -3
  111. package/dist/types/base/index.d.ts +0 -6
  112. package/dist/types/base/types.d.ts +0 -6
  113. package/dist/types/config/behaviors/api.d.ts +0 -12
  114. package/dist/types/config/behaviors/index.d.ts +0 -1
  115. package/dist/types/config/config.d.ts +0 -23
  116. package/dist/types/config/index.d.ts +0 -1
  117. package/dist/types/contract/Contract/Contract.d.ts +0 -68
  118. package/dist/types/contract/Contract/behaviors/api.d.ts +0 -3
  119. package/dist/types/contract/Contract/behaviors/index.d.ts +0 -2
  120. package/dist/types/contract/Contract/behaviors/types.d.ts +0 -9
  121. package/dist/types/contract/Contract/index.d.ts +0 -2
  122. package/dist/types/contract/Contract/types.d.ts +0 -8
  123. package/dist/types/contract/ContractItem/ContractItem.d.ts +0 -64
  124. package/dist/types/contract/ContractItem/behaviors/api.d.ts +0 -3
  125. package/dist/types/contract/ContractItem/behaviors/index.d.ts +0 -2
  126. package/dist/types/contract/ContractItem/behaviors/types.d.ts +0 -4
  127. package/dist/types/contract/ContractItem/index.d.ts +0 -2
  128. package/dist/types/contract/ContractItem/types.d.ts +0 -2
  129. package/dist/types/contract/index.d.ts +0 -2
  130. package/dist/types/customer/Customer/Customer.d.ts +0 -138
  131. package/dist/types/customer/Customer/behaviors/api.d.ts +0 -3
  132. package/dist/types/customer/Customer/behaviors/index.d.ts +0 -2
  133. package/dist/types/customer/Customer/behaviors/types.d.ts +0 -7
  134. package/dist/types/customer/Customer/index.d.ts +0 -2
  135. package/dist/types/customer/Customer/types.d.ts +0 -5
  136. package/dist/types/customer/index.d.ts +0 -1
  137. package/dist/types/domain/Ingress/Ingress.d.ts +0 -109
  138. package/dist/types/domain/Ingress/behaviors/api.d.ts +0 -3
  139. package/dist/types/domain/Ingress/behaviors/index.d.ts +0 -2
  140. package/dist/types/domain/Ingress/behaviors/types.d.ts +0 -6
  141. package/dist/types/domain/Ingress/index.d.ts +0 -2
  142. package/dist/types/domain/Ingress/types.d.ts +0 -8
  143. package/dist/types/domain/IngressPath/IngressPath.d.ts +0 -11
  144. package/dist/types/domain/IngressPath/IngressPath.test.d.ts +0 -1
  145. package/dist/types/domain/IngressPath/index.d.ts +0 -2
  146. package/dist/types/domain/IngressPath/types.d.ts +0 -2
  147. package/dist/types/domain/IngressTarget/IngressTarget.d.ts +0 -24
  148. package/dist/types/domain/IngressTarget/IngressTarget.test-types.d.ts +0 -1
  149. package/dist/types/domain/IngressTarget/index.d.ts +0 -2
  150. package/dist/types/domain/IngressTarget/types.d.ts +0 -6
  151. package/dist/types/domain/index.d.ts +0 -1
  152. package/dist/types/errors/ObjectNotFoundError.d.ts +0 -3
  153. package/dist/types/index.d.ts +0 -7
  154. package/dist/types/lib/deepFreeze.d.ts +0 -5
  155. package/dist/types/lib/joinedId.d.ts +0 -1
  156. package/dist/types/lib/types.d.ts +0 -2
  157. package/dist/types/project/Project/Project.d.ts +0 -288
  158. package/dist/types/project/Project/behaviors/api.d.ts +0 -3
  159. package/dist/types/project/Project/behaviors/inMem.d.ts +0 -3
  160. package/dist/types/project/Project/behaviors/index.d.ts +0 -3
  161. package/dist/types/project/Project/behaviors/types.d.ts +0 -12
  162. package/dist/types/project/Project/index.d.ts +0 -2
  163. package/dist/types/project/Project/types.d.ts +0 -10
  164. package/dist/types/project/index.d.ts +0 -1
  165. package/dist/types/react/MittwaldApiModelProvider.d.ts +0 -6
  166. package/dist/types/react/asyncResourceInvalidation.d.ts +0 -4
  167. package/dist/types/react/index.d.ts +0 -5
  168. package/dist/types/react/provideReact.d.ts +0 -12
  169. package/dist/types/react/provideReact.test-types.d.ts +0 -1
  170. package/dist/types/react/reactProvisionContext.d.ts +0 -3
  171. package/dist/types/react/reactUsePromise.d.ts +0 -2
  172. package/dist/types/react.d.ts +0 -1
  173. package/dist/types/server/Server/Server.d.ts +0 -115
  174. package/dist/types/server/Server/behaviors/api.d.ts +0 -3
  175. package/dist/types/server/Server/behaviors/index.d.ts +0 -2
  176. package/dist/types/server/Server/behaviors/types.d.ts +0 -6
  177. package/dist/types/server/Server/index.d.ts +0 -1
  178. package/dist/types/server/Server/types.d.ts +0 -8
  179. package/dist/types/server/index.d.ts +0 -1
@@ -1,3 +0,0 @@
1
- export default class ObjectNotFoundError extends Error {
2
- constructor(type: string, refName: string);
3
- }
@@ -1,7 +0,0 @@
1
- export { MittwaldAPIV2Client } from "@mittwald/api-client";
2
- export * from "./config/index.js";
3
- export * from "./project/index.js";
4
- export * from "./server/index.js";
5
- export * from "./domain/index.js";
6
- export * from "./customer/index.js";
7
- export * from "./base/index.js";
@@ -1,5 +0,0 @@
1
- import type { ReadonlyDeep } from "type-fest";
2
- export type { ReadonlyDeep } from "type-fest";
3
- type DeepFreeze = <T>(subject: T) => ReadonlyDeep<T>;
4
- declare const deepFreeze: DeepFreeze;
5
- export default deepFreeze;
@@ -1 +0,0 @@
1
- export declare const joinedId: (...parts: Array<number | string>) => string;
@@ -1,2 +0,0 @@
1
- export type ParamsExceptFirst<T extends (...args: any[]) => unknown> = T extends (ignoredFirst: never, ...args: infer P) => unknown ? P : never;
2
- export type FirstParameter<T extends (...args: any[]) => unknown> = T extends (first: infer P, ...args: any[]) => unknown ? P : never;
@@ -1,288 +0,0 @@
1
- import { ProjectData, ProjectListItemData, ProjectListQueryData, ProjectListQueryModelData } from "./types.js";
2
- import { DataModel } from "../../base/DataModel.js";
3
- import { Server } from "../../server/index.js";
4
- import { AsyncResourceVariant } from "../../react/provideReact.js";
5
- import { Customer } from "../../customer/Customer/Customer.js";
6
- import { ReferenceModel } from "../../base/ReferenceModel.js";
7
- import { IngressListItem, IngressListQuery } from "../../domain/index.js";
8
- import { ListQueryModel } from "../../base/ListQueryModel.js";
9
- import { ListDataModel } from "../../base/ListDataModel.js";
10
- import { AppInstallationListQuery } from "../../app/index.js";
11
- export declare class Project extends ReferenceModel {
12
- readonly ingresses: IngressListQuery;
13
- readonly appInstallations: AppInstallationListQuery;
14
- constructor(id: string);
15
- static ofId(id: string): Project;
16
- static find: AsyncResourceVariant<(id: string) => Promise<ProjectDetailed | undefined>>;
17
- static get: AsyncResourceVariant<(id: string) => Promise<ProjectDetailed>>;
18
- static query(query?: ProjectListQueryModelData): ProjectListQuery;
19
- /** @deprecated: use query(), Customer.projects or Server.projects */
20
- static list: AsyncResourceVariant<(query?: ProjectListQueryData) => Promise<Readonly<Array<ProjectListItem>>>>;
21
- static create(serverId: string, description: string): Promise<Project>;
22
- getDetailed: AsyncResourceVariant<() => Promise<ProjectDetailed>>;
23
- findDetailed: AsyncResourceVariant<() => Promise<ProjectDetailed | undefined>>;
24
- /** @deprecated: use ingresses property */
25
- listIngresses: AsyncResourceVariant<() => Promise<readonly IngressListItem[]>>;
26
- getDefaultIngress: AsyncResourceVariant<() => Promise<IngressListItem>>;
27
- updateDescription(description: string): Promise<void>;
28
- leave(): Promise<void>;
29
- delete(): Promise<void>;
30
- }
31
- declare const ProjectCommon_base: import("polytype").Polytype.ClusteredConstructor<[{
32
- new (data: {
33
- backupStorageUsageInBytes: number;
34
- backupStorageUsageInBytesSetAt: string;
35
- createdAt: string;
36
- customerId: string;
37
- customerMeta: {
38
- id: string;
39
- };
40
- description: string;
41
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason;
42
- disabledAt?: string;
43
- enabled: boolean;
44
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
45
- id: string;
46
- imageRefId?: string;
47
- isReady: boolean;
48
- projectHostingId?: string;
49
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
50
- serverId?: string;
51
- shortId: string;
52
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
53
- statusSetAt: string;
54
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
55
- webStorageUsageInBytes: number;
56
- webStorageUsageInBytesSetAt: string;
57
- } | {
58
- backupStorageUsageInBytes: number;
59
- backupStorageUsageInBytesSetAt: string;
60
- clusterDomain?: string | undefined;
61
- clusterID?: string | undefined;
62
- clusterId?: string | undefined;
63
- createdAt: string;
64
- customerId: string;
65
- description: string;
66
- directories: {
67
- [k: string]: string;
68
- };
69
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason | undefined;
70
- disabledAt?: string | undefined;
71
- enabled: boolean;
72
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[] | undefined;
73
- id: string;
74
- imageRefId?: string | undefined;
75
- isReady: boolean;
76
- projectHostingId?: string | undefined;
77
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
78
- serverId?: string | undefined;
79
- serverShortId?: string | undefined;
80
- shortId: string;
81
- spec?: (import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectVisitorSpec | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectHardwareSpec) | undefined;
82
- statisticsBaseDomain?: string | undefined;
83
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
84
- statusSetAt: string;
85
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
86
- webStorageUsageInBytes: number;
87
- webStorageUsageInBytesSetAt: string;
88
- }): DataModel<{
89
- backupStorageUsageInBytes: number;
90
- backupStorageUsageInBytesSetAt: string;
91
- createdAt: string;
92
- customerId: string;
93
- customerMeta: {
94
- id: string;
95
- };
96
- description: string;
97
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason;
98
- disabledAt?: string;
99
- enabled: boolean;
100
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
101
- id: string;
102
- imageRefId?: string;
103
- isReady: boolean;
104
- projectHostingId?: string;
105
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
106
- serverId?: string;
107
- shortId: string;
108
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
109
- statusSetAt: string;
110
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
111
- webStorageUsageInBytes: number;
112
- webStorageUsageInBytesSetAt: string;
113
- } | {
114
- backupStorageUsageInBytes: number;
115
- backupStorageUsageInBytesSetAt: string;
116
- clusterDomain?: string | undefined;
117
- clusterID?: string | undefined;
118
- clusterId?: string | undefined;
119
- createdAt: string;
120
- customerId: string;
121
- description: string;
122
- directories: {
123
- [k: string]: string;
124
- };
125
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason | undefined;
126
- disabledAt?: string | undefined;
127
- enabled: boolean;
128
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[] | undefined;
129
- id: string;
130
- imageRefId?: string | undefined;
131
- isReady: boolean;
132
- projectHostingId?: string | undefined;
133
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
134
- serverId?: string | undefined;
135
- serverShortId?: string | undefined;
136
- shortId: string;
137
- spec?: (import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectVisitorSpec | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectHardwareSpec) | undefined;
138
- statisticsBaseDomain?: string | undefined;
139
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
140
- statusSetAt: string;
141
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
142
- webStorageUsageInBytes: number;
143
- webStorageUsageInBytesSetAt: string;
144
- }>;
145
- }, typeof Project]>;
146
- declare class ProjectCommon extends ProjectCommon_base {
147
- readonly server: Server | undefined;
148
- readonly customer: Customer;
149
- constructor(data: ProjectListItemData | ProjectData);
150
- }
151
- declare const ProjectDetailed_base: import("polytype").Polytype.ClusteredConstructor<[typeof ProjectCommon, {
152
- new (data: {
153
- backupStorageUsageInBytes: number;
154
- backupStorageUsageInBytesSetAt: string;
155
- clusterDomain?: string | undefined;
156
- clusterID?: string | undefined;
157
- clusterId?: string | undefined;
158
- createdAt: string;
159
- customerId: string;
160
- description: string;
161
- directories: {
162
- [k: string]: string;
163
- };
164
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason | undefined;
165
- disabledAt?: string | undefined;
166
- enabled: boolean;
167
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[] | undefined;
168
- id: string;
169
- imageRefId?: string | undefined;
170
- isReady: boolean;
171
- projectHostingId?: string | undefined;
172
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
173
- serverId?: string | undefined;
174
- serverShortId?: string | undefined;
175
- shortId: string;
176
- spec?: (import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectVisitorSpec | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectHardwareSpec) | undefined;
177
- statisticsBaseDomain?: string | undefined;
178
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
179
- statusSetAt: string;
180
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
181
- webStorageUsageInBytes: number;
182
- webStorageUsageInBytesSetAt: string;
183
- }): DataModel<{
184
- backupStorageUsageInBytes: number;
185
- backupStorageUsageInBytesSetAt: string;
186
- clusterDomain?: string | undefined;
187
- clusterID?: string | undefined;
188
- clusterId?: string | undefined;
189
- createdAt: string;
190
- customerId: string;
191
- description: string;
192
- directories: {
193
- [k: string]: string;
194
- };
195
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason | undefined;
196
- disabledAt?: string | undefined;
197
- enabled: boolean;
198
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[] | undefined;
199
- id: string;
200
- imageRefId?: string | undefined;
201
- isReady: boolean;
202
- projectHostingId?: string | undefined;
203
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
204
- serverId?: string | undefined;
205
- serverShortId?: string | undefined;
206
- shortId: string;
207
- spec?: (import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectVisitorSpec | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectHardwareSpec) | undefined;
208
- statisticsBaseDomain?: string | undefined;
209
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
210
- statusSetAt: string;
211
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
212
- webStorageUsageInBytes: number;
213
- webStorageUsageInBytesSetAt: string;
214
- }>;
215
- }]>;
216
- export declare class ProjectDetailed extends ProjectDetailed_base {
217
- constructor(data: ProjectData);
218
- }
219
- declare const ProjectListItem_base: import("polytype").Polytype.ClusteredConstructor<[typeof ProjectCommon, {
220
- new (data: {
221
- backupStorageUsageInBytes: number;
222
- backupStorageUsageInBytesSetAt: string;
223
- createdAt: string;
224
- customerId: string;
225
- customerMeta: {
226
- id: string;
227
- };
228
- description: string;
229
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason;
230
- disabledAt?: string;
231
- enabled: boolean;
232
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
233
- id: string;
234
- imageRefId?: string;
235
- isReady: boolean;
236
- projectHostingId?: string;
237
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
238
- serverId?: string;
239
- shortId: string;
240
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
241
- statusSetAt: string;
242
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
243
- webStorageUsageInBytes: number;
244
- webStorageUsageInBytesSetAt: string;
245
- }): DataModel<{
246
- backupStorageUsageInBytes: number;
247
- backupStorageUsageInBytesSetAt: string;
248
- createdAt: string;
249
- customerId: string;
250
- customerMeta: {
251
- id: string;
252
- };
253
- description: string;
254
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason;
255
- disabledAt?: string;
256
- enabled: boolean;
257
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
258
- id: string;
259
- imageRefId?: string;
260
- isReady: boolean;
261
- projectHostingId?: string;
262
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
263
- serverId?: string;
264
- shortId: string;
265
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
266
- statusSetAt: string;
267
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
268
- webStorageUsageInBytes: number;
269
- webStorageUsageInBytesSetAt: string;
270
- }>;
271
- }]>;
272
- export declare class ProjectListItem extends ProjectListItem_base {
273
- constructor(data: ProjectListItemData);
274
- }
275
- export declare class ProjectListQuery extends ListQueryModel<ProjectListQueryModelData> {
276
- constructor(query?: ProjectListQueryModelData);
277
- refine(query: ProjectListQueryModelData): ProjectListQuery;
278
- execute: AsyncResourceVariant<() => Promise<ProjectList>>;
279
- getTotalCount: AsyncResourceVariant<() => Promise<number>>;
280
- findOneAndOnly: AsyncResourceVariant<() => Promise<ProjectListItem | undefined>>;
281
- }
282
- declare const ProjectList_base: import("polytype").Polytype.ClusteredConstructor<[typeof ProjectListQuery, {
283
- new (items: ProjectListItem[], totalCount: number): ListDataModel<ProjectListItem>;
284
- }]>;
285
- export declare class ProjectList extends ProjectList_base {
286
- constructor(query: ProjectListQueryModelData, projects: ProjectListItem[], totalCount: number);
287
- }
288
- export {};
@@ -1,3 +0,0 @@
1
- import { ProjectBehaviors } from "./types.js";
2
- import { MittwaldAPIV2Client } from "@mittwald/api-client";
3
- export declare const apiProjectBehaviors: (client: MittwaldAPIV2Client) => ProjectBehaviors;
@@ -1,3 +0,0 @@
1
- import { ProjectBehaviors } from "./types.js";
2
- import { ProjectData } from "../types.js";
3
- export declare const inMemProjectBehaviors: (store: Map<string, ProjectData>) => ProjectBehaviors;
@@ -1,3 +0,0 @@
1
- export * from "./api.js";
2
- export * from "./inMem.js";
3
- export * from "./types.js";
@@ -1,12 +0,0 @@
1
- import { ProjectListItemData, ProjectData, ProjectListQueryData } from "../types.js";
2
- import { QueryResponseData } from "../../../base/index.js";
3
- export interface ProjectBehaviors {
4
- find: (id: string) => Promise<ProjectData | undefined>;
5
- list: (query?: ProjectListQueryData) => Promise<QueryResponseData<ProjectListItemData>>;
6
- create: (serverId: string, description: string) => Promise<{
7
- id: string;
8
- }>;
9
- leave: (projectId: string) => Promise<void>;
10
- delete: (projectId: string) => Promise<void>;
11
- updateDescription: (projectId: string, description: string) => Promise<void>;
12
- }
@@ -1,2 +0,0 @@
1
- export * from "./Project.js";
2
- export * from "./types.js";
@@ -1,10 +0,0 @@
1
- import { MittwaldAPIV2 } from "@mittwald/api-client";
2
- import { Server } from "../../server/index.js";
3
- import { Customer } from "../../customer/index.js";
4
- export type ProjectListQueryData = MittwaldAPIV2.Paths.V2Projects.Get.Parameters.Query;
5
- export type ProjectListQueryModelData = Omit<ProjectListQueryData, "serverId" | "customerId"> & {
6
- server?: Server;
7
- customer?: Customer;
8
- };
9
- export type ProjectData = MittwaldAPIV2.Operations.ProjectGetProject.ResponseData;
10
- export type ProjectListItemData = MittwaldAPIV2.Operations.ProjectListProjects.ResponseData[number];
@@ -1 +0,0 @@
1
- export * from "./Project/index.js";
@@ -1,6 +0,0 @@
1
- import { FC, PropsWithChildren, ReactNode } from "react";
2
- interface Props extends PropsWithChildren {
3
- fallback?: ReactNode;
4
- }
5
- export declare const MittwaldApiModelProvider: FC<Props>;
6
- export {};
@@ -1,4 +0,0 @@
1
- import { Commons } from "@mittwald/api-client";
2
- export declare const refreshProvideReactCache: (tag: string) => void;
3
- export declare const addTagToProvideReactCache: (tag: string) => void;
4
- export declare const addUrlTagToProvideReactCache: Commons.RequestOptions["onBeforeRequest"];
@@ -1,5 +0,0 @@
1
- export { refreshProvideReactCache, addTagToProvideReactCache, addUrlTagToProvideReactCache, } from "./asyncResourceInvalidation.js";
2
- export * from "./MittwaldApiModelProvider.js";
3
- export * from "./reactUsePromise.js";
4
- export { type AsyncResourceVariant } from "./provideReact.js";
5
- export { provideReact } from "./provideReact.js";
@@ -1,12 +0,0 @@
1
- import { AsyncResource } from "./reactUsePromise.js";
2
- import { AsyncReturnType } from "type-fest";
3
- type AsyncFn = (...args: any[]) => Promise<unknown>;
4
- type ReactProvisionDep = string | number;
5
- type LazyReactProvisionDep = () => ReactProvisionDep;
6
- type ReactProvisionDeps = Array<ReactProvisionDep | LazyReactProvisionDep>;
7
- export declare const provideReact: <T extends AsyncFn>(loader: T, dependencies?: ReactProvisionDeps) => AsyncResourceVariant<T>;
8
- export type AsyncResourceVariant<T extends AsyncFn> = T & {
9
- asResource: (...params: Parameters<T>) => AsyncResource<AsyncReturnType<T>>;
10
- use: (...params: Parameters<T>) => AsyncReturnType<T>;
11
- };
12
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export declare const reactProvisionContext: import("context").CtxCascadeApi<{
2
- id: string;
3
- }>;
@@ -1,2 +0,0 @@
1
- export type ReactUsePromiseModule = typeof import("@mittwald/react-use-promise");
2
- export type { AsyncResource, getAsyncResource, } from "@mittwald/react-use-promise";
@@ -1 +0,0 @@
1
- export * from "./react/index.js";
@@ -1,115 +0,0 @@
1
- import { ReferenceModel } from "../../base/ReferenceModel.js";
2
- import { ServerData, ServerListItemData, ServerListQueryData, ServerListQueryModelData } from "./types.js";
3
- import { DataModel } from "../../base/DataModel.js";
4
- import { Project, ProjectListQuery } from "../../project/index.js";
5
- import { FirstParameter, ParamsExceptFirst } from "../../lib/types.js";
6
- import { AsyncResourceVariant } from "../../react/provideReact.js";
7
- import { ListQueryModel } from "../../base/ListQueryModel.js";
8
- import { ListDataModel } from "../../base/ListDataModel.js";
9
- export declare class Server extends ReferenceModel {
10
- readonly projects: ProjectListQuery;
11
- constructor(id: string);
12
- static ofId(id: string): Server;
13
- static find: AsyncResourceVariant<(id: string) => Promise<ServerDetailed | undefined>>;
14
- static get: AsyncResourceVariant<(id: string) => Promise<ServerDetailed>>;
15
- static query(query?: ServerListQueryModelData): ServerListQuery;
16
- /** @deprecated: use query() or customer.servers */
17
- static list: AsyncResourceVariant<(query?: ServerListQueryData) => Promise<Readonly<ServerListItem[]>>>;
18
- createProject(...parameters: ParamsExceptFirst<typeof Project.create>): ReturnType<typeof Project.create>;
19
- /** @deprecated Use Server.projects property */
20
- listProjects: AsyncResourceVariant<(query?: Omit<FirstParameter<typeof Project.list>, "serverId">) => ReturnType<typeof Project.list>>;
21
- getDetailed: AsyncResourceVariant<() => Promise<ServerDetailed>>;
22
- findDetailed: AsyncResourceVariant<() => Promise<ServerDetailed | undefined>>;
23
- }
24
- declare const ServerCommon_base: import("polytype").Polytype.ClusteredConstructor<[{
25
- new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServer | {
26
- clusterName: string;
27
- createdAt: string;
28
- customerId: string;
29
- description: string;
30
- disabledReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerDisableReason | undefined;
31
- id: string;
32
- imageRefId?: string | undefined;
33
- isReady: boolean;
34
- machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
35
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
36
- shortId: string;
37
- statisticsBaseDomain?: string | undefined;
38
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerStatus;
39
- storage: string;
40
- }): DataModel<import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServer | {
41
- clusterName: string;
42
- createdAt: string;
43
- customerId: string;
44
- description: string;
45
- disabledReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerDisableReason | undefined;
46
- id: string;
47
- imageRefId?: string | undefined;
48
- isReady: boolean;
49
- machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
50
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
51
- shortId: string;
52
- statisticsBaseDomain?: string | undefined;
53
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerStatus;
54
- storage: string;
55
- }>;
56
- }, typeof Server]>;
57
- declare class ServerCommon extends ServerCommon_base {
58
- constructor(data: ServerListItemData | ServerData);
59
- }
60
- declare const ServerDetailed_base: import("polytype").Polytype.ClusteredConstructor<[typeof ServerCommon, {
61
- new (data: {
62
- clusterName: string;
63
- createdAt: string;
64
- customerId: string;
65
- description: string;
66
- disabledReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerDisableReason | undefined;
67
- id: string;
68
- imageRefId?: string | undefined;
69
- isReady: boolean;
70
- machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
71
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
72
- shortId: string;
73
- statisticsBaseDomain?: string | undefined;
74
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerStatus;
75
- storage: string;
76
- }): DataModel<{
77
- clusterName: string;
78
- createdAt: string;
79
- customerId: string;
80
- description: string;
81
- disabledReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerDisableReason | undefined;
82
- id: string;
83
- imageRefId?: string | undefined;
84
- isReady: boolean;
85
- machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
86
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
87
- shortId: string;
88
- statisticsBaseDomain?: string | undefined;
89
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerStatus;
90
- storage: string;
91
- }>;
92
- }]>;
93
- export declare class ServerDetailed extends ServerDetailed_base {
94
- constructor(data: ServerData);
95
- }
96
- declare const ServerListItem_base: import("polytype").Polytype.ClusteredConstructor<[typeof ServerCommon, {
97
- new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServer): DataModel<import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServer>;
98
- }]>;
99
- export declare class ServerListItem extends ServerListItem_base {
100
- constructor(data: ServerListItemData);
101
- }
102
- export declare class ServerListQuery extends ListQueryModel<ServerListQueryModelData> {
103
- constructor(query?: ServerListQueryModelData);
104
- refine(query: ServerListQueryModelData): ServerListQuery;
105
- execute: AsyncResourceVariant<() => Promise<ServerList>>;
106
- getTotalCount: AsyncResourceVariant<() => Promise<number>>;
107
- findOneAndOnly: AsyncResourceVariant<() => Promise<ServerListItem | undefined>>;
108
- }
109
- declare const ServerList_base: import("polytype").Polytype.ClusteredConstructor<[typeof ServerListQuery, {
110
- new (items: ServerListItem[], totalCount: number): ListDataModel<ServerListItem>;
111
- }]>;
112
- export declare class ServerList extends ServerList_base {
113
- constructor(query: ServerListQueryData, servers: ServerListItem[], totalCount: number);
114
- }
115
- export {};
@@ -1,3 +0,0 @@
1
- import { MittwaldAPIV2Client } from "@mittwald/api-client";
2
- import { ServerBehaviors } from "./types.js";
3
- export declare const apiServerBehaviors: (client: MittwaldAPIV2Client) => ServerBehaviors;
@@ -1,2 +0,0 @@
1
- export * from "./api.js";
2
- export * from "./types.js";
@@ -1,6 +0,0 @@
1
- import { ServerListItemData, ServerData, ServerListQueryData } from "../types.js";
2
- import { QueryResponseData } from "../../../base/index.js";
3
- export interface ServerBehaviors {
4
- find: (id: string) => Promise<ServerData | undefined>;
5
- list: (query?: ServerListQueryData) => Promise<QueryResponseData<ServerListItemData>>;
6
- }
@@ -1 +0,0 @@
1
- export * from "./Server.js";
@@ -1,8 +0,0 @@
1
- import { MittwaldAPIV2 } from "@mittwald/api-client";
2
- import { Customer } from "../../customer/index.js";
3
- export type ServerListQueryData = MittwaldAPIV2.Paths.V2Servers.Get.Parameters.Query;
4
- export type ServerListQueryModelData = Omit<ServerListQueryData, "customerId"> & {
5
- customer?: Customer;
6
- };
7
- export type ServerData = MittwaldAPIV2.Operations.ProjectGetServer.ResponseData;
8
- export type ServerListItemData = MittwaldAPIV2.Operations.ProjectListServers.ResponseData[number];
@@ -1 +0,0 @@
1
- export * from "./Server/index.js";