@pushwoosh/session-store 2.5.2 → 2.5.4
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 +1 -0
- package/dist/entities/account.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/session-store.d.ts +4 -3
- package/dist/session-store.d.ts.map +1 -1
- package/dist/session-store.types.d.ts +3 -1
- package/dist/session-store.types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/session-store.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Subscription } from 'rxjs';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { API } from '@pushwoosh/rpc-v2-http-api-data';
|
|
3
|
+
import type { Account as AuthInfoAccount, User as AuthInfoUser } from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';
|
|
4
|
+
import type { GetOnboardingInfoResponse as OnboardingInfo } from '@pushwoosh/rpc-v2-http-api-data/accounts';
|
|
4
5
|
import type { Session } from './session-store.types';
|
|
5
6
|
export declare class SessionStore {
|
|
6
7
|
/**
|
|
@@ -29,7 +30,7 @@ export declare class SessionStore {
|
|
|
29
30
|
/**
|
|
30
31
|
* Load account and user data
|
|
31
32
|
*/
|
|
32
|
-
load: () => Promise<[AuthInfoAccount, AuthInfoUser]>;
|
|
33
|
+
load: () => Promise<[AuthInfoAccount, AuthInfoUser, OnboardingInfo]>;
|
|
33
34
|
/**
|
|
34
35
|
* Update the session
|
|
35
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../src/session-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../src/session-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,KAAK,EACV,OAAO,IAAI,eAAe,EAC1B,IAAI,IAAI,YAAY,EACrB,MAAM,wDAAwD,CAAC;AAChE,OAAO,KAAK,EAAE,yBAAyB,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAS5G,OAAO,KAAK,EAAE,OAAO,EAAoB,MAAM,uBAAuB,CAAC;AAEvE,qBAAa,YAAY;IACvB;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAM;IAEjC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IAEjD;;OAEG;IACH,OAAO,CAAC,WAAW,CAAC,CAAU;IAE9B;;;;OAIG;gBACS,UAAU,EAAE,GAAG;IAM3B;;OAEG;IACH,OAAO,CAAC,aAAa,CAgBnB;IAEF;;OAEG;IACI,IAAI,QAAa,QAAQ,CAAC,eAAe,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC,CAQ9E;IAEF;;OAEG;IACI,MAAM,QAAa,QAAQ,IAAI,CAAC,CAGrC;IAEF;;;;OAIG;IACI,SAAS,uBAAwB,OAAO,KAAK,GAAG,KAAG,YAAY,CAEpE;IAEF;;OAEG;IACI,cAAc,QAAO,OAAO,GAAG,SAAS,CAAqB;CACrE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RestrictionValue } from '@pushwoosh/rpc-v2-http-api-data/pushwoosh_objects_restrictionValues_v1';
|
|
2
|
+
import type { GetOnboardingInfoResponse as OnboardingInfo } from '@pushwoosh/rpc-v2-http-api-data/accounts';
|
|
2
3
|
import type { Account } from './entities/account';
|
|
3
4
|
import type { Permissions } from './entities/permissions';
|
|
4
5
|
import type { Platforms } from './entities/platforms';
|
|
@@ -12,6 +13,7 @@ export type Session = {
|
|
|
12
13
|
readonly restrictions: Restrictions;
|
|
13
14
|
readonly counters: Counters;
|
|
14
15
|
readonly user: User;
|
|
16
|
+
readonly onboardingInfo: OnboardingInfo;
|
|
15
17
|
};
|
|
16
18
|
export type RestrictionsData = {
|
|
17
19
|
restrictions: RestrictionValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.types.d.ts","sourceRoot":"","sources":["../src/session-store.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"session-store.types.d.ts","sourceRoot":"","sources":["../src/session-store.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAC;AAC/G,OAAO,KAAK,EAAE,yBAAyB,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE5G,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,EAAE,gBAAgB,CAAC;CAChC,CAAC"}
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"pre-commit": "check",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/runtime-corejs3": "^7.17.2",
|
|
20
|
-
"@pushwoosh/rpc-v2-http-api-data": "^0.1.
|
|
20
|
+
"@pushwoosh/rpc-v2-http-api-data": "^0.1.621",
|
|
21
21
|
"core-js": "^3.21.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"webpack-merge": "^5.8.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@pushwoosh/http-client": "^2.
|
|
53
|
-
"@pushwoosh/rpc-v2-http-api-data": "^0.1.
|
|
52
|
+
"@pushwoosh/http-client": "^2.5.1",
|
|
53
|
+
"@pushwoosh/rpc-v2-http-api-data": "^0.1.621",
|
|
54
54
|
"rxjs": "^7.5.2",
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"node": ">=16.0.0",
|
|
59
59
|
"npm": ">=7.0.0"
|
|
60
60
|
},
|
|
61
|
-
"version": "2.5.
|
|
61
|
+
"version": "2.5.4"
|
|
62
62
|
}
|