Skip to content

Commit daa1444

Browse files
update generated models
1 parent 4bbf278 commit daa1444

File tree

4 files changed

+295
-852
lines changed

4 files changed

+295
-852
lines changed

components/generated/claims.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
// Code generated by wunderctl. DO NOT EDIT.
22

33
export interface CustomClaims {}
4+
export type PublicCustomClaims = CustomClaims;

components/generated/client.ts

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ import {
44
CreateClientConfig,
55
User,
66
UploadRequestOptions,
7-
UploadRequestOptionsWithProfile,
87
OperationMetadata,
98
OperationsDefinition,
109
OperationRequestOptions,
1110
SubscriptionRequestOptions,
1211
SubscriptionEventHandler,
1312
FetchUserRequestOptions,
1413
UploadValidationOptions,
14+
ExtractProfileName,
15+
ExtractMeta,
1516
} from "@wundergraph/sdk/client";
1617

17-
import type { CustomClaims } from "./claims";
18+
import type { PublicCustomClaims } from "./claims";
1819
import type {
1920
LocationResponse,
2021
LocationResponseData,
@@ -47,9 +48,9 @@ export interface AuthProvider {
4748
}
4849

4950
export const defaultClientConfig: ClientConfig = {
50-
applicationHash: "551dfb21",
51+
applicationHash: "ab66227e",
5152
baseURL: "http://localhost:9991",
52-
sdkVersion: "0.137.4",
53+
sdkVersion: "0.139.0",
5354
};
5455

5556
export const operationMetadata: OperationMetadata = {
@@ -70,6 +71,8 @@ export const operationMetadata: OperationMetadata = {
7071
},
7172
};
7273

74+
export type PublicUser = User<UserRole, PublicCustomClaims>;
75+
7376
export class WunderGraphClient extends Client {
7477
query<
7578
OperationName extends Extract<keyof Operations["queries"], string>,
@@ -100,7 +103,7 @@ export class WunderGraphClient extends Client {
100103
public login(authProviderID: Operations["authProvider"], redirectURI?: string) {
101104
return super.login(authProviderID, redirectURI);
102105
}
103-
public async fetchUser<TUser extends User = User<UserRole, CustomClaims>>(options?: FetchUserRequestOptions) {
106+
public async fetchUser<TUser extends PublicUser = PublicUser>(options?: FetchUserRequestOptions) {
104107
return super.fetchUser<TUser>(options);
105108
}
106109
}
@@ -119,6 +122,7 @@ export type Queries = {
119122
input?: undefined;
120123
data: LocationResponseData;
121124
requiresAuthentication: false;
125+
liveQuery: boolean;
122126
};
123127
"users/get": {
124128
input: UsersGetInput;
@@ -150,6 +154,12 @@ export type Subscriptions = {
150154
};
151155

152156
export type LiveQueries = {
157+
Location: {
158+
input?: undefined;
159+
data: LocationResponseData;
160+
liveQuery: true;
161+
requiresAuthentication: false;
162+
};
153163
"users/get": {
154164
input: UsersGetInput;
155165
data: UsersGetResponseData;

components/generated/models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export interface LocationResponseData {
8080
};
8181
directionRef?: string;
8282
operatorRef?: string;
83+
vehicleRef?: string;
8384
lineRef?: string;
8485
};
8586
}[];

0 commit comments

Comments
 (0)