@manta-eu/client 0.2.0 → 0.2.1
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/src/generated/graphql.ts
CHANGED
|
@@ -530,6 +530,7 @@ export type GQLCreateDataConnectionInput = {
|
|
|
530
530
|
connectorType: Scalars["String"]["input"];
|
|
531
531
|
name: Scalars["String"]["input"];
|
|
532
532
|
settings: Array<GQLDataConnectionSettingInput>;
|
|
533
|
+
sourceName?: InputMaybe<Scalars["String"]["input"]>;
|
|
533
534
|
};
|
|
534
535
|
|
|
535
536
|
export type GQLCreateInferalIntegrationInput = {
|
|
@@ -655,6 +656,7 @@ export type GQLCustomAppPage = {
|
|
|
655
656
|
};
|
|
656
657
|
|
|
657
658
|
export enum GQLCustomAppPermission {
|
|
659
|
+
ReadWarehouse = "READ_WAREHOUSE",
|
|
658
660
|
ShareChats = "SHARE_CHATS",
|
|
659
661
|
WriteData = "WRITE_DATA",
|
|
660
662
|
}
|
|
@@ -757,6 +759,7 @@ export type GQLDataConnection = {
|
|
|
757
759
|
id: Scalars["String"]["output"];
|
|
758
760
|
name: Scalars["String"]["output"];
|
|
759
761
|
settings: Array<GQLDataConnectionSetting>;
|
|
762
|
+
sourceName?: Maybe<Scalars["String"]["output"]>;
|
|
760
763
|
status: GQLDataConnectionStatus;
|
|
761
764
|
};
|
|
762
765
|
|
|
@@ -1889,6 +1892,7 @@ export type GQLMutationManualActionChangeAssigneesArgs = {
|
|
|
1889
1892
|
|
|
1890
1893
|
export type GQLMutationManualActionResolveArgs = {
|
|
1891
1894
|
namedGraphIri: Scalars["String"]["input"];
|
|
1895
|
+
reason?: InputMaybe<Scalars["String"]["input"]>;
|
|
1892
1896
|
resolvedBy: Scalars["String"]["input"];
|
|
1893
1897
|
status: GQLManualActionResolveStatus;
|
|
1894
1898
|
subjectIri: Scalars["String"]["input"];
|
|
@@ -2225,6 +2229,7 @@ export type GQLQuery = {
|
|
|
2225
2229
|
unlinkedDatastores: Array<GQLUnlinkedDatastore>;
|
|
2226
2230
|
userPreferences: GQLUserPreferences;
|
|
2227
2231
|
validateActionPlan: GQLValidateActionPlanResponse;
|
|
2232
|
+
warehouseQuery: GQLWarehouseQueryResponse;
|
|
2228
2233
|
};
|
|
2229
2234
|
|
|
2230
2235
|
export type GQLQueryActionPlanDiffArgs = {
|
|
@@ -2433,6 +2438,10 @@ export type GQLQueryValidateActionPlanArgs = {
|
|
|
2433
2438
|
shaclShapeIri?: InputMaybe<Scalars["IRI"]["input"]>;
|
|
2434
2439
|
};
|
|
2435
2440
|
|
|
2441
|
+
export type GQLQueryWarehouseQueryArgs = {
|
|
2442
|
+
sql: Scalars["String"]["input"];
|
|
2443
|
+
};
|
|
2444
|
+
|
|
2436
2445
|
export type GQLRdFoxExplanationResponse = {
|
|
2437
2446
|
__typename?: "RDFoxExplanationResponse";
|
|
2438
2447
|
error?: Maybe<Scalars["String"]["output"]>;
|
|
@@ -3086,6 +3095,28 @@ export type GQLValidateStagedRulesResponse = {
|
|
|
3086
3095
|
syntaxErrors: Array<Scalars["String"]["output"]>;
|
|
3087
3096
|
};
|
|
3088
3097
|
|
|
3098
|
+
export type GQLWarehouseColumn = {
|
|
3099
|
+
__typename?: "WarehouseColumn";
|
|
3100
|
+
name: Scalars["String"]["output"];
|
|
3101
|
+
type: Scalars["String"]["output"];
|
|
3102
|
+
};
|
|
3103
|
+
|
|
3104
|
+
export type GQLWarehouseQueryResponse = {
|
|
3105
|
+
__typename?: "WarehouseQueryResponse";
|
|
3106
|
+
columns?: Maybe<Array<GQLWarehouseColumn>>;
|
|
3107
|
+
error?: Maybe<Scalars["String"]["output"]>;
|
|
3108
|
+
rows?: Maybe<Array<Scalars["JSON"]["output"]>>;
|
|
3109
|
+
statistics?: Maybe<GQLWarehouseStatistics>;
|
|
3110
|
+
truncated: Scalars["Boolean"]["output"];
|
|
3111
|
+
};
|
|
3112
|
+
|
|
3113
|
+
export type GQLWarehouseStatistics = {
|
|
3114
|
+
__typename?: "WarehouseStatistics";
|
|
3115
|
+
returnRows?: Maybe<Scalars["SafeInt"]["output"]>;
|
|
3116
|
+
scanBytes?: Maybe<Scalars["SafeInt"]["output"]>;
|
|
3117
|
+
scanRows?: Maybe<Scalars["SafeInt"]["output"]>;
|
|
3118
|
+
};
|
|
3119
|
+
|
|
3089
3120
|
export type GQLWoocommerceProviderInput = {
|
|
3090
3121
|
consumerKey: Scalars["String"]["input"];
|
|
3091
3122
|
consumerSecret: Scalars["String"]["input"];
|
|
@@ -4965,6 +4996,7 @@ export type GQLDataConnectionsQuery = {
|
|
|
4965
4996
|
id: string;
|
|
4966
4997
|
name: string;
|
|
4967
4998
|
connectorType: string;
|
|
4999
|
+
sourceName?: string | null;
|
|
4968
5000
|
status: GQLDataConnectionStatus;
|
|
4969
5001
|
error?: string | null;
|
|
4970
5002
|
createdAt: string;
|
|
@@ -5818,6 +5850,27 @@ export type GQLValidateActionPlanQuery = {
|
|
|
5818
5850
|
};
|
|
5819
5851
|
};
|
|
5820
5852
|
|
|
5853
|
+
export type GQLWarehouseQueryQueryVariables = Exact<{
|
|
5854
|
+
sql: Scalars["String"]["input"];
|
|
5855
|
+
}>;
|
|
5856
|
+
|
|
5857
|
+
export type GQLWarehouseQueryQuery = {
|
|
5858
|
+
__typename?: "Query";
|
|
5859
|
+
warehouseQuery: {
|
|
5860
|
+
__typename?: "WarehouseQueryResponse";
|
|
5861
|
+
rows?: Array<unknown> | null;
|
|
5862
|
+
truncated: boolean;
|
|
5863
|
+
error?: string | null;
|
|
5864
|
+
columns?: Array<{ __typename?: "WarehouseColumn"; name: string; type: string }> | null;
|
|
5865
|
+
statistics?: {
|
|
5866
|
+
__typename?: "WarehouseStatistics";
|
|
5867
|
+
scanRows?: number | null;
|
|
5868
|
+
scanBytes?: number | null;
|
|
5869
|
+
returnRows?: number | null;
|
|
5870
|
+
} | null;
|
|
5871
|
+
};
|
|
5872
|
+
};
|
|
5873
|
+
|
|
5821
5874
|
export const CustomAppConnectionFieldsFragmentDoc = `
|
|
5822
5875
|
fragment CustomAppConnectionFields on CustomAppConnection {
|
|
5823
5876
|
issuer
|
|
@@ -9697,6 +9750,7 @@ export const DataConnectionsDocument = `
|
|
|
9697
9750
|
id
|
|
9698
9751
|
name
|
|
9699
9752
|
connectorType
|
|
9753
|
+
sourceName
|
|
9700
9754
|
status
|
|
9701
9755
|
error
|
|
9702
9756
|
createdAt
|
|
@@ -12156,3 +12210,69 @@ useSuspenseValidateActionPlanQuery.getKey = (variables: GQLValidateActionPlanQue
|
|
|
12156
12210
|
"ValidateActionPlanSuspense",
|
|
12157
12211
|
variables,
|
|
12158
12212
|
];
|
|
12213
|
+
|
|
12214
|
+
export const WarehouseQueryDocument = `
|
|
12215
|
+
query WarehouseQuery($sql: String!) {
|
|
12216
|
+
warehouseQuery(sql: $sql) {
|
|
12217
|
+
columns {
|
|
12218
|
+
name
|
|
12219
|
+
type
|
|
12220
|
+
}
|
|
12221
|
+
rows
|
|
12222
|
+
truncated
|
|
12223
|
+
statistics {
|
|
12224
|
+
scanRows
|
|
12225
|
+
scanBytes
|
|
12226
|
+
returnRows
|
|
12227
|
+
}
|
|
12228
|
+
error
|
|
12229
|
+
}
|
|
12230
|
+
}
|
|
12231
|
+
`;
|
|
12232
|
+
|
|
12233
|
+
export const useWarehouseQueryQuery = <TData = GQLWarehouseQueryQuery, TError = unknown>(
|
|
12234
|
+
client: GraphQLClient,
|
|
12235
|
+
variables: GQLWarehouseQueryQueryVariables,
|
|
12236
|
+
options?: Omit<UseQueryOptions<GQLWarehouseQueryQuery, TError, TData>, "queryKey"> & {
|
|
12237
|
+
queryKey?: UseQueryOptions<GQLWarehouseQueryQuery, TError, TData>["queryKey"];
|
|
12238
|
+
},
|
|
12239
|
+
headers?: RequestInit["headers"],
|
|
12240
|
+
) => {
|
|
12241
|
+
return useQuery<GQLWarehouseQueryQuery, TError, TData>({
|
|
12242
|
+
queryKey: ["WarehouseQuery", variables],
|
|
12243
|
+
queryFn: fetcher<GQLWarehouseQueryQuery, GQLWarehouseQueryQueryVariables>(
|
|
12244
|
+
client,
|
|
12245
|
+
WarehouseQueryDocument,
|
|
12246
|
+
variables,
|
|
12247
|
+
headers,
|
|
12248
|
+
),
|
|
12249
|
+
...options,
|
|
12250
|
+
});
|
|
12251
|
+
};
|
|
12252
|
+
|
|
12253
|
+
useWarehouseQueryQuery.getKey = (variables: GQLWarehouseQueryQueryVariables) => ["WarehouseQuery", variables];
|
|
12254
|
+
|
|
12255
|
+
export const useSuspenseWarehouseQueryQuery = <TData = GQLWarehouseQueryQuery, TError = unknown>(
|
|
12256
|
+
client: GraphQLClient,
|
|
12257
|
+
variables: GQLWarehouseQueryQueryVariables,
|
|
12258
|
+
options?: Omit<UseSuspenseQueryOptions<GQLWarehouseQueryQuery, TError, TData>, "queryKey"> & {
|
|
12259
|
+
queryKey?: UseSuspenseQueryOptions<GQLWarehouseQueryQuery, TError, TData>["queryKey"];
|
|
12260
|
+
},
|
|
12261
|
+
headers?: RequestInit["headers"],
|
|
12262
|
+
) => {
|
|
12263
|
+
return useSuspenseQuery<GQLWarehouseQueryQuery, TError, TData>({
|
|
12264
|
+
queryKey: ["WarehouseQuerySuspense", variables],
|
|
12265
|
+
queryFn: fetcher<GQLWarehouseQueryQuery, GQLWarehouseQueryQueryVariables>(
|
|
12266
|
+
client,
|
|
12267
|
+
WarehouseQueryDocument,
|
|
12268
|
+
variables,
|
|
12269
|
+
headers,
|
|
12270
|
+
),
|
|
12271
|
+
...options,
|
|
12272
|
+
});
|
|
12273
|
+
};
|
|
12274
|
+
|
|
12275
|
+
useSuspenseWarehouseQueryQuery.getKey = (variables: GQLWarehouseQueryQueryVariables) => [
|
|
12276
|
+
"WarehouseQuerySuspense",
|
|
12277
|
+
variables,
|
|
12278
|
+
];
|