Skip to content

Commit 1c48cc6

Browse files
committed
update api-client
1 parent ebdc4e4 commit 1c48cc6

4 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ jobs:
3636
node-version: 22
3737
cache: "pnpm"
3838

39-
- name: Update npm for OIDC support
40-
run: npm install -g npm@latest
39+
- name: Install npm 11+ for OIDC provenance publishing
40+
run: corepack enable npm && corepack install -g npm@latest
41+
env:
42+
COREPACK_ENABLE_STRICT: 0
4143

4244
- name: Install dependencies
4345
run: pnpm install --frozen-lockfile
@@ -58,12 +60,14 @@ jobs:
5860
if: github.event_name == 'workflow_dispatch'
5961
id: version
6062
run: |
61-
npm version ${{ github.event.inputs.version_type }}
63+
pnpm version ${{ github.event.inputs.version_type }}
6264
echo "new_version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
6365
git push --follow-tags
6466
6567
- name: Publish to npm
6668
run: npm publish --provenance
69+
env:
70+
COREPACK_ENABLE_STRICT: 0
6771

6872
- name: Create GitHub release (manual trigger only)
6973
if: github.event_name == 'workflow_dispatch'

COMMANDS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ iterable campaigns get-children <id>
129129
Get campaign performance metrics
130130

131131
```
132-
iterable campaigns get-metrics <campaignId>
132+
iterable campaigns get-metrics <campaignId> --endDateTime <endDateTime> --startDateTime <startDateTime>
133133
```
134134

135135
| Option | Type | Required | Description |
136136
|--------|------|----------|-------------|
137137
| `campaignId` | number | **yes** | Campaign ID to get metrics for |
138-
| `--endDateTime` | string | no | End date for metrics (YYYY-MM-DD HH:MM:SS format) |
139-
| `--startDateTime` | string | no | Start date for metrics (YYYY-MM-DD HH:MM:SS format) |
138+
| `--endDateTime` | string | **yes** | End of the metrics date range (YYYY-MM-DD HH:MM:SS format). Always use the narrowest window possible for performance. |
139+
| `--startDateTime` | string | **yes** | Start of the metrics date range (YYYY-MM-DD HH:MM:SS format). Always use the narrowest window possible for performance. |
140140

141141
### list
142142

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"update-commands": "node scripts/update-commands.js"
6060
},
6161
"dependencies": {
62-
"@iterable/api": "0.10.2",
62+
"@iterable/api": "0.10.3",
6363
"@primno/dpapi": "2.0.1",
6464
"boxen": "8.0.1",
6565
"chalk": "5.6.2",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)