@gooddata/sdk-pluggable-application-model 11.61.0-alpha.2 → 11.61.0-alpha.3
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/esm/__version.js +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/mount.d.ts +52 -2
- package/esm/mount.d.ts.map +1 -1
- package/esm/mount.js +34 -0
- package/esm/sdk-pluggable-application-model.d.ts +55 -2
- package/package.json +4 -4
package/esm/__version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
// DO NOT CHANGE THIS FILE, IT IS RE-GENERATED ON EVERY BUILD
|
|
3
3
|
/** @alpha */
|
|
4
|
-
export const LIB_VERSION = "11.61.0-alpha.
|
|
4
|
+
export const LIB_VERSION = "11.61.0-alpha.3";
|
|
5
5
|
/** @alpha */
|
|
6
6
|
export const LIB_DESCRIPTION = "GoodData SDK model contracts for pluggable applications";
|
|
7
7
|
/** @alpha */
|
package/esm/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { DefaultApplicationId } from "./defaultPlatformApplications.js";
|
|
|
7
7
|
export { LIB_VERSION, LIB_DESCRIPTION, LIB_NAME } from "./__version.js";
|
|
8
8
|
export { type EmbeddingMode, type IApiTokenAuthCredentials, type IAuthCredentials, type IContextDeferredAuthCredentials, type IEffectiveSettings, type IJwtAuthCredentials, type IOrganization, type IOrganizationPermissions, type IPlatformContext, type IPlatformContextV1, type IPluggableApplicationNavigation, PantherTier, isPlatformContextV1, isWorkspaceScopedSettings, } from "./platformContext.js";
|
|
9
9
|
export { type ILocale } from "@gooddata/sdk-model";
|
|
10
|
-
export { type IAppHeaderOptions, type IAppInstance, type KnownPluggableAppEventTypeName, type IDocumentTitleChangedEvent, type IOpenAiAssistantRequestedEvent, type ICloseAiAssistantRequestedEvent, type IAiAssistantContextChangedEvent, type IHostNavigationRequest, type IPluggableApp, type IPluggableApplicationMountHandle, type IPluggableApplicationMountOptions, type IPluggableAppEvent, type IPluggableAppLogRecord, type IPluggableAppTelemetryCallbacks, type IPluggableAppTelemetryEventData, type IReloadPlatformContextRequestedEvent, type ITelemetryEventOptions, documentTitleChanged, isDocumentTitleChangedEvent, isOpenAiAssistantRequestedEvent, isCloseAiAssistantRequestedEvent, isAiAssistantContextChangedEvent, isReloadPlatformContextRequestedEvent, openAiAssistantRequested, closeAiAssistantRequested, aiAssistantContextChanged, type PluggableApplicationMount, PluggableAppEventType, type PluggableAppEventTypeName, reloadPlatformContextRequested, type TelemetryChannel, } from "./mount.js";
|
|
10
|
+
export { type IAppHeaderOptions, type IAppInstance, type KnownPluggableAppEventTypeName, type IDocumentTitleChangedEvent, type IOpenAiAssistantRequestedEvent, type ICloseAiAssistantRequestedEvent, type IAiAssistantContextChangedEvent, type IAiAssistantReportSavedEvent, type IHostNavigationRequest, type IPluggableApp, type IPluggableApplicationMountHandle, type IPluggableApplicationMountOptions, type IPluggableAppEvent, type IPluggableAppLogRecord, type IPluggableAppTelemetryCallbacks, type IPluggableAppTelemetryEventData, type IReloadPlatformContextRequestedEvent, type ITelemetryEventOptions, documentTitleChanged, isDocumentTitleChangedEvent, isOpenAiAssistantRequestedEvent, isCloseAiAssistantRequestedEvent, isAiAssistantContextChangedEvent, isAiAssistantReportSavedEvent, isReloadPlatformContextRequestedEvent, openAiAssistantRequested, closeAiAssistantRequested, aiAssistantContextChanged, aiAssistantReportSaved, type PluggableApplicationMount, PluggableAppEventType, type PluggableAppEventTypeName, reloadPlatformContextRequested, type TelemetryChannel, } from "./mount.js";
|
|
11
11
|
export { type ITelemetryPropertySlot, type TelemetryPropertyScope, TELEMETRY_PROPERTIES, } from "./telemetry/telemetryProperties.js";
|
|
12
12
|
export { type IHostUiModule, type IHostUiMountHandle, type IHostUiMountOptions, type IHostUiNotification, type INewDeploymentAvailableHostUiNotification, type HostUiMount, } from "./hostUi.js";
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAExE,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,WAAW,EACX,mBAAmB,EACnB,yBAAyB,GAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,oBAAoB,EACpB,2BAA2B,EAC3B,+BAA+B,EAC/B,gCAAgC,EAChC,gCAAgC,EAChC,qCAAqC,EACrC,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,KAAK,yBAAyB,EAC9B,qBAAqB,EACrB,KAAK,yBAAyB,EAC9B,8BAA8B,EAC9B,KAAK,gBA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AsB,EAC3B,oBAAoB,EACpB,2BAA2B,EAC3B,+BAA+B,EAC/B,gCAAgC,EAChC,gCAAgC,EAChC,6BAA6B,EAC7B,qCAAqC,EACrC,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,KAAK,yBAAyB,EAC9B,qBAAqB,EACrB,KAAK,yBAAyB,EAC9B,8BAA8B,EAC9B,KAAK,gBAAgB,GACxB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACH,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,oBAAoB,GACvB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,yCAAyC,EAC9C,KAAK,WAAW,GACnB,MAAM,aAAa,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
export { DefaultApplicationId } from "./defaultPlatformApplications.js";
|
|
9
9
|
export { LIB_VERSION, LIB_DESCRIPTION, LIB_NAME } from "./__version.js";
|
|
10
10
|
export { PantherTier, isPlatformContextV1, isWorkspaceScopedSettings, } from "./platformContext.js";
|
|
11
|
-
export { documentTitleChanged, isDocumentTitleChangedEvent, isOpenAiAssistantRequestedEvent, isCloseAiAssistantRequestedEvent, isAiAssistantContextChangedEvent, isReloadPlatformContextRequestedEvent, openAiAssistantRequested, closeAiAssistantRequested, aiAssistantContextChanged, PluggableAppEventType, reloadPlatformContextRequested, } from "./mount.js";
|
|
11
|
+
export { documentTitleChanged, isDocumentTitleChangedEvent, isOpenAiAssistantRequestedEvent, isCloseAiAssistantRequestedEvent, isAiAssistantContextChangedEvent, isAiAssistantReportSavedEvent, isReloadPlatformContextRequestedEvent, openAiAssistantRequested, closeAiAssistantRequested, aiAssistantContextChanged, aiAssistantReportSaved, PluggableAppEventType, reloadPlatformContextRequested, } from "./mount.js";
|
|
12
12
|
export { TELEMETRY_PROPERTIES, } from "./telemetry/telemetryProperties.js";
|
package/esm/mount.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const PluggableAppEventType: {
|
|
|
11
11
|
readonly AI_ASSISTANT_OPEN_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.OPEN_REQUESTED";
|
|
12
12
|
readonly AI_ASSISTANT_CLOSE_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CLOSE_REQUESTED";
|
|
13
13
|
readonly AI_ASSISTANT_CONTEXT_CHANGED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CONTEXT_CHANGED";
|
|
14
|
+
readonly AI_ASSISTANT_REPORT_SAVED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.REPORT_SAVED";
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* Union of known pluggable application event type names.
|
|
@@ -256,6 +257,54 @@ export declare function aiAssistantContextChanged(payload?: {
|
|
|
256
257
|
* @alpha
|
|
257
258
|
*/
|
|
258
259
|
export declare function isAiAssistantContextChangedEvent(obj: unknown): obj is IAiAssistantContextChangedEvent;
|
|
260
|
+
/**
|
|
261
|
+
* Event telling the host assistant that a report it drafted was saved.
|
|
262
|
+
*
|
|
263
|
+
* @remarks
|
|
264
|
+
* The assistant keeps its own copy of the conversation, which only learns about a save when the
|
|
265
|
+
* thread is loaded again. The application that saved the report emits this once per save, so the
|
|
266
|
+
* report in the chat reads as saved and links to the saved report right away.
|
|
267
|
+
*
|
|
268
|
+
* @alpha
|
|
269
|
+
*/
|
|
270
|
+
export interface IAiAssistantReportSavedEvent extends IPluggableAppEvent {
|
|
271
|
+
readonly type: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.REPORT_SAVED";
|
|
272
|
+
readonly payload: {
|
|
273
|
+
/**
|
|
274
|
+
* Conversation the report was drafted in.
|
|
275
|
+
*/
|
|
276
|
+
readonly conversationId: string;
|
|
277
|
+
/**
|
|
278
|
+
* Conversation item that holds the drafted report.
|
|
279
|
+
*/
|
|
280
|
+
readonly itemId: string;
|
|
281
|
+
/**
|
|
282
|
+
* Name of the report within the item. Omitted when the draft carries none; the item's only
|
|
283
|
+
* report is meant then.
|
|
284
|
+
*/
|
|
285
|
+
readonly reportRef?: string;
|
|
286
|
+
/**
|
|
287
|
+
* Identifier of the report the draft was saved as.
|
|
288
|
+
*/
|
|
289
|
+
readonly savedReportId: string;
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Creates an {@link IAiAssistantReportSavedEvent}.
|
|
294
|
+
*
|
|
295
|
+
* @alpha
|
|
296
|
+
*/
|
|
297
|
+
export declare function aiAssistantReportSaved(payload: IAiAssistantReportSavedEvent["payload"]): IAiAssistantReportSavedEvent;
|
|
298
|
+
/**
|
|
299
|
+
* Type guard for {@link IAiAssistantReportSavedEvent}.
|
|
300
|
+
*
|
|
301
|
+
* @remarks
|
|
302
|
+
* Validates the payload shape too, so a malformed event is rejected rather than narrowed to a type
|
|
303
|
+
* whose later `payload.conversationId` access would be wrong.
|
|
304
|
+
*
|
|
305
|
+
* @alpha
|
|
306
|
+
*/
|
|
307
|
+
export declare function isAiAssistantReportSavedEvent(obj: unknown): obj is IAiAssistantReportSavedEvent;
|
|
259
308
|
/**
|
|
260
309
|
* Telemetry channel determines which analytics pipeline receives the event.
|
|
261
310
|
*
|
|
@@ -536,8 +585,9 @@ export interface IPluggableApplicationMountHandle {
|
|
|
536
585
|
* On hosted routes the host owns the chat, so links clicked inside it are handled by the host by
|
|
537
586
|
* default (open in a tab / navigate). An embedded application can intercept them instead — e.g. an
|
|
538
587
|
* embedded dashboard opening a visualization as an in-place overlay rather than navigating away.
|
|
539
|
-
* Return `true` if the application handled it (the host suppresses its own navigation
|
|
540
|
-
* `false` to let the host
|
|
588
|
+
* Return `true` if the application handled it (the host suppresses its own navigation in this
|
|
589
|
+
* tab; a request for a new tab is still opened by the host); return `false` to let the host
|
|
590
|
+
* perform default link handling.
|
|
541
591
|
*/
|
|
542
592
|
onAiAssistantLinkClicked?: (link: {
|
|
543
593
|
type?: string;
|
package/esm/mount.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mount.d.ts","sourceRoot":"","sources":["../src/mount.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;aAC9B,iCAAiC,EAAE,yDAAyD;aAC5F,sBAAsB,EAAE,8CAA8C;aACtE,2BAA2B,EAAE,mDAAmD;aAChF,4BAA4B,EAAE,oDAAoD;aAClF,4BAA4B,EAAE,oDAAoD;
|
|
1
|
+
{"version":3,"file":"mount.d.ts","sourceRoot":"","sources":["../src/mount.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;aAC9B,iCAAiC,EAAE,yDAAyD;aAC5F,sBAAsB,EAAE,8CAA8C;aACtE,2BAA2B,EAAE,mDAAmD;aAChF,4BAA4B,EAAE,oDAAoD;aAClF,4BAA4B,EAAE,oDAAoD;aAClF,yBAAyB,EAAE,iDAAiD;CACtE,CAAC;AAEX;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GACtC,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAEvE;;;;;;;;;GASG;AACH,MAAM,MAAM,yBAAyB,GAAG,8BAA8B,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEvF;;;;;;;;;GASG;AACH,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,IAAI,EAAE,yBAAyB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K,IAAI,CAAC;IAE7C;;;;;;;;;;OAUG;IACH,wBAAwB,CAAC,EAAE,CAAC,IAAI,EAAE;QAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,OAAO,CAAC;KACpB,KAAK,OAAO,CAAC;IAEd;;;;;;;;;;OAUG;IACH,yBAAyB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;CACnG;AAED;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,CACpC,OAAO,EAAE,iCAAiC,KACzC,gCAAgC,CAAC;AAEtC;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,gCAAgC;IAClE,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,yBAAyB,CAAC;IAEjC;;;;;;;;;;;OAWG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
package/esm/mount.js
CHANGED
|
@@ -10,6 +10,7 @@ export const PluggableAppEventType = {
|
|
|
10
10
|
AI_ASSISTANT_OPEN_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.OPEN_REQUESTED",
|
|
11
11
|
AI_ASSISTANT_CLOSE_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CLOSE_REQUESTED",
|
|
12
12
|
AI_ASSISTANT_CONTEXT_CHANGED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CONTEXT_CHANGED",
|
|
13
|
+
AI_ASSISTANT_REPORT_SAVED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.REPORT_SAVED",
|
|
13
14
|
};
|
|
14
15
|
/**
|
|
15
16
|
* Creates an {@link IReloadPlatformContextRequestedEvent}.
|
|
@@ -148,3 +149,36 @@ export function isAiAssistantContextChangedEvent(obj) {
|
|
|
148
149
|
// host and application deploy independently.
|
|
149
150
|
(userContext === undefined || (typeof userContext === "object" && userContext !== null)));
|
|
150
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Creates an {@link IAiAssistantReportSavedEvent}.
|
|
154
|
+
*
|
|
155
|
+
* @alpha
|
|
156
|
+
*/
|
|
157
|
+
export function aiAssistantReportSaved(payload) {
|
|
158
|
+
return { type: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.REPORT_SAVED", payload };
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Type guard for {@link IAiAssistantReportSavedEvent}.
|
|
162
|
+
*
|
|
163
|
+
* @remarks
|
|
164
|
+
* Validates the payload shape too, so a malformed event is rejected rather than narrowed to a type
|
|
165
|
+
* whose later `payload.conversationId` access would be wrong.
|
|
166
|
+
*
|
|
167
|
+
* @alpha
|
|
168
|
+
*/
|
|
169
|
+
export function isAiAssistantReportSavedEvent(obj) {
|
|
170
|
+
if (typeof obj !== "object" ||
|
|
171
|
+
obj === null ||
|
|
172
|
+
obj.type !== "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.REPORT_SAVED") {
|
|
173
|
+
return false;
|
|
174
|
+
}
|
|
175
|
+
const payload = obj.payload;
|
|
176
|
+
if (typeof payload !== "object" || payload === null || Array.isArray(payload)) {
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
const { conversationId, itemId, reportRef, savedReportId } = payload;
|
|
180
|
+
return (typeof conversationId === "string" &&
|
|
181
|
+
typeof itemId === "string" &&
|
|
182
|
+
(reportRef === undefined || typeof reportRef === "string") &&
|
|
183
|
+
typeof savedReportId === "string");
|
|
184
|
+
}
|
|
@@ -33,6 +33,13 @@ export declare function aiAssistantContextChanged(payload?: {
|
|
|
33
33
|
userContextLoading?: boolean;
|
|
34
34
|
}): IAiAssistantContextChangedEvent;
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Creates an {@link IAiAssistantReportSavedEvent}.
|
|
38
|
+
*
|
|
39
|
+
* @alpha
|
|
40
|
+
*/
|
|
41
|
+
export declare function aiAssistantReportSaved(payload: IAiAssistantReportSavedEvent["payload"]): IAiAssistantReportSavedEvent;
|
|
42
|
+
|
|
36
43
|
/**
|
|
37
44
|
* Creates an {@link ICloseAiAssistantRequestedEvent}.
|
|
38
45
|
*
|
|
@@ -142,6 +149,39 @@ export declare interface IAiAssistantContextChangedEvent extends IPluggableAppEv
|
|
|
142
149
|
};
|
|
143
150
|
}
|
|
144
151
|
|
|
152
|
+
/**
|
|
153
|
+
* Event telling the host assistant that a report it drafted was saved.
|
|
154
|
+
*
|
|
155
|
+
* @remarks
|
|
156
|
+
* The assistant keeps its own copy of the conversation, which only learns about a save when the
|
|
157
|
+
* thread is loaded again. The application that saved the report emits this once per save, so the
|
|
158
|
+
* report in the chat reads as saved and links to the saved report right away.
|
|
159
|
+
*
|
|
160
|
+
* @alpha
|
|
161
|
+
*/
|
|
162
|
+
export declare interface IAiAssistantReportSavedEvent extends IPluggableAppEvent {
|
|
163
|
+
readonly type: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.REPORT_SAVED";
|
|
164
|
+
readonly payload: {
|
|
165
|
+
/**
|
|
166
|
+
* Conversation the report was drafted in.
|
|
167
|
+
*/
|
|
168
|
+
readonly conversationId: string;
|
|
169
|
+
/**
|
|
170
|
+
* Conversation item that holds the drafted report.
|
|
171
|
+
*/
|
|
172
|
+
readonly itemId: string;
|
|
173
|
+
/**
|
|
174
|
+
* Name of the report within the item. Omitted when the draft carries none; the item's only
|
|
175
|
+
* report is meant then.
|
|
176
|
+
*/
|
|
177
|
+
readonly reportRef?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Identifier of the report the draft was saved as.
|
|
180
|
+
*/
|
|
181
|
+
readonly savedReportId: string;
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
|
|
145
185
|
/**
|
|
146
186
|
* GoodData API-token authentication.
|
|
147
187
|
*
|
|
@@ -774,8 +814,9 @@ export declare interface IPluggableApplicationMountHandle {
|
|
|
774
814
|
* On hosted routes the host owns the chat, so links clicked inside it are handled by the host by
|
|
775
815
|
* default (open in a tab / navigate). An embedded application can intercept them instead — e.g. an
|
|
776
816
|
* embedded dashboard opening a visualization as an in-place overlay rather than navigating away.
|
|
777
|
-
* Return `true` if the application handled it (the host suppresses its own navigation
|
|
778
|
-
* `false` to let the host
|
|
817
|
+
* Return `true` if the application handled it (the host suppresses its own navigation in this
|
|
818
|
+
* tab; a request for a new tab is still opened by the host); return `false` to let the host
|
|
819
|
+
* perform default link handling.
|
|
779
820
|
*/
|
|
780
821
|
onAiAssistantLinkClicked?: (link: {
|
|
781
822
|
type?: string;
|
|
@@ -982,6 +1023,17 @@ export declare interface IReloadPlatformContextRequestedEvent extends IPluggable
|
|
|
982
1023
|
*/
|
|
983
1024
|
export declare function isAiAssistantContextChangedEvent(obj: unknown): obj is IAiAssistantContextChangedEvent;
|
|
984
1025
|
|
|
1026
|
+
/**
|
|
1027
|
+
* Type guard for {@link IAiAssistantReportSavedEvent}.
|
|
1028
|
+
*
|
|
1029
|
+
* @remarks
|
|
1030
|
+
* Validates the payload shape too, so a malformed event is rejected rather than narrowed to a type
|
|
1031
|
+
* whose later `payload.conversationId` access would be wrong.
|
|
1032
|
+
*
|
|
1033
|
+
* @alpha
|
|
1034
|
+
*/
|
|
1035
|
+
export declare function isAiAssistantReportSavedEvent(obj: unknown): obj is IAiAssistantReportSavedEvent;
|
|
1036
|
+
|
|
985
1037
|
/**
|
|
986
1038
|
* Type guard for {@link ICloseAiAssistantRequestedEvent}.
|
|
987
1039
|
*
|
|
@@ -1116,6 +1168,7 @@ export declare const PluggableAppEventType: {
|
|
|
1116
1168
|
readonly AI_ASSISTANT_OPEN_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.OPEN_REQUESTED";
|
|
1117
1169
|
readonly AI_ASSISTANT_CLOSE_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CLOSE_REQUESTED";
|
|
1118
1170
|
readonly AI_ASSISTANT_CONTEXT_CHANGED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CONTEXT_CHANGED";
|
|
1171
|
+
readonly AI_ASSISTANT_REPORT_SAVED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.REPORT_SAVED";
|
|
1119
1172
|
};
|
|
1120
1173
|
|
|
1121
1174
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-pluggable-application-model",
|
|
3
|
-
"version": "11.61.0-alpha.
|
|
3
|
+
"version": "11.61.0-alpha.3",
|
|
4
4
|
"description": "GoodData SDK model contracts for pluggable applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"ts-invariant": "0.10.3",
|
|
25
25
|
"tslib": "2.8.1",
|
|
26
|
-
"@gooddata/sdk-model": "11.61.0-alpha.
|
|
26
|
+
"@gooddata/sdk-model": "11.61.0-alpha.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@microsoft/api-documenter": "7.30.16",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"oxlint-plugin-eslint": "1.82.0",
|
|
45
45
|
"oxlint-tsgolint": "7.0.2001",
|
|
46
46
|
"typescript": "7.0.2",
|
|
47
|
-
"@gooddata/oxlint-config": "11.61.0-alpha.
|
|
48
|
-
"@gooddata/eslint-config": "11.61.0-alpha.
|
|
47
|
+
"@gooddata/oxlint-config": "11.61.0-alpha.3",
|
|
48
|
+
"@gooddata/eslint-config": "11.61.0-alpha.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"_phase:build": "npm run build",
|