@hubspot/local-dev-lib 3.1.1 → 3.1.2-beta.0

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.
@@ -1,7 +1,7 @@
1
1
  import { HubSpotPromise, QueryParams } from '../types/Http';
2
- import { GetBuildStatusResponse, GetRoutesResponse } from '../types/Functions';
2
+ import { GetBuildStatusResponse, FunctionLog, GetRoutesResponse, GetFunctionLogsResponse } from '../types/Functions';
3
3
  export declare function getRoutes(accountId: number): HubSpotPromise<GetRoutesResponse>;
4
- export declare function getFunctionLogs(accountId: number, route: string, params?: QueryParams): HubSpotPromise;
5
- export declare function getLatestFunctionLog(accountId: number, route: string): HubSpotPromise;
4
+ export declare function getFunctionLogs(accountId: number, route: string, params?: QueryParams): HubSpotPromise<GetFunctionLogsResponse>;
5
+ export declare function getLatestFunctionLog(accountId: number, route: string): HubSpotPromise<FunctionLog>;
6
6
  export declare function buildPackage(accountId: number, folderPath: string): HubSpotPromise<string>;
7
7
  export declare function getBuildStatus(accountId: number, buildId: number): HubSpotPromise<GetBuildStatusResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/local-dev-lib",
3
- "version": "3.1.1",
3
+ "version": "3.1.2-beta.0",
4
4
  "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -63,4 +63,30 @@ export type FunctionInfo = {
63
63
  export type FunctionOptions = {
64
64
  allowExistingFile?: boolean;
65
65
  };
66
+ export type FunctionLog = {
67
+ id: string;
68
+ executionTime: number;
69
+ log: string;
70
+ error: {
71
+ message: string;
72
+ type: string;
73
+ stackTrace: string[][];
74
+ };
75
+ status: string;
76
+ createdAt: number;
77
+ memory: string;
78
+ };
79
+ export type GetFunctionLogsResponse = {
80
+ results: FunctionLog[];
81
+ paging: {
82
+ next: {
83
+ after: string;
84
+ link: string;
85
+ };
86
+ prev: {
87
+ before: string;
88
+ link: string;
89
+ };
90
+ };
91
+ };
66
92
  export {};