graphlit-client 1.0.20250622003 → 1.0.20250622005

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
@@ -103,8 +103,8 @@ declare class Graphlit {
103
103
  private generateToken;
104
104
  getProject(): Promise<Types.GetProjectQuery>;
105
105
  updateProject(project: Types.ProjectUpdateInput): Promise<Types.UpdateProjectMutation>;
106
- lookupProjectUsage(correlationId: string): Promise<Types.LookupUsageQuery>;
107
- lookupProjectCredits(correlationId: string): Promise<Types.LookupCreditsQuery>;
106
+ lookupProjectUsage(correlationId: string, startDate?: Types.Scalars["DateTime"]["input"], duration?: Types.Scalars["TimeSpan"]["input"]): Promise<Types.LookupUsageQuery>;
107
+ lookupProjectCredits(correlationId: string, startDate?: Types.Scalars["DateTime"]["input"], duration?: Types.Scalars["TimeSpan"]["input"]): Promise<Types.LookupCreditsQuery>;
108
108
  queryProjectTokens(startDate: Types.Scalars["DateTime"]["input"], duration: Types.Scalars["TimeSpan"]["input"]): Promise<Types.QueryTokensQuery>;
109
109
  queryProjectUsage(startDate: Types.Scalars["DateTime"]["input"], duration: Types.Scalars["TimeSpan"]["input"], names?: string[], excludedNames?: string[], offset?: Types.Scalars["Int"]["input"], limit?: Types.Scalars["Int"]["input"]): Promise<Types.QueryUsageQuery>;
110
110
  queryProjectCredits(startDate: Types.Scalars["DateTime"]["input"], duration: Types.Scalars["TimeSpan"]["input"]): Promise<Types.QueryCreditsQuery>;
package/dist/client.js CHANGED
@@ -366,11 +366,19 @@ class Graphlit {
366
366
  async updateProject(project) {
367
367
  return this.mutateAndCheckError(Documents.UpdateProject, { project: project });
368
368
  }
369
- async lookupProjectUsage(correlationId) {
370
- return this.queryAndCheckError(Documents.LookupUsage, { correlationId: correlationId });
369
+ async lookupProjectUsage(correlationId, startDate, duration) {
370
+ return this.queryAndCheckError(Documents.LookupUsage, {
371
+ correlationId: correlationId,
372
+ startDate: startDate,
373
+ duration: duration,
374
+ });
371
375
  }
372
- async lookupProjectCredits(correlationId) {
373
- return this.queryAndCheckError(Documents.LookupCredits, { correlationId: correlationId });
376
+ async lookupProjectCredits(correlationId, startDate, duration) {
377
+ return this.queryAndCheckError(Documents.LookupCredits, {
378
+ correlationId: correlationId,
379
+ startDate: startDate,
380
+ duration: duration,
381
+ });
374
382
  }
375
383
  async queryProjectTokens(startDate, duration) {
376
384
  return this.queryAndCheckError(Documents.QueryTokens, { startDate: startDate, duration: duration });
@@ -678,7 +686,7 @@ class Graphlit {
678
686
  return this.queryAndCheckError(Documents.QueryContents, { filter: filter });
679
687
  }
680
688
  async queryContentsObservations(filter) {
681
- return this.queryAndCheckError(Documents.QueryContents, { filter: filter });
689
+ return this.queryAndCheckError(Documents.QueryContentsObservations, { filter: filter });
682
690
  }
683
691
  async queryContentsFacets(filter) {
684
692
  return this.queryAndCheckError(Documents.QueryContentsFacets, { filter: filter });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250622003",
3
+ "version": "1.0.20250622005",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",