graphlit-client 1.0.20250428001 → 1.0.20250428003

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
@@ -15,8 +15,9 @@ declare class Graphlit {
15
15
  updateProject(project: Types.ProjectUpdateInput): Promise<Types.UpdateProjectMutation>;
16
16
  lookupProjectUsage(correlationId: string): Promise<Types.LookupUsageQuery>;
17
17
  lookupProjectCredits(correlationId: string): Promise<Types.LookupCreditsQuery>;
18
- queryProjectUsage(startDate: Types.Scalars['DateTime'], duration: Types.Scalars['TimeSpan']): Promise<Types.QueryUsageQuery>;
19
- queryProjectCredits(startDate: Types.Scalars['DateTime'], duration: Types.Scalars['TimeSpan']): Promise<Types.QueryCreditsQuery>;
18
+ queryProjectTokens(startDate: Types.Scalars['DateTime']['input'], duration: Types.Scalars['TimeSpan']['input']): Promise<Types.QueryTokensQuery>;
19
+ queryProjectUsage(startDate: Types.Scalars['DateTime']['input'], duration: Types.Scalars['TimeSpan']['input']): Promise<Types.QueryUsageQuery>;
20
+ queryProjectCredits(startDate: Types.Scalars['DateTime']['input'], duration: Types.Scalars['TimeSpan']['input']): Promise<Types.QueryCreditsQuery>;
20
21
  sendNotification(connector: Types.IntegrationConnectorInput, text: string, textType?: Types.TextTypes): Promise<Types.SendNotificationMutation>;
21
22
  mapWeb(uri: string, allowedPaths?: string[], excludedPaths?: string[], correlationId?: string): Promise<Types.MapWebQuery>;
22
23
  searchWeb(text: string, service?: Types.SearchServiceTypes, limit?: number, correlationId?: string): Promise<Types.SearchWebQuery>;
package/dist/client.js CHANGED
@@ -143,6 +143,11 @@ class Graphlit {
143
143
  return this.queryAndCheckError(Documents.LookupCredits, { correlationId: correlationId });
144
144
  });
145
145
  }
146
+ queryProjectTokens(startDate, duration) {
147
+ return __awaiter(this, void 0, void 0, function* () {
148
+ return this.queryAndCheckError(Documents.QueryTokens, { startDate: startDate, duration: duration });
149
+ });
150
+ }
146
151
  queryProjectUsage(startDate, duration) {
147
152
  return __awaiter(this, void 0, void 0, function* () {
148
153
  return this.queryAndCheckError(Documents.QueryUsage, { startDate: startDate, duration: duration });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250428001",
3
+ "version": "1.0.20250428003",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",