Skip to content

Commit

Permalink
feat: update generated client
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Oct 31, 2024
1 parent 991c4a6 commit 1abf059
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mittwald/spec/openapi.json

Large diffs are not rendered by default.

73 changes: 73 additions & 0 deletions packages/mittwald/src/generated/v2/descriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12474,3 +12474,76 @@ export const userVerifyRegistration: OpenAPIOperation<
method: "POST",
operationId: "user-verify-registration",
};

/** Check if an address exists. */
export const verificationVerifyAddress: OpenAPIOperation<
RequestType<
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.RequestBody>,
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Path>,
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Query>,
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Header>
>,
| Response<
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$200.Content.ApplicationJson>,
200,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$429.Content.ApplicationJson>,
429,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$500.Content.Empty>,
500,
"empty"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.Default.Content.ApplicationJson>,
"default",
"application/json"
>
> = {
path: "/v2/actions/verify-address",
method: "POST",
operationId: "verification-verify-address",
};

/** Check if a company exists. */
export const verificationVerifyCompany: OpenAPIOperation<
RequestType<
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.RequestBody>,
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Path>,
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Query>,
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Header>
>,
| Response<
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$200.Content.ApplicationJson>,
200,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$412.Content.Empty>,
412,
"empty"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$429.Content.ApplicationJson>,
429,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$500.Content.Empty>,
500,
"empty"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.Default.Content.ApplicationJson>,
"default",
"application/json"
>
> = {
path: "/v2/actions/verify-company",
method: "POST",
operationId: "verification-verify-company",
};
132 changes: 132 additions & 0 deletions packages/mittwald/src/generated/v2/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3255,6 +3255,28 @@ export declare module MittwaldAPIV2 {
TStatus
>;
}

namespace VerificationVerifyAddress {
type RequestData = InferredRequestData<
typeof descriptors.verificationVerifyAddress
>;
type ResponseData<TStatus extends HttpStatus = 200> =
InferredResponseData<
typeof descriptors.verificationVerifyAddress,
TStatus
>;
}

namespace VerificationVerifyCompany {
type RequestData = InferredRequestData<
typeof descriptors.verificationVerifyCompany
>;
type ResponseData<TStatus extends HttpStatus = 200> =
InferredResponseData<
typeof descriptors.verificationVerifyCompany,
TStatus
>;
}
}

namespace Components {
Expand Down Expand Up @@ -25495,5 +25517,115 @@ export declare module MittwaldAPIV2 {
}
}
}

namespace V2ActionsVerifyAddress {
namespace Post {
namespace Parameters {
export type Path = {};

export interface RequestBody {
city: string;
/**
* Accepts the whole english or german name as well as the ISO 3166-2 country codes.
*/
country: string;
/**
* Includes the house number.
*/
street: string;
zip: string;
}

export type Header = {};

export type Query = {};
}
namespace Responses {
namespace $200 {
namespace Content {
export interface ApplicationJson {
exists: boolean;
}
}
}

namespace $429 {
namespace Content {
export interface ApplicationJson {
[k: string]: unknown;
}
}
}

namespace $500 {
namespace Content {
export type Empty = unknown;
}
}

namespace Default {
namespace Content {
export interface ApplicationJson {
[k: string]: unknown;
}
}
}
}
}
}

namespace V2ActionsVerifyCompany {
namespace Post {
namespace Parameters {
export type Path = {};

export interface RequestBody {
name: string;
}

export type Header =
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;

export type Query = {};
}
namespace Responses {
namespace $200 {
namespace Content {
export interface ApplicationJson {
exists: boolean;
}
}
}

namespace $412 {
namespace Content {
export type Empty = unknown;
}
}

namespace $429 {
namespace Content {
export interface ApplicationJson {
[k: string]: unknown;
}
}
}

namespace $500 {
namespace Content {
export type Empty = unknown;
}
}

namespace Default {
namespace Content {
export interface ApplicationJson {
[k: string]: unknown;
}
}
}
}
}
}
}
}

0 comments on commit 1abf059

Please sign in to comment.