Skip to content

Commit 350e122

Browse files
authored
fix(tem): remove GetServiceInfo (#389)
1 parent 54b98a0 commit 350e122

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

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

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
import {
44
API as ParentAPI,
55
enrichForPagination,
6-
unmarshalServiceInfo,
76
urlParams,
87
validatePathParam,
98
waitForResource,
109
} from '../../../bridge'
11-
import type { Region, ServiceInfo, WaitForOptions } from '../../../bridge'
10+
import type { Region, WaitForOptions } from '../../../bridge'
1211
import {
1312
DOMAIN_TRANSIENT_STATUSES,
1413
EMAIL_TRANSIENT_STATUSES,
@@ -33,7 +32,6 @@ import type {
3332
Email,
3433
GetDomainRequest,
3534
GetEmailRequest,
36-
GetServiceInfoRequest,
3735
GetStatisticsRequest,
3836
ListDomainsRequest,
3937
ListDomainsResponse,
@@ -56,18 +54,6 @@ export class API extends ParentAPI {
5654
/** Lists the available regions of the API. */
5755
public static readonly LOCALITIES: Region[] = ['fr-par']
5856

59-
getServiceInfo = (request: Readonly<GetServiceInfoRequest> = {}) =>
60-
this.client.fetch<ServiceInfo>(
61-
{
62-
method: 'GET',
63-
path: `/transactional-email/v1alpha1/regions/${validatePathParam(
64-
'region',
65-
request.region ?? this.client.settings.defaultRegion,
66-
)}`,
67-
},
68-
unmarshalServiceInfo,
69-
)
70-
7157
/**
7258
* Send an email
7359
*

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export type {
1919
EmailTry,
2020
GetDomainRequest,
2121
GetEmailRequest,
22-
GetServiceInfoRequest,
2322
GetStatisticsRequest,
2423
ListDomainsRequest,
2524
ListDomainsResponse,

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,6 @@ export interface Statistics {
178178
canceledCount: number
179179
}
180180

181-
export type GetServiceInfoRequest = {
182-
/** Region to target. If none is passed will use default region from the config */
183-
region?: Region
184-
}
185-
186181
export type CreateEmailRequest = {
187182
/** Region to target. If none is passed will use default region from the config */
188183
region?: Region

0 commit comments

Comments
 (0)