@mittwald/api-client 4.405.0 → 4.406.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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * as Descriptors from "../generated/v2/descriptors.js";
2
+ export { MittwaldAPIClient } from "./default.js";
@@ -0,0 +1,38 @@
1
+ import { withAccessToken, withEventConsistencyHandling, } from "@mittwald/api-client-commons";
2
+ import { isBrowser } from "browser-or-node";
3
+ import MittwaldApiV3NextClient from "../generated/v3-next/client.js";
4
+ import { MittwaldAPIClientVersion } from "../version.js";
5
+ const defaultUserAgent = "mittwald-api-client/" + MittwaldAPIClientVersion;
6
+ export class MittwaldAPIClient extends MittwaldApiV3NextClient {
7
+ apiToken;
8
+ constructor(apiToken) {
9
+ super(MittwaldAPIClient.createAxiosDefaults());
10
+ this.apiToken = apiToken;
11
+ this.setupInterceptors();
12
+ }
13
+ static createAxiosDefaults() {
14
+ const headers = {};
15
+ // Setting user agent is not allowed in browser environment
16
+ if (!isBrowser) {
17
+ headers["User-Agent"] = defaultUserAgent;
18
+ }
19
+ return {
20
+ baseURL: "https://api.mittwald.de/",
21
+ headers: headers,
22
+ };
23
+ }
24
+ setupInterceptors() {
25
+ withAccessToken(this, this.apiToken);
26
+ }
27
+ static newUnauthenticated() {
28
+ return new MittwaldAPIClient();
29
+ }
30
+ static newWithToken(apiToken) {
31
+ return new MittwaldAPIClient(apiToken);
32
+ }
33
+ withEventConsistencyHandling() {
34
+ withEventConsistencyHandling(this);
35
+ return this;
36
+ }
37
+ }
38
+ export default MittwaldAPIClient;
@@ -0,0 +1,2 @@
1
+ export * as Descriptors from "../generated/v3-next/descriptors.js";
2
+ export { MittwaldAPIClient } from "./default.js";
@@ -0,0 +1,3 @@
1
+ import { MittwaldAPIV3NextClientReact as MittwaldAPIClientReact } from "../generated/v3-next/client-react.js";
2
+ export { MittwaldAPIV3NextClientReact as MittwaldAPIClientReact } from "../generated/v3-next/client-react.js";
3
+ export default MittwaldAPIClientReact;
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.404.0';
1
+ export const MittwaldAPIClientVersion = '4.405.1';
@@ -2333,6 +2333,7 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
2333
2333
  certificateId?: string | undefined;
2334
2334
  hostnameSubstring?: string | undefined;
2335
2335
  appInstallationId?: string | undefined;
2336
+ containerId?: string | undefined;
2336
2337
  limit?: number | undefined;
2337
2338
  skip?: number | undefined;
2338
2339
  page?: number | undefined;
@@ -19564,6 +19564,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
19564
19564
  certificateId?: string | undefined;
19565
19565
  hostnameSubstring?: string | undefined;
19566
19566
  appInstallationId?: string | undefined;
19567
+ containerId?: string | undefined;
19567
19568
  limit?: number | undefined;
19568
19569
  skip?: number | undefined;
19569
19570
  page?: number | undefined;
@@ -19578,6 +19579,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
19578
19579
  certificateId?: string | undefined;
19579
19580
  hostnameSubstring?: string | undefined;
19580
19581
  appInstallationId?: string | undefined;
19582
+ containerId?: string | undefined;
19581
19583
  limit?: number | undefined;
19582
19584
  skip?: number | undefined;
19583
19585
  page?: number | undefined;
@@ -19604,6 +19606,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
19604
19606
  certificateId?: string | undefined;
19605
19607
  hostnameSubstring?: string | undefined;
19606
19608
  appInstallationId?: string | undefined;
19609
+ containerId?: string | undefined;
19607
19610
  limit?: number | undefined;
19608
19611
  skip?: number | undefined;
19609
19612
  page?: number | undefined;
@@ -22157,6 +22157,7 @@ export declare namespace MittwaldAPIV2 {
22157
22157
  certificateId?: string;
22158
22158
  hostnameSubstring?: string;
22159
22159
  appInstallationId?: string;
22160
+ containerId?: string;
22160
22161
  limit?: number;
22161
22162
  skip?: number;
22162
22163
  page?: number;