@mittwald/api-client 0.0.0-development-2f042ce-20260202 → 0.0.0-development-137cd36-20260225

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.
@@ -132,6 +132,8 @@ const buildContractApi = (baseClient) => ({
132
132
  orderListCustomerOrders: new ApiCallAsyncResourceFactory(descriptors.orderListCustomerOrders, baseClient.contract.orderListCustomerOrders).getApiResource,
133
133
  /** Get list of Orders of a Project. */
134
134
  orderListProjectOrders: new ApiCallAsyncResourceFactory(descriptors.orderListProjectOrders, baseClient.contract.orderListProjectOrders).getApiResource,
135
+ /** Return the Contract for the given License. */
136
+ getDetailOfContractByLicense: new ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByLicense, baseClient.contract.getDetailOfContractByLicense).getApiResource,
135
137
  });
136
138
  const buildMarketplaceApi = (baseClient) => ({
137
139
  /** Get a Contributor. */
@@ -388,8 +390,6 @@ const buildUserApi = (baseClient) => ({
388
390
  getPasswordUpdatedAt: new ApiCallAsyncResourceFactory(descriptors.userGetPasswordUpdatedAt, baseClient.user.getPasswordUpdatedAt).getApiResource,
389
391
  /** Get personalized settings. */
390
392
  getPersonalizedSettings: new ApiCallAsyncResourceFactory(descriptors.userGetPersonalizedSettings, baseClient.user.getPersonalizedSettings).getApiResource,
391
- /** Get poll settings for the specified user. */
392
- getPollStatus: new ApiCallAsyncResourceFactory(descriptors.userGetPollStatus, baseClient.user.getPollStatus).getApiResource,
393
393
  /** Get a specific session. */
394
394
  getSession: new ApiCallAsyncResourceFactory(descriptors.userGetSession, baseClient.user.getSession).getApiResource,
395
395
  /** Get profile information for a user. */
@@ -160,12 +160,14 @@ export class MittwaldAPIV2Client extends ApiClientBase {
160
160
  listStacks: this.requestFunctionFactory(descriptors.containerListStacks),
161
161
  /** List Volumes belonging to a Project. */
162
162
  listVolumes: this.requestFunctionFactory(descriptors.containerListVolumes),
163
- /** Pulls the latest version of the Service's image and optionally recreates the Service. */
163
+ /** Pull image and recreate */
164
164
  pullImageForService: this.requestFunctionFactory(descriptors.containerPullImageForService),
165
165
  /** Recreate a Service. */
166
166
  recreateService: this.requestFunctionFactory(descriptors.containerRecreateService),
167
167
  /** Restart a started Service. */
168
168
  restartService: this.requestFunctionFactory(descriptors.containerRestartService),
169
+ /** Set an update schedule for a Stack. */
170
+ setStackUpdateSchedule: this.requestFunctionFactory(descriptors.containerSetStackUpdateSchedule),
169
171
  /** Start a stopped Service. */
170
172
  startService: this.requestFunctionFactory(descriptors.containerStartService),
171
173
  /** Stop a started Service. */
@@ -235,6 +237,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
235
237
  orderPreviewOrder: this.requestFunctionFactory(descriptors.orderPreviewOrder),
236
238
  /** Preview TariffChange. */
237
239
  orderPreviewTariffChange: this.requestFunctionFactory(descriptors.orderPreviewTariffChange),
240
+ /** Return the Contract for the given License. */
241
+ getDetailOfContractByLicense: this.requestFunctionFactory(descriptors.contractGetDetailOfContractByLicense),
238
242
  };
239
243
  /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
240
244
  marketplace = {
@@ -728,7 +732,7 @@ export class MittwaldAPIV2Client extends ApiClientBase {
728
732
  confirmPasswordReset: this.requestFunctionFactory(descriptors.userConfirmPasswordReset),
729
733
  /** List all of your ApiTokens. */
730
734
  listApiTokens: this.requestFunctionFactory(descriptors.userListApiTokens),
731
- /** Store a new ApiToken. */
735
+ /** Create a new ApiToken. */
732
736
  createApiToken: this.requestFunctionFactory(descriptors.userCreateApiToken),
733
737
  /** Submit your user feedback. */
734
738
  createFeedback: this.requestFunctionFactory(descriptors.userCreateFeedback),
@@ -756,10 +760,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
756
760
  getPersonalizedSettings: this.requestFunctionFactory(descriptors.userGetPersonalizedSettings),
757
761
  /** Update personalized GUI settings. */
758
762
  updatePersonalizedSettings: this.requestFunctionFactory(descriptors.userUpdatePersonalizedSettings),
759
- /** Get poll settings for the specified user. */
760
- getPollStatus: this.requestFunctionFactory(descriptors.userGetPollStatus),
761
- /** Store new or update poll settings. */
762
- postPollStatus: this.requestFunctionFactory(descriptors.userPostPollStatus),
763
763
  /** Get a specific session. */
764
764
  getSession: this.requestFunctionFactory(descriptors.userGetSession),
765
765
  /** Terminate a specific Session. */
@@ -424,7 +424,7 @@ export const containerListVolumes = {
424
424
  method: "GET",
425
425
  operationId: "container-list-volumes",
426
426
  };
427
- /** Pulls the latest version of the Service's image and optionally recreates the Service. */
427
+ /** Pull image and recreate */
428
428
  export const containerPullImageForService = {
429
429
  path: "/v2/stacks/{stackId}/services/{serviceId}/actions/pull",
430
430
  method: "POST",
@@ -442,6 +442,12 @@ export const containerRestartService = {
442
442
  method: "POST",
443
443
  operationId: "container-restart-service",
444
444
  };
445
+ /** Set an update schedule for a Stack. */
446
+ export const containerSetStackUpdateSchedule = {
447
+ path: "/v2/stacks/{stackId}/update-schedule",
448
+ method: "PUT",
449
+ operationId: "container-set-stack-update-schedule",
450
+ };
445
451
  /** Start a stopped Service. */
446
452
  export const containerStartService = {
447
453
  path: "/v2/stacks/{stackId}/services/{serviceId}/actions/start",
@@ -2500,7 +2506,7 @@ export const userListApiTokens = {
2500
2506
  method: "GET",
2501
2507
  operationId: "user-list-api-tokens",
2502
2508
  };
2503
- /** Store a new ApiToken. */
2509
+ /** Create a new ApiToken. */
2504
2510
  export const userCreateApiToken = {
2505
2511
  path: "/v2/users/self/api-tokens",
2506
2512
  method: "POST",
@@ -2584,18 +2590,6 @@ export const userUpdatePersonalizedSettings = {
2584
2590
  method: "PUT",
2585
2591
  operationId: "user-update-personalized-settings",
2586
2592
  };
2587
- /** Get poll settings for the specified user. */
2588
- export const userGetPollStatus = {
2589
- path: "/v2/poll-settings/{userId}",
2590
- method: "GET",
2591
- operationId: "user-get-poll-status",
2592
- };
2593
- /** Store new or update poll settings. */
2594
- export const userPostPollStatus = {
2595
- path: "/v2/poll-settings/{userId}",
2596
- method: "POST",
2597
- operationId: "user-post-poll-status",
2598
- };
2599
2593
  /** Get a specific session. */
2600
2594
  export const userGetSession = {
2601
2595
  path: "/v2/users/self/sessions/{tokenId}",
@@ -2740,3 +2734,9 @@ export const verificationVerifyCompany = {
2740
2734
  method: "POST",
2741
2735
  operationId: "verification-verify-company",
2742
2736
  };
2737
+ /** Return the Contract for the given License. */
2738
+ export const contractGetDetailOfContractByLicense = {
2739
+ path: "/v2/licenses/{licenseId}/contract",
2740
+ method: "GET",
2741
+ operationId: "contract-get-detail-of-contract-by-license",
2742
+ };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.292.0';
1
+ export const MittwaldAPIClientVersion = '4.306.0';
@@ -126,6 +126,7 @@ declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
126
126
  disabled: boolean;
127
127
  id: string;
128
128
  installationPath: string;
129
+ lastError?: string | undefined;
129
130
  linkedDatabases: import("./types.js").MittwaldAPIV2.Components.Schemas.AppLinkedDatabase[];
130
131
  lockedBy?: {
131
132
  [k: string]: import("./types.js").MittwaldAPIV2.Components.Schemas.AppLockPurpose;
@@ -275,6 +276,7 @@ declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
275
276
  } | undefined;
276
277
  queryParameters?: {
277
278
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
279
+ versionRange?: string | undefined;
278
280
  recommended?: boolean | undefined;
279
281
  } | undefined;
280
282
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AppAppVersion[]>;
@@ -507,6 +509,10 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
507
509
  prefix: string;
508
510
  projectId: string;
509
511
  services?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceResponse[] | undefined;
512
+ updateSchedule?: {
513
+ cron: string;
514
+ timezone?: string;
515
+ } | null | undefined;
510
516
  volumes?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerVolumeResponse[] | undefined;
511
517
  }>;
512
518
  /** Get a Registry. */
@@ -1023,6 +1029,21 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
1023
1029
  templateNames?: string[] | undefined;
1024
1030
  } | undefined;
1025
1031
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.OrderCustomerOrder[]>;
1032
+ /** Return the Contract for the given License. */
1033
+ getDetailOfContractByLicense: (conf: {
1034
+ licenseId: string;
1035
+ headers?: {
1036
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1037
+ "x-access-token"?: string | undefined;
1038
+ } | undefined;
1039
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
1040
+ additionalItems?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
1041
+ baseItem: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem;
1042
+ contractId: string;
1043
+ contractNumber: string;
1044
+ customerId: string;
1045
+ termination?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
1046
+ }>;
1026
1047
  };
1027
1048
  declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
1028
1049
  /** Get a Contributor. */
@@ -2940,20 +2961,6 @@ declare const buildUserApi: (baseClient: MittwaldAPIV2Client) => {
2940
2961
  }) => import("@mittwald/react-use-promise").AsyncResource<{
2941
2962
  settingsString?: string | undefined;
2942
2963
  }>;
2943
- /** Get poll settings for the specified user. */
2944
- getPollStatus: (conf: {
2945
- userId: string;
2946
- headers?: {
2947
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2948
- } | undefined;
2949
- }) => import("@mittwald/react-use-promise").AsyncResource<{
2950
- completedAt?: string | undefined;
2951
- dontShowUntil?: string | undefined;
2952
- ignoredAt?: string | undefined;
2953
- shouldShow: boolean;
2954
- status: "completed" | "muted" | "ignored" | "new";
2955
- userId: string;
2956
- }>;
2957
2964
  /** Get a specific session. */
2958
2965
  getSession: (conf: {
2959
2966
  tokenId: string;