graphlit-client 1.0.20240418016 → 1.0.20240418018

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/dist/client.d.ts CHANGED
@@ -2,13 +2,13 @@ import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
2
  import * as Types from './generated/graphql-types';
3
3
  declare class Graphlit {
4
4
  client: ApolloClient<NormalizedCacheObject> | undefined;
5
+ token: string | undefined;
5
6
  private apiUri;
6
7
  private environmentId;
7
8
  private organizationId;
8
9
  private ownerId;
9
10
  private jwtSecret;
10
11
  private correlationId;
11
- private token;
12
12
  constructor(organizationId?: string, environmentId?: string, jwtSecret?: string, ownerId?: string, apiUri?: string, correlationId?: string);
13
13
  createAlert(alert: Types.AlertInput): Promise<Types.Alert>;
14
14
  updateAlert(alert: Types.AlertUpdateInput): Promise<Types.Alert>;
package/dist/client.js CHANGED
@@ -40,7 +40,7 @@ const dotenv = __importStar(require("dotenv"));
40
40
  // Define the Graphlit class
41
41
  class Graphlit {
42
42
  constructor(organizationId, environmentId, jwtSecret, ownerId, apiUri, correlationId) {
43
- this.apiUri = apiUri || "https://data-scus.graphlit.io/api/v1";
43
+ this.apiUri = apiUri || "https://data-scus.graphlit.io/api/v1/graphql";
44
44
  if (typeof process !== 'undefined') {
45
45
  dotenv.config();
46
46
  this.organizationId = organizationId || process.env.GRAPHLIT_ORGANIZATION_ID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20240418016",
3
+ "version": "1.0.20240418018",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",