From d240161b9a816f5f36a292a6a53b1d1f7355afab Mon Sep 17 00:00:00 2001 From: Justin Dalrymple Date: Fri, 20 Oct 2023 20:00:03 -0400 Subject: [PATCH 1/2] Add approvals property --- packages/core/src/resources/Deployments.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/resources/Deployments.ts b/packages/core/src/resources/Deployments.ts index 46b4dff95..9466009e9 100644 --- a/packages/core/src/resources/Deployments.ts +++ b/packages/core/src/resources/Deployments.ts @@ -51,6 +51,8 @@ export interface DeploymentSchema extends Record { user: UserSchema; deployable: DeployableSchema; environment: EnvironmentSchema; + pending_approval_count?: number; + approvals?: DeploymentApprovalStatusSchema[]; } export type AllDeploymentsOptions = { From 0c61d9e2015f8e3931f3536054ee887898e97814 Mon Sep 17 00:00:00 2001 From: Justin Dalrymple Date: Fri, 20 Oct 2023 22:46:22 -0400 Subject: [PATCH 2/2] Removing debug code --- packages/requester-utils/test/unit/RequesterUtils.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/requester-utils/test/unit/RequesterUtils.ts b/packages/requester-utils/test/unit/RequesterUtils.ts index 095389f1f..df046800d 100644 --- a/packages/requester-utils/test/unit/RequesterUtils.ts +++ b/packages/requester-utils/test/unit/RequesterUtils.ts @@ -45,19 +45,11 @@ describe('defaultOptionsHandler', () => { testBody.set('test', 'one'); - if (testBody instanceof FormData) { - console.log('IS FORM DATA'); - } - const { body } = await defaultOptionsHandler(serviceOptions, { body: testBody, method: 'POST', }); - if (body instanceof FormData) { - console.log('BOD IS FORM DATA'); - } - expect(body).toBeInstanceOf(FormData); });