@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
|
@@ -26,6 +26,18 @@ type RegisterFormData = {
|
|
|
26
26
|
termsAgreement?: TermsAgreement | null;
|
|
27
27
|
};
|
|
28
28
|
type CreateRegisterFormData = CreateFormData<RegisterFormData>;
|
|
29
|
+
type GoogleSignInFormData = {
|
|
30
|
+
idToken: string;
|
|
31
|
+
platform?: EnumOSPlatform;
|
|
32
|
+
scopes?: string[] | null;
|
|
33
|
+
};
|
|
34
|
+
type GoogleRegisterFormData = {
|
|
35
|
+
idToken: string;
|
|
36
|
+
platform?: EnumOSPlatform;
|
|
37
|
+
preferredRegion: string;
|
|
38
|
+
scopes?: string[] | null;
|
|
39
|
+
termsAgreement: TermsAgreement;
|
|
40
|
+
};
|
|
29
41
|
type RequestPasswordResetFormData = {
|
|
30
42
|
email: string;
|
|
31
43
|
};
|
|
@@ -42,4 +54,4 @@ type ValidateVerificationTokenFormData = {
|
|
|
42
54
|
};
|
|
43
55
|
type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
|
|
44
56
|
|
|
45
|
-
export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f,
|
|
57
|
+
export type { CreateLoginFormData as C, GoogleSignInFormData as G, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, GoogleRegisterFormData as g, RequestPasswordResetFormData as h, ResetPasswordFormData as i };
|
|
@@ -26,6 +26,18 @@ type RegisterFormData = {
|
|
|
26
26
|
termsAgreement?: TermsAgreement | null;
|
|
27
27
|
};
|
|
28
28
|
type CreateRegisterFormData = CreateFormData<RegisterFormData>;
|
|
29
|
+
type GoogleSignInFormData = {
|
|
30
|
+
idToken: string;
|
|
31
|
+
platform?: EnumOSPlatform;
|
|
32
|
+
scopes?: string[] | null;
|
|
33
|
+
};
|
|
34
|
+
type GoogleRegisterFormData = {
|
|
35
|
+
idToken: string;
|
|
36
|
+
platform?: EnumOSPlatform;
|
|
37
|
+
preferredRegion: string;
|
|
38
|
+
scopes?: string[] | null;
|
|
39
|
+
termsAgreement: TermsAgreement;
|
|
40
|
+
};
|
|
29
41
|
type RequestPasswordResetFormData = {
|
|
30
42
|
email: string;
|
|
31
43
|
};
|
|
@@ -42,4 +54,4 @@ type ValidateVerificationTokenFormData = {
|
|
|
42
54
|
};
|
|
43
55
|
type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
|
|
44
56
|
|
|
45
|
-
export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f,
|
|
57
|
+
export type { CreateLoginFormData as C, GoogleSignInFormData as G, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, GoogleRegisterFormData as g, RequestPasswordResetFormData as h, ResetPasswordFormData as i };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -80,6 +80,8 @@ __export(graphql_exports, {
|
|
|
80
80
|
useGetVendorRelations: () => useGetVendorRelations,
|
|
81
81
|
useGetVendors: () => useGetVendors,
|
|
82
82
|
useGetVendorsByRegion: () => useGetVendorsByRegion,
|
|
83
|
+
useGoogleRegister: () => useGoogleRegister,
|
|
84
|
+
useGoogleSignIn: () => useGoogleSignIn,
|
|
83
85
|
useLogin: () => useLogin,
|
|
84
86
|
useLogout: () => useLogout,
|
|
85
87
|
useMarkAllNotificationsRead: () => useMarkAllNotificationsRead,
|
|
@@ -716,6 +718,32 @@ var LOGIN_MUTATION = import_client6.gql`
|
|
|
716
718
|
}
|
|
717
719
|
${USER_FIELDS_FRAGMENT}
|
|
718
720
|
`;
|
|
721
|
+
var GOOGLE_SIGN_IN_MUTATION = import_client6.gql`
|
|
722
|
+
mutation googleSignIn($input: GoogleSignInInputType!) {
|
|
723
|
+
googleSignIn(input: $input) {
|
|
724
|
+
message
|
|
725
|
+
refreshToken
|
|
726
|
+
token
|
|
727
|
+
user {
|
|
728
|
+
...UserFields
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
${USER_FIELDS_FRAGMENT}
|
|
733
|
+
`;
|
|
734
|
+
var GOOGLE_REGISTER_MUTATION = import_client6.gql`
|
|
735
|
+
mutation googleRegister($input: GoogleRegisterInputType!) {
|
|
736
|
+
googleRegister(input: $input) {
|
|
737
|
+
message
|
|
738
|
+
refreshToken
|
|
739
|
+
token
|
|
740
|
+
user {
|
|
741
|
+
...UserFields
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
${USER_FIELDS_FRAGMENT}
|
|
746
|
+
`;
|
|
719
747
|
var LOGOUT_MUTATION = import_client6.gql`
|
|
720
748
|
mutation logout {
|
|
721
749
|
logout {
|
|
@@ -764,6 +792,18 @@ var useLogin = () => {
|
|
|
764
792
|
const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
|
|
765
793
|
return { error, loading, login };
|
|
766
794
|
};
|
|
795
|
+
var useGoogleSignIn = () => {
|
|
796
|
+
const [googleSignIn, { loading, error }] = (0, import_client7.useMutation)(
|
|
797
|
+
GOOGLE_SIGN_IN_MUTATION
|
|
798
|
+
);
|
|
799
|
+
return { error, loading, googleSignIn };
|
|
800
|
+
};
|
|
801
|
+
var useGoogleRegister = () => {
|
|
802
|
+
const [googleRegister, { loading, error }] = (0, import_client7.useMutation)(
|
|
803
|
+
GOOGLE_REGISTER_MUTATION
|
|
804
|
+
);
|
|
805
|
+
return { error, loading, googleRegister };
|
|
806
|
+
};
|
|
767
807
|
var useLogout = () => {
|
|
768
808
|
const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
|
|
769
809
|
return { error, loading, logout };
|
|
@@ -2777,6 +2817,8 @@ var useGetResourceActivities = (resourceId, resourceType) => {
|
|
|
2777
2817
|
useGetVendorRelations,
|
|
2778
2818
|
useGetVendors,
|
|
2779
2819
|
useGetVendorsByRegion,
|
|
2820
|
+
useGoogleRegister,
|
|
2821
|
+
useGoogleSignIn,
|
|
2780
2822
|
useLogin,
|
|
2781
2823
|
useLogout,
|
|
2782
2824
|
useMarkAllNotificationsRead,
|