@gluestack-seal/cli
Version:
35 lines (30 loc) • 824 B
text/typescript
import { clientGQL, gql } from '../../client';
export const createDeployment = async (projectName: string, projectHash: string, teamID: number, token: string, fileID: number) => {
const query = gql`
mutation ($projectName: String!, $projectHash: String!, $teamID: Int!, $token: String!, $fileID: Int!) {
createdbdeployment(input: {
project_name: $projectName,
project_hash: $projectHash,
team_id : $teamID,
access_token: $token
file_id: $fileID
}) {
success
data {
deployment_id
project_hash
}
message
}
}
`;
const variables = {
projectName,
projectHash,
teamID,
token,
fileID
};
const requestHeaders = {};
return clientGQL.request(query, variables, requestHeaders);
};