@pushwoosh/session-store 2.3.7 → 2.4.1
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/entities/account.d.ts +0 -5
- package/dist/entities/account.d.ts.map +1 -1
- package/dist/entities/counters.d.ts +18 -18
- package/dist/entities/counters.d.ts.map +1 -1
- package/dist/entities/permissions.d.ts +22 -22
- package/dist/entities/permissions.d.ts.map +1 -1
- package/dist/entities/platforms.d.ts +13 -13
- package/dist/entities/restrictions.d.ts +80 -80
- package/dist/entities/restrictions.d.ts.map +1 -1
- package/dist/entities/user.d.ts +10 -10
- package/dist/entities/user.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/session-store.d.ts +9 -9
- package/package.json +3 -3
package/dist/session-store.d.ts
CHANGED
|
@@ -6,35 +6,35 @@ type AuthInfoAccountAsObject = ReturnType<RpcServiceClientInstances['accounts'][
|
|
|
6
6
|
type AuthInfoUserAsObject = ReturnType<RpcServiceClientInstances['accounts']['AuthInfoUser']['toObject']>;
|
|
7
7
|
export declare class SessionStore {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Client for working with grpc
|
|
10
10
|
*/
|
|
11
11
|
private readonly grpcClient;
|
|
12
12
|
/**
|
|
13
|
-
* "
|
|
13
|
+
* "Observable object" of the session
|
|
14
14
|
*/
|
|
15
15
|
private readonly subject;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Create an instance of the SessionStore class
|
|
18
18
|
*
|
|
19
|
-
* @param grpcClient -
|
|
19
|
+
* @param grpcClient - grpc client
|
|
20
20
|
*/
|
|
21
21
|
constructor(grpcClient: GrpcClient);
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Update the "Observable object" of the current session
|
|
24
24
|
*/
|
|
25
25
|
private updateSubject;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Load account and user data
|
|
28
28
|
*/
|
|
29
29
|
load: () => Promise<[AuthInfoAccountAsObject, AuthInfoUserAsObject]>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Update the session
|
|
32
32
|
*/
|
|
33
33
|
update: () => Promise<void>;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Subscribe to session changes
|
|
36
36
|
*
|
|
37
|
-
* @param callback -
|
|
37
|
+
* @param callback - callback that will be called when the session changes
|
|
38
38
|
*/
|
|
39
39
|
subscribe: (callback: (session: Session) => any) => Subscription;
|
|
40
40
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"pre-commit": "check",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/runtime-corejs3": "^7.17.2",
|
|
21
|
-
"@pushwoosh/grpc-bridge": "^0.
|
|
21
|
+
"@pushwoosh/grpc-bridge": "^1.0.0",
|
|
22
22
|
"core-js": "^3.21.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"webpack-merge": "^5.8.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@pushwoosh/grpc-bridge": "^0.
|
|
57
|
+
"@pushwoosh/grpc-bridge": "^1.0.0",
|
|
58
58
|
"@pushwoosh/http-client": "^2.4.8",
|
|
59
59
|
"rxjs": "^7.5.2",
|
|
60
60
|
"tslib": "^2.3.1"
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"node": ">=16.0.0",
|
|
64
64
|
"npm": ">=7.0.0"
|
|
65
65
|
},
|
|
66
|
-
"version": "2.
|
|
66
|
+
"version": "2.4.1"
|
|
67
67
|
}
|