@ecency/sdk 1.1.12 → 1.1.13
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/ecency-sdk.es.js +526 -297
- package/dist/modules/accounts/mutations/index.d.ts +4 -0
- package/dist/modules/accounts/mutations/use-account-revoke-posting.d.ts +10 -0
- package/dist/modules/accounts/mutations/use-account-update-key-auths.d.ts +15 -0
- package/dist/modules/accounts/mutations/use-account-update-password.d.ts +12 -0
- package/dist/modules/accounts/mutations/use-account-update-recovery.d.ts +11 -0
- package/dist/modules/accounts/queries/get-account-full-query-options.d.ts +4 -4
- package/dist/modules/accounts/queries/get-account-pending-recovery-query-options.d.ts +8 -0
- package/dist/modules/accounts/queries/get-account-recoveries-query-options.d.ts +9 -0
- package/dist/modules/accounts/queries/index.d.ts +2 -0
- package/dist/modules/accounts/types/account-recovery.d.ts +8 -0
- package/dist/modules/accounts/types/index.d.ts +1 -0
- package/package.json +1 -1
@@ -2,3 +2,7 @@ export * from './use-account-update';
|
|
2
2
|
export * from './use-account-relations-update';
|
3
3
|
export * from './bookmarks';
|
4
4
|
export * from './favourites';
|
5
|
+
export * from './use-account-update-key-auths';
|
6
|
+
export * from './use-account-update-password';
|
7
|
+
export * from './use-account-revoke-posting';
|
8
|
+
export * from './use-account-update-recovery';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { PrivateKey } from '@hiveio/dhive';
|
2
|
+
import { useMutation } from '@tanstack/react-query';
|
3
|
+
type SignType = "key" | "keychain" | "hivesigner";
|
4
|
+
interface CommonPayload {
|
5
|
+
accountName: string;
|
6
|
+
type: SignType;
|
7
|
+
key?: PrivateKey;
|
8
|
+
}
|
9
|
+
export declare function useAccountRevokePosting(username: string | undefined, options: Pick<Parameters<typeof useMutation>[0], "onSuccess" | "onError">): import('@tanstack/react-query').UseMutationResult<any, unknown, CommonPayload, unknown>;
|
10
|
+
export {};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { PrivateKey } from '@hiveio/dhive';
|
2
|
+
import { useMutation } from '@tanstack/react-query';
|
3
|
+
interface Keys {
|
4
|
+
owner: PrivateKey;
|
5
|
+
active: PrivateKey;
|
6
|
+
posting: PrivateKey;
|
7
|
+
memo_key: PrivateKey;
|
8
|
+
}
|
9
|
+
interface Payload {
|
10
|
+
keepCurrent?: boolean;
|
11
|
+
currentKey: PrivateKey;
|
12
|
+
keys: Keys[];
|
13
|
+
}
|
14
|
+
export declare function useAccountUpdateKeyAuths(username: string, options?: Pick<Parameters<typeof useMutation>[0], "onSuccess" | "onError">): import('@tanstack/react-query').UseMutationResult<import('@hiveio/dhive').TransactionConfirmation, unknown, Payload, unknown>;
|
15
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { useMutation } from '@tanstack/react-query';
|
2
|
+
interface Payload {
|
3
|
+
newPassword: string;
|
4
|
+
currentPassword: string;
|
5
|
+
keepCurrent?: boolean;
|
6
|
+
}
|
7
|
+
/**
|
8
|
+
* Only native Hive and custom passwords could be updated here
|
9
|
+
* Seed based password cannot be updated here, it will be in an account always for now
|
10
|
+
*/
|
11
|
+
export declare function useAccountUpdatePassword(username: string, options?: Pick<Parameters<typeof useMutation>[0], "onSuccess" | "onError">): import('@tanstack/react-query').UseMutationResult<import('@hiveio/dhive').TransactionConfirmation, unknown, Payload, unknown>;
|
12
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { PrivateKey } from '@hiveio/dhive';
|
2
|
+
import { useMutation } from '@tanstack/react-query';
|
3
|
+
type SignType = "key" | "keychain" | "hivesigner" | "ecency";
|
4
|
+
interface CommonPayload {
|
5
|
+
accountName: string;
|
6
|
+
type: SignType;
|
7
|
+
key?: PrivateKey;
|
8
|
+
email?: string;
|
9
|
+
}
|
10
|
+
export declare function useAccountUpdateRecovery(username: string | undefined, options: Pick<Parameters<typeof useMutation>[0], "onSuccess" | "onError">): import('@tanstack/react-query').UseMutationResult<unknown, unknown, CommonPayload, unknown>;
|
11
|
+
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AccountFollowStats } from '../types';
|
2
|
-
export declare function getAccountFullQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
|
2
|
+
export declare function getAccountFullQueryOptions(username: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
|
3
3
|
name: any;
|
4
4
|
owner: any;
|
5
5
|
active: any;
|
@@ -117,7 +117,7 @@ export declare function getAccountFullQueryOptions(username: string): import('@t
|
|
117
117
|
meta: Record<string, any>;
|
118
118
|
}[];
|
119
119
|
};
|
120
|
-
}, string[]>, "queryFn"> & {
|
120
|
+
}, (string | undefined)[]>, "queryFn"> & {
|
121
121
|
queryFn?: import('@tanstack/query-core').QueryFunction<{
|
122
122
|
name: any;
|
123
123
|
owner: any;
|
@@ -177,9 +177,9 @@ export declare function getAccountFullQueryOptions(username: string): import('@t
|
|
177
177
|
meta: Record<string, any>;
|
178
178
|
}[];
|
179
179
|
};
|
180
|
-
}, string[], never> | undefined;
|
180
|
+
}, (string | undefined)[], never> | undefined;
|
181
181
|
} & {
|
182
|
-
queryKey: string[] & {
|
182
|
+
queryKey: (string | undefined)[] & {
|
183
183
|
[dataTagSymbol]: {
|
184
184
|
name: any;
|
185
185
|
owner: any;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare function getAccountPendingRecoveryQueryOptions(username: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<any, Error, any, (string | undefined)[]>, "queryFn"> & {
|
2
|
+
queryFn?: import('@tanstack/query-core').QueryFunction<any, (string | undefined)[], never> | undefined;
|
3
|
+
} & {
|
4
|
+
queryKey: (string | undefined)[] & {
|
5
|
+
[dataTagSymbol]: any;
|
6
|
+
[dataTagErrorSymbol]: Error;
|
7
|
+
};
|
8
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { GetRecoveriesEmailResponse } from '../types';
|
2
|
+
export declare function getAccountRecoveriesQueryOptions(username: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<GetRecoveriesEmailResponse[], Error, GetRecoveriesEmailResponse[], (string | undefined)[]>, "queryFn"> & {
|
3
|
+
queryFn?: import('@tanstack/query-core').QueryFunction<GetRecoveriesEmailResponse[], (string | undefined)[], never> | undefined;
|
4
|
+
} & {
|
5
|
+
queryKey: (string | undefined)[] & {
|
6
|
+
[dataTagSymbol]: GetRecoveriesEmailResponse[];
|
7
|
+
[dataTagErrorSymbol]: Error;
|
8
|
+
};
|
9
|
+
};
|
@@ -5,3 +5,5 @@ export * from './get-relationship-between-accounts-query-options';
|
|
5
5
|
export * from './get-account-subscriptions-query-options';
|
6
6
|
export * from './get-active-account-bookmarks-query-options';
|
7
7
|
export * from './get-active-account-favourites-query-options';
|
8
|
+
export * from './get-account-recoveries-query-options';
|
9
|
+
export * from './get-account-pending-recovery-query-options';
|