From 3574c51b248cceab6c75758a9e20ed926f6ac30f Mon Sep 17 00:00:00 2001 From: Benjamin Janssens Date: Thu, 26 Sep 2024 15:36:34 +0200 Subject: [PATCH] feat: add level config to catalog-backend-module-bitbucket-cloud plugin Signed-off-by: Benjamin Janssens --- .../config.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plugins/catalog-backend-module-bitbucket-cloud/config.d.ts b/plugins/catalog-backend-module-bitbucket-cloud/config.d.ts index 1051976b24..6ba4cb135d 100644 --- a/plugins/catalog-backend-module-bitbucket-cloud/config.d.ts +++ b/plugins/catalog-backend-module-bitbucket-cloud/config.d.ts @@ -59,6 +59,14 @@ export interface Config { * (Optional) TaskScheduleDefinition for the discovery. */ schedule?: SchedulerServiceTaskScheduleDefinitionConfig; + /** + * (Optional) On what level discovery should take place, affecting Bitbucket Cloud API limits. + * + * Possible values: + * - `workspace` (default): 1 API call per workspace, limited to 900 repositories per workspace. + * - `project`: 1 API call per project, limited to 900 repositories per project. + */ + level?: 'workspace' | 'project'; } | { [name: string]: { @@ -92,6 +100,14 @@ export interface Config { * (Optional) TaskScheduleDefinition for the discovery. */ schedule?: SchedulerServiceTaskScheduleDefinitionConfig; + /** + * (Optional) On what level discovery should take place, affecting Bitbucket Cloud API limits. + * + * Possible values: + * - `workspace` (default): 1 API call per workspace, limited to 900 repositories per workspace. + * - `project`: 1 API call per project, limited to 900 repositories per project. + */ + level?: 'workspace' | 'project'; }; }; };