@manta-eu/client 0.5.0 → 0.5.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
|
@@ -1835,6 +1835,7 @@ export type GQLMutationCreateStripeBillingPortalSessionArgs = {
|
|
|
1835
1835
|
};
|
|
1836
1836
|
|
|
1837
1837
|
export type GQLMutationCreateStripeCheckoutSessionArgs = {
|
|
1838
|
+
addOnPriceId?: InputMaybe<Scalars["String"]["input"]>;
|
|
1838
1839
|
cancelUrl: Scalars["String"]["input"];
|
|
1839
1840
|
datastoreId: Scalars["String"]["input"];
|
|
1840
1841
|
priceId: Scalars["String"]["input"];
|
|
@@ -2776,11 +2777,16 @@ export type GQLSessionUser = {
|
|
|
2776
2777
|
canManageSharedMemories: Scalars["Boolean"]["output"];
|
|
2777
2778
|
canManageStreams: Scalars["Boolean"]["output"];
|
|
2778
2779
|
canManageTeam: Scalars["Boolean"]["output"];
|
|
2780
|
+
canRename: Scalars["Boolean"]["output"];
|
|
2781
|
+
canUploadProfilePicture: Scalars["Boolean"]["output"];
|
|
2779
2782
|
datastore?: Maybe<GQLCustomerDatastore>;
|
|
2780
2783
|
email: Scalars["String"]["output"];
|
|
2784
|
+
federated: Scalars["Boolean"]["output"];
|
|
2785
|
+
firstName?: Maybe<Scalars["String"]["output"]>;
|
|
2781
2786
|
id: Scalars["String"]["output"];
|
|
2782
2787
|
isOperator: Scalars["Boolean"]["output"];
|
|
2783
2788
|
isOrgAdmin: Scalars["Boolean"]["output"];
|
|
2789
|
+
lastName?: Maybe<Scalars["String"]["output"]>;
|
|
2784
2790
|
memberOrgs: Array<Scalars["String"]["output"]>;
|
|
2785
2791
|
name?: Maybe<Scalars["String"]["output"]>;
|
|
2786
2792
|
picture?: Maybe<Scalars["String"]["output"]>;
|
|
@@ -3563,6 +3569,7 @@ export type GQLCreateStripeBillingPortalSessionMutation = {
|
|
|
3563
3569
|
export type GQLCreateStripeCheckoutSessionMutationVariables = Exact<{
|
|
3564
3570
|
datastoreId: Scalars["String"]["input"];
|
|
3565
3571
|
priceId: Scalars["String"]["input"];
|
|
3572
|
+
addOnPriceId?: InputMaybe<Scalars["String"]["input"]>;
|
|
3566
3573
|
successUrl: Scalars["String"]["input"];
|
|
3567
3574
|
cancelUrl: Scalars["String"]["input"];
|
|
3568
3575
|
}>;
|
|
@@ -5683,6 +5690,28 @@ export type GQLOrganizationLinkingQuery = {
|
|
|
5683
5690
|
organizationLinking?: { __typename?: "OrganizationLinking"; pushEnabled: boolean; linkEnabled: boolean } | null;
|
|
5684
5691
|
};
|
|
5685
5692
|
|
|
5693
|
+
export type GQLProfileQueryVariables = Exact<{ [key: string]: never }>;
|
|
5694
|
+
|
|
5695
|
+
export type GQLProfileQuery = {
|
|
5696
|
+
__typename?: "Query";
|
|
5697
|
+
sessionContext: {
|
|
5698
|
+
__typename?: "SessionContext";
|
|
5699
|
+
user: {
|
|
5700
|
+
__typename?: "SessionUser";
|
|
5701
|
+
id: string;
|
|
5702
|
+
email: string;
|
|
5703
|
+
name?: string | null;
|
|
5704
|
+
firstName?: string | null;
|
|
5705
|
+
lastName?: string | null;
|
|
5706
|
+
federated: boolean;
|
|
5707
|
+
picture?: string | null;
|
|
5708
|
+
pictureSource?: GQLPictureSource | null;
|
|
5709
|
+
canRename: boolean;
|
|
5710
|
+
canUploadProfilePicture: boolean;
|
|
5711
|
+
};
|
|
5712
|
+
};
|
|
5713
|
+
};
|
|
5714
|
+
|
|
5686
5715
|
export type GQLRulesQueryVariables = Exact<{
|
|
5687
5716
|
ruleIri?: InputMaybe<Scalars["IRI"]["input"]>;
|
|
5688
5717
|
filterByOwner?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -6696,10 +6725,11 @@ export const useCreateStripeBillingPortalSessionMutation = <TError = unknown, TC
|
|
|
6696
6725
|
};
|
|
6697
6726
|
|
|
6698
6727
|
export const CreateStripeCheckoutSessionDocument = `
|
|
6699
|
-
mutation CreateStripeCheckoutSession($datastoreId: String!, $priceId: String!, $successUrl: String!, $cancelUrl: String!) {
|
|
6728
|
+
mutation CreateStripeCheckoutSession($datastoreId: String!, $priceId: String!, $addOnPriceId: String, $successUrl: String!, $cancelUrl: String!) {
|
|
6700
6729
|
createStripeCheckoutSession(
|
|
6701
6730
|
datastoreId: $datastoreId
|
|
6702
6731
|
priceId: $priceId
|
|
6732
|
+
addOnPriceId: $addOnPriceId
|
|
6703
6733
|
successUrl: $successUrl
|
|
6704
6734
|
cancelUrl: $cancelUrl
|
|
6705
6735
|
) {
|
|
@@ -11596,6 +11626,61 @@ export const useSuspenseOrganizationLinkingQuery = <TData = GQLOrganizationLinki
|
|
|
11596
11626
|
useSuspenseOrganizationLinkingQuery.getKey = (variables?: GQLOrganizationLinkingQueryVariables) =>
|
|
11597
11627
|
variables === undefined ? ["OrganizationLinkingSuspense"] : ["OrganizationLinkingSuspense", variables];
|
|
11598
11628
|
|
|
11629
|
+
export const ProfileDocument = `
|
|
11630
|
+
query Profile {
|
|
11631
|
+
sessionContext {
|
|
11632
|
+
user {
|
|
11633
|
+
id
|
|
11634
|
+
email
|
|
11635
|
+
name
|
|
11636
|
+
firstName
|
|
11637
|
+
lastName
|
|
11638
|
+
federated
|
|
11639
|
+
picture
|
|
11640
|
+
pictureSource
|
|
11641
|
+
canRename
|
|
11642
|
+
canUploadProfilePicture
|
|
11643
|
+
}
|
|
11644
|
+
}
|
|
11645
|
+
}
|
|
11646
|
+
`;
|
|
11647
|
+
|
|
11648
|
+
export const useProfileQuery = <TData = GQLProfileQuery, TError = unknown>(
|
|
11649
|
+
client: GraphQLClient,
|
|
11650
|
+
variables?: GQLProfileQueryVariables,
|
|
11651
|
+
options?: Omit<UseQueryOptions<GQLProfileQuery, TError, TData>, "queryKey"> & {
|
|
11652
|
+
queryKey?: UseQueryOptions<GQLProfileQuery, TError, TData>["queryKey"];
|
|
11653
|
+
},
|
|
11654
|
+
headers?: RequestInit["headers"],
|
|
11655
|
+
) => {
|
|
11656
|
+
return useQuery<GQLProfileQuery, TError, TData>({
|
|
11657
|
+
queryKey: variables === undefined ? ["Profile"] : ["Profile", variables],
|
|
11658
|
+
queryFn: fetcher<GQLProfileQuery, GQLProfileQueryVariables>(client, ProfileDocument, variables, headers),
|
|
11659
|
+
...options,
|
|
11660
|
+
});
|
|
11661
|
+
};
|
|
11662
|
+
|
|
11663
|
+
useProfileQuery.getKey = (variables?: GQLProfileQueryVariables) =>
|
|
11664
|
+
variables === undefined ? ["Profile"] : ["Profile", variables];
|
|
11665
|
+
|
|
11666
|
+
export const useSuspenseProfileQuery = <TData = GQLProfileQuery, TError = unknown>(
|
|
11667
|
+
client: GraphQLClient,
|
|
11668
|
+
variables?: GQLProfileQueryVariables,
|
|
11669
|
+
options?: Omit<UseSuspenseQueryOptions<GQLProfileQuery, TError, TData>, "queryKey"> & {
|
|
11670
|
+
queryKey?: UseSuspenseQueryOptions<GQLProfileQuery, TError, TData>["queryKey"];
|
|
11671
|
+
},
|
|
11672
|
+
headers?: RequestInit["headers"],
|
|
11673
|
+
) => {
|
|
11674
|
+
return useSuspenseQuery<GQLProfileQuery, TError, TData>({
|
|
11675
|
+
queryKey: variables === undefined ? ["ProfileSuspense"] : ["ProfileSuspense", variables],
|
|
11676
|
+
queryFn: fetcher<GQLProfileQuery, GQLProfileQueryVariables>(client, ProfileDocument, variables, headers),
|
|
11677
|
+
...options,
|
|
11678
|
+
});
|
|
11679
|
+
};
|
|
11680
|
+
|
|
11681
|
+
useSuspenseProfileQuery.getKey = (variables?: GQLProfileQueryVariables) =>
|
|
11682
|
+
variables === undefined ? ["ProfileSuspense"] : ["ProfileSuspense", variables];
|
|
11683
|
+
|
|
11599
11684
|
export const RulesDocument = `
|
|
11600
11685
|
query Rules($ruleIri: IRI, $filterByOwner: String, $namedGraph: IRI, $typeFilter: [IRI!]) {
|
|
11601
11686
|
rules(
|