@tiendanube/nexo 0.1.2 → 0.1.3
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/actions/actions.d.ts +8 -4
- package/helpers/helpers.d.ts +2 -2
- package/package.json +1 -1
package/actions/actions.d.ts
CHANGED
|
@@ -7,16 +7,20 @@ export declare type NavigateGoToRequest = {
|
|
|
7
7
|
pathname: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const ACTION_NAVIGATE_PATHNAME = "app/navigate/pathname";
|
|
10
|
-
export declare type
|
|
10
|
+
export declare type NavigatePathnameResponse = {
|
|
11
11
|
pathname: string | null;
|
|
12
12
|
};
|
|
13
13
|
export declare const ACTION_NAVIGATE_SYNC = "app/navigate/sync";
|
|
14
|
+
export declare type NavigateSyncResponse = {
|
|
15
|
+
path: string;
|
|
16
|
+
replace?: boolean;
|
|
17
|
+
};
|
|
14
18
|
export declare const ACTION_AUTH_SESSION_TOKEN = "app/auth/sessionToken";
|
|
15
|
-
export declare type
|
|
19
|
+
export declare type AuthSessionTokenResponse = {
|
|
16
20
|
token: string;
|
|
17
21
|
};
|
|
18
22
|
export declare const ACTION_STORE_INFO = "app/store/info";
|
|
19
|
-
export declare type
|
|
23
|
+
export declare type StoreInfoResponse = {
|
|
20
24
|
id: string;
|
|
21
25
|
name: string;
|
|
22
26
|
url: string;
|
|
@@ -28,7 +32,7 @@ export declare const ACTION_UTILS_COPY_TO_CLIPBOARD = "app/utils/copyToClipboard
|
|
|
28
32
|
export declare type CopyToClipboardRequest = {
|
|
29
33
|
text: string;
|
|
30
34
|
};
|
|
31
|
-
export declare type
|
|
35
|
+
export declare type CopyToClipboardResponse = {
|
|
32
36
|
success: boolean;
|
|
33
37
|
};
|
|
34
38
|
export declare const ACTION_NAVIGATE_GOTO_OLD_ADMIN = "app/navigate/goToOldAdmin";
|
package/helpers/helpers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoreInfoResponse, NavigateHeaderRequest } from "../actions/actions";
|
|
2
2
|
import { NexoClient } from "../core/nexoClient";
|
|
3
3
|
export declare const connect: (nexo: NexoClient, ttl?: number) => Promise<void>;
|
|
4
4
|
export declare const iAmReady: (nexo: NexoClient) => void;
|
|
@@ -7,7 +7,7 @@ export declare const navigateBack: (nexo: NexoClient) => void;
|
|
|
7
7
|
export declare const getSessionToken: (nexo: NexoClient) => Promise<string>;
|
|
8
8
|
export declare const getCurrentPathname: (nexo: NexoClient) => Promise<string | null>;
|
|
9
9
|
export declare const syncPathname: (nexo: NexoClient, pathname: string) => void;
|
|
10
|
-
export declare const getStoreInfo: (nexo: NexoClient) => Promise<
|
|
10
|
+
export declare const getStoreInfo: (nexo: NexoClient) => Promise<StoreInfoResponse>;
|
|
11
11
|
export declare const goTo: (nexo: NexoClient, pathname: string) => void;
|
|
12
12
|
export declare const copyToClipboard: (nexo: NexoClient, text: string) => Promise<boolean>;
|
|
13
13
|
export declare const navigateHeader: (nexo: NexoClient, config: NavigateHeaderRequest) => void;
|