@mittwald/api-models 4.362.0 → 4.364.1

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 (195) hide show
  1. package/package.json +3 -3
  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 -51
  25. package/dist/esm/config/behaviors/index.js +0 -1
  26. package/dist/esm/config/config.js +0 -14
  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/marketplace/Contributor/Contributor.js +0 -83
  69. package/dist/esm/marketplace/Contributor/ContributorIncomingInvoice.js +0 -53
  70. package/dist/esm/marketplace/Contributor/behaviors/api.js +0 -39
  71. package/dist/esm/marketplace/Contributor/behaviors/index.js +0 -2
  72. package/dist/esm/marketplace/Contributor/behaviors/types.js +0 -1
  73. package/dist/esm/marketplace/Contributor/index.js +0 -3
  74. package/dist/esm/marketplace/Contributor/types.js +0 -1
  75. package/dist/esm/marketplace/index.js +0 -1
  76. package/dist/esm/project/Project/Project.js +0 -121
  77. package/dist/esm/project/Project/behaviors/api.js +0 -58
  78. package/dist/esm/project/Project/behaviors/inMem.js +0 -27
  79. package/dist/esm/project/Project/behaviors/index.js +0 -3
  80. package/dist/esm/project/Project/behaviors/types.js +0 -1
  81. package/dist/esm/project/Project/index.js +0 -2
  82. package/dist/esm/project/Project/types.js +0 -1
  83. package/dist/esm/project/index.js +0 -1
  84. package/dist/esm/react/MittwaldApiModelProvider.js +0 -12
  85. package/dist/esm/react/asyncResourceInvalidation.js +0 -29
  86. package/dist/esm/react/index.js +0 -4
  87. package/dist/esm/react/provideReact.js +0 -27
  88. package/dist/esm/react/provideReact.test-types.js +0 -21
  89. package/dist/esm/react/reactProvisionContext.js +0 -2
  90. package/dist/esm/react/reactUsePromise.js +0 -17
  91. package/dist/esm/react.js +0 -1
  92. package/dist/esm/server/Server/Server.js +0 -102
  93. package/dist/esm/server/Server/behaviors/api.js +0 -22
  94. package/dist/esm/server/Server/behaviors/index.js +0 -2
  95. package/dist/esm/server/Server/behaviors/types.js +0 -1
  96. package/dist/esm/server/Server/index.js +0 -1
  97. package/dist/esm/server/Server/types.js +0 -1
  98. package/dist/esm/server/index.js +0 -1
  99. package/dist/types/app/AppInstallation/AppInstallation.d.ts +0 -158
  100. package/dist/types/app/AppInstallation/behaviors/api.d.ts +0 -3
  101. package/dist/types/app/AppInstallation/behaviors/index.d.ts +0 -2
  102. package/dist/types/app/AppInstallation/behaviors/types.d.ts +0 -6
  103. package/dist/types/app/AppInstallation/index.d.ts +0 -2
  104. package/dist/types/app/AppInstallation/types.d.ts +0 -4
  105. package/dist/types/app/index.d.ts +0 -1
  106. package/dist/types/article/Article/Article.d.ts +0 -133
  107. package/dist/types/article/Article/behaviors/api.d.ts +0 -3
  108. package/dist/types/article/Article/behaviors/index.d.ts +0 -2
  109. package/dist/types/article/Article/behaviors/types.d.ts +0 -6
  110. package/dist/types/article/Article/index.d.ts +0 -2
  111. package/dist/types/article/Article/types.d.ts +0 -5
  112. package/dist/types/article/index.d.ts +0 -1
  113. package/dist/types/base/DataModel.d.ts +0 -5
  114. package/dist/types/base/ListDataModel.d.ts +0 -5
  115. package/dist/types/base/ListQueryModel.d.ts +0 -9
  116. package/dist/types/base/Money.d.ts +0 -3
  117. package/dist/types/base/ReferenceModel.d.ts +0 -5
  118. package/dist/types/base/assertObjectFound.d.ts +0 -3
  119. package/dist/types/base/index.d.ts +0 -6
  120. package/dist/types/base/types.d.ts +0 -6
  121. package/dist/types/config/behaviors/api.d.ts +0 -12
  122. package/dist/types/config/behaviors/index.d.ts +0 -1
  123. package/dist/types/config/config.d.ts +0 -25
  124. package/dist/types/config/index.d.ts +0 -1
  125. package/dist/types/contract/Contract/Contract.d.ts +0 -68
  126. package/dist/types/contract/Contract/behaviors/api.d.ts +0 -3
  127. package/dist/types/contract/Contract/behaviors/index.d.ts +0 -2
  128. package/dist/types/contract/Contract/behaviors/types.d.ts +0 -9
  129. package/dist/types/contract/Contract/index.d.ts +0 -2
  130. package/dist/types/contract/Contract/types.d.ts +0 -8
  131. package/dist/types/contract/ContractItem/ContractItem.d.ts +0 -64
  132. package/dist/types/contract/ContractItem/behaviors/api.d.ts +0 -3
  133. package/dist/types/contract/ContractItem/behaviors/index.d.ts +0 -2
  134. package/dist/types/contract/ContractItem/behaviors/types.d.ts +0 -4
  135. package/dist/types/contract/ContractItem/index.d.ts +0 -2
  136. package/dist/types/contract/ContractItem/types.d.ts +0 -2
  137. package/dist/types/contract/index.d.ts +0 -2
  138. package/dist/types/customer/Customer/Customer.d.ts +0 -146
  139. package/dist/types/customer/Customer/behaviors/api.d.ts +0 -3
  140. package/dist/types/customer/Customer/behaviors/index.d.ts +0 -2
  141. package/dist/types/customer/Customer/behaviors/types.d.ts +0 -7
  142. package/dist/types/customer/Customer/index.d.ts +0 -2
  143. package/dist/types/customer/Customer/types.d.ts +0 -5
  144. package/dist/types/customer/index.d.ts +0 -1
  145. package/dist/types/domain/Ingress/Ingress.d.ts +0 -109
  146. package/dist/types/domain/Ingress/behaviors/api.d.ts +0 -3
  147. package/dist/types/domain/Ingress/behaviors/index.d.ts +0 -2
  148. package/dist/types/domain/Ingress/behaviors/types.d.ts +0 -6
  149. package/dist/types/domain/Ingress/index.d.ts +0 -2
  150. package/dist/types/domain/Ingress/types.d.ts +0 -8
  151. package/dist/types/domain/IngressPath/IngressPath.d.ts +0 -11
  152. package/dist/types/domain/IngressPath/IngressPath.test.d.ts +0 -1
  153. package/dist/types/domain/IngressPath/index.d.ts +0 -2
  154. package/dist/types/domain/IngressPath/types.d.ts +0 -2
  155. package/dist/types/domain/IngressTarget/IngressTarget.d.ts +0 -24
  156. package/dist/types/domain/IngressTarget/IngressTarget.test-types.d.ts +0 -1
  157. package/dist/types/domain/IngressTarget/index.d.ts +0 -2
  158. package/dist/types/domain/IngressTarget/types.d.ts +0 -6
  159. package/dist/types/domain/index.d.ts +0 -1
  160. package/dist/types/errors/ObjectNotFoundError.d.ts +0 -3
  161. package/dist/types/index.d.ts +0 -7
  162. package/dist/types/lib/deepFreeze.d.ts +0 -5
  163. package/dist/types/lib/joinedId.d.ts +0 -1
  164. package/dist/types/lib/types.d.ts +0 -2
  165. package/dist/types/marketplace/Contributor/Contributor.d.ts +0 -49
  166. package/dist/types/marketplace/Contributor/ContributorIncomingInvoice.d.ts +0 -31
  167. package/dist/types/marketplace/Contributor/behaviors/api.d.ts +0 -3
  168. package/dist/types/marketplace/Contributor/behaviors/index.d.ts +0 -2
  169. package/dist/types/marketplace/Contributor/behaviors/types.d.ts +0 -10
  170. package/dist/types/marketplace/Contributor/index.d.ts +0 -3
  171. package/dist/types/marketplace/Contributor/types.d.ts +0 -6
  172. package/dist/types/marketplace/index.d.ts +0 -1
  173. package/dist/types/project/Project/Project.d.ts +0 -300
  174. package/dist/types/project/Project/behaviors/api.d.ts +0 -3
  175. package/dist/types/project/Project/behaviors/inMem.d.ts +0 -3
  176. package/dist/types/project/Project/behaviors/index.d.ts +0 -3
  177. package/dist/types/project/Project/behaviors/types.d.ts +0 -12
  178. package/dist/types/project/Project/index.d.ts +0 -2
  179. package/dist/types/project/Project/types.d.ts +0 -10
  180. package/dist/types/project/index.d.ts +0 -1
  181. package/dist/types/react/MittwaldApiModelProvider.d.ts +0 -6
  182. package/dist/types/react/asyncResourceInvalidation.d.ts +0 -4
  183. package/dist/types/react/index.d.ts +0 -5
  184. package/dist/types/react/provideReact.d.ts +0 -12
  185. package/dist/types/react/provideReact.test-types.d.ts +0 -1
  186. package/dist/types/react/reactProvisionContext.d.ts +0 -3
  187. package/dist/types/react/reactUsePromise.d.ts +0 -2
  188. package/dist/types/react.d.ts +0 -1
  189. package/dist/types/server/Server/Server.d.ts +0 -119
  190. package/dist/types/server/Server/behaviors/api.d.ts +0 -3
  191. package/dist/types/server/Server/behaviors/index.d.ts +0 -2
  192. package/dist/types/server/Server/behaviors/types.d.ts +0 -6
  193. package/dist/types/server/Server/index.d.ts +0 -1
  194. package/dist/types/server/Server/types.d.ts +0 -8
  195. package/dist/types/server/index.d.ts +0 -1
