@adspireai/adspire-node-sdk 1.0.384 → 1.0.385

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.
@@ -295,6 +295,35 @@ export declare const WorkspaceInvitationStatus: {
295
295
  readonly PENDING: "pending";
296
296
  readonly ACCEPTED: "accepted";
297
297
  };
298
+ export type AnalyticsRange = {
299
+ from?: string;
300
+ to?: string;
301
+ };
302
+ /**
303
+ * Count in the current range, count in the previous range and the percent difference between them
304
+ */
305
+ export type AnalyticsSummaryItem = {
306
+ count?: number;
307
+ previous?: number;
308
+ change?: number;
309
+ };
310
+ export type AnalyticsData = AnalyticsRange & {
311
+ previous_from?: string;
312
+ previous_to?: string;
313
+ /**
314
+ * metric name => AnalyticsSummaryItem
315
+ */
316
+ summary?: {
317
+ [key: string]: AnalyticsSummaryItem;
318
+ };
319
+ days?: Array<string>;
320
+ /**
321
+ * metric name => array of daily values aligned with days
322
+ */
323
+ series?: {
324
+ [key: string]: Array<number>;
325
+ };
326
+ };
298
327
  export type ApprovalRequestRespondRequest = {
299
328
  status: ApprovalRequestStatus;
300
329
  feedback?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adspireai/adspire-node-sdk",
3
- "version": "1.0.384",
3
+ "version": "1.0.385",
4
4
  "description": "Official Node.js SDK for AdspireAI API",
5
5
  "main": "dist-public/index.js",
6
6
  "types": "dist-public/index.d.ts",