@mittwald/api-client 4.389.0 → 4.391.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.
@@ -78,6 +78,8 @@ const buildContainerApi = (baseClient) => ({
78
78
  callPullImageWebhookForService: new ApiCallAsyncResourceFactory(descriptors.containerCallPullImageWebhookForService, baseClient.container.callPullImageWebhookForService).getApiResource,
79
79
  /** List Registries belonging to a Project. */
80
80
  listRegistries: new ApiCallAsyncResourceFactory(descriptors.containerListRegistries, baseClient.container.listRegistries).getApiResource,
81
+ /** List Stacks belonging to a Project. */
82
+ listStacks: new ApiCallAsyncResourceFactory(descriptors.containerListStacks, baseClient.container.listStacks).getApiResource,
81
83
  /** Get a Stack. */
82
84
  getStack: new ApiCallAsyncResourceFactory(descriptors.containerGetStack, baseClient.container.getStack).getApiResource,
83
85
  /** Get a Registry. */
@@ -96,8 +98,6 @@ const buildContainerApi = (baseClient) => ({
96
98
  listServices: new ApiCallAsyncResourceFactory(descriptors.containerListServices, baseClient.container.listServices).getApiResource,
97
99
  /** List Volumes belonging to a Stack. */
98
100
  listStackVolumes: new ApiCallAsyncResourceFactory(descriptors.containerListStackVolumes, baseClient.container.listStackVolumes).getApiResource,
99
- /** List Stacks belonging to a Project. */
100
- listStacks: new ApiCallAsyncResourceFactory(descriptors.containerListStacks, baseClient.container.listStacks).getApiResource,
101
101
  /** List Volumes belonging to a Project. */
102
102
  listVolumes: new ApiCallAsyncResourceFactory(descriptors.containerListVolumes, baseClient.container.listVolumes).getApiResource,
103
103
  });
@@ -448,6 +448,8 @@ const buildProjectApi = (baseClient) => ({
448
448
  storagespaceGetServerStatistics: new ApiCallAsyncResourceFactory(descriptors.storagespaceGetServerStatistics, baseClient.project.storagespaceGetServerStatistics).getApiResource,
449
449
  /** Get the activities of a project. */
450
450
  listProjectActivities: new ApiCallAsyncResourceFactory(descriptors.projectListProjectActivities, baseClient.project.listProjectActivities).getApiResource,
451
+ /** List Projects belonging to a Customer. */
452
+ listCustomerProjects: new ApiCallAsyncResourceFactory(descriptors.projectListCustomerProjects, baseClient.project.listCustomerProjects).getApiResource,
451
453
  });
452
454
  const buildProjectFileSystemApi = (baseClient) => ({
453
455
  /** List directories belonging to a Project. */
@@ -140,10 +140,16 @@ export class MittwaldAPIV2Client extends ApiClientBase {
140
140
  listRegistries: this.requestFunctionFactory(descriptors.containerListRegistries),
141
141
  /** Create a Registry. */
142
142
  createRegistry: this.requestFunctionFactory(descriptors.containerCreateRegistry),
143
+ /** List Stacks belonging to a Project. */
144
+ listStacks: this.requestFunctionFactory(descriptors.containerListStacks),
145
+ /** Create a Stack. */
146
+ createStack: this.requestFunctionFactory(descriptors.containerCreateStack),
143
147
  /** Get a Stack. */
144
148
  getStack: this.requestFunctionFactory(descriptors.containerGetStack),
145
149
  /** Declaratively create, update or delete Services or Volumes belonging to a Stack. */
146
150
  declareStack: this.requestFunctionFactory(descriptors.containerDeclareStack),
151
+ /** Delete a Stack. */
152
+ deleteStack: this.requestFunctionFactory(descriptors.containerDeleteStack),
147
153
  /** Create, update or delete Services or Volumes belonging to a Stack. */
148
154
  updateStack: this.requestFunctionFactory(descriptors.containerUpdateStack),
149
155
  /** Get a Registry. */
@@ -168,8 +174,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
168
174
  listServices: this.requestFunctionFactory(descriptors.containerListServices),
169
175
  /** List Volumes belonging to a Stack. */
170
176
  listStackVolumes: this.requestFunctionFactory(descriptors.containerListStackVolumes),
171
- /** List Stacks belonging to a Project. */
172
- listStacks: this.requestFunctionFactory(descriptors.containerListStacks),
173
177
  /** List Volumes belonging to a Project. */
174
178
  listVolumes: this.requestFunctionFactory(descriptors.containerListVolumes),
175
179
  /** Pull image and recreate */
@@ -964,6 +968,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
964
968
  storagespaceReplaceServerNotificationThreshold: this.requestFunctionFactory(descriptors.storagespaceReplaceServerNotificationThreshold),
965
969
  /** Get the activities of a project. */
966
970
  listProjectActivities: this.requestFunctionFactory(descriptors.projectListProjectActivities),
971
+ /** List Projects belonging to a Customer. */
972
+ listCustomerProjects: this.requestFunctionFactory(descriptors.projectListCustomerProjects),
967
973
  };
968
974
  /** The filesystem API allows you to directly access the filesystem of your project. */
969
975
  projectFileSystem = {
@@ -364,6 +364,18 @@ export const containerCreateRegistry = {
364
364
  method: "POST",
365
365
  operationId: "container-create-registry",
366
366
  };
367
+ /** List Stacks belonging to a Project. */
368
+ export const containerListStacks = {
369
+ path: "/v2/projects/{projectId}/stacks",
370
+ method: "GET",
371
+ operationId: "container-list-stacks",
372
+ };
373
+ /** Create a Stack. */
374
+ export const containerCreateStack = {
375
+ path: "/v2/projects/{projectId}/stacks",
376
+ method: "POST",
377
+ operationId: "container-create-stack",
378
+ };
367
379
  /** Get a Stack. */
368
380
  export const containerGetStack = {
369
381
  path: "/v2/stacks/{stackId}",
@@ -376,6 +388,12 @@ export const containerDeclareStack = {
376
388
  method: "PUT",
377
389
  operationId: "container-declare-stack",
378
390
  };
391
+ /** Delete a Stack. */
392
+ export const containerDeleteStack = {
393
+ path: "/v2/stacks/{stackId}",
394
+ method: "DELETE",
395
+ operationId: "container-delete-stack",
396
+ };
379
397
  /** Create, update or delete Services or Volumes belonging to a Stack. */
380
398
  export const containerUpdateStack = {
381
399
  path: "/v2/stacks/{stackId}",
@@ -448,12 +466,6 @@ export const containerListStackVolumes = {
448
466
  method: "GET",
449
467
  operationId: "container-list-stack-volumes",
450
468
  };
451
- /** List Stacks belonging to a Project. */
452
- export const containerListStacks = {
453
- path: "/v2/projects/{projectId}/stacks",
454
- method: "GET",
455
- operationId: "container-list-stacks",
456
- };
457
469
  /** List Volumes belonging to a Project. */
458
470
  export const containerListVolumes = {
459
471
  path: "/v2/projects/{projectId}/volumes",
@@ -2794,3 +2806,9 @@ export const projectListProjectActivities = {
2794
2806
  method: "GET",
2795
2807
  operationId: "project-list-project-activities",
2796
2808
  };
2809
+ /** List Projects belonging to a Customer. */
2810
+ export const projectListCustomerProjects = {
2811
+ path: "/v2/customers/{customerId}/projects",
2812
+ method: "GET",
2813
+ operationId: "project-list-customer-projects",
2814
+ };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.388.0';
1
+ export const MittwaldAPIClientVersion = '4.390.0';
@@ -538,6 +538,20 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
538
538
  page?: number | undefined;
539
539
  } | undefined;
540
540
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerRegistry[]>;
541
+ /** List Stacks belonging to a Project. */
542
+ listStacks: (conf: {
543
+ projectId: string;
544
+ headers?: {
545
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
546
+ "x-access-token"?: string | undefined;
547
+ } | undefined;
548
+ queryParameters?: {
549
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
550
+ limit?: number | undefined;
551
+ skip?: number | undefined;
552
+ page?: number | undefined;
553
+ } | undefined;
554
+ }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerStackResponse[]>;
541
555
  /** Get a Stack. */
542
556
  getStack: (conf: {
543
557
  stackId: string;
@@ -703,20 +717,6 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
703
717
  page?: number | undefined;
704
718
  } | undefined;
705
719
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerVolumeResponse[]>;
706
- /** List Stacks belonging to a Project. */
707
- listStacks: (conf: {
708
- projectId: string;
709
- headers?: {
710
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
711
- "x-access-token"?: string | undefined;
712
- } | undefined;
713
- queryParameters?: {
714
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
715
- limit?: number | undefined;
716
- skip?: number | undefined;
717
- page?: number | undefined;
718
- } | undefined;
719
- }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerStackResponse[]>;
720
720
  /** List Volumes belonging to a Project. */
721
721
  listVolumes: (conf: {
722
722
  projectId: string;
@@ -3404,33 +3404,7 @@ declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
3404
3404
  sort?: "createdAt" | "description" | undefined;
3405
3405
  order?: "asc" | "desc" | undefined;
3406
3406
  } | undefined;
3407
- } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<{
3408
- backupStorageUsageInBytes: number;
3409
- backupStorageUsageInBytesSetAt: string;
3410
- createdAt: string;
3411
- customerId: string;
3412
- customerMeta: {
3413
- id: string;
3414
- };
3415
- description: string;
3416
- disableReason?: import("./types.js").MittwaldAPIV2.Components.Schemas.ProjectDisableReason;
3417
- disabledAt?: string;
3418
- enabled: boolean;
3419
- features?: import("./types.js").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
3420
- id: string;
3421
- imageRefId?: string;
3422
- isReady: boolean;
3423
- projectHostingId?: string;
3424
- readiness: import("./types.js").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;
3425
- serverGroupId: string;
3426
- serverId?: string;
3427
- shortId: string;
3428
- status: import("./types.js").MittwaldAPIV2.Components.Schemas.ProjectProjectStatus;
3429
- statusSetAt: string;
3430
- supportedFeatures: import("./types.js").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[];
3431
- webStorageUsageInBytes: number;
3432
- webStorageUsageInBytesSetAt: string;
3433
- }[]>;
3407
+ } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ProjectProjectListItem[]>;
3434
3408
  /** List Servers belonging to the executing user. */
3435
3409
  listServers: (conf?: {
3436
3410
  headers?: {
@@ -3503,6 +3477,23 @@ declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
3503
3477
  order?: "asc" | "desc" | undefined;
3504
3478
  } | undefined;
3505
3479
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ActivitylogLogEntry[]>;
3480
+ /** List Projects belonging to a Customer. */
3481
+ listCustomerProjects: (conf: {
3482
+ customerId: string;
3483
+ headers?: {
3484
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3485
+ "x-access-token"?: string | undefined;
3486
+ } | undefined;
3487
+ queryParameters?: {
3488
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3489
+ searchTerm?: string | undefined;
3490
+ limit?: number | undefined;
3491
+ skip?: number | undefined;
3492
+ page?: number | undefined;
3493
+ sort?: "createdAt" | "description" | undefined;
3494
+ order?: "asc" | "desc" | undefined;
3495
+ } | undefined;
3496
+ }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ProjectProjectListItem[]>;
3506
3497
  };
3507
3498
  declare const buildProjectFileSystemApi: (baseClient: MittwaldAPIV2Client) => {
3508
3499
  /** List directories belonging to a Project. */