@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 CHANGED
@@ -622,8 +622,9 @@ Core platform features organized into namespaces:
622
622
 
623
623
  #### Connections
624
624
 
625
- - **getActiveConnection()**: Promise<DataverseConnection | null>
626
- - Returns the currently active Dataverse connection or null if none is 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pptb/types",
3
- "version": "1.2.4-beta.4",
3
+ "version": "1.2.4-beta.6",
4
4
  "description": "Type definitions for Power Platform ToolBox APIs and validity checks for tool packages",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
package/toolboxAPI.d.ts CHANGED
@@ -75,9 +75,9 @@ declare namespace ToolBoxAPI {
75
75
  }
76
76
 
77
77
  /**
78
- * Dataverse connection configuration
78
+ * Power Platform ToolBox connection configuration
79
79
  */
80
- export interface DataverseConnection {
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<DataverseConnection | null>;
159
+ getActiveConnection: () => Promise<Connection | null>;
154
160
 
155
161
  /**
156
162
  * Get the secondary connection for multi-connection tools
157
163
  */
158
- getSecondaryConnection: () => Promise<DataverseConnection | null>;
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: (targetToolId: string, prefillData?: Record<string, unknown>, options?: { primaryConnectionId?: string | null; secondaryConnectionId?: string | null; noReturn?: boolean }) => Promise<unknown>;
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