Skip to content

Commit 2a945c2

Browse files
authored
feat(tem): rename checkDomainLastStatus to getDomainLastStatus (#707)
1 parent 887e717 commit 2a945c2

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

packages/clients/src/api/tem/v1alpha1/api.gen.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ import {
2525
} from './marshalling.gen'
2626
import type {
2727
CancelEmailRequest,
28-
CheckDomainLastStatusRequest,
2928
CheckDomainRequest,
3029
CreateDomainRequest,
3130
CreateEmailRequest,
3231
CreateEmailResponse,
3332
Domain,
3433
DomainLastStatus,
3534
Email,
35+
GetDomainLastStatusRequest,
3636
GetDomainRequest,
3737
GetEmailRequest,
3838
GetStatisticsRequest,
@@ -348,15 +348,13 @@ export class API extends ParentAPI {
348348
* DKIM records status and potential errors, including the found records to
349349
* make debugging easier.
350350
*
351-
* @param request - The request {@link CheckDomainLastStatusRequest}
351+
* @param request - The request {@link GetDomainLastStatusRequest}
352352
* @returns A Promise of DomainLastStatus
353353
*/
354-
checkDomainLastStatus = (request: Readonly<CheckDomainLastStatusRequest>) =>
354+
getDomainLastStatus = (request: Readonly<GetDomainLastStatusRequest>) =>
355355
this.client.fetch<DomainLastStatus>(
356356
{
357-
body: '{}',
358-
headers: jsonContentHeaders,
359-
method: 'POST',
357+
method: 'GET',
360358
path: `/transactional-email/v1alpha1/regions/${validatePathParam(
361359
'region',
362360
request.region ?? this.client.settings.defaultRegion,

packages/clients/src/api/tem/v1alpha1/index.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export { API } from './api.gen'
44
export * from './content.gen'
55
export type {
66
CancelEmailRequest,
7-
CheckDomainLastStatusRequest,
87
CheckDomainRequest,
98
CreateDomainRequest,
109
CreateEmailRequest,
@@ -22,6 +21,7 @@ export type {
2221
EmailRcptType,
2322
EmailStatus,
2423
EmailTry,
24+
GetDomainLastStatusRequest,
2525
GetDomainRequest,
2626
GetEmailRequest,
2727
GetStatisticsRequest,

packages/clients/src/api/tem/v1alpha1/types.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ export type CheckDomainRequest = {
394394
domainId: string
395395
}
396396

397-
export type CheckDomainLastStatusRequest = {
397+
export type GetDomainLastStatusRequest = {
398398
/**
399399
* Region to target. If none is passed will use default region from the
400400
* config.

0 commit comments

Comments
 (0)