graphlit-client 1.0.20250428001 → 1.0.20250428002
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 +1 -0
- package/dist/client.js +5 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
@@ -15,6 +15,7 @@ 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
|
+
queryProjectTokens(startDate: Types.Scalars['DateTime'], duration: Types.Scalars['TimeSpan']): Promise<Types.QueryTokensQuery>;
|
18
19
|
queryProjectUsage(startDate: Types.Scalars['DateTime'], duration: Types.Scalars['TimeSpan']): Promise<Types.QueryUsageQuery>;
|
19
20
|
queryProjectCredits(startDate: Types.Scalars['DateTime'], duration: Types.Scalars['TimeSpan']): Promise<Types.QueryCreditsQuery>;
|
20
21
|
sendNotification(connector: Types.IntegrationConnectorInput, text: string, textType?: Types.TextTypes): Promise<Types.SendNotificationMutation>;
|
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 });
|