@omnia/workplace 8.0.3-dev → 8.0.4-dev
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/internal-do-not-import-from-here/models/ManifestIds.d.ts +1 -0
- package/internal-do-not-import-from-here/models/ManifestIds.js +1 -0
- package/internal-do-not-import-from-here/models/analytics/analyticssettings.d.ts +3 -2
- package/internal-do-not-import-from-here/models/analytics/businessProfileAnalyticsSettings.d.ts +8 -0
- package/internal-do-not-import-from-here/models/analytics/businessProfileAnalyticsSettings.js +14 -0
- package/internal-do-not-import-from-here/models/analytics/index.d.ts +1 -0
- package/internal-do-not-import-from-here/models/analytics/index.js +1 -0
- package/internal-do-not-import-from-here/services/AnalyticsService.d.ts +5 -2
- package/internal-do-not-import-from-here/services/AnalyticsStoreService.d.ts +5 -2
- package/internal-do-not-import-from-here/stores/AnalyticsStore.d.ts +5 -2
- package/package.json +1 -1
@@ -16,6 +16,7 @@ export declare class WPRoleDefinition {
|
|
16
16
|
static get AnnouncementsBPAdmin(): Guid;
|
17
17
|
static get SearchBPAdmin(): Guid;
|
18
18
|
static get GlobalSignOffRequestAdmin(): Guid;
|
19
|
+
static get AnalyticsBpReader(): Guid;
|
19
20
|
}
|
20
21
|
export declare class WizardSetupConstant {
|
21
22
|
static get LocationPropertyTaxonomy(): Guid;
|
@@ -21,6 +21,7 @@ class WPRoleDefinition {
|
|
21
21
|
static get AnnouncementsBPAdmin() { return new fx_models_1.Guid("5FA0CED5-F7AB-4C7A-99D9-1F291CB08CC1"); }
|
22
22
|
static get SearchBPAdmin() { return new fx_models_1.Guid("affe1bd8-b534-459b-bdd5-f11e5a2d1d73"); }
|
23
23
|
static get GlobalSignOffRequestAdmin() { return new fx_models_1.Guid("d20507d0-41c0-43a2-8ffc-13e923362f9d"); }
|
24
|
+
static get AnalyticsBpReader() { return new fx_models_1.Guid("ab0d9a26-a89a-4117-bfee-0e3013e456e1"); }
|
24
25
|
}
|
25
26
|
exports.WPRoleDefinition = WPRoleDefinition;
|
26
27
|
class WizardSetupConstant {
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { AnalyticsDimensionMapping } from "./analyticsdimensionmappings";
|
2
2
|
export interface AnalyticsSettings {
|
3
|
-
url: string;
|
4
3
|
enabled: boolean;
|
5
4
|
idSite: number;
|
6
|
-
readToken: string;
|
7
5
|
mappings: AnalyticsDimensionMapping[];
|
8
6
|
}
|
7
|
+
export interface AnalyticsToken {
|
8
|
+
token: string;
|
9
|
+
}
|
package/internal-do-not-import-from-here/models/analytics/businessProfileAnalyticsSettings.d.ts
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
import { BusinessProfileProperty } from "@omnia/fx-models";
|
2
|
+
import { AnalyticsDimensionMapping } from "./analyticsdimensionmappings";
|
3
|
+
export declare class BusinessProfileAnalyticsSettings extends BusinessProfileProperty {
|
4
|
+
enabled: boolean;
|
5
|
+
idSite: number;
|
6
|
+
mappings: AnalyticsDimensionMapping[];
|
7
|
+
constructor();
|
8
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BusinessProfileAnalyticsSettings = void 0;
|
4
|
+
const fx_models_1 = require("@omnia/fx-models");
|
5
|
+
const ManifestIds_1 = require("../ManifestIds");
|
6
|
+
class BusinessProfileAnalyticsSettings extends fx_models_1.BusinessProfileProperty {
|
7
|
+
constructor() {
|
8
|
+
super(ManifestIds_1.ServiceDefinition.Id, "bpanalyticssettings");
|
9
|
+
this.enabled = false;
|
10
|
+
this.idSite = -1;
|
11
|
+
this.mappings = [];
|
12
|
+
}
|
13
|
+
}
|
14
|
+
exports.BusinessProfileAnalyticsSettings = BusinessProfileAnalyticsSettings;
|
@@ -5,3 +5,4 @@ tslib_1.__exportStar(require("./analyticsdimensionmappings"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./analyticssettings"), exports);
|
6
6
|
tslib_1.__exportStar(require("./widgetmetadata"), exports);
|
7
7
|
tslib_1.__exportStar(require("./analyticsfiltersettings"), exports);
|
8
|
+
tslib_1.__exportStar(require("./businessProfileAnalyticsSettings"), exports);
|
@@ -1,16 +1,19 @@
|
|
1
|
+
import { OmniaContext } from "@omnia/fx";
|
1
2
|
import { MultilingualStore, UserTypeStore } from "@omnia/fx/stores";
|
2
|
-
import { AnalyticsStore } from "../stores/AnalyticsStore";
|
3
3
|
import { DataSourcePropertiesService } from "@omnia/fx/services";
|
4
|
+
import { BusinessProfileAnalyticsSettings } from "../models/analytics";
|
4
5
|
export declare class AnalyticsService {
|
5
6
|
userTypeStore: UserTypeStore;
|
6
|
-
analyticsStore: AnalyticsStore;
|
7
7
|
dataSourcePropertiesService: DataSourcePropertiesService;
|
8
8
|
multilingualStore: MultilingualStore;
|
9
|
+
omniaContext: OmniaContext;
|
9
10
|
readonly dsSourcesAllowed: string[];
|
10
11
|
tracker: any;
|
12
|
+
settings: BusinessProfileAnalyticsSettings;
|
11
13
|
constructor();
|
12
14
|
registerPageVisit(pageId?: number, resetDimensions?: boolean): Promise<void>;
|
13
15
|
registerAction(category: string, action: string, name: string, value?: number): Promise<void>;
|
16
|
+
private shouldCollect;
|
14
17
|
private getDataSources;
|
15
18
|
private getActiveProperties;
|
16
19
|
private getPropertyValueAndConverterFromSelection;
|
@@ -1,14 +1,17 @@
|
|
1
|
-
import { GuidValue } from "@omnia/fx/models";
|
2
|
-
import { AnalyticsDimensionMapping, AnalyticsDimensionScopes, AnalyticsDimensions, AnalyticsScopeInfo, AnalyticsSettings, WidgetCategoryInfo } from "../models/analytics";
|
1
|
+
import { GuidValue, Identity } from "@omnia/fx/models";
|
2
|
+
import { AnalyticsDimensionMapping, AnalyticsDimensionScopes, AnalyticsDimensions, AnalyticsScopeInfo, AnalyticsSettings, AnalyticsToken, WidgetCategoryInfo } from "../models/analytics";
|
3
3
|
export declare class AnalyticsStoreService {
|
4
4
|
private httpClient;
|
5
5
|
constructor();
|
6
6
|
getSettings: (businessProfileId?: GuidValue) => Promise<AnalyticsSettings>;
|
7
|
+
getToken: (businessProfileId?: GuidValue) => Promise<AnalyticsToken>;
|
7
8
|
getDimensions: (businessProfileId?: GuidValue) => Promise<AnalyticsDimensions>;
|
8
9
|
getScopesInfo: (businessProfileId?: GuidValue) => Promise<AnalyticsScopeInfo[]>;
|
9
10
|
getWidgetInformation: () => Promise<WidgetCategoryInfo[]>;
|
10
11
|
addDimension: (name: string, scope: AnalyticsDimensionScopes) => Promise<number>;
|
11
12
|
enableAnalytics: () => Promise<boolean>;
|
12
13
|
disableAnalytics: () => Promise<boolean>;
|
14
|
+
setBusinessProfileReaders: (roleId: GuidValue, identities: Identity[]) => Promise<void>;
|
15
|
+
setTenantAdmins: (roleId: GuidValue, identities: Identity[]) => Promise<void>;
|
13
16
|
setMappings: (mappings: AnalyticsDimensionMapping[]) => Promise<void>;
|
14
17
|
}
|
@@ -14,13 +14,14 @@ export declare class AnalyticsStore extends Store {
|
|
14
14
|
private ensuredLoadDimensionsPromise;
|
15
15
|
private settings;
|
16
16
|
private ensuredLoadSettingsPromise;
|
17
|
+
private tokens;
|
18
|
+
private ensuredLoadTokenPromise;
|
17
19
|
private scopeInfos;
|
18
20
|
private ensuredLoadScopeInfosPromise;
|
19
21
|
private widgetCategoryInfo;
|
20
22
|
private ensuredLoadWidgetPromise;
|
21
|
-
private
|
23
|
+
private analyticsUrl;
|
22
24
|
onActivated(): void;
|
23
|
-
resetEnabledAndSite(): Promise<void>;
|
24
25
|
onDisposing(): void;
|
25
26
|
/**
|
26
27
|
* Implementation of getters
|
@@ -30,6 +31,8 @@ export declare class AnalyticsStore extends Store {
|
|
30
31
|
settings: (businessProfileId?: GuidValue) => AnalyticsSettings;
|
31
32
|
scopeInfos: (businessProfileId?: GuidValue) => AnalyticsScopeInfo[];
|
32
33
|
widgetCategoryInfo: () => WidgetCategoryInfo[];
|
34
|
+
tokens: (businessProfileId?: GuidValue) => string;
|
35
|
+
analyticsUrl: () => string;
|
33
36
|
};
|
34
37
|
actions: any;
|
35
38
|
}
|