@adobe/exc-app 0.2.45 → 1.0.0
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/RuntimeConfiguration.d.ts +4 -0
- package/appapi.d.ts +0 -1
- package/appapi.js +0 -1
- package/appapi.js.map +1 -1
- package/build/preBuild.js +14 -0
- package/capabilityapi.d.ts +2 -2
- package/capabilityapi.js +2 -2
- package/capabilityapi.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/enums/appapi.appids.md +14 -7
- package/docs/enums/capabilityapi.capabilityids.md +21 -0
- package/docs/enums/capabilityapi.capabilitynames.md +21 -0
- package/docs/interfaces/ims.activeproductcontext.md +13 -0
- package/docs/interfaces/ims.imsprofile.md +130 -0
- package/docs/interfaces/ims.productcontext.md +141 -0
- package/docs/interfaces/ims.projectedproductcontext.md +21 -0
- package/docs/interfaces/network.queryrequest.md +11 -0
- package/docs/interfaces/root.poller.md +56 -0
- package/docs/interfaces/root.pollerhandle.md +21 -0
- package/docs/interfaces/root.pollingconfiguration.md +28 -0
- package/docs/interfaces/root.runtimeconfiguration.md +10 -1
- package/docs/interfaces/root.useractivityemitter.md +110 -0
- package/docs/interfaces/root.useractivitymonitor.md +151 -0
- package/docs/interfaces/user.userapi.md +1 -1
- package/docs/modules/ims.md +14 -0
- package/docs/modules/root.md +5 -0
- package/docs/modules/settings.md +8 -57
- package/docs/modules/user.md +14 -0
- package/index.js +7 -0
- package/index.js.map +1 -1
- package/internal.d.ts +9 -0
- package/internal.js +3 -0
- package/internal.js.map +1 -1
- package/network.d.ts +0 -11
- package/network.js +1 -10
- package/network.js.map +1 -1
- package/package.json +5 -6
- package/src/Global.d.ts +3 -1
- package/src/Global.js.map +1 -1
- package/tests/index.test.js +5 -0
- package/tests/index.test.js.map +1 -1
- package/tests/version.test.d.ts +1 -0
- package/tests/version.test.js +23 -0
- package/tests/version.test.js.map +1 -0
- package/user.d.ts +10 -1
- package/user.js.map +1 -1
- package/{settings/SettingsLevel.ts → version.d.ts} +2 -20
- package/{metrics/Level.ts → version.js} +6 -20
- package/version.js.map +1 -0
- package/RuntimeConfiguration.ts +0 -272
- package/appapi.ts +0 -140
- package/capabilityapi.ts +0 -162
- package/helpcenter.ts +0 -253
- package/ims/ImsProfile.ts +0 -57
- package/index.ts +0 -76
- package/internal.ts +0 -102
- package/metrics/Analytics.ts +0 -55
- package/metrics/Application.ts +0 -24
- package/metrics/Configuration.ts +0 -33
- package/metrics/Events.ts +0 -28
- package/metrics/History.ts +0 -36
- package/metrics/Metric.ts +0 -52
- package/metrics/Metrics.ts +0 -129
- package/metrics/RecordType.ts +0 -139
- package/metrics/User.ts +0 -30
- package/metrics.ts +0 -94
- package/network.ts +0 -568
- package/nps.ts +0 -83
- package/orgswitcher.ts +0 -109
- package/page.ts +0 -497
- package/permissions.ts +0 -103
- package/pulse.ts +0 -198
- package/session.ts +0 -116
- package/settings.ts +0 -147
- package/shell.ts +0 -107
- package/sidebar.ts +0 -208
- package/sidenav.ts +0 -287
- package/src/EventEmitter.ts +0 -44
- package/src/Global.ts +0 -109
- package/src/Runtime.ts +0 -23
- package/tests/MockRuntime.ts +0 -28
- package/tests/appapi.test.ts +0 -78
- package/tests/capabilityapi.test.ts +0 -55
- package/tests/helpCenter.test.ts +0 -80
- package/tests/index.test.ts +0 -50
- package/tests/metrics.test.ts +0 -34
- package/tests/nps.test.ts +0 -37
- package/tests/page.test.ts +0 -110
- package/tests/permissions.test.ts +0 -96
- package/tests/pulse.test.ts +0 -37
- package/tests/shell.test.ts +0 -89
- package/tests/sidenav.test.ts +0 -91
- package/tests/topbar.test.ts +0 -85
- package/tests/user.test.ts +0 -129
- package/tests/userprofile.test.ts +0 -31
- package/topbar.ts +0 -288
- package/user.ts +0 -228
- package/userprofile.ts +0 -93
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/exc-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"source": "index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"docs/**/*.md",
|
|
19
19
|
"**/*.d.ts",
|
|
20
|
-
"**/*.ts",
|
|
21
20
|
"**/*.js",
|
|
22
21
|
"**/*.js.map"
|
|
23
22
|
],
|
|
@@ -33,11 +32,11 @@
|
|
|
33
32
|
"devDependencies": {
|
|
34
33
|
"cross-env": "7.0.3",
|
|
35
34
|
"enzyme": "3.11.0",
|
|
36
|
-
"eslint": "
|
|
35
|
+
"eslint": "8.1.0",
|
|
37
36
|
"eslint-plugin-header": "3.1.1",
|
|
38
|
-
"eslint-plugin-jsdoc": "
|
|
39
|
-
"eslint-plugin-prettier": "
|
|
40
|
-
"eslint-plugin-rulesdir": "0.
|
|
37
|
+
"eslint-plugin-jsdoc": "31.6.1",
|
|
38
|
+
"eslint-plugin-prettier": "4.0.0",
|
|
39
|
+
"eslint-plugin-rulesdir": "0.2.0",
|
|
41
40
|
"glob": "7.1.7",
|
|
42
41
|
"jest": "26.6.3",
|
|
43
42
|
"jest-dev-server": "4.4.0",
|
package/src/Global.d.ts
CHANGED
|
@@ -56,7 +56,9 @@ export interface Modules {
|
|
|
56
56
|
readonly userProfile: UserProfileApi;
|
|
57
57
|
}
|
|
58
58
|
declare type Global = typeof window & {
|
|
59
|
-
readonly 'exc-module-runtime': Modules
|
|
59
|
+
readonly 'exc-module-runtime': Modules & {
|
|
60
|
+
'exc-app-version'?: string;
|
|
61
|
+
};
|
|
60
62
|
EXC_MR_READY: () => void;
|
|
61
63
|
};
|
|
62
64
|
/**
|
package/src/Global.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Global.js","sourceRoot":"","sources":["Global.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;
|
|
1
|
+
{"version":3,"file":"Global.js","sourceRoot":"","sources":["Global.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AA0D5E;;;;;GAKG;AACH,SAAgB,OAAO,CAA0B,UAAa;IAC5D,MAAM,GAAG,GAAI,MAAiB,CAAC,oBAAoB,CAAC,CAAC;IACrD,IAAI,CAAC,GAAG,EAAE;QACR,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACvD;IACD,OAAO,GAAG,CAAC,UAAU,CAAC,CAAC;AACzB,CAAC;AAND,0BAMC;AAED;;;;;;GAMG;AACH,SAAgB,OAAO,CAA0B,OAAU,EAAE,UAA0C;IACrG,MAAM,GAAG,GAAG,EAAgB,CAAC;IAC7B,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC3B,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE;YACd,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,IAAW,EAAE,EAAE;gBACrC,OAAQ,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,CAAS,CAAC,GAAG,IAAI,CAAC,CAAC;YACzD,CAAC,CAAQ,CAAC;SACX;aAAM;YACL,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,WAAW,EAAE;gBACtC,GAAG,EAAE,GAAG,EAAE;oBACR,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC;gBACvC,CAAC;gBACD,GAAG,EAAE,KAAK,CAAC,EAAE;oBACX,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;gBACxC,CAAC;aACF,CAAC,CAAC;SACJ;IACH,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC;AACb,CAAC;AApBD,0BAoBC;AAED,kBAAgB,MAAiB,CAAC"}
|
package/tests/index.test.js
CHANGED
|
@@ -18,6 +18,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
18
18
|
__setModuleDefault(result, mod);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
21
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
25
|
/*************************************************************************
|
|
23
26
|
* Copyright 2020 Adobe
|
|
@@ -31,6 +34,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
34
|
**************************************************************************/
|
|
32
35
|
const Global_1 = __importStar(require("../src/Global"));
|
|
33
36
|
const index_1 = __importStar(require("../index"));
|
|
37
|
+
const version_1 = __importDefault(require("../version"));
|
|
34
38
|
describe('index.js', () => {
|
|
35
39
|
it('throws error if module-runtime not available on page', () => {
|
|
36
40
|
Global_1.default['exc-module-runtime'] = null;
|
|
@@ -55,6 +59,7 @@ describe('index.js', () => {
|
|
|
55
59
|
index_1.init(data.bootstrap);
|
|
56
60
|
expect(spy).toBeCalledTimes(1);
|
|
57
61
|
expect(spy).toBeCalledWith(runtime);
|
|
62
|
+
expect(Global_1.default['exc-module-runtime']['exc-app-version']).toEqual(version_1.default);
|
|
58
63
|
});
|
|
59
64
|
it('allows access to runtime object', () => {
|
|
60
65
|
const expectedRuntime = {};
|
package/tests/index.test.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["index.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["index.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;4EAS4E;AAC5E,wDAAuD;AACvD,kDAAgD;AAChD,yDAAiC;AAEjC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC7D,gBAAM,CAAC,oBAAoB,CAAS,GAAG,IAAI,CAAC;QAC7C,MAAM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GAAG,EAAE,CAAC,eAAe;SACpB,CAAC;QACb,MAAM,CAAC,eAAO,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAE1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
/*************************************************************************
|
|
7
|
+
* Copyright 2020 Adobe
|
|
8
|
+
* All Rights Reserved.
|
|
9
|
+
*
|
|
10
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
11
|
+
* accordance with the terms of the Adobe license agreement accompanying
|
|
12
|
+
* it. If you have received this file from a source other than Adobe,
|
|
13
|
+
* then your use, modification, or distribution of it requires the prior
|
|
14
|
+
* written permission of Adobe.
|
|
15
|
+
**************************************************************************/
|
|
16
|
+
const package_json_1 = require("../package.json");
|
|
17
|
+
const version_1 = __importDefault(require("../version"));
|
|
18
|
+
describe('version.ts', () => {
|
|
19
|
+
test('exc-app current version is being used', () => {
|
|
20
|
+
expect(version_1.default).toEqual(package_json_1.version);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=version.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.test.js","sourceRoot":"","sources":["version.test.ts"],"names":[],"mappings":";;;;;AAAA;;;;;;;;;4EAS4E;AAC5E,kDAAyD;AACzD,yDAAiC;AAEjC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,IAAI,CAAC,uCAAuC,EAAE,GAAG,EAAE;QACjD,MAAM,CAAC,iBAAO,CAAC,CAAC,OAAO,CAAC,sBAAa,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/user.d.ts
CHANGED
|
@@ -98,6 +98,15 @@ export interface Sandbox {
|
|
|
98
98
|
title: string;
|
|
99
99
|
type: string;
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Logout URL can either be a string or an object. The object includes the URL
|
|
103
|
+
* to be called on logout and whether this URL should be the only version of the
|
|
104
|
+
* host in the logout list.
|
|
105
|
+
*/
|
|
106
|
+
export declare type LogoutUrl = string | {
|
|
107
|
+
distinctDomain?: boolean;
|
|
108
|
+
url: string;
|
|
109
|
+
};
|
|
101
110
|
export interface IMS {
|
|
102
111
|
client_id: string;
|
|
103
112
|
scopes: string;
|
|
@@ -172,7 +181,7 @@ export interface UserApi extends EventEmitter<UserInfoEvent> {
|
|
|
172
181
|
* reduce the number of lingering sessions for solutions who have their own sessions server
|
|
173
182
|
* (in addition to IMS).
|
|
174
183
|
*/
|
|
175
|
-
logoutUrl
|
|
184
|
+
logoutUrl?: LogoutUrl;
|
|
176
185
|
/**
|
|
177
186
|
* If language picker should be opened.
|
|
178
187
|
*/
|
package/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["user.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;AAqF5E,yCAAqC;
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["user.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;AAqF5E,yCAAqC;AAqGrC,MAAM,IAAI,GAAG;IACX,WAAW,EAAE,GAAG,EAAE;QAChB,OAAO,gBAAO,CAAC,MAAM,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC;IACzC,CAAC;IACD,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;QAClB,OAAO,gBAAO,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC;I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@@
|
|
|
8
8
|
* then your use, modification, or distribution of it requires the prior
|
|
9
9
|
* written permission of Adobe.
|
|
10
10
|
**************************************************************************/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* @ignore
|
|
14
|
-
*/
|
|
15
|
-
export enum SettingsLevel {
|
|
16
|
-
/**
|
|
17
|
-
* Settings specific to the org.
|
|
18
|
-
*/
|
|
19
|
-
ORG = 'org',
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Settings specific to the user.
|
|
23
|
-
*/
|
|
24
|
-
USER = 'user',
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Settings specific to the user-org combination.
|
|
28
|
-
*/
|
|
29
|
-
USERORG = 'userorg'
|
|
30
|
-
}
|
|
11
|
+
declare const EXC_APP_VERSION = "1.0.0";
|
|
12
|
+
export default EXC_APP_VERSION;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
3
|
/*************************************************************************
|
|
2
|
-
* Copyright
|
|
4
|
+
* Copyright 2021 Adobe
|
|
3
5
|
* All Rights Reserved.
|
|
4
6
|
*
|
|
5
7
|
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
@@ -8,22 +10,6 @@
|
|
|
8
10
|
* then your use, modification, or distribution of it requires the prior
|
|
9
11
|
* written permission of Adobe.
|
|
10
12
|
**************************************************************************/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* @module metrics
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Log levels, for RecordType == Log.
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* @ignore
|
|
22
|
-
*/
|
|
23
|
-
export enum Level {
|
|
24
|
-
ERROR = 'ERROR',
|
|
25
|
-
WARN = 'WARN',
|
|
26
|
-
INFO = 'INFO',
|
|
27
|
-
DEBUG = 'DEBUG',
|
|
28
|
-
TRACE = 'TRACE'
|
|
29
|
-
}
|
|
13
|
+
const EXC_APP_VERSION = '1.0.0';
|
|
14
|
+
exports.default = EXC_APP_VERSION;
|
|
15
|
+
//# sourceMappingURL=version.js.map
|
package/version.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["version.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;4EAS4E;AAC5E,MAAM,eAAe,GAAG,OAAO,CAAC;AAEhC,kBAAe,eAAe,CAAC"}
|
package/RuntimeConfiguration.ts
DELETED
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
/*************************************************************************
|
|
2
|
-
* Copyright 2020 Adobe
|
|
3
|
-
* All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
6
|
-
* accordance with the terms of the Adobe license agreement accompanying
|
|
7
|
-
* it. If you have received this file from a source other than Adobe,
|
|
8
|
-
* then your use, modification, or distribution of it requires the prior
|
|
9
|
-
* written permission of Adobe.
|
|
10
|
-
**************************************************************************/
|
|
11
|
-
import {ImsProfile} from './ims/ImsProfile';
|
|
12
|
-
import type MetricsConfiguration from './metrics/Configuration';
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* ImsOrg Interface
|
|
16
|
-
*/
|
|
17
|
-
interface ImsOrg {
|
|
18
|
-
/**
|
|
19
|
-
* ImsOrg Name - Label
|
|
20
|
-
*/
|
|
21
|
-
label: string;
|
|
22
|
-
/**
|
|
23
|
-
* ImsOrg ID - Value
|
|
24
|
-
*/
|
|
25
|
-
value: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* ImsOrg Interface
|
|
30
|
-
*/
|
|
31
|
-
interface ImsInfo {
|
|
32
|
-
/**
|
|
33
|
-
* ImsOrg - ID
|
|
34
|
-
*/
|
|
35
|
-
imsOrg?: string;
|
|
36
|
-
/**
|
|
37
|
-
* ImsOrg Name - Label
|
|
38
|
-
*/
|
|
39
|
-
imsOrgName?: string;
|
|
40
|
-
/**
|
|
41
|
-
* ImsOrg Profile
|
|
42
|
-
*/
|
|
43
|
-
imsProfile?: ImsProfile;
|
|
44
|
-
/**
|
|
45
|
-
* ImsToken
|
|
46
|
-
*/
|
|
47
|
-
imsToken?: string;
|
|
48
|
-
/**
|
|
49
|
-
* locale
|
|
50
|
-
*/
|
|
51
|
-
locale?: string;
|
|
52
|
-
/**
|
|
53
|
-
* tenant
|
|
54
|
-
*/
|
|
55
|
-
tenant?: string;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* User Sandbox Interface
|
|
60
|
-
*/
|
|
61
|
-
interface Sandbox {
|
|
62
|
-
/**
|
|
63
|
-
* Whether it is the default sandbox
|
|
64
|
-
*/
|
|
65
|
-
isDefault: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Sandbox ID
|
|
68
|
-
*/
|
|
69
|
-
name: string;
|
|
70
|
-
/**
|
|
71
|
-
* Region
|
|
72
|
-
*/
|
|
73
|
-
region: string;
|
|
74
|
-
/**
|
|
75
|
-
* Current state
|
|
76
|
-
*/
|
|
77
|
-
state: string;
|
|
78
|
-
/**
|
|
79
|
-
* Sandbox Display Title
|
|
80
|
-
*/
|
|
81
|
-
title: string;
|
|
82
|
-
/**
|
|
83
|
-
* Environment type
|
|
84
|
-
*/
|
|
85
|
-
type: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* External Runtime Configuration Interface
|
|
90
|
-
*/
|
|
91
|
-
export interface RuntimeConfiguration {
|
|
92
|
-
/**
|
|
93
|
-
* OMEGA Launch script properties
|
|
94
|
-
*/
|
|
95
|
-
analytics?: {
|
|
96
|
-
/**
|
|
97
|
-
* OMEGA script for respective env
|
|
98
|
-
*/
|
|
99
|
-
script: string;
|
|
100
|
-
/**
|
|
101
|
-
* solution specific OMEGA code
|
|
102
|
-
*/
|
|
103
|
-
solution: string;
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Unified Shell API Gateway URL
|
|
107
|
-
*/
|
|
108
|
-
apiGatewayUrl: string;
|
|
109
|
-
/**
|
|
110
|
-
* App Container
|
|
111
|
-
*/
|
|
112
|
-
appContainer: string;
|
|
113
|
-
/**
|
|
114
|
-
* Solution appId
|
|
115
|
-
*/
|
|
116
|
-
appId: string;
|
|
117
|
-
/**
|
|
118
|
-
* Solution iframe src url
|
|
119
|
-
*/
|
|
120
|
-
baseFrameUrl: string;
|
|
121
|
-
/**
|
|
122
|
-
* Base URL
|
|
123
|
-
*/
|
|
124
|
-
baseUrl: string;
|
|
125
|
-
/**
|
|
126
|
-
* List all properties changed in this configuration compared to the previous one sent
|
|
127
|
-
*/
|
|
128
|
-
changedProperties: (keyof RuntimeConfiguration)[],
|
|
129
|
-
/**
|
|
130
|
-
* If discovery URL
|
|
131
|
-
*/
|
|
132
|
-
discovery: boolean;
|
|
133
|
-
/**
|
|
134
|
-
* Unified Shell's environment
|
|
135
|
-
*/
|
|
136
|
-
environment: string;
|
|
137
|
-
/**
|
|
138
|
-
* Query params
|
|
139
|
-
*/
|
|
140
|
-
externalQueryParams: string;
|
|
141
|
-
/**
|
|
142
|
-
* List of feature flags
|
|
143
|
-
*/
|
|
144
|
-
featureFlags?: Record<string, string>;
|
|
145
|
-
/**
|
|
146
|
-
* Gainsight configuration.
|
|
147
|
-
*/
|
|
148
|
-
gainsight?: {
|
|
149
|
-
enabled: boolean;
|
|
150
|
-
productKey: string;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* Clients can pass in their local GQL endpoint
|
|
154
|
-
*/
|
|
155
|
-
gqlEndpoint?: string;
|
|
156
|
-
/**
|
|
157
|
-
* Solution History type
|
|
158
|
-
*/
|
|
159
|
-
historyType: 'HASH' | 'HISTORY' | 'SERVER';
|
|
160
|
-
/**
|
|
161
|
-
* Solution's list of multiple subdomains
|
|
162
|
-
*/
|
|
163
|
-
hosts?: string[];
|
|
164
|
-
/**
|
|
165
|
-
* IMS Client ID
|
|
166
|
-
*/
|
|
167
|
-
imsClientId: string;
|
|
168
|
-
/**
|
|
169
|
-
* IMS env
|
|
170
|
-
*/
|
|
171
|
-
imsEnvironment: string;
|
|
172
|
-
/**
|
|
173
|
-
* IMS Information
|
|
174
|
-
*/
|
|
175
|
-
imsInfo: ImsInfo;
|
|
176
|
-
/**
|
|
177
|
-
* Current IMS Org ID
|
|
178
|
-
*/
|
|
179
|
-
imsOrg: string;
|
|
180
|
-
/**
|
|
181
|
-
* ImsOrg Interface
|
|
182
|
-
*/
|
|
183
|
-
imsOrgs: Array<Record<string, ImsOrg>>;
|
|
184
|
-
/**
|
|
185
|
-
* Current IMS Org Name
|
|
186
|
-
*/
|
|
187
|
-
imsOrgName: string;
|
|
188
|
-
/**
|
|
189
|
-
* User IMS Profile
|
|
190
|
-
*/
|
|
191
|
-
imsProfile?: ImsProfile;
|
|
192
|
-
/**
|
|
193
|
-
* IMS Token
|
|
194
|
-
*/
|
|
195
|
-
imsToken: string;
|
|
196
|
-
/**
|
|
197
|
-
* Adobe IO gateway URL used as a fallback in GQL call
|
|
198
|
-
*/
|
|
199
|
-
ioGatewayUrl?: string;
|
|
200
|
-
/**
|
|
201
|
-
* Map of Adobe Io region specific endpoints.
|
|
202
|
-
*/
|
|
203
|
-
ioRegionSpecificMap?: Record<string, string>;
|
|
204
|
-
/**
|
|
205
|
-
* User Locale
|
|
206
|
-
*/
|
|
207
|
-
locale: string;
|
|
208
|
-
/**
|
|
209
|
-
* Solution metricsAppId
|
|
210
|
-
*/
|
|
211
|
-
metricsAppId?: string;
|
|
212
|
-
/**
|
|
213
|
-
* AdobeMetricsRuntime Configuration
|
|
214
|
-
*/
|
|
215
|
-
metricsConfig: MetricsConfiguration;
|
|
216
|
-
/**
|
|
217
|
-
* Metrics environment (may differ from environment)
|
|
218
|
-
*/
|
|
219
|
-
metricsEnv?: string;
|
|
220
|
-
/**
|
|
221
|
-
* List of languages from user's preferences
|
|
222
|
-
*/
|
|
223
|
-
preferredLanguages?: string[];
|
|
224
|
-
/**
|
|
225
|
-
* Current Sandbox
|
|
226
|
-
*/
|
|
227
|
-
sandbox?: Sandbox;
|
|
228
|
-
/**
|
|
229
|
-
* Shell Height
|
|
230
|
-
*/
|
|
231
|
-
shellHeight: number;
|
|
232
|
-
/**
|
|
233
|
-
* Shell Info
|
|
234
|
-
*/
|
|
235
|
-
shellInfo?: Record<string, any>;
|
|
236
|
-
/**
|
|
237
|
-
* Is Side Nav collapsed?
|
|
238
|
-
*/
|
|
239
|
-
shellSideNavCollapsed?: boolean;
|
|
240
|
-
/**
|
|
241
|
-
* Is Side Nav enabled?
|
|
242
|
-
*/
|
|
243
|
-
shellSideNavPresent: boolean;
|
|
244
|
-
/**
|
|
245
|
-
* Side Nav width
|
|
246
|
-
*/
|
|
247
|
-
shellSideNavWidth: number;
|
|
248
|
-
/**
|
|
249
|
-
* SPA pipeline app id
|
|
250
|
-
*/
|
|
251
|
-
spaAppId?: string;
|
|
252
|
-
/**
|
|
253
|
-
* Sub Org
|
|
254
|
-
*/
|
|
255
|
-
subOrg?: Record<string, any>;
|
|
256
|
-
/**
|
|
257
|
-
* Tenant ID
|
|
258
|
-
*/
|
|
259
|
-
tenant: string;
|
|
260
|
-
/**
|
|
261
|
-
* @deprecated Solution GraphQL tenantAppId
|
|
262
|
-
*/
|
|
263
|
-
tenantAppId?: string;
|
|
264
|
-
/*
|
|
265
|
-
* spectrum--darkest or spectrum--lightest
|
|
266
|
-
*/
|
|
267
|
-
theme: string;
|
|
268
|
-
/**
|
|
269
|
-
* XQL gateway used for AEP specific queries
|
|
270
|
-
*/
|
|
271
|
-
xqlGatewayUrl?: string;
|
|
272
|
-
}
|
package/appapi.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/*************************************************************************
|
|
2
|
-
* Copyright 2020 Adobe
|
|
3
|
-
* All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
6
|
-
* accordance with the terms of the Adobe license agreement accompanying
|
|
7
|
-
* it. If you have received this file from a source other than Adobe,
|
|
8
|
-
* then your use, modification, or distribution of it requires the prior
|
|
9
|
-
* written permission of Adobe.
|
|
10
|
-
**************************************************************************/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* The App API provides auxiliary APIs to fetch certain data types.
|
|
14
|
-
*
|
|
15
|
-
* ***Import:***
|
|
16
|
-
*
|
|
17
|
-
* ```typescript
|
|
18
|
-
* import appApi from '@adobe/exc-app/appapi';
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* ***Default export:***
|
|
22
|
-
*
|
|
23
|
-
* [AppApi](../interfaces/app.appapi.md#interface-appapi)
|
|
24
|
-
*
|
|
25
|
-
* ***Usage:***
|
|
26
|
-
* These APIs return promises, not properties, and will need to be
|
|
27
|
-
* asynchronously loaded by calling `get`.
|
|
28
|
-
*
|
|
29
|
-
* ```typescript
|
|
30
|
-
* const [analytics, ddam, target] = await Promise.all([
|
|
31
|
-
* appApi.get('analytics'),
|
|
32
|
-
* appApi.get('ddam'),
|
|
33
|
-
* appApi.get('target')
|
|
34
|
-
* ]);
|
|
35
|
-
*
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* API for fetching app data.
|
|
39
|
-
* @packageDocumentation
|
|
40
|
-
* @module appapi
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
import {getImpl} from './src/Global';
|
|
44
|
-
|
|
45
|
-
export interface AppResponse {
|
|
46
|
-
/**
|
|
47
|
-
* Specifies the Adobe brand icon to use.
|
|
48
|
-
*/
|
|
49
|
-
adobeBrandType: string;
|
|
50
|
-
/**
|
|
51
|
-
* Unique key to identify the app.
|
|
52
|
-
*/
|
|
53
|
-
appId: string;
|
|
54
|
-
/**
|
|
55
|
-
* Specifies if current user on current org is enabled to use the app.
|
|
56
|
-
*/
|
|
57
|
-
enabled: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Specifies the app's functional icon for link locations.
|
|
60
|
-
*/
|
|
61
|
-
functionalIconReact: string;
|
|
62
|
-
/**
|
|
63
|
-
* A URL to fetch the app's functional icon.
|
|
64
|
-
*/
|
|
65
|
-
functionalIconUrl: string;
|
|
66
|
-
/**
|
|
67
|
-
* Link to the app.
|
|
68
|
-
*/
|
|
69
|
-
href: string;
|
|
70
|
-
/**
|
|
71
|
-
* Branding approved name of the app.
|
|
72
|
-
*/
|
|
73
|
-
name: string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// This list is dynamically generated in the preBuild step
|
|
77
|
-
export enum AppIds {
|
|
78
|
-
ADMIN = 'admin',
|
|
79
|
-
ADMIN_CONSOLE = 'adminconsole',
|
|
80
|
-
ADOBE_EXPERIENCE_CLOUD_GRIFFON = 'griffon',
|
|
81
|
-
ADVERTISING_CLOUD = 'adcloud',
|
|
82
|
-
ANALYTICS = 'analytics',
|
|
83
|
-
ASSETS = 'assets',
|
|
84
|
-
ASSETS_ESSENTIALS = 'ddam',
|
|
85
|
-
AUDIENCE_MANAGER = 'audiencemanager',
|
|
86
|
-
BIZIBLE = 'bizible',
|
|
87
|
-
CAMPAIGN = 'acs',
|
|
88
|
-
CAMPAIGN_CONTROL_PANEL = 'accp',
|
|
89
|
-
CLOUD_MANAGER = 'cloudManagerUi',
|
|
90
|
-
CONVERSATIONAL_EXPERIENCE = 'conversationalexperience',
|
|
91
|
-
CUSTOMER_JOURNEY_ANALYTICS = 'platformAnalytics',
|
|
92
|
-
CUSTOMER_JOURNEY_MANAGEMENT = 'cjm-home',
|
|
93
|
-
DATA_COLLECTION = 'launchDataCollection',
|
|
94
|
-
DYNAMIC_CHAT = 'hummingbird',
|
|
95
|
-
EXCHANGE = 'exchange',
|
|
96
|
-
EXPERIENCE_CLOUD = 'landing',
|
|
97
|
-
EXPERIENCE_MANAGER = 'experienceManagerUI',
|
|
98
|
-
EXPERIENCE_MANAGER_AEMSHELL = 'aemshell',
|
|
99
|
-
EXPERIENCE_MANAGER_AEM_MIGRATION = 'aem-migration',
|
|
100
|
-
EXPERIENCE_MANAGER_SCREENS = 'screens',
|
|
101
|
-
EXPERIENCE_PLATFORM = 'experiencePlatformUI',
|
|
102
|
-
HEADLESS_CMS = 'hcms',
|
|
103
|
-
JOURNEY_OPTIMIZER = 'cjm-home',
|
|
104
|
-
JOURNEY_ORCHESTRATION = 'journeys',
|
|
105
|
-
LAUNCH_DATA_COLLECTION = 'implement',
|
|
106
|
-
LAUNCH_IMPLEMENT = 'implement',
|
|
107
|
-
LAUNCH_LAUNCH = 'launch',
|
|
108
|
-
MAGENTO_COMMERCE = 'magento',
|
|
109
|
-
MARKETO_ENGAGE = 'marketo',
|
|
110
|
-
OFFERS = 'offers',
|
|
111
|
-
PEOPLE = 'people',
|
|
112
|
-
PLACES_SERVICE = 'places',
|
|
113
|
-
PRIMETIME = 'primetime',
|
|
114
|
-
PRIVACY_UI = 'privacyui',
|
|
115
|
-
PROJECT_FIREFLY_APPS = 'firefly',
|
|
116
|
-
PROJECT_HUMMINGBIRD = 'hummingbird',
|
|
117
|
-
PROJECT_SIERRA = 'cjm-home',
|
|
118
|
-
REPORT_SUITE_MAPPING = 'reportSuiteMapping',
|
|
119
|
-
SOFTWARE_DISTRIBUTION = 'softwareDistribution',
|
|
120
|
-
SYSTEM_STATUS = 'systemStatus',
|
|
121
|
-
TARGET = 'target',
|
|
122
|
-
TRIGGERS = 'triggers'
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
type AppId = typeof AppIds[keyof typeof AppIds];
|
|
126
|
-
|
|
127
|
-
export interface AppApi {
|
|
128
|
-
/**
|
|
129
|
-
* API to fetch metadata for one app by appId
|
|
130
|
-
*/
|
|
131
|
-
get(appId: AppId): Promise<AppResponse>;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
const appapi: AppApi = {
|
|
135
|
-
get: params => {
|
|
136
|
-
return getImpl('appApi')().get(params);
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
export default appapi;
|