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 Nov 8, 2024
1 parent 6538ee6 commit c2fa703
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 141 deletions.
2 changes: 1 addition & 1 deletion packages/mittwald/spec/openapi.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions packages/mittwald/src/generated/v2/client-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,6 @@ const buildConversationApi = (baseClient: MittwaldAPIV2Client) => ({
descriptors.conversationGetConversationMembers,
baseClient.conversation.getConversationMembers,
).getApiResource,
/** Get preferences for customer conversations. */
getConversationPreferencesOfCustomer: new ApiCallAsyncResourceFactory(
descriptors.conversationGetConversationPreferencesOfCustomer,
baseClient.conversation.getConversationPreferencesOfCustomer,
).getApiResource,
/** Get a support conversation. */
getConversation: new ApiCallAsyncResourceFactory(
descriptors.conversationGetConversation,
Expand All @@ -249,6 +244,11 @@ const buildConversationApi = (baseClient: MittwaldAPIV2Client) => ({
descriptors.conversationListCategories,
baseClient.conversation.listCategories,
).getApiResource,
/** Get preferences for customer conversations. */
getConversationPreferencesOfCustomer: new ApiCallAsyncResourceFactory(
descriptors.conversationGetConversationPreferencesOfCustomer,
baseClient.conversation.getConversationPreferencesOfCustomer,
).getApiResource,
});

const buildCronjobApi = (baseClient: MittwaldAPIV2Client) => ({
Expand Down
8 changes: 4 additions & 4 deletions packages/mittwald/src/generated/v2/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
getConversationMembers: this.requestFunctionFactory(
descriptors.conversationGetConversationMembers,
),
/** Get preferences for customer conversations. */
getConversationPreferencesOfCustomer: this.requestFunctionFactory(
descriptors.conversationGetConversationPreferencesOfCustomer,
),
/** Get a support conversation. */
getConversation: this.requestFunctionFactory(
descriptors.conversationGetConversation,
Expand Down Expand Up @@ -381,6 +377,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
updateMessage: this.requestFunctionFactory(
descriptors.conversationUpdateMessage,
),
/** Get preferences for customer conversations. */
getConversationPreferencesOfCustomer: this.requestFunctionFactory(
descriptors.conversationGetConversationPreferencesOfCustomer,
),
};

/** The cronjob API allows you to manage cronjobs within a project. */
Expand Down
88 changes: 44 additions & 44 deletions packages/mittwald/src/generated/v2/descriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2148,50 +2148,6 @@ export const conversationGetConversationMembers: OpenAPIOperation<
operationId: "conversation-get-conversation-members",
};

/** Get preferences for customer conversations. */
export const conversationGetConversationPreferencesOfCustomer: OpenAPIOperation<
RequestType<
Simplify<null>,
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Parameters.Path>,
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Parameters.Query>,
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Parameters.Header>
>,
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.$200.Content.ApplicationJson>,
200,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.$400.Content.ApplicationJson>,
400,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.$403.Content.ApplicationJson>,
403,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.$404.Content.ApplicationJson>,
404,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.$429.Content.ApplicationJson>,
429,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.Default.Content.ApplicationJson>,
"default",
"application/json"
>
> = {
path: "/v2/customers/{customerId}/conversation-preferences",
method: "GET",
operationId: "conversation-get-conversation-preferences-of-customer",
};

/** Get a support conversation. */
export const conversationGetConversation: OpenAPIOperation<
RequestType<
Expand Down Expand Up @@ -12547,3 +12503,47 @@ export const verificationVerifyCompany: OpenAPIOperation<
method: "POST",
operationId: "verification-verify-company",
};

/** Get preferences for customer conversations. */
export const conversationGetConversationPreferencesOfCustomer: OpenAPIOperation<
RequestType<
Simplify<null>,
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Parameters.Path>,
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Parameters.Query>,
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Parameters.Header>
>,
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.$200.Content.ApplicationJson>,
200,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.$400.Content.ApplicationJson>,
400,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.$403.Content.ApplicationJson>,
403,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.$404.Content.ApplicationJson>,
404,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.$429.Content.ApplicationJson>,
429,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdConversationPreferences.Get.Responses.Default.Content.ApplicationJson>,
"default",
"application/json"
>
> = {
path: "/v2/customers/{customerId}/conversation-preferences",
method: "GET",
operationId: "conversation-get-conversation-preferences-of-customer",
};
Loading

0 comments on commit c2fa703

Please sign in to comment.