Skip to content

Commit 634a04c

Browse files
authored
Merge pull request #127 from contentstack/feat/MKT-6395-id-access
Feat/mkt 6395 id access
2 parents 4bfd478 + e6d1d94 commit 634a04c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/uiLocation.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@ class UiLocation {
112112
readonly region: Region;
113113
version: number | null;
114114

115+
ids: {
116+
apiKey: string;
117+
appUID: string;
118+
installationUID: string;
119+
locationUID: string;
120+
orgUID: string;
121+
userUID: string;
122+
};
123+
115124
/**
116125
* This holds the information of the currently running UI location of an App.
117126
*/
@@ -156,6 +165,15 @@ class UiLocation {
156165

157166
this.config = initializationData.config ?? {};
158167

168+
this.ids = {
169+
apiKey: initializationData.stack.api_key,
170+
appUID: initializationData.app_id,
171+
installationUID: initializationData.installation_uid,
172+
locationUID: initializationData.extension_uid,
173+
orgUID: initializationData.stack.org_uid,
174+
userUID: initializationData.user.uid,
175+
};
176+
159177
this.location = {
160178
DashboardWidget: null,
161179
CustomField: null,

0 commit comments

Comments
 (0)