@honeybadger-io/js 6.11.2 → 6.12.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,4 +1,4 @@
1
- import { CheckInDto, CheckInPayload, CheckInResponsePayload } from './types/types';
1
+ import { CheckInDto, CheckInPayload, CheckInResponsePayload } from './types';
2
2
  export declare class CheckIn implements CheckInDto {
3
3
  id?: string;
4
4
  name?: string;
@@ -1,12 +1,11 @@
1
1
  import { Types } from '@honeybadger-io/core';
2
- import { CheckIn } from './types/check-in';
3
- import { CheckInsConfig } from './types/types';
2
+ import { CheckIn } from './check-in';
3
+ import { CheckInsConfig } from './types';
4
4
  export declare class CheckInsClient {
5
- private readonly BASE_URL;
6
5
  private readonly config;
7
6
  private readonly logger;
8
7
  private readonly transport;
9
- constructor(config: Pick<CheckInsConfig, 'apiKey' | 'personalAuthToken' | 'logger'>, transport: Types.Transport);
8
+ constructor(config: Pick<CheckInsConfig, 'appEndpoint' | 'apiKey' | 'personalAuthToken' | 'logger'>, transport: Types.Transport);
10
9
  getProjectId(projectApiKey: string): Promise<string>;
11
10
  listForProject(projectId: string): Promise<CheckIn[]>;
12
11
  get(projectId: string, checkInId: string): Promise<CheckIn>;
@@ -1,7 +1,9 @@
1
1
  import { Types } from '@honeybadger-io/core';
2
- import { CheckInsClient } from './types/client';
3
- import { CheckInsConfig } from './types/types';
4
- import { CheckIn } from './types/check-in';
2
+ import { CheckInsClient } from './client';
3
+ import { CheckInsConfig } from './types';
4
+ import { CheckIn } from './check-in';
5
+ export { CheckInsClient } from './client';
6
+ export { CheckIn } from './check-in';
5
7
  export declare class CheckInsManager {
6
8
  private readonly client;
7
9
  config: Required<CheckInsConfig>;
@@ -25,7 +25,7 @@ export declare type CheckInDto = {
25
25
  reportPeriod?: string;
26
26
  /**
27
27
  * The amount of time to allow a job to not report before it's reported as missing.
28
- * Valid values are the same as the report_report field.
28
+ * Valid values are the same as the reportPeriod field.
29
29
  */
30
30
  gracePeriod?: string;
31
31
  /**
@@ -42,6 +42,7 @@ export declare type CheckInsConfig = {
42
42
  debug?: boolean;
43
43
  logger?: Types.Logger;
44
44
  apiKey: string;
45
+ appEndpoint: string;
45
46
  personalAuthToken: string;
46
47
  checkins: CheckInDto[];
47
48
  };