@timardex/cluemart-shared 1.2.23 → 1.2.24
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/{auth-BVGs-5Vm.d.mts → auth-B-dG_y16.d.mts} +13 -1
- package/dist/{auth-BhUIvvZ2.d.ts → auth-Ba-VYR0Y.d.ts} +13 -1
- package/dist/graphql/index.cjs +42 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +11 -1
- package/dist/graphql/index.d.ts +11 -1
- package/dist/graphql/index.mjs +40 -0
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.cjs +42 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.mjs +40 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -171,6 +171,8 @@ __export(index_exports, {
|
|
|
171
171
|
useGetVendorRelations: () => useGetVendorRelations,
|
|
172
172
|
useGetVendors: () => useGetVendors,
|
|
173
173
|
useGetVendorsByRegion: () => useGetVendorsByRegion,
|
|
174
|
+
useGoogleRegister: () => useGoogleRegister,
|
|
175
|
+
useGoogleSignIn: () => useGoogleSignIn,
|
|
174
176
|
useLocationSearch: () => useLocationSearch,
|
|
175
177
|
useLogin: () => useLogin,
|
|
176
178
|
useLoginForm: () => useLoginForm,
|
|
@@ -2782,6 +2784,32 @@ var LOGIN_MUTATION = import_client6.gql`
|
|
|
2782
2784
|
}
|
|
2783
2785
|
${USER_FIELDS_FRAGMENT}
|
|
2784
2786
|
`;
|
|
2787
|
+
var GOOGLE_SIGN_IN_MUTATION = import_client6.gql`
|
|
2788
|
+
mutation googleSignIn($input: GoogleSignInInputType!) {
|
|
2789
|
+
googleSignIn(input: $input) {
|
|
2790
|
+
message
|
|
2791
|
+
refreshToken
|
|
2792
|
+
token
|
|
2793
|
+
user {
|
|
2794
|
+
...UserFields
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
${USER_FIELDS_FRAGMENT}
|
|
2799
|
+
`;
|
|
2800
|
+
var GOOGLE_REGISTER_MUTATION = import_client6.gql`
|
|
2801
|
+
mutation googleRegister($input: GoogleRegisterInputType!) {
|
|
2802
|
+
googleRegister(input: $input) {
|
|
2803
|
+
message
|
|
2804
|
+
refreshToken
|
|
2805
|
+
token
|
|
2806
|
+
user {
|
|
2807
|
+
...UserFields
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
${USER_FIELDS_FRAGMENT}
|
|
2812
|
+
`;
|
|
2785
2813
|
var LOGOUT_MUTATION = import_client6.gql`
|
|
2786
2814
|
mutation logout {
|
|
2787
2815
|
logout {
|
|
@@ -2830,6 +2858,18 @@ var useLogin = () => {
|
|
|
2830
2858
|
const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
|
|
2831
2859
|
return { error, loading, login };
|
|
2832
2860
|
};
|
|
2861
|
+
var useGoogleSignIn = () => {
|
|
2862
|
+
const [googleSignIn, { loading, error }] = (0, import_client7.useMutation)(
|
|
2863
|
+
GOOGLE_SIGN_IN_MUTATION
|
|
2864
|
+
);
|
|
2865
|
+
return { error, loading, googleSignIn };
|
|
2866
|
+
};
|
|
2867
|
+
var useGoogleRegister = () => {
|
|
2868
|
+
const [googleRegister, { loading, error }] = (0, import_client7.useMutation)(
|
|
2869
|
+
GOOGLE_REGISTER_MUTATION
|
|
2870
|
+
);
|
|
2871
|
+
return { error, loading, googleRegister };
|
|
2872
|
+
};
|
|
2833
2873
|
var useLogout = () => {
|
|
2834
2874
|
const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
|
|
2835
2875
|
return { error, loading, logout };
|
|
@@ -6447,6 +6487,8 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
6447
6487
|
useGetVendorRelations,
|
|
6448
6488
|
useGetVendors,
|
|
6449
6489
|
useGetVendorsByRegion,
|
|
6490
|
+
useGoogleRegister,
|
|
6491
|
+
useGoogleSignIn,
|
|
6450
6492
|
useLocationSearch,
|
|
6451
6493
|
useLogin,
|
|
6452
6494
|
useLoginForm,
|