@sentio/cli 3.6.0-rc.4 → 3.6.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -145031,7 +145031,7 @@ async function runDashboardList(options) {
145031
145031
  }
145032
145032
  async function runDashboardCreate(options) {
145033
145033
  const context = createApiContext(options);
145034
- const project = await resolveProjectRef(options, context, { ownerSlug: true });
145034
+ const project = await resolveProjectRef(options, context, { projectId: true });
145035
145035
  const body = buildDashboardCreateBody(options, project);
145036
145036
  const data4 = await postApiJson("/v1/dashboards", context, body);
145037
145037
  printOutput8(options, {
@@ -145071,8 +145071,7 @@ function buildDashboardCreateBody(options, project) {
145071
145071
  const initialDashboard = normalizeDashboardInit(input);
145072
145072
  return {
145073
145073
  name: options.title,
145074
- projectOwner: project.owner,
145075
- projectSlug: project.slug,
145074
+ projectId: project.projectId,
145076
145075
  ...initialDashboard
145077
145076
  };
145078
145077
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/cli",
3
- "version": "3.6.0-rc.4",
3
+ "version": "3.6.1-rc.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -246,7 +246,7 @@ async function runDashboardList(options: DashboardOptions) {
246
246
 
247
247
  async function runDashboardCreate(options: DashboardCreateOptions) {
248
248
  const context = createApiContext(options)
249
- const project = await resolveProjectRef(options, context, { ownerSlug: true })
249
+ const project = await resolveProjectRef(options, context, { projectId: true })
250
250
  const body = buildDashboardCreateBody(options, project)
251
251
  const data = await postApiJson<{ dashboard?: Record<string, unknown> }>('/v1/dashboards', context, body)
252
252
 
@@ -288,14 +288,13 @@ async function runDashboardImport(dashboardId: string, options: DashboardImportO
288
288
  printOutput(options, { message: `Dashboard imported into ${dashboardId}`, dashboard: data.dashboard })
289
289
  }
290
290
 
291
- function buildDashboardCreateBody(options: DashboardCreateOptions, project: { owner: string; slug: string }) {
291
+ function buildDashboardCreateBody(options: DashboardCreateOptions, project: { projectId?: string }) {
292
292
  const input = loadJsonInput(options)
293
293
  const initialDashboard = normalizeDashboardInit(input)
294
294
 
295
295
  return {
296
296
  name: options.title,
297
- projectOwner: project.owner,
298
- projectSlug: project.slug,
297
+ projectId: project.projectId,
299
298
  ...initialDashboard
300
299
  }
301
300
  }