From c5d1584317fa3ba6cfd23df53988d5b16dea9532 Mon Sep 17 00:00:00 2001 From: Charles Coggins Date: Wed, 6 Nov 2024 12:27:40 -0600 Subject: [PATCH] Add `organization` parameters to `Phylum` object (#1532) This change fixes an oversight from when org support was first added to the extension API. The new `organization` parameters were added to `extensions/phylum.d.ts` but not exposed for consumers in `cli/js/api.js`. [See commit `f890fea`](https://github.com/phylum-dev/cli/commit/f890fea) or #1490 --- cli/js/api.js | 13 ++++++++----- extensions/CHANGELOG.md | 4 ++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/cli/js/api.js b/cli/js/api.js index 60f8608b8..a92e1bd50 100644 --- a/cli/js/api.js +++ b/cli/js/api.js @@ -63,12 +63,14 @@ export function analyze( project, group, label, + organization, ) { return op_analyze( packages, project, group, label, + organization, ); } @@ -116,20 +118,21 @@ export function getGroups() { return get_groups(); } -export function getProjects(group) { - return get_projects(group); +export function getProjects(group, organization) { + return get_projects(group, organization); } export function createProject( name, group, repository_url, + organization, ) { - return create_project(name, group, repository_url); + return create_project(name, group, repository_url, organization); } -export function deleteProject(name, group) { - return delete_project(name, group); +export function deleteProject(name, group, organization) { + return delete_project(name, group, organization); } export function getPackageDetails( diff --git a/extensions/CHANGELOG.md b/extensions/CHANGELOG.md index 66299a220..424460ff3 100644 --- a/extensions/CHANGELOG.md +++ b/extensions/CHANGELOG.md @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## Unreleased +### Fixed + +- Add missing `organization` parameters to global `Phylum` object endpoints + ## 7.1.1 - 2024-10-09 ### Changed