@vizzly/api-client 0.0.52 → 0.0.55

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.
@@ -65,7 +65,24 @@ export declare class VizzlyApi extends Api {
65
65
  buildCreateManagedQueryEngineProjectRequest(params?: RequestParams): Request<{}>;
66
66
  createVizzlyConfigVersion(params: RequestParams<nVizzlyApi.CreateVizzlyConfigVersionParams>): Promise<Response<unknown>>;
67
67
  buildCreateVizzlyConfigVersionRequest(params: RequestParams<nVizzlyApi.CreateVizzlyConfigVersionParams>): Request<{}>;
68
+ duplicateDashboards(params: RequestParams<nVizzlyApi.DuplicateDashboardParams>): Promise<Response<{
69
+ copies: {
70
+ [copiedDashboardId: string]: {
71
+ id: string;
72
+ name: string;
73
+ };
74
+ };
75
+ }>>;
76
+ buildDuplicateDashboardsRequest(params: RequestParams<nVizzlyApi.DuplicateDashboardParams>): Request<{
77
+ dashboardIds: string[];
78
+ }>;
79
+ /**
80
+ * @deprecated
81
+ */
68
82
  duplicateParentDashboard(params: RequestParams<nVizzlyApi.DuplicateParentDashboardParams>): Promise<Response<unknown>>;
83
+ /**
84
+ * @deprecated
85
+ */
69
86
  buildDuplicateParentDashboardRequest(params: RequestParams<nVizzlyApi.DuplicateParentDashboardParams>): Request<{}>;
70
87
  getConnection(params: RequestParams<nVizzlyApi.GetConnectionParams>): Promise<{
71
88
  encryptedCredentials: string | null;
@@ -249,11 +249,33 @@ class VizzlyApi extends Api_1.Api {
249
249
  abortSignal: params.abortSignal,
250
250
  };
251
251
  }
252
+ duplicateDashboards(params) {
253
+ return __awaiter(this, void 0, void 0, function* () {
254
+ return yield this.execute(this.buildDuplicateDashboardsRequest(params));
255
+ });
256
+ }
257
+ buildDuplicateDashboardsRequest(params) {
258
+ return {
259
+ path: `/api/v2/duplicate-dashboards`,
260
+ method: 'post',
261
+ body: {
262
+ dashboardIds: params.dashboardIds,
263
+ },
264
+ abortSignal: params.abortSignal,
265
+ acceptedAuthParams: ['projectApiKey']
266
+ };
267
+ }
268
+ /**
269
+ * @deprecated
270
+ */
252
271
  duplicateParentDashboard(params) {
253
272
  return __awaiter(this, void 0, void 0, function* () {
254
273
  return yield this.execute(this.buildDuplicateParentDashboardRequest(params));
255
274
  });
256
275
  }
276
+ /**
277
+ * @deprecated
278
+ */
257
279
  buildDuplicateParentDashboardRequest(params) {
258
280
  return {
259
281
  path: `/api/v2/duplicate-parent-dashboard`,
package/dist/types.d.ts CHANGED
@@ -52,7 +52,6 @@ export type CreateGlobalLibraryParams = {
52
52
  usage_metadata?: FieldUsage;
53
53
  };
54
54
  export type FieldUsage = {
55
- lowest_date_granularity_function: string | null;
56
55
  fields: Array<{
57
56
  data_set_id: string;
58
57
  field_id: string;
@@ -232,6 +231,9 @@ export declare namespace nVizzlyApi {
232
231
  type DuplicateParentDashboardParams = {
233
232
  dashboardId: string;
234
233
  };
234
+ type DuplicateDashboardParams = {
235
+ dashboardIds: string[];
236
+ };
235
237
  type CreateVizzlyConfigVersionParams = {
236
238
  projectId: string;
237
239
  encryptedConfig: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly/api-client",
3
- "version": "0.0.52",
3
+ "version": "0.0.55",
4
4
  "private": false,
5
5
  "license": "NONE",
6
6
  "source": "src/index.ts",
@@ -33,8 +33,8 @@
33
33
  "prepublish": "yarn build"
34
34
  },
35
35
  "dependencies": {
36
- "@vizzly/semantic-layer-public": "^0.0.230",
37
- "@vizzly/sqlbuilder-public": "^0.1.40",
36
+ "@vizzly/semantic-layer-public": ">=0.0.231",
37
+ "@vizzly/sqlbuilder-public": ">=0.1.41",
38
38
  "cross-fetch": "^4.0.0"
39
39
  }
40
40
  }