From 5e8ad75ad5e9e76ed9d2428b0fffd1821c96ceca Mon Sep 17 00:00:00 2001 From: Camden Phalen Date: Wed, 4 Dec 2024 16:56:38 -0500 Subject: [PATCH 1/3] Update validation types --- types/MarketplaceValidation.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/MarketplaceValidation.ts b/types/MarketplaceValidation.ts index f6e8b069..c1dba28c 100644 --- a/types/MarketplaceValidation.ts +++ b/types/MarketplaceValidation.ts @@ -1,4 +1,4 @@ -type Check = { +export type Check = { check: string; status: string; title: string; @@ -9,6 +9,12 @@ type Check = { file: string; }; +export interface ValidationError { + validationRequestId: number; + failureReasonType: string; + context: string; +} + export type GetValidationResultsResponse = { validationRequestId: number; assetPath: string; From d7972fe007a6fa1fa19f06398bbb47f30cf14de2 Mon Sep 17 00:00:00 2001 From: Camden Phalen Date: Wed, 4 Dec 2024 17:01:32 -0500 Subject: [PATCH 2/3] Actually use ValidationError --- types/MarketplaceValidation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/MarketplaceValidation.ts b/types/MarketplaceValidation.ts index c1dba28c..de7da4d1 100644 --- a/types/MarketplaceValidation.ts +++ b/types/MarketplaceValidation.ts @@ -23,6 +23,6 @@ export type GetValidationResultsResponse = { REQUIRED: { status: string; results: Array }; RECOMMENDED: { status: string; results: Array }; }; - errors: Array; + errors: Array; requestedAt: string; }; From ba117d9766da5bbbea8cfe32591412d2a313cb8f Mon Sep 17 00:00:00 2001 From: Camden Phalen Date: Wed, 4 Dec 2024 17:06:53 -0500 Subject: [PATCH 3/3] v0.1.0-experimental.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a8f3a427..8b08245c 100644 --- a/package.json +++ b/package.json @@ -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": {