graphlit-client 1.0.20250622005 → 1.0.20250622007

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
@@ -229,6 +229,7 @@ declare class Graphlit {
229
229
  createUser(user: Types.UserInput): Promise<Types.CreateUserMutation>;
230
230
  updateUser(user: Types.UserUpdateInput): Promise<Types.UpdateUserMutation>;
231
231
  deleteUser(id: string): Promise<Types.DeleteUserMutation>;
232
+ getUserByIdentifier(identifier: string): Promise<Types.GetUserByIdentifierQuery>;
232
233
  getUser(): Promise<Types.GetUserQuery>;
233
234
  queryUsers(filter?: Types.UserFilter): Promise<Types.QueryUsersQuery>;
234
235
  countUsers(filter?: Types.UserFilter): Promise<Types.CountUsersQuery>;
package/dist/client.js CHANGED
@@ -1041,6 +1041,9 @@ class Graphlit {
1041
1041
  async deleteUser(id) {
1042
1042
  return this.mutateAndCheckError(Documents.DeleteUser, { id: id });
1043
1043
  }
1044
+ async getUserByIdentifier(identifier) {
1045
+ return this.queryAndCheckError(Documents.GetUserByIdentifier, { identifier: identifier });
1046
+ }
1044
1047
  async getUser() {
1045
1048
  return this.queryAndCheckError(Documents.GetUser, {});
1046
1049
  }
@@ -8121,8 +8121,12 @@ export const GetProject = gql `
8121
8121
  }
8122
8122
  `;
8123
8123
  export const LookupCredits = gql `
8124
- query LookupCredits($correlationId: String!) {
8125
- lookupCredits(correlationId: $correlationId) {
8124
+ query LookupCredits($correlationId: String!, $startDate: DateTime, $duration: TimeSpan) {
8125
+ lookupCredits(
8126
+ correlationId: $correlationId
8127
+ startDate: $startDate
8128
+ duration: $duration
8129
+ ) {
8126
8130
  correlationId
8127
8131
  ownerId
8128
8132
  credits
@@ -8144,8 +8148,12 @@ export const LookupCredits = gql `
8144
8148
  }
8145
8149
  `;
8146
8150
  export const LookupUsage = gql `
8147
- query LookupUsage($correlationId: String!) {
8148
- lookupUsage(correlationId: $correlationId) {
8151
+ query LookupUsage($correlationId: String!, $startDate: DateTime, $duration: TimeSpan) {
8152
+ lookupUsage(
8153
+ correlationId: $correlationId
8154
+ startDate: $startDate
8155
+ duration: $duration
8156
+ ) {
8149
8157
  id
8150
8158
  correlationId
8151
8159
  date
@@ -11472,9 +11472,13 @@ export type QueryLookupContentsArgs = {
11472
11472
  };
11473
11473
  export type QueryLookupCreditsArgs = {
11474
11474
  correlationId: Scalars['String']['input'];
11475
+ duration?: InputMaybe<Scalars['TimeSpan']['input']>;
11476
+ startDate?: InputMaybe<Scalars['DateTime']['input']>;
11475
11477
  };
11476
11478
  export type QueryLookupUsageArgs = {
11477
11479
  correlationId: Scalars['String']['input'];
11480
+ duration?: InputMaybe<Scalars['TimeSpan']['input']>;
11481
+ startDate?: InputMaybe<Scalars['DateTime']['input']>;
11478
11482
  };
11479
11483
  export type QueryMapWebArgs = {
11480
11484
  allowedPaths?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -23506,6 +23510,8 @@ export type GetProjectQuery = {
23506
23510
  };
23507
23511
  export type LookupCreditsQueryVariables = Exact<{
23508
23512
  correlationId: Scalars['String']['input'];
23513
+ startDate?: InputMaybe<Scalars['DateTime']['input']>;
23514
+ duration?: InputMaybe<Scalars['TimeSpan']['input']>;
23509
23515
  }>;
23510
23516
  export type LookupCreditsQuery = {
23511
23517
  __typename?: 'Query';
@@ -23532,6 +23538,8 @@ export type LookupCreditsQuery = {
23532
23538
  };
23533
23539
  export type LookupUsageQueryVariables = Exact<{
23534
23540
  correlationId: Scalars['String']['input'];
23541
+ startDate?: InputMaybe<Scalars['DateTime']['input']>;
23542
+ duration?: InputMaybe<Scalars['TimeSpan']['input']>;
23535
23543
  }>;
23536
23544
  export type LookupUsageQuery = {
23537
23545
  __typename?: 'Query';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250622005",
3
+ "version": "1.0.20250622007",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",