Skip to content

Commit 2b43824

Browse files
refactor(types): replace Record with mapped types
1 parent a1b72c1 commit 2b43824

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/resources/environments/automations/automations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ export class Automations extends APIResource {
127127
* field as "reserved" in the proto file, this will also break reading the yaml.
128128
*/
129129
export interface AutomationsFile {
130-
services?: Record<string, AutomationsFile.Services>;
130+
services?: { [key: string]: AutomationsFile.Services };
131131

132-
tasks?: Record<string, AutomationsFile.Tasks>;
132+
tasks?: { [key: string]: AutomationsFile.Tasks };
133133
}
134134

135135
export namespace AutomationsFile {

src/resources/environments/automations/services.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ export interface ServiceStatus {
476476
* output contains the output of the service. setting an output field to empty
477477
* string will unset it.
478478
*/
479-
output?: Record<string, string>;
479+
output?: { [key: string]: string };
480480

481481
/**
482482
* phase is the current phase of the service.
@@ -595,7 +595,7 @@ export namespace ServiceUpdateParams {
595595
/**
596596
* setting an output field to empty string will unset it.
597597
*/
598-
output?: Record<string, string>;
598+
output?: { [key: string]: string };
599599

600600
phase?: ServicesAPI.ServicePhase | null;
601601

src/resources/environments/environments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ export interface EnvironmentMetadata {
621621
* annotations are key/value pairs that gets attached to the environment.
622622
* +internal - not yet implemented
623623
*/
624-
annotations?: Record<string, string>;
624+
annotations?: { [key: string]: string };
625625

626626
/**
627627
* Time when the Environment was archived. If not set, the environment is not

src/resources/organizations/sso-configurations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export interface SSOConfiguration {
265265
/**
266266
* claims are key/value pairs that defines a mapping of claims issued by the IdP.
267267
*/
268-
claims?: Record<string, string>;
268+
claims?: { [key: string]: string };
269269

270270
/**
271271
* client_id is the client ID of the OIDC application set on the IdP
@@ -338,7 +338,7 @@ export interface SSOConfigurationUpdateParams {
338338
/**
339339
* claims are key/value pairs that defines a mapping of claims issued by the IdP.
340340
*/
341-
claims?: Record<string, string>;
341+
claims?: { [key: string]: string };
342342

343343
/**
344344
* client_id is the client ID of the SSO provider

src/resources/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export namespace TaskExecutionStatus {
306306
* output contains the output of the task execution. setting an output field to
307307
* empty string will unset it.
308308
*/
309-
output?: Record<string, string>;
309+
output?: { [key: string]: string };
310310

311311
/**
312312
* phase is the current phase of the execution step

0 commit comments

Comments
 (0)