Skip to content

Commit

Permalink
Merge pull request #218 from HubSpot/update-validation-types
Browse files Browse the repository at this point in the history
chore: Update validation types
  • Loading branch information
camden11 authored Dec 5, 2024
2 parents 817ed97 + ba117d9 commit 893572c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hubspot/local-dev-lib",
"version": "3.0.0",
"version": "0.1.0-experimental.1",
"description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
"main": "lib/index.js",
"repository": {
Expand Down
10 changes: 8 additions & 2 deletions types/MarketplaceValidation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type Check = {
export type Check = {
check: string;
status: string;
title: string;
Expand All @@ -9,6 +9,12 @@ type Check = {
file: string;
};

export interface ValidationError {
validationRequestId: number;
failureReasonType: string;
context: string;
}

export type GetValidationResultsResponse = {
validationRequestId: number;
assetPath: string;
Expand All @@ -17,6 +23,6 @@ export type GetValidationResultsResponse = {
REQUIRED: { status: string; results: Array<Check> };
RECOMMENDED: { status: string; results: Array<Check> };
};
errors: Array<Error>;
errors: Array<ValidationError>;
requestedAt: string;
};

0 comments on commit 893572c

Please sign in to comment.