mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 22:28:47 +00:00
run lint
This commit is contained in:
@@ -117,8 +117,11 @@ class RailwayPublicClient {
|
||||
}
|
||||
}
|
||||
|
||||
async getDeployments(config: RailwaySendReqOptions, variables: { input: { serviceId: string; environmentId: string }, first?: number }) {
|
||||
return await this.send<TRailwayResponse<{ deployments: { edges: { node: { id: string } }[] } }>>(
|
||||
async getDeployments(
|
||||
config: RailwaySendReqOptions,
|
||||
variables: { input: { serviceId: string; environmentId: string }; first?: number }
|
||||
) {
|
||||
return this.send<TRailwayResponse<{ deployments: { edges: { node: { id: string } }[] } }>>(
|
||||
`query deployments($input: DeploymentListInput!, $first: Int) { deployments(first: $first, input: $input) { edges { node { id } } } }`,
|
||||
config,
|
||||
variables
|
||||
@@ -126,7 +129,7 @@ class RailwayPublicClient {
|
||||
}
|
||||
|
||||
async redeployDeployment(config: RailwaySendReqOptions, variables: { input: { deploymentId: string } }) {
|
||||
return await this.send<TRailwayResponse<{ deploymentRedeploy: { id: string } }>>(
|
||||
return this.send<TRailwayResponse<{ deploymentRedeploy: { id: string } }>>(
|
||||
`mutation deploymentRedeploy($deploymentId: String!) { deploymentRedeploy(id: $deploymentId) { id } }`,
|
||||
config,
|
||||
{ deploymentId: variables.input.deploymentId }
|
||||
@@ -229,7 +232,9 @@ class RailwayPublicClient {
|
||||
|
||||
async deleteVariable(
|
||||
config: RailwaySendReqOptions,
|
||||
variables: { input: { projectId: string; environmentId: string; name: string; skipDeploys?: boolean; serviceId?: string } }
|
||||
variables: {
|
||||
input: { projectId: string; environmentId: string; name: string; skipDeploys?: boolean; serviceId?: string };
|
||||
}
|
||||
) {
|
||||
await this.send<TRailwayResponse<{ variables: Record<string, string> }>>(
|
||||
`mutation variableDelete($input: VariableDeleteInput!) { variableDelete(input: $input) }`,
|
||||
@@ -240,12 +245,21 @@ class RailwayPublicClient {
|
||||
|
||||
async upsertCollection(
|
||||
config: RailwaySendReqOptions,
|
||||
variables: { input: { projectId: string; environmentId: string; variables: Record<string, string>; skipDeploys?: boolean; serviceId?: string, replace?: boolean } }
|
||||
variables: {
|
||||
input: {
|
||||
projectId: string;
|
||||
environmentId: string;
|
||||
variables: Record<string, string>;
|
||||
skipDeploys?: boolean;
|
||||
serviceId?: string;
|
||||
replace?: boolean;
|
||||
};
|
||||
}
|
||||
) {
|
||||
return await this.send<TRailwayResponse<boolean>>(
|
||||
return this.send<TRailwayResponse<boolean>>(
|
||||
`mutation variableCollectionUpsert($input: VariableCollectionUpsertInput!) { variableCollectionUpsert(input: $input) }`,
|
||||
config,
|
||||
variables,
|
||||
variables
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user