@@ -1,300 +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
- serverGroupId: string;
51
- serverId?: string;
52
- shortId: string;
53
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
54
- statusSetAt: string;
55
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
56
- webStorageUsageInBytes: number;
57
- webStorageUsageInBytesSetAt: string;
58
- } | {
59
- backupStorageUsageInBytes: number;
60
- backupStorageUsageInBytesSetAt: string;
61
- clusterDomain?: string | undefined;
62
- clusterID?: string | undefined;
63
- clusterId?: string | undefined;
64
- createdAt: string;
65
- customerId: string;
66
- deletionRequested?: boolean | undefined;
67
- description: string;
68
- directories: {
69
- [k: string]: string;
70
- };
71
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason | undefined;
72
- disabledAt?: string | undefined;
73
- enabled: boolean;
74
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[] | undefined;
75
- id: string;
76
- imageRefId?: string | undefined;
77
- isReady: boolean;
78
- projectHostingId?: string | undefined;
79
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
80
- serverGroupId: string;
81
- serverId?: string | undefined;
82
- serverShortId?: string | undefined;
83
- shortId: string;
84
- spec?: (import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectVisitorSpec | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectHardwareSpec) | undefined;
85
- statisticsBaseDomain?: string | undefined;
86
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
87
- statusSetAt: string;
88
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
89
- webStorageUsageInBytes: number;
90
- webStorageUsageInBytesSetAt: string;
91
- }): DataModel<{
92
- backupStorageUsageInBytes: number;
93
- backupStorageUsageInBytesSetAt: string;
94
- createdAt: string;
95
- customerId: string;
96
- customerMeta: {
97
- id: string;
98
- };
99
- description: string;
100
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason;
101
- disabledAt?: string;
102
- enabled: boolean;
103
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
104
- id: string;
105
- imageRefId?: string;
106
- isReady: boolean;
107
- projectHostingId?: string;
108
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
109
- serverGroupId: string;
110
- serverId?: string;
111
- shortId: string;
112
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
113
- statusSetAt: string;
114
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
115
- webStorageUsageInBytes: number;
116
- webStorageUsageInBytesSetAt: string;
117
- } | {
118
- backupStorageUsageInBytes: number;
119
- backupStorageUsageInBytesSetAt: string;
120
- clusterDomain?: string | undefined;
121
- clusterID?: string | undefined;
122
- clusterId?: string | undefined;
123
- createdAt: string;
124
- customerId: string;
125
- deletionRequested?: boolean | undefined;
126
- description: string;
127
- directories: {
128
- [k: string]: string;
129
- };
130
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason | undefined;
131
- disabledAt?: string | undefined;
132
- enabled: boolean;
133
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[] | undefined;
134
- id: string;
135
- imageRefId?: string | undefined;
136
- isReady: boolean;
137
- projectHostingId?: string | undefined;
138
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
139
- serverGroupId: string;
140
- serverId?: string | undefined;
141
- serverShortId?: string | undefined;
142
- shortId: string;
143
- spec?: (import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectVisitorSpec | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectHardwareSpec) | undefined;
144
- statisticsBaseDomain?: string | undefined;
145
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
146
- statusSetAt: string;
147
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
148
- webStorageUsageInBytes: number;
149
- webStorageUsageInBytesSetAt: string;
150
- }>;
151
- }, typeof Project]>;
152
- declare class ProjectCommon extends ProjectCommon_base {
153
- readonly server: Server | undefined;
154
- readonly customer: Customer;
155
- constructor(data: ProjectListItemData | ProjectData);
156
- }
157
- declare const ProjectDetailed_base: import("polytype").Polytype.ClusteredConstructor<[typeof ProjectCommon, {
158
- new (data: {
159
- backupStorageUsageInBytes: number;
160
- backupStorageUsageInBytesSetAt: string;
161
- clusterDomain?: string | undefined;
162
- clusterID?: string | undefined;
163
- clusterId?: string | undefined;
164
- createdAt: string;
165
- customerId: string;
166
- deletionRequested?: boolean | undefined;
167
- description: string;
168
- directories: {
169
- [k: string]: string;
170
- };
171
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason | undefined;
172
- disabledAt?: string | undefined;
173
- enabled: boolean;
174
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[] | undefined;
175
- id: string;
176
- imageRefId?: string | undefined;
177
- isReady: boolean;
178
- projectHostingId?: string | undefined;
179
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
180
- serverGroupId: string;
181
- serverId?: string | undefined;
182
- serverShortId?: string | undefined;
183
- shortId: string;
184
- spec?: (import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectVisitorSpec | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectHardwareSpec) | undefined;
185
- statisticsBaseDomain?: string | undefined;
186
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
187
- statusSetAt: string;
188
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
189
- webStorageUsageInBytes: number;
190
- webStorageUsageInBytesSetAt: string;
191
- }): DataModel<{
192
- backupStorageUsageInBytes: number;
193
- backupStorageUsageInBytesSetAt: string;
194
- clusterDomain?: string | undefined;
195
- clusterID?: string | undefined;
196
- clusterId?: string | undefined;
197
- createdAt: string;
198
- customerId: string;
199
- deletionRequested?: boolean | undefined;
200
- description: string;
201
- directories: {
202
- [k: string]: string;
203
- };
204
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason | undefined;
205
- disabledAt?: string | undefined;
206
- enabled: boolean;
207
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[] | undefined;
208
- id: string;
209
- imageRefId?: string | undefined;
210
- isReady: boolean;
211
- projectHostingId?: string | undefined;
212
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
213
- serverGroupId: string;
214
- serverId?: string | undefined;
215
- serverShortId?: string | undefined;
216
- shortId: string;
217
- spec?: (import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectVisitorSpec | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectHardwareSpec) | undefined;
218
- statisticsBaseDomain?: string | undefined;
219
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
220
- statusSetAt: string;
221
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
222
- webStorageUsageInBytes: number;
223
- webStorageUsageInBytesSetAt: string;
224
- }>;
225
- }]>;
226
- export declare class ProjectDetailed extends ProjectDetailed_base {
227
- constructor(data: ProjectData);
228
- }
229
- declare const ProjectListItem_base: import("polytype").Polytype.ClusteredConstructor<[typeof ProjectCommon, {
230
- new (data: {
231
- backupStorageUsageInBytes: number;
232
- backupStorageUsageInBytesSetAt: string;
233
- createdAt: string;
234
- customerId: string;
235
- customerMeta: {
236
- id: string;
237
- };
238
- description: string;
239
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason;
240
- disabledAt?: string;
241
- enabled: boolean;
242
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
243
- id: string;
244
- imageRefId?: string;
245
- isReady: boolean;
246
- projectHostingId?: string;
247
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
248
- serverGroupId: string;
249
- serverId?: string;
250
- shortId: string;
251
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
252
- statusSetAt: string;
253
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
254
- webStorageUsageInBytes: number;
255
- webStorageUsageInBytesSetAt: string;
256
- }): DataModel<{
257
- backupStorageUsageInBytes: number;
258
- backupStorageUsageInBytesSetAt: string;
259
- createdAt: string;
260
- customerId: string;
261
- customerMeta: {
262
- id: string;
263
- };
264
- description: string;
265
- disableReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDisableReason;
266
- disabledAt?: string;
267
- enabled: boolean;
268
- features?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
269
- id: string;
270
- imageRefId?: string;
271
- isReady: boolean;
272
- projectHostingId?: string;
273
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
274
- serverGroupId: string;
275
- serverId?: string;
276
- shortId: string;
277
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
278
- statusSetAt: string;
279
- supportedFeatures: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
280
- webStorageUsageInBytes: number;
281
- webStorageUsageInBytesSetAt: string;
282
- }>;
283
- }]>;
284
- export declare class ProjectListItem extends ProjectListItem_base {
285
- constructor(data: ProjectListItemData);
286
- }
287
- export declare class ProjectListQuery extends ListQueryModel<ProjectListQueryModelData> {
288
- constructor(query?: ProjectListQueryModelData);
289
- refine(query: ProjectListQueryModelData): ProjectListQuery;
290
- execute: AsyncResourceVariant<() => Promise<ProjectList>>;
291
- getTotalCount: AsyncResourceVariant<() => Promise<number>>;
292
- findOneAndOnly: AsyncResourceVariant<() => Promise<ProjectListItem | undefined>>;
293
- }
294
- declare const ProjectList_base: import("polytype").Polytype.ClusteredConstructor<[typeof ProjectListQuery, {
295
- new (items: ProjectListItem[], totalCount: number): ListDataModel<ProjectListItem>;
296
- }]>;
297
- export declare class ProjectList extends ProjectList_base {
298
- constructor(query: ProjectListQueryModelData, projects: ProjectListItem[], totalCount: number);
299
- }
300
- 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,119 +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
- groupId: string;
32
- id: string;
33
- imageRefId?: string | undefined;
34
- isReady: boolean;
35
- machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
36
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
37
- shortId: string;
38
- statisticsBaseDomain?: string | undefined;
39
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerStatus;
40
- storage: string;
41
- }): DataModel<import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServer | {
42
- clusterName: string;
43
- createdAt: string;
44
- customerId: string;
45
- description: string;
46
- disabledReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerDisableReason | undefined;
47
- groupId: string;
48
- id: string;
49
- imageRefId?: string | undefined;
50
- isReady: boolean;
51
- machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
52
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
53
- shortId: string;
54
- statisticsBaseDomain?: string | undefined;
55
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerStatus;
56
- storage: string;
57
- }>;
58
- }, typeof Server]>;
59
- declare class ServerCommon extends ServerCommon_base {
60
- constructor(data: ServerListItemData | ServerData);
61
- }
62
- declare const ServerDetailed_base: import("polytype").Polytype.ClusteredConstructor<[typeof ServerCommon, {
63
- new (data: {
64
- clusterName: string;
65
- createdAt: string;
66
- customerId: string;
67
- description: string;
68
- disabledReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerDisableReason | undefined;
69
- groupId: string;
70
- id: string;
71
- imageRefId?: string | undefined;
72
- isReady: boolean;
73
- machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
74
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
75
- shortId: string;
76
- statisticsBaseDomain?: string | undefined;
77
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerStatus;
78
- storage: string;
79
- }): DataModel<{
80
- clusterName: string;
81
- createdAt: string;
82
- customerId: string;
83
- description: string;
84
- disabledReason?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerDisableReason | undefined;
85
- groupId: string;
86
- id: string;
87
- imageRefId?: string | undefined;
88
- isReady: boolean;
89
- machineType: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectMachineType;
90
- readiness: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedServerReadinessStatus;
91
- shortId: string;
92
- statisticsBaseDomain?: string | undefined;
93
- status: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServerStatus;
94
- storage: string;
95
- }>;
96
- }]>;
97
- export declare class ServerDetailed extends ServerDetailed_base {
98
- constructor(data: ServerData);
99
- }
100
- declare const ServerListItem_base: import("polytype").Polytype.ClusteredConstructor<[typeof ServerCommon, {
101
- new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServer): DataModel<import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ProjectServer>;
102
- }]>;
103
- export declare class ServerListItem extends ServerListItem_base {
104
- constructor(data: ServerListItemData);
105
- }
106
- export declare class ServerListQuery extends ListQueryModel<ServerListQueryModelData> {
107
- constructor(query?: ServerListQueryModelData);
108
- refine(query: ServerListQueryModelData): ServerListQuery;
109
- execute: AsyncResourceVariant<() => Promise<ServerList>>;
110
- getTotalCount: AsyncResourceVariant<() => Promise<number>>;
111
- findOneAndOnly: AsyncResourceVariant<() => Promise<ServerListItem | undefined>>;
112
- }
113
- declare const ServerList_base: import("polytype").Polytype.ClusteredConstructor<[typeof ServerListQuery, {
114
- new (items: ServerListItem[], totalCount: number): ListDataModel<ServerListItem>;
115
- }]>;
116
- export declare class ServerList extends ServerList_base {
117
- constructor(query: ServerListQueryData, servers: ServerListItem[], totalCount: number);
118
- }
119
- 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";