mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 05:28:51 +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 }) {
|
async getDeployments(
|
||||||
return await this.send<TRailwayResponse<{ deployments: { edges: { node: { id: string } }[] } }>>(
|
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 } } } }`,
|
`query deployments($input: DeploymentListInput!, $first: Int) { deployments(first: $first, input: $input) { edges { node { id } } } }`,
|
||||||
config,
|
config,
|
||||||
variables
|
variables
|
||||||
@@ -126,7 +129,7 @@ class RailwayPublicClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async redeployDeployment(config: RailwaySendReqOptions, variables: { input: { deploymentId: string } }) {
|
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 } }`,
|
`mutation deploymentRedeploy($deploymentId: String!) { deploymentRedeploy(id: $deploymentId) { id } }`,
|
||||||
config,
|
config,
|
||||||
{ deploymentId: variables.input.deploymentId }
|
{ deploymentId: variables.input.deploymentId }
|
||||||
@@ -229,7 +232,9 @@ class RailwayPublicClient {
|
|||||||
|
|
||||||
async deleteVariable(
|
async deleteVariable(
|
||||||
config: RailwaySendReqOptions,
|
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> }>>(
|
await this.send<TRailwayResponse<{ variables: Record<string, string> }>>(
|
||||||
`mutation variableDelete($input: VariableDeleteInput!) { variableDelete(input: $input) }`,
|
`mutation variableDelete($input: VariableDeleteInput!) { variableDelete(input: $input) }`,
|
||||||
@@ -240,12 +245,21 @@ class RailwayPublicClient {
|
|||||||
|
|
||||||
async upsertCollection(
|
async upsertCollection(
|
||||||
config: RailwaySendReqOptions,
|
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) }`,
|
`mutation variableCollectionUpsert($input: VariableCollectionUpsertInput!) { variableCollectionUpsert(input: $input) }`,
|
||||||
config,
|
config,
|
||||||
variables,
|
variables
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user