@amedia/user 0.6.1 → 0.7.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/.codeclimate.yml +7 -0
- package/cloudbuild.json +1 -1
- package/dist/actions/authentication.d.ts +2 -2
- package/dist/actions/userData.d.ts +1 -1
- package/dist/clients/nebula.d.ts +2 -22
- package/dist/clients/pluto.d.ts +2 -7
- package/dist/index-subscription.spec.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +15 -0
- package/dist/store/index.d.ts +13 -0
- package/dist/store/index.spec.d.ts +1 -0
- package/dist/types.d.ts +3 -1
- package/dist/utils/getOrUpdate.d.ts +5 -2
- package/package.json +2 -1
- package/src/actions/authentication.ts +5 -38
- package/src/actions/userData.ts +17 -19
- package/src/clients/jupiter.spec.ts +5 -5
- package/src/clients/jupiter.ts +28 -22
- package/src/clients/nebula.spec.ts +11 -11
- package/src/clients/nebula.ts +33 -10
- package/src/clients/pluto.spec.ts +6 -3
- package/src/clients/pluto.ts +26 -16
- package/src/eventHandlers/userAttributes.ts +15 -8
- package/src/{index-userdata.spec.ts → index-subscription.spec.ts} +49 -57
- package/src/store/{store.spec.ts → index.spec.ts} +1 -1
- package/src/store/{store.ts → index.ts} +11 -6
- package/src/types.ts +1 -1
- package/src/utils/getOrUpdate.ts +12 -11
package/.codeclimate.yml
ADDED
package/cloudbuild.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"NODE_ENV=production",
|
|
19
19
|
"GIT_COMMIT_SHA=$COMMIT_SHA",
|
|
20
20
|
"GIT_BRANCH=$BRANCH_NAME",
|
|
21
|
-
"CC_TEST_REPORTER_ID=
|
|
21
|
+
"CC_TEST_REPORTER_ID=452ebe79c5e6a52d702bf1be68a94575029148333692a6d8a8abf10d6be7a4c5",
|
|
22
22
|
"COVERAGE_IN=/workspace/coverage/lcov.info",
|
|
23
23
|
"COVERAGE_OUT=/workspace/coverage/lcov.json",
|
|
24
24
|
"MODULE_PREFIX=/workspace"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserAttributes } from '../types';
|
|
2
2
|
export declare const login: (requestedUrl: string) => void;
|
|
3
3
|
export declare const logout: () => Promise<void>;
|
|
4
|
-
export declare const getSession: () => Promise<
|
|
4
|
+
export declare const getSession: () => Promise<UserAttributes>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UserAttributes } from '../types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const requestAttributes: (attributes: Array<keyof UserAttributes>) => void;
|
package/dist/clients/nebula.d.ts
CHANGED
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
ad_segments: String;
|
|
4
|
-
ad_segments_user: String;
|
|
5
|
-
age: Number;
|
|
6
|
-
age_user: Number;
|
|
7
|
-
birth_year: String;
|
|
8
|
-
birth_year_user: String;
|
|
9
|
-
gender: String;
|
|
10
|
-
gender_user: String;
|
|
11
|
-
grunnkrets: String;
|
|
12
|
-
grunnkrets_user: String;
|
|
13
|
-
postcode: String;
|
|
14
|
-
postcode_user: String;
|
|
15
|
-
shared_account: Boolean;
|
|
16
|
-
shared_account_user: Boolean;
|
|
17
|
-
user_grouping_number: String;
|
|
18
|
-
user_grouping_number_user: String;
|
|
19
|
-
}, false>]>;
|
|
20
|
-
export declare type Info = Static<typeof InfoSchema>;
|
|
21
|
-
export declare const getInfo: (userKey: string, publicationDomain: string, browserId: string) => Promise<Info>;
|
|
22
|
-
export {};
|
|
1
|
+
import { UserAttributes } from '../types';
|
|
2
|
+
export declare const getInfo: (publicationDomain: string, browserId: string, userKey?: string | undefined) => Promise<Pick<UserAttributes, 'extraData'>>;
|
package/dist/clients/pluto.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
name: String;
|
|
4
|
-
trackingKey: String;
|
|
5
|
-
}, false>;
|
|
6
|
-
export declare type Session = Static<typeof InternalSessionSchema>;
|
|
7
|
-
export declare const getCurrentSession: () => Promise<Session>;
|
|
1
|
+
import { UserAttributes } from '../types';
|
|
2
|
+
export declare const getCurrentSession: () => Promise<UserAttributes>;
|
|
8
3
|
export declare const removeSession: (domain: string) => Promise<void>;
|