@pptb/types 1.0.8 → 1.0.10
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/dataverseAPI.d.ts +4 -4
- package/package.json +2 -2
- package/toolboxAPI.d.ts +4 -4
package/dataverseAPI.d.ts
CHANGED
|
@@ -210,7 +210,7 @@ declare namespace DataverseAPI {
|
|
|
210
210
|
* @returns Object containing entity metadata
|
|
211
211
|
*
|
|
212
212
|
* @example
|
|
213
|
-
* const metadata = await dataverseAPI.getEntityMetadata('account', true, ['LogicalName', 'DisplayName']);
|
|
213
|
+
* const metadata = await dataverseAPI.getEntityMetadata('account', true, ['LogicalName', 'DisplayName', 'EntitySetName']);
|
|
214
214
|
* console.log('Logical Name:', metadata.LogicalName);
|
|
215
215
|
* console.log('Display Name:', metadata.DisplayName?.LocalizedLabels[0]?.Label);
|
|
216
216
|
*
|
|
@@ -225,17 +225,17 @@ declare namespace DataverseAPI {
|
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* Get metadata for all entities
|
|
228
|
-
*
|
|
228
|
+
* @param selectColumns - Optional array of column names to retrieve (retrieves LogicalName, DisplayName, MetadataId by default)
|
|
229
229
|
* @returns Object with value array containing all entity metadata
|
|
230
230
|
*
|
|
231
231
|
* @example
|
|
232
|
-
* const allEntities = await dataverseAPI.getAllEntitiesMetadata();
|
|
232
|
+
* const allEntities = await dataverseAPI.getAllEntitiesMetadata(['LogicalName', 'DisplayName', 'EntitySetName'] );
|
|
233
233
|
* console.log(`Total entities: ${allEntities.value.length}`);
|
|
234
234
|
* allEntities.value.forEach(entity => {
|
|
235
235
|
* console.log(`${entity.LogicalName} - ${entity.DisplayName?.LocalizedLabels[0]?.Label}`);
|
|
236
236
|
* });
|
|
237
237
|
*/
|
|
238
|
-
getAllEntitiesMetadata: () => Promise<EntityMetadataCollection>;
|
|
238
|
+
getAllEntitiesMetadata: (selectColumns?: string[]) => Promise<EntityMetadataCollection>;
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
* Get related metadata for a specific entity (attributes, relationships, etc.)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pptb/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
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
|
/**
|