Skip to content

Commit e85e6b4

Browse files
authored
feat #122: acid test initiatives module — apiConfig wiring, improved errors, expanded tests (#158)
1 parent ebc893c commit e85e6b4

File tree

3 files changed

+592
-28
lines changed

3 files changed

+592
-28
lines changed

packages/cli/src/bin/bloomreach.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5689,11 +5689,11 @@ integrations
56895689

56905690
const initiatives = program
56915691
.command('initiatives')
5692-
.description('Manage Bloomreach Engagement initiatives');
5692+
.description('Manage Bloomreach Engagement initiatives (UI-only — no REST API)');
56935693

56945694
initiatives
56955695
.command('list')
5696-
.description('List all initiatives in the project')
5696+
.description('List all initiatives in the project (UI-only — no REST API endpoint)')
56975697
.requiredOption('--project <project>', 'Bloomreach project identifier')
56985698
.option('--json', 'Output as JSON')
56995699
.action(async (options: { project: string; json?: boolean }) => {
@@ -5725,7 +5725,7 @@ initiatives
57255725

57265726
initiatives
57275727
.command('filter')
5728-
.description('Filter initiatives by date, tags, owner, or status')
5728+
.description('Filter initiatives by date, tags, owner, or status (UI-only — no REST API endpoint)')
57295729
.requiredOption('--project <project>', 'Bloomreach project identifier')
57305730
.option('--start-date <date>', 'Filter by start date')
57315731
.option('--end-date <date>', 'Filter by end date')
@@ -5788,7 +5788,7 @@ initiatives
57885788

57895789
initiatives
57905790
.command('view')
5791-
.description('View details of a specific initiative')
5791+
.description('View details of a specific initiative (UI-only — no REST API endpoint)')
57925792
.requiredOption('--project <project>', 'Bloomreach project identifier')
57935793
.requiredOption('--initiative-id <id>', 'Initiative ID')
57945794
.option('--json', 'Output as JSON')
@@ -5826,7 +5826,9 @@ initiatives
58265826

58275827
initiatives
58285828
.command('create')
5829-
.description('Prepare creation of a new initiative (two-phase commit)')
5829+
.description(
5830+
'Prepare creation of a new initiative (two-phase commit, UI-only). Supports: name, description, tags',
5831+
)
58305832
.requiredOption('--project <project>', 'Bloomreach project identifier')
58315833
.requiredOption('--name <name>', 'Initiative name')
58325834
.option('--description <description>', 'Initiative description')
@@ -5872,7 +5874,9 @@ initiatives
58725874

58735875
initiatives
58745876
.command('import')
5875-
.description('Prepare importing initiative configuration (two-phase commit)')
5877+
.description(
5878+
'Prepare importing initiative configuration (two-phase commit, UI-only). Supports: JSON configuration',
5879+
)
58765880
.requiredOption('--project <project>', 'Bloomreach project identifier')
58775881
.requiredOption('--configuration <json>', 'JSON configuration object')
58785882
.option('--note <note>', 'Operator note for audit trail')
@@ -5909,7 +5913,9 @@ initiatives
59095913

59105914
initiatives
59115915
.command('add-items')
5912-
.description('Prepare adding items to an initiative (two-phase commit)')
5916+
.description(
5917+
'Prepare adding items to an initiative (two-phase commit, UI-only). Items: campaigns, analyses, assets',
5918+
)
59135919
.requiredOption('--project <project>', 'Bloomreach project identifier')
59145920
.requiredOption('--initiative-id <id>', 'Initiative ID')
59155921
.requiredOption('--items <json>', 'JSON array of item references [{id, type}]')
@@ -5954,7 +5960,9 @@ initiatives
59545960

59555961
initiatives
59565962
.command('archive')
5957-
.description('Prepare archiving an initiative (two-phase commit)')
5963+
.description(
5964+
'Prepare archiving an initiative (two-phase commit, UI-only). Moves initiative to archived state',
5965+
)
59585966
.requiredOption('--project <project>', 'Bloomreach project identifier')
59595967
.requiredOption('--initiative-id <id>', 'Initiative ID')
59605968
.option('--note <note>', 'Operator note for audit trail')

0 commit comments

Comments
 (0)