@clickview/player 0.0.4-rc.1 → 0.0.4-rc.2
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/libs/analytics/src/clients/CollectionApiClient.d.ts +0 -3
- package/dist/libs/analytics/src/constants/Regions.d.ts +1 -0
- package/dist/libs/analytics/src/enums/CountryCode.d.ts +2 -1
- package/dist/libs/analytics/src/enums/RegionName.d.ts +2 -1
- package/dist/libs/analytics/src/interfaces/Region.d.ts +0 -1
- package/dist/libs/analytics/src/interfaces/RegionalUrl.d.ts +1 -0
- package/dist/libs/analytics/src/interfaces/User.d.ts +2 -0
- package/dist/libs/shared/src/enums/CountryCode.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/RegionalUrl.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +9 -1
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +3 -1
- package/dist/libs/shared/src/interfaces/models/User.d.ts +33 -1
- package/dist/player-app.js +2 -2
- package/package.json +70 -70
- package/dist/libs/analytics/src/constants/CountryRegionMapping.d.ts +0 -7
|
@@ -36,9 +36,6 @@ export declare class CollectionApiClient {
|
|
|
36
36
|
private getEventData;
|
|
37
37
|
private extractData;
|
|
38
38
|
private getUserData;
|
|
39
|
-
/**
|
|
40
|
-
* Until region is added to the user Auth claims, we use countryCode to obtain region.
|
|
41
|
-
*/
|
|
42
39
|
private getRegion;
|
|
43
40
|
private getPlatformMetadata;
|
|
44
41
|
private getEventMetadata;
|
|
@@ -3,7 +3,6 @@ import { CountryCode } from 'libs/shared/enums/CountryCode';
|
|
|
3
3
|
export interface Config extends BaseObject {
|
|
4
4
|
supportSiteUrl: string;
|
|
5
5
|
imageCdnUrl: string;
|
|
6
|
-
countryCode: CountryCode;
|
|
7
6
|
webPlayerUrl: string;
|
|
8
7
|
gatewayApiUrl: string;
|
|
9
8
|
notificationServiceUrl?: string;
|
|
@@ -13,4 +12,13 @@ export interface Config extends BaseObject {
|
|
|
13
12
|
downloadProxy?: string;
|
|
14
13
|
primaryUrl?: string;
|
|
15
14
|
marketingSiteUrl?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Instance CountryCode
|
|
17
|
+
*
|
|
18
|
+
* This is NOT the same as the customer/user CountryCode.
|
|
19
|
+
* This should only be used for legacy reasons where InstanceRegion is not supported.
|
|
20
|
+
*/
|
|
21
|
+
countryCode: CountryCode;
|
|
22
|
+
instanceRegion: string;
|
|
23
|
+
contentRegion: string;
|
|
16
24
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { BaseObject, Country } from 'libs/shared/interfaces';
|
|
2
2
|
import { Organisation } from './Organisation';
|
|
3
3
|
export interface Customer extends BaseObject {
|
|
4
|
-
organisation?: Organisation;
|
|
5
4
|
crmId: string;
|
|
5
|
+
instanceRegion: string;
|
|
6
|
+
contentRegion: string;
|
|
7
|
+
organisation?: Organisation;
|
|
6
8
|
country?: Country;
|
|
7
9
|
}
|
|
@@ -51,8 +51,40 @@ export interface CurrentUser extends BaseObject {
|
|
|
51
51
|
emailVerified: boolean;
|
|
52
52
|
customerId: string;
|
|
53
53
|
customerName: string;
|
|
54
|
-
countryCode: string;
|
|
55
54
|
customerLogo: string;
|
|
55
|
+
/**
|
|
56
|
+
* Regional instance the user (and their cusomter) belong to.
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* This effectively dictates which region the user and their customer reside in and should be used
|
|
60
|
+
* in any scenario where data needs to be collected, controlled or mapped within that same region.
|
|
61
|
+
*
|
|
62
|
+
* Examples:
|
|
63
|
+
* 1. Any logic that relies on OnlineDB
|
|
64
|
+
* 2. Analytics data should all be logged in the same region, irrespective of where they're logged in.
|
|
65
|
+
* 3. Uploaded files and videos should all be targeted to the same region.
|
|
66
|
+
*
|
|
67
|
+
* This is not the same as CountryCode or ContentRegion.
|
|
68
|
+
*/
|
|
69
|
+
instanceRegion: string;
|
|
70
|
+
/**
|
|
71
|
+
* The content set the user should have access to.
|
|
72
|
+
*
|
|
73
|
+
* @remarks
|
|
74
|
+
* Content is not tied to a country or instance region.
|
|
75
|
+
*/
|
|
76
|
+
contentRegion: string;
|
|
77
|
+
/**
|
|
78
|
+
* User's Country in Master
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* In most circumstances you'll want to use the user's InstanceRegion or ContentRegion over this.
|
|
82
|
+
* This is also different to the instance CountryCode used in the Config.
|
|
83
|
+
*
|
|
84
|
+
* Example:
|
|
85
|
+
* Scottish User/Customer will have their CountryCode set to GBR, not the UK.
|
|
86
|
+
*/
|
|
87
|
+
countryCode: string;
|
|
56
88
|
}
|
|
57
89
|
/**
|
|
58
90
|
* Current User for Online
|