graphlit-client 1.0.20250622004 → 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 +2 -2
- package/dist/client.js +12 -4
- package/package.json +1 -1
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, {
|
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, {
|
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 });
|