forked from cerc-io/snowballtools-base
Display auction details in Overview tab
This commit is contained in:
Vendored
+12
-1
@@ -18,6 +18,12 @@ declare enum DeploymentStatus {
|
||||
Error = "Error",
|
||||
Deleting = "Deleting"
|
||||
}
|
||||
declare enum AuctionStatus {
|
||||
AuctionStatusCommitPhase = "commit",
|
||||
AuctionStatusRevealPhase = "reveal",
|
||||
AuctionStatusExpired = "expired",
|
||||
AuctionStatusCompleted = "completed"
|
||||
}
|
||||
declare enum DomainStatus {
|
||||
Live = "Live",
|
||||
Pending = "Pending"
|
||||
@@ -55,6 +61,8 @@ type Deployment = {
|
||||
commitHash: string;
|
||||
commitMessage: string;
|
||||
url?: string;
|
||||
deployerLrn: string;
|
||||
auctionId?: string;
|
||||
environment: Environment;
|
||||
isCurrent: boolean;
|
||||
status: DeploymentStatus;
|
||||
@@ -112,6 +120,8 @@ type Project = {
|
||||
description: string;
|
||||
template: string;
|
||||
framework: string;
|
||||
deployerLrn: string[];
|
||||
auctionId: string;
|
||||
webhooks: string[];
|
||||
members: ProjectMember[];
|
||||
environmentVariables: EnvironmentVariable[];
|
||||
@@ -294,6 +304,7 @@ declare class GQLClient {
|
||||
getDomains(projectId: string, filter?: FilterDomainInput): Promise<GetDomainsResponse>;
|
||||
authenticateGitHub(code: string): Promise<AuthenticateGitHubResponse>;
|
||||
unauthenticateGithub(): Promise<UnauthenticateGitHubResponse>;
|
||||
getAuctionStatus(auctionId: string): Promise<AuctionStatus>;
|
||||
}
|
||||
|
||||
export { type AddDomainInput, type AddDomainResponse, type AddEnvironmentVariableInput, type AddEnvironmentVariablesResponse, type AddProjectFromTemplateInput, type AddProjectFromTemplateResponse, type AddProjectInput, type AddProjectMemberInput, type AddProjectMemberResponse, type AddProjectResponse, type AuctionData, type AuthenticateGitHubResponse, type DeleteDeploymentResponse, type DeleteDomainResponse, type DeleteProjectResponse, type Deployment, DeploymentStatus, type Domain, DomainStatus, Environment, type EnvironmentVariable, type FilterDomainInput, GQLClient, type GetDeploymentsResponse, type GetDomainsResponse, type GetEnvironmentVariablesResponse, type GetOrganizationsResponse, type GetProjectMembersResponse, type GetProjectResponse, type GetProjectsInOrganizationResponse, type GetUserResponse, type GraphQLConfig, type Organization, type OrganizationMember, type OrganizationProject, Permission, type Project, type ProjectMember, type RedeployToProdResponse, type RemoveEnvironmentVariableResponse, type RemoveProjectMemberResponse, Role, type RollbackDeploymentResponse, type SearchProjectsResponse, type UnauthenticateGitHubResponse, type UpdateDeploymentToProdResponse, type UpdateDomainInput, type UpdateDomainResponse, type UpdateEnvironmentVariableInput, type UpdateEnvironmentVariableResponse, type UpdateProjectInput, type UpdateProjectMemberInput, type UpdateProjectMemberResponse, type UpdateProjectResponse, type User };
|
||||
export { type AddDomainInput, type AddDomainResponse, type AddEnvironmentVariableInput, type AddEnvironmentVariablesResponse, type AddProjectFromTemplateInput, type AddProjectFromTemplateResponse, type AddProjectInput, type AddProjectMemberInput, type AddProjectMemberResponse, type AddProjectResponse, type AuctionData, AuctionStatus, type AuthenticateGitHubResponse, type DeleteDeploymentResponse, type DeleteDomainResponse, type DeleteProjectResponse, type Deployment, DeploymentStatus, type Domain, DomainStatus, Environment, type EnvironmentVariable, type FilterDomainInput, GQLClient, type GetDeploymentsResponse, type GetDomainsResponse, type GetEnvironmentVariablesResponse, type GetOrganizationsResponse, type GetProjectMembersResponse, type GetProjectResponse, type GetProjectsInOrganizationResponse, type GetUserResponse, type GraphQLConfig, type Organization, type OrganizationMember, type OrganizationProject, Permission, type Project, type ProjectMember, type RedeployToProdResponse, type RemoveEnvironmentVariableResponse, type RemoveProjectMemberResponse, Role, type RollbackDeploymentResponse, type SearchProjectsResponse, type UnauthenticateGitHubResponse, type UpdateDeploymentToProdResponse, type UpdateDomainInput, type UpdateDomainResponse, type UpdateEnvironmentVariableInput, type UpdateEnvironmentVariableResponse, type UpdateProjectInput, type UpdateProjectMemberInput, type UpdateProjectMemberResponse, type UpdateProjectResponse, type User };
|
||||
|
||||
Vendored
+12
-1
@@ -18,6 +18,12 @@ declare enum DeploymentStatus {
|
||||
Error = "Error",
|
||||
Deleting = "Deleting"
|
||||
}
|
||||
declare enum AuctionStatus {
|
||||
AuctionStatusCommitPhase = "commit",
|
||||
AuctionStatusRevealPhase = "reveal",
|
||||
AuctionStatusExpired = "expired",
|
||||
AuctionStatusCompleted = "completed"
|
||||
}
|
||||
declare enum DomainStatus {
|
||||
Live = "Live",
|
||||
Pending = "Pending"
|
||||
@@ -55,6 +61,8 @@ type Deployment = {
|
||||
commitHash: string;
|
||||
commitMessage: string;
|
||||
url?: string;
|
||||
deployerLrn: string;
|
||||
auctionId?: string;
|
||||
environment: Environment;
|
||||
isCurrent: boolean;
|
||||
status: DeploymentStatus;
|
||||
@@ -112,6 +120,8 @@ type Project = {
|
||||
description: string;
|
||||
template: string;
|
||||
framework: string;
|
||||
deployerLrn: string[];
|
||||
auctionId: string;
|
||||
webhooks: string[];
|
||||
members: ProjectMember[];
|
||||
environmentVariables: EnvironmentVariable[];
|
||||
@@ -294,6 +304,7 @@ declare class GQLClient {
|
||||
getDomains(projectId: string, filter?: FilterDomainInput): Promise<GetDomainsResponse>;
|
||||
authenticateGitHub(code: string): Promise<AuthenticateGitHubResponse>;
|
||||
unauthenticateGithub(): Promise<UnauthenticateGitHubResponse>;
|
||||
getAuctionStatus(auctionId: string): Promise<AuctionStatus>;
|
||||
}
|
||||
|
||||
export { type AddDomainInput, type AddDomainResponse, type AddEnvironmentVariableInput, type AddEnvironmentVariablesResponse, type AddProjectFromTemplateInput, type AddProjectFromTemplateResponse, type AddProjectInput, type AddProjectMemberInput, type AddProjectMemberResponse, type AddProjectResponse, type AuctionData, type AuthenticateGitHubResponse, type DeleteDeploymentResponse, type DeleteDomainResponse, type DeleteProjectResponse, type Deployment, DeploymentStatus, type Domain, DomainStatus, Environment, type EnvironmentVariable, type FilterDomainInput, GQLClient, type GetDeploymentsResponse, type GetDomainsResponse, type GetEnvironmentVariablesResponse, type GetOrganizationsResponse, type GetProjectMembersResponse, type GetProjectResponse, type GetProjectsInOrganizationResponse, type GetUserResponse, type GraphQLConfig, type Organization, type OrganizationMember, type OrganizationProject, Permission, type Project, type ProjectMember, type RedeployToProdResponse, type RemoveEnvironmentVariableResponse, type RemoveProjectMemberResponse, Role, type RollbackDeploymentResponse, type SearchProjectsResponse, type UnauthenticateGitHubResponse, type UpdateDeploymentToProdResponse, type UpdateDomainInput, type UpdateDomainResponse, type UpdateEnvironmentVariableInput, type UpdateEnvironmentVariableResponse, type UpdateProjectInput, type UpdateProjectMemberInput, type UpdateProjectMemberResponse, type UpdateProjectResponse, type User };
|
||||
export { type AddDomainInput, type AddDomainResponse, type AddEnvironmentVariableInput, type AddEnvironmentVariablesResponse, type AddProjectFromTemplateInput, type AddProjectFromTemplateResponse, type AddProjectInput, type AddProjectMemberInput, type AddProjectMemberResponse, type AddProjectResponse, type AuctionData, AuctionStatus, type AuthenticateGitHubResponse, type DeleteDeploymentResponse, type DeleteDomainResponse, type DeleteProjectResponse, type Deployment, DeploymentStatus, type Domain, DomainStatus, Environment, type EnvironmentVariable, type FilterDomainInput, GQLClient, type GetDeploymentsResponse, type GetDomainsResponse, type GetEnvironmentVariablesResponse, type GetOrganizationsResponse, type GetProjectMembersResponse, type GetProjectResponse, type GetProjectsInOrganizationResponse, type GetUserResponse, type GraphQLConfig, type Organization, type OrganizationMember, type OrganizationProject, Permission, type Project, type ProjectMember, type RedeployToProdResponse, type RemoveEnvironmentVariableResponse, type RemoveProjectMemberResponse, Role, type RollbackDeploymentResponse, type SearchProjectsResponse, type UnauthenticateGitHubResponse, type UpdateDeploymentToProdResponse, type UpdateDomainInput, type UpdateDomainResponse, type UpdateEnvironmentVariableInput, type UpdateEnvironmentVariableResponse, type UpdateProjectInput, type UpdateProjectMemberInput, type UpdateProjectMemberResponse, type UpdateProjectResponse, type User };
|
||||
|
||||
Vendored
+27
@@ -40,6 +40,7 @@ var __async = (__this, __arguments, generator) => {
|
||||
// src/index.ts
|
||||
var src_exports = {};
|
||||
__export(src_exports, {
|
||||
AuctionStatus: () => AuctionStatus,
|
||||
DeploymentStatus: () => DeploymentStatus,
|
||||
DomainStatus: () => DomainStatus,
|
||||
Environment: () => Environment,
|
||||
@@ -182,6 +183,8 @@ query ($projectId: String!) {
|
||||
commitHash
|
||||
commitMessage
|
||||
url
|
||||
auctionId
|
||||
deployerLrn
|
||||
environment
|
||||
isCurrent
|
||||
status
|
||||
@@ -269,6 +272,11 @@ query ($projectId: String!, $filter: FilterDomainsInput) {
|
||||
}
|
||||
}
|
||||
`;
|
||||
var getAuctionStatus = import_client.gql`
|
||||
query ($auctionId: String!) {
|
||||
getAuctionStatus(auctionId: $auctionId)
|
||||
}
|
||||
`;
|
||||
|
||||
// src/mutations.ts
|
||||
var import_client2 = require("@apollo/client");
|
||||
@@ -714,6 +722,17 @@ var GQLClient = class {
|
||||
return data;
|
||||
});
|
||||
}
|
||||
getAuctionStatus(auctionId) {
|
||||
return __async(this, null, function* () {
|
||||
const { data } = yield this.client.query({
|
||||
query: getAuctionStatus,
|
||||
variables: {
|
||||
auctionId
|
||||
}
|
||||
});
|
||||
return data;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// src/types.ts
|
||||
@@ -741,6 +760,13 @@ var DeploymentStatus = /* @__PURE__ */ ((DeploymentStatus2) => {
|
||||
DeploymentStatus2["Deleting"] = "Deleting";
|
||||
return DeploymentStatus2;
|
||||
})(DeploymentStatus || {});
|
||||
var AuctionStatus = /* @__PURE__ */ ((AuctionStatus2) => {
|
||||
AuctionStatus2["AuctionStatusCommitPhase"] = "commit";
|
||||
AuctionStatus2["AuctionStatusRevealPhase"] = "reveal";
|
||||
AuctionStatus2["AuctionStatusExpired"] = "expired";
|
||||
AuctionStatus2["AuctionStatusCompleted"] = "completed";
|
||||
return AuctionStatus2;
|
||||
})(AuctionStatus || {});
|
||||
var DomainStatus = /* @__PURE__ */ ((DomainStatus2) => {
|
||||
DomainStatus2["Live"] = "Live";
|
||||
DomainStatus2["Pending"] = "Pending";
|
||||
@@ -748,6 +774,7 @@ var DomainStatus = /* @__PURE__ */ ((DomainStatus2) => {
|
||||
})(DomainStatus || {});
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
AuctionStatus,
|
||||
DeploymentStatus,
|
||||
DomainStatus,
|
||||
Environment,
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+26
@@ -155,6 +155,8 @@ query ($projectId: String!) {
|
||||
commitHash
|
||||
commitMessage
|
||||
url
|
||||
auctionId
|
||||
deployerLrn
|
||||
environment
|
||||
isCurrent
|
||||
status
|
||||
@@ -242,6 +244,11 @@ query ($projectId: String!, $filter: FilterDomainsInput) {
|
||||
}
|
||||
}
|
||||
`;
|
||||
var getAuctionStatus = gql`
|
||||
query ($auctionId: String!) {
|
||||
getAuctionStatus(auctionId: $auctionId)
|
||||
}
|
||||
`;
|
||||
|
||||
// src/mutations.ts
|
||||
import { gql as gql2 } from "@apollo/client";
|
||||
@@ -687,6 +694,17 @@ var GQLClient = class {
|
||||
return data;
|
||||
});
|
||||
}
|
||||
getAuctionStatus(auctionId) {
|
||||
return __async(this, null, function* () {
|
||||
const { data } = yield this.client.query({
|
||||
query: getAuctionStatus,
|
||||
variables: {
|
||||
auctionId
|
||||
}
|
||||
});
|
||||
return data;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// src/types.ts
|
||||
@@ -714,12 +732,20 @@ var DeploymentStatus = /* @__PURE__ */ ((DeploymentStatus2) => {
|
||||
DeploymentStatus2["Deleting"] = "Deleting";
|
||||
return DeploymentStatus2;
|
||||
})(DeploymentStatus || {});
|
||||
var AuctionStatus = /* @__PURE__ */ ((AuctionStatus2) => {
|
||||
AuctionStatus2["AuctionStatusCommitPhase"] = "commit";
|
||||
AuctionStatus2["AuctionStatusRevealPhase"] = "reveal";
|
||||
AuctionStatus2["AuctionStatusExpired"] = "expired";
|
||||
AuctionStatus2["AuctionStatusCompleted"] = "completed";
|
||||
return AuctionStatus2;
|
||||
})(AuctionStatus || {});
|
||||
var DomainStatus = /* @__PURE__ */ ((DomainStatus2) => {
|
||||
DomainStatus2["Live"] = "Live";
|
||||
DomainStatus2["Pending"] = "Pending";
|
||||
return DomainStatus2;
|
||||
})(DomainStatus || {});
|
||||
export {
|
||||
AuctionStatus,
|
||||
DeploymentStatus,
|
||||
DomainStatus,
|
||||
Environment,
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -409,4 +409,15 @@ export class GQLClient {
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
async getAuctionStatus(auctionId: string): Promise<types.AuctionStatus> {
|
||||
const { data } = await this.client.query({
|
||||
query: queries.getAuctionStatus,
|
||||
variables: {
|
||||
auctionId,
|
||||
},
|
||||
});
|
||||
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,6 +132,8 @@ query ($projectId: String!) {
|
||||
commitHash
|
||||
commitMessage
|
||||
url
|
||||
auctionId
|
||||
deployerLrn
|
||||
environment
|
||||
isCurrent
|
||||
status
|
||||
@@ -223,3 +225,9 @@ query ($projectId: String!, $filter: FilterDomainsInput) {
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const getAuctionStatus = gql`
|
||||
query ($auctionId: String!) {
|
||||
getAuctionStatus(auctionId: $auctionId)
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -25,6 +25,13 @@ export enum DeploymentStatus {
|
||||
Deleting = "Deleting",
|
||||
}
|
||||
|
||||
export enum AuctionStatus {
|
||||
AuctionStatusCommitPhase = "commit",
|
||||
AuctionStatusRevealPhase = "reveal",
|
||||
AuctionStatusExpired = "expired",
|
||||
AuctionStatusCompleted = "completed",
|
||||
}
|
||||
|
||||
export enum DomainStatus {
|
||||
Live = "Live",
|
||||
Pending = "Pending",
|
||||
@@ -66,6 +73,8 @@ export type Deployment = {
|
||||
commitHash: string;
|
||||
commitMessage: string;
|
||||
url?: string;
|
||||
deployerLrn: string;
|
||||
auctionId?: string;
|
||||
environment: Environment;
|
||||
isCurrent: boolean;
|
||||
status: DeploymentStatus;
|
||||
@@ -128,6 +137,8 @@ export type Project = {
|
||||
description: string;
|
||||
template: string;
|
||||
framework: string;
|
||||
deployerLrn: string[];
|
||||
auctionId: string;
|
||||
webhooks: string[];
|
||||
members: ProjectMember[];
|
||||
environmentVariables: EnvironmentVariable[];
|
||||
|
||||
Reference in New Issue
Block a user