native-pytech 1.0.77 → 1.0.79
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/libs/pickerPage/src/Page/index.js +2 -2
- package/dist/libs/pickerPage/src/Page/types.d.ts +1 -1
- package/dist/libs/supabase/src/clients/app/index.d.ts +1 -0
- package/dist/libs/supabase/src/clients/app/utils.d.ts +1 -0
- package/dist/libs/supabase/src/clients/app/utils.js +1 -0
- package/dist/libs/supabase/src/utils/index.d.ts +2 -1
- package/dist/libs/supabase/src/utils/index.js +1 -0
- package/dist/libs/supabase/src/utils/types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ import React, { memo } from "react";
|
|
|
3
3
|
import Content from '../Content';
|
|
4
4
|
export default memo(({ children, onChangeSearchText, onSelectionChange, ...props }) => {
|
|
5
5
|
const router = useRouter();
|
|
6
|
-
const _onSelectionChange = (selection) => {
|
|
7
|
-
onSelectionChange?.(selection);
|
|
6
|
+
const _onSelectionChange = async (selection) => {
|
|
7
|
+
await onSelectionChange?.(selection);
|
|
8
8
|
router.back();
|
|
9
9
|
};
|
|
10
10
|
return (<>
|
|
@@ -14,7 +14,7 @@ type Props = {
|
|
|
14
14
|
/**
|
|
15
15
|
Function to be called when the user selects a selection.
|
|
16
16
|
*/
|
|
17
|
-
onSelectionChange?: (selection: string) => void
|
|
17
|
+
onSelectionChange?: (selection: string) => void | Promise<void>;
|
|
18
18
|
/**
|
|
19
19
|
Adjusts the row insets on ios.
|
|
20
20
|
Is is useful when uses items with gradients.
|
|
@@ -9,6 +9,7 @@ declare const supabase: {
|
|
|
9
9
|
getUser: () => Promise<import("@supabase/auth-js").User>;
|
|
10
10
|
execFunction: (params: import("../../utils/types").ExecFunctionParams) => Promise<any>;
|
|
11
11
|
signUp: (params: import("../../utils/types").SignUpParams) => Promise<import("@supabase/auth-js").AuthResponse>;
|
|
12
|
+
updateMyUser: (params: import("../../utils/types").UpdateMyUserParams) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
12
13
|
client: import("@supabase/supabase-js").SupabaseClient<any, "public", "public", any, any>;
|
|
13
14
|
};
|
|
14
15
|
export default supabase;
|
|
@@ -9,3 +9,4 @@ export declare const logOut: () => Promise<{
|
|
|
9
9
|
export declare const getUser: () => Promise<import("@supabase/auth-js").User>;
|
|
10
10
|
export declare const execFunction: (params: utils.types.ExecFunctionParams) => Promise<any>;
|
|
11
11
|
export declare const signUp: (params: utils.types.SignUpParams) => Promise<import("@supabase/auth-js").AuthResponse>;
|
|
12
|
+
export declare const updateMyUser: (params: utils.types.UpdateMyUserParams) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
@@ -7,3 +7,4 @@ export const logOut = async () => await utils.logOut(supabase);
|
|
|
7
7
|
export const getUser = async () => await utils.getUser(supabase);
|
|
8
8
|
export const execFunction = async (params) => (await utils.execFunction(supabase, params));
|
|
9
9
|
export const signUp = async (params) => (await utils.signUp(supabase, params));
|
|
10
|
+
export const updateMyUser = async (params) => (await utils.updateMyUser(supabase, params));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
2
|
-
import type { CreateClientParams, SignUpParams, ExecFunctionParams, LogInParams, UpdateUserParams, NewUserParams } from './types';
|
|
2
|
+
import type { CreateClientParams, SignUpParams, ExecFunctionParams, LogInParams, UpdateUserParams, NewUserParams, UpdateMyUserParams } from './types';
|
|
3
3
|
export * as types from './types';
|
|
4
4
|
export declare const logIn: (supabase: SupabaseClient, params: LogInParams) => Promise<import("@supabase/auth-js").AuthTokenResponsePassword>;
|
|
5
5
|
export declare const logOut: (supabase: SupabaseClient) => Promise<{
|
|
@@ -8,6 +8,7 @@ export declare const logOut: (supabase: SupabaseClient) => Promise<{
|
|
|
8
8
|
export declare const getUser: (supabase: SupabaseClient) => Promise<import("@supabase/auth-js").User>;
|
|
9
9
|
export declare const createClient: ({ url, key, options }: CreateClientParams) => SupabaseClient<any, "public", "public", any, any>;
|
|
10
10
|
export declare const execFunction: (supabase: SupabaseClient, { schema, name, args }: ExecFunctionParams) => Promise<any | null>;
|
|
11
|
+
export declare const updateMyUser: (supabase: SupabaseClient, attributes: UpdateMyUserParams) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
11
12
|
export declare const getUserById: (supabase: SupabaseClient, { uid }: {
|
|
12
13
|
uid: string;
|
|
13
14
|
}) => Promise<import("@supabase/auth-js").UserResponse>;
|
|
@@ -15,6 +15,7 @@ export const execFunction = async (supabase, { schema = 'app', name, args }) =>
|
|
|
15
15
|
}
|
|
16
16
|
return data;
|
|
17
17
|
};
|
|
18
|
+
export const updateMyUser = async (supabase, attributes) => (await supabase.auth.updateUser(attributes));
|
|
18
19
|
export const getUserById = async (supabase, { uid }) => (await supabase.auth.admin.getUserById(uid));
|
|
19
20
|
export const updateUser = async (supabase, { uid, attributes }) => (await supabase.auth.admin.updateUserById(uid, attributes));
|
|
20
21
|
export const deleteUser = async (supabase, { uid }) => (await supabase.auth.admin.deleteUser(uid));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminUserAttributes, SignUpWithPasswordCredentials, SupabaseClientOptions } from '@supabase/supabase-js';
|
|
1
|
+
import { AdminUserAttributes, SignUpWithPasswordCredentials, SupabaseClientOptions, UserAttributes } from '@supabase/supabase-js';
|
|
2
2
|
export type LogInParams = {
|
|
3
3
|
email: string;
|
|
4
4
|
password: string;
|
|
@@ -13,6 +13,7 @@ export type ExecFunctionParams = {
|
|
|
13
13
|
name: string;
|
|
14
14
|
args?: Record<string, any>;
|
|
15
15
|
};
|
|
16
|
+
export type UpdateMyUserParams = UserAttributes;
|
|
16
17
|
export type UpdateUserParams = {
|
|
17
18
|
uid: string;
|
|
18
19
|
attributes: AdminUserAttributes;
|