@adobe/exc-app 0.2.41 → 0.2.42

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,257 @@
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 type MetricsConfiguration from './metrics/Configuration';
12
+ /**
13
+ * ImsOrg Interface
14
+ */
15
+ interface ImsOrg {
16
+ /**
17
+ * ImsOrg Name - Label
18
+ */
19
+ label: string;
20
+ /**
21
+ * ImsOrg ID - Value
22
+ */
23
+ value: string;
24
+ }
25
+ /**
26
+ * ImsOrg Interface
27
+ */
28
+ interface ImsInfo {
29
+ /**
30
+ * ImsOrg - ID
31
+ */
32
+ imsOrg?: string;
33
+ /**
34
+ * ImsOrg Name - Label
35
+ */
36
+ imsOrgName?: string;
37
+ /**
38
+ * ImsOrg Profile
39
+ */
40
+ imsProfile?: Record<string, any>;
41
+ /**
42
+ * ImsToken
43
+ */
44
+ imsToken?: string;
45
+ /**
46
+ * locale
47
+ */
48
+ locale?: string;
49
+ /**
50
+ * tenant
51
+ */
52
+ tenant?: string;
53
+ }
54
+ /**
55
+ * User Sandbox Interface
56
+ */
57
+ interface Sandbox {
58
+ /**
59
+ * Whether it is the default sandbox
60
+ */
61
+ isDefault: boolean;
62
+ /**
63
+ * Sandbox ID
64
+ */
65
+ name: string;
66
+ /**
67
+ * Region
68
+ */
69
+ region: string;
70
+ /**
71
+ * Current state
72
+ */
73
+ state: string;
74
+ /**
75
+ * Sandbox Display Title
76
+ */
77
+ title: string;
78
+ /**
79
+ * Environment type
80
+ */
81
+ type: string;
82
+ }
83
+ /**
84
+ * External Runtime Configuration Interface
85
+ */
86
+ export interface RuntimeConfiguration {
87
+ /**
88
+ * OMEGA Launch script properties
89
+ */
90
+ analytics?: {
91
+ /**
92
+ * OMEGA script for respective env
93
+ */
94
+ script: string;
95
+ /**
96
+ * solution specific OMEGA code
97
+ */
98
+ solution: string;
99
+ };
100
+ /**
101
+ * App Container
102
+ */
103
+ appContainer: string;
104
+ /**
105
+ * Solution appId
106
+ */
107
+ appId: string;
108
+ /**
109
+ * Unified Shell API Gateway URL
110
+ */
111
+ apiGatewayUrl: string;
112
+ /**
113
+ * Solution iframe src url
114
+ */
115
+ baseFrameUrl: string;
116
+ /**
117
+ * Base URL
118
+ */
119
+ baseUrl: string;
120
+ /**
121
+ * List all properties changed in this configuration compared to the previous one sent
122
+ */
123
+ changedProperties: (keyof RuntimeConfiguration)[];
124
+ /**
125
+ * If discovery URL
126
+ */
127
+ discovery: boolean;
128
+ /**
129
+ * Unified Shell's environment
130
+ */
131
+ environment: string;
132
+ /**
133
+ * Query params
134
+ */
135
+ externalQueryParams: string;
136
+ /**
137
+ * Gainsight configuration.
138
+ */
139
+ gainsight?: {
140
+ enabled: boolean;
141
+ productKey: string;
142
+ };
143
+ /**
144
+ * Solution History type
145
+ */
146
+ historyType: 'HASH' | 'HISTORY' | 'SERVER';
147
+ /**
148
+ * Solution's list of multiple subdomains
149
+ */
150
+ hosts?: string[];
151
+ /**
152
+ * IMS Client ID
153
+ */
154
+ imsClientId: string;
155
+ /**
156
+ * IMS Information
157
+ */
158
+ imsInfo: ImsInfo;
159
+ /**
160
+ * Current IMS Org ID
161
+ */
162
+ imsOrg: string;
163
+ /**
164
+ * ImsOrg Interface
165
+ */
166
+ imsOrgs: Array<Record<string, ImsOrg>>;
167
+ /**
168
+ * Current IMS Org Name
169
+ */
170
+ imsOrgName: string;
171
+ /**
172
+ * User IMS Profile
173
+ */
174
+ imsProfile?: {
175
+ authId: string;
176
+ displayName: string;
177
+ session: string;
178
+ userId: string;
179
+ };
180
+ /**
181
+ * IMS Token
182
+ */
183
+ imsToken: string;
184
+ /**
185
+ * User Locale
186
+ */
187
+ locale: string;
188
+ /**
189
+ * Solution metricsAppId
190
+ */
191
+ metricsAppId?: string;
192
+ /**
193
+ * AdobeMetricsRuntime Configuration
194
+ */
195
+ metricsConfig: MetricsConfiguration;
196
+ /**
197
+ * Metrics environment (may differ from environment)
198
+ */
199
+ metricsEnv?: string;
200
+ /**
201
+ * Current Sandbox
202
+ */
203
+ sandbox?: Sandbox;
204
+ /**
205
+ * Shell Height
206
+ */
207
+ shellHeight: number;
208
+ /**
209
+ * Shell Info
210
+ */
211
+ shellInfo?: Record<string, any>;
212
+ /**
213
+ * Is Side Nav collapsed?
214
+ */
215
+ shellSideNavCollapsed?: boolean;
216
+ /**
217
+ * Is Side Nav enabled?
218
+ */
219
+ shellSideNavPresent: boolean;
220
+ /**
221
+ * Side Nav width
222
+ */
223
+ shellSideNavWidth: number;
224
+ /**
225
+ * SPA pipeline app id
226
+ */
227
+ spaAppId?: string;
228
+ /**
229
+ * Sub Org
230
+ */
231
+ subOrg?: Record<string, any>;
232
+ /**
233
+ * Tenant ID
234
+ */
235
+ tenant: string;
236
+ /**
237
+ * @deprecated Solution GraphQL tenantAppId
238
+ */
239
+ tenantAppId?: string;
240
+ /**
241
+ * Adobe IO gateway URL used as a fallback in GQL call
242
+ */
243
+ ioGatewayUrl?: string;
244
+ /**
245
+ * Map of Adobe Io region specific endpoints.
246
+ */
247
+ ioRegionSpecificMap?: Record<string, string>;
248
+ /**
249
+ * Clients can pass in their local GQL endpoint
250
+ */
251
+ gqlEndpoint?: string;
252
+ /**
253
+ * XQL gateway used for AEP specific queries
254
+ */
255
+ xqlGatewayUrl?: string;
256
+ }
257
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RuntimeConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuntimeConfiguration.js","sourceRoot":"","sources":["RuntimeConfiguration.ts"],"names":[],"mappings":""}
@@ -0,0 +1,260 @@
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 type MetricsConfiguration from './metrics/Configuration';
12
+
13
+ /**
14
+ * ImsOrg Interface
15
+ */
16
+ interface ImsOrg {
17
+ /**
18
+ * ImsOrg Name - Label
19
+ */
20
+ label: string;
21
+ /**
22
+ * ImsOrg ID - Value
23
+ */
24
+ value: string;
25
+ }
26
+
27
+ /**
28
+ * ImsOrg Interface
29
+ */
30
+ interface ImsInfo {
31
+ /**
32
+ * ImsOrg - ID
33
+ */
34
+ imsOrg?: string;
35
+ /**
36
+ * ImsOrg Name - Label
37
+ */
38
+ imsOrgName?: string;
39
+ /**
40
+ * ImsOrg Profile
41
+ */
42
+ imsProfile?: Record<string, any>;
43
+ /**
44
+ * ImsToken
45
+ */
46
+ imsToken?: string;
47
+ /**
48
+ * locale
49
+ */
50
+ locale?: string;
51
+ /**
52
+ * tenant
53
+ */
54
+ tenant?: string;
55
+ }
56
+
57
+ /**
58
+ * User Sandbox Interface
59
+ */
60
+ interface Sandbox {
61
+ /**
62
+ * Whether it is the default sandbox
63
+ */
64
+ isDefault: boolean;
65
+ /**
66
+ * Sandbox ID
67
+ */
68
+ name: string;
69
+ /**
70
+ * Region
71
+ */
72
+ region: string;
73
+ /**
74
+ * Current state
75
+ */
76
+ state: string;
77
+ /**
78
+ * Sandbox Display Title
79
+ */
80
+ title: string;
81
+ /**
82
+ * Environment type
83
+ */
84
+ type: string;
85
+ }
86
+
87
+ /**
88
+ * External Runtime Configuration Interface
89
+ */
90
+ export interface RuntimeConfiguration {
91
+ /**
92
+ * OMEGA Launch script properties
93
+ */
94
+ analytics?: {
95
+ /**
96
+ * OMEGA script for respective env
97
+ */
98
+ script: string;
99
+ /**
100
+ * solution specific OMEGA code
101
+ */
102
+ solution: string;
103
+ };
104
+ /**
105
+ * App Container
106
+ */
107
+ appContainer: string;
108
+ /**
109
+ * Solution appId
110
+ */
111
+ appId: string;
112
+ /**
113
+ * Unified Shell API Gateway URL
114
+ */
115
+ apiGatewayUrl: string;
116
+ /**
117
+ * Solution iframe src url
118
+ */
119
+ baseFrameUrl: string;
120
+ /**
121
+ * Base URL
122
+ */
123
+ baseUrl: string;
124
+ /**
125
+ * List all properties changed in this configuration compared to the previous one sent
126
+ */
127
+ changedProperties: (keyof RuntimeConfiguration)[],
128
+ /**
129
+ * If discovery URL
130
+ */
131
+ discovery: boolean;
132
+ /**
133
+ * Unified Shell's environment
134
+ */
135
+ environment: string;
136
+ /**
137
+ * Query params
138
+ */
139
+ externalQueryParams: string;
140
+ /**
141
+ * Gainsight configuration.
142
+ */
143
+ gainsight?: {
144
+ enabled: boolean;
145
+ productKey: string;
146
+ };
147
+ /**
148
+ * Solution History type
149
+ */
150
+ historyType: 'HASH' | 'HISTORY' | 'SERVER';
151
+ /**
152
+ * Solution's list of multiple subdomains
153
+ */
154
+ hosts?: string[];
155
+ /**
156
+ * IMS Client ID
157
+ */
158
+ imsClientId: string;
159
+ /**
160
+ * IMS Information
161
+ */
162
+ imsInfo: ImsInfo;
163
+ /**
164
+ * Current IMS Org ID
165
+ */
166
+ imsOrg: string;
167
+ /**
168
+ * ImsOrg Interface
169
+ */
170
+ imsOrgs: Array<Record<string, ImsOrg>>;
171
+ /**
172
+ * Current IMS Org Name
173
+ */
174
+ imsOrgName: string;
175
+ /**
176
+ * User IMS Profile
177
+ */
178
+ imsProfile?: {
179
+ authId: string;
180
+ displayName: string;
181
+ session: string;
182
+ userId: string;
183
+ };
184
+ /**
185
+ * IMS Token
186
+ */
187
+ imsToken: string;
188
+ /**
189
+ * User Locale
190
+ */
191
+ locale: string;
192
+ /**
193
+ * Solution metricsAppId
194
+ */
195
+ metricsAppId?: string;
196
+ /**
197
+ * AdobeMetricsRuntime Configuration
198
+ */
199
+ metricsConfig: MetricsConfiguration;
200
+ /**
201
+ * Metrics environment (may differ from environment)
202
+ */
203
+ metricsEnv?: string;
204
+ /**
205
+ * Current Sandbox
206
+ */
207
+ sandbox?: Sandbox;
208
+ /**
209
+ * Shell Height
210
+ */
211
+ shellHeight: number;
212
+ /**
213
+ * Shell Info
214
+ */
215
+ shellInfo?: Record<string, any>;
216
+ /**
217
+ * Is Side Nav collapsed?
218
+ */
219
+ shellSideNavCollapsed?: boolean;
220
+ /**
221
+ * Is Side Nav enabled?
222
+ */
223
+ shellSideNavPresent: boolean;
224
+ /**
225
+ * Side Nav width
226
+ */
227
+ shellSideNavWidth: number;
228
+ /**
229
+ * SPA pipeline app id
230
+ */
231
+ spaAppId?: string;
232
+ /**
233
+ * Sub Org
234
+ */
235
+ subOrg?: Record<string, any>;
236
+ /**
237
+ * Tenant ID
238
+ */
239
+ tenant: string;
240
+ /**
241
+ * @deprecated Solution GraphQL tenantAppId
242
+ */
243
+ tenantAppId?: string;
244
+ /**
245
+ * Adobe IO gateway URL used as a fallback in GQL call
246
+ */
247
+ ioGatewayUrl?: string;
248
+ /**
249
+ * Map of Adobe Io region specific endpoints.
250
+ */
251
+ ioRegionSpecificMap?: Record<string, string>;
252
+ /**
253
+ * Clients can pass in their local GQL endpoint
254
+ */
255
+ gqlEndpoint?: string;
256
+ /**
257
+ * XQL gateway used for AEP specific queries
258
+ */
259
+ xqlGatewayUrl?: string;
260
+ }
package/index.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  * written permission of Adobe.
10
10
  **************************************************************************/
11
11
  import Runtime from './src/Runtime';
12
+ export type { RuntimeConfiguration } from './RuntimeConfiguration';
12
13
  /**
13
14
  * Get the runtime object which contains all unified-shell APIs.
14
15
  *
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAA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index.ts CHANGED
@@ -15,9 +15,9 @@
15
15
  * @packageDocumentation
16
16
  * @preferred
17
17
  */
18
-
19
18
  import Global, {getImpl} from './src/Global';
20
19
  import Runtime from './src/Runtime';
20
+ export type {RuntimeConfiguration} from './RuntimeConfiguration';
21
21
 
22
22
  /**
23
23
  * Get the runtime object which contains all unified-shell APIs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/exc-app",
3
- "version": "0.2.41",
3
+ "version": "0.2.42",
4
4
  "main": "index.js",
5
5
  "source": "index.ts",
6
6
  "scripts": {