@pptb/types 1.0.8 → 1.0.9
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/package.json +2 -2
- package/toolboxAPI.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pptb/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "TypeScript type definitions for Power Platform Tool Box API",
|
|
5
5
|
"main": "index.d.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"license": "GPL-3.0",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "https://github.com/
|
|
19
|
+
"url": "https://github.com/PowerPlatformToolBox/desktop-app.git",
|
|
20
20
|
"directory": "packages"
|
|
21
21
|
}
|
|
22
22
|
}
|
package/toolboxAPI.d.ts
CHANGED
|
@@ -236,14 +236,14 @@ declare namespace ToolBoxAPI {
|
|
|
236
236
|
* Get all settings for this tool
|
|
237
237
|
* @returns Promise resolving to an object with all settings (empty object if no settings exist)
|
|
238
238
|
*/
|
|
239
|
-
|
|
239
|
+
getAll: () => Promise<Record<string, any>>;
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Get a specific setting by key
|
|
243
243
|
* @param key The setting key to retrieve
|
|
244
244
|
* @returns Promise resolving to the setting value, or undefined if not found
|
|
245
245
|
*/
|
|
246
|
-
|
|
246
|
+
get: (key: string) => Promise<any>;
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
249
|
* Set a specific setting by key
|
|
@@ -251,14 +251,14 @@ declare namespace ToolBoxAPI {
|
|
|
251
251
|
* @param value The value to store (can be any JSON-serializable value)
|
|
252
252
|
* @returns Promise that resolves when the setting is saved
|
|
253
253
|
*/
|
|
254
|
-
|
|
254
|
+
set: (key: string, value: any) => Promise<void>;
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
257
|
* Set all settings (replaces entire settings object)
|
|
258
258
|
* @param settings The settings object to store
|
|
259
259
|
* @returns Promise that resolves when the settings are saved
|
|
260
260
|
*/
|
|
261
|
-
|
|
261
|
+
setAll: (settings: Record<string, any>) => Promise<void>;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
/**
|