@pptb/types 1.2.4-beta.4 → 1.2.4-beta.6
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/README.md +3 -2
- package/package.json +1 -1
- package/toolboxAPI.d.ts +15 -5
package/README.md
CHANGED
|
@@ -622,8 +622,9 @@ Core platform features organized into namespaces:
|
|
|
622
622
|
|
|
623
623
|
#### Connections
|
|
624
624
|
|
|
625
|
-
- **getActiveConnection()**: Promise<
|
|
626
|
-
- Returns the currently active
|
|
625
|
+
- **getActiveConnection()**: Promise<Connection | null>
|
|
626
|
+
- Returns the currently active connection or null if none is active
|
|
627
|
+
- Includes `enabledForPowerPlatformAPI` so tools can decide whether to use Power Platform API
|
|
627
628
|
|
|
628
629
|
#### Utils
|
|
629
630
|
|
package/package.json
CHANGED
package/toolboxAPI.d.ts
CHANGED
|
@@ -75,9 +75,9 @@ declare namespace ToolBoxAPI {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Power Platform ToolBox connection configuration
|
|
79
79
|
*/
|
|
80
|
-
export interface
|
|
80
|
+
export interface Connection {
|
|
81
81
|
id: string;
|
|
82
82
|
name: string;
|
|
83
83
|
url: string;
|
|
@@ -85,6 +85,7 @@ declare namespace ToolBoxAPI {
|
|
|
85
85
|
category?: string;
|
|
86
86
|
environmentColor?: string;
|
|
87
87
|
categoryColor?: string;
|
|
88
|
+
enabledForPowerPlatformAPI?: boolean;
|
|
88
89
|
createdAt?: string;
|
|
89
90
|
lastUsedAt?: string;
|
|
90
91
|
/**
|
|
@@ -95,6 +96,11 @@ declare namespace ToolBoxAPI {
|
|
|
95
96
|
isActive?: boolean;
|
|
96
97
|
}
|
|
97
98
|
|
|
99
|
+
/**
|
|
100
|
+
* @deprecated Use Connection instead.
|
|
101
|
+
*/
|
|
102
|
+
export type DataverseConnection = Connection;
|
|
103
|
+
|
|
98
104
|
/**
|
|
99
105
|
* Tool information
|
|
100
106
|
*/
|
|
@@ -150,12 +156,12 @@ declare namespace ToolBoxAPI {
|
|
|
150
156
|
/**
|
|
151
157
|
* Get the currently active Dataverse connection
|
|
152
158
|
*/
|
|
153
|
-
getActiveConnection: () => Promise<
|
|
159
|
+
getActiveConnection: () => Promise<Connection | null>;
|
|
154
160
|
|
|
155
161
|
/**
|
|
156
162
|
* Get the secondary connection for multi-connection tools
|
|
157
163
|
*/
|
|
158
|
-
getSecondaryConnection: () => Promise<
|
|
164
|
+
getSecondaryConnection: () => Promise<Connection | null>;
|
|
159
165
|
}
|
|
160
166
|
|
|
161
167
|
/**
|
|
@@ -498,7 +504,11 @@ declare namespace ToolBoxAPI {
|
|
|
498
504
|
* @param prefillData Data to pre-populate the target tool's state
|
|
499
505
|
* @param options Optional connection overrides and launch flags
|
|
500
506
|
*/
|
|
501
|
-
launchTool: (
|
|
507
|
+
launchTool: (
|
|
508
|
+
targetToolId: string,
|
|
509
|
+
prefillData?: Record<string, unknown>,
|
|
510
|
+
options?: { primaryConnectionId?: string | null; secondaryConnectionId?: string | null; noReturn?: boolean },
|
|
511
|
+
) => Promise<unknown>;
|
|
502
512
|
|
|
503
513
|
/**
|
|
504
514
|
* Find installed tools that declare a given capability tag in their
|