@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.
@@ -0,0 +1,7 @@
1
+ plugins:
2
+ eslint:
3
+ enabled: true
4
+ exclude_patterns:
5
+ - "!src"
6
+ - "**/*.spec.ts"
7
+ - "*.js"
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=3bef6affe49c4a30d03c2acf478183da25266aace083a76157cb902c1348521a",
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 { Session } from '../clients/pluto';
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<Session | null>;
4
+ export declare const getSession: () => Promise<UserAttributes>;
@@ -1,2 +1,2 @@
1
1
  import { UserAttributes } from '../types';
2
- export declare const fetchDataBasedOnAttributes: (attributes: Array<keyof UserAttributes>, onDataUpdated: (attributes: UserAttributes) => void) => void;
2
+ export declare const requestAttributes: (attributes: Array<keyof UserAttributes>) => void;
@@ -1,22 +1,2 @@
1
- import { Static, Partial, Dictionary, Unknown, String, Number, Boolean } from 'runtypes';
2
- declare const InfoSchema: import("runtypes").Intersect<[Dictionary<Unknown, string>, Partial<{
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'>>;
@@ -1,8 +1,3 @@
1
- import { Record, Static, String } from 'runtypes';
2
- export declare const InternalSessionSchema: Record<{
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>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @jest-environment jsdom
3
+ */
4
+ export {};