@pptb/types 1.2.0 → 1.2.1
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 +6 -6
- package/package.json +1 -1
- package/toolboxAPI.d.ts +2 -0
package/dataverseAPI.d.ts
CHANGED
|
@@ -480,7 +480,7 @@ declare namespace DataverseAPI {
|
|
|
480
480
|
*
|
|
481
481
|
* @param entityLogicalName - Logical name of the entity
|
|
482
482
|
* @param searchByLogicalName - Whether to search by logical name (true) or metadata ID (false)
|
|
483
|
-
* @param
|
|
483
|
+
* @param entityProperties - Optional array of property names to retrieve (retrieves all if not specified)
|
|
484
484
|
* @param connectionTarget - Optional connection target for multi-connection tools ('primary' or 'secondary'). Defaults to 'primary'.
|
|
485
485
|
* @returns Object containing entity metadata
|
|
486
486
|
*
|
|
@@ -500,11 +500,11 @@ declare namespace DataverseAPI {
|
|
|
500
500
|
* // Multi-connection tool using secondary connection
|
|
501
501
|
* const metadata = await dataverseAPI.getEntityMetadata('account', true, ['LogicalName'], 'secondary');
|
|
502
502
|
*/
|
|
503
|
-
getEntityMetadata: (entityLogicalName: string, searchByLogicalName: boolean,
|
|
503
|
+
getEntityMetadata: (entityLogicalName: string, searchByLogicalName: boolean, entityProperties?: string[], connectionTarget?: "primary" | "secondary") => Promise<EntityMetadata>;
|
|
504
504
|
|
|
505
505
|
/**
|
|
506
506
|
* Get metadata for all entities
|
|
507
|
-
* @param
|
|
507
|
+
* @param entityProperties - Optional array of property names to retrieve (retrieves LogicalName, DisplayName, MetadataId by default)
|
|
508
508
|
* @param connectionTarget - Optional connection target for multi-connection tools ('primary' or 'secondary'). Defaults to 'primary'.
|
|
509
509
|
* @returns Object with value array containing all entity metadata
|
|
510
510
|
*
|
|
@@ -519,14 +519,14 @@ declare namespace DataverseAPI {
|
|
|
519
519
|
* // Multi-connection tool using secondary connection
|
|
520
520
|
* const allEntities = await dataverseAPI.getAllEntitiesMetadata(['LogicalName'], 'secondary');
|
|
521
521
|
*/
|
|
522
|
-
getAllEntitiesMetadata: (
|
|
522
|
+
getAllEntitiesMetadata: (entityProperties?: string[], connectionTarget?: "primary" | "secondary") => Promise<EntityMetadataCollection>;
|
|
523
523
|
|
|
524
524
|
/**
|
|
525
525
|
* Get related metadata for a specific entity (attributes, relationships, etc.)
|
|
526
526
|
*
|
|
527
527
|
* @param entityLogicalName - Logical name of the entity
|
|
528
528
|
* @param relatedPath - Path after EntityDefinitions(LogicalName='name') (e.g., 'Attributes', 'OneToManyRelationships', 'ManyToOneRelationships', 'ManyToManyRelationships', 'Keys')
|
|
529
|
-
* @param
|
|
529
|
+
* @param relatedProperties - Optional array of property names to retrieve (retrieves all if not specified)
|
|
530
530
|
* @param connectionTarget - Optional connection target for multi-connection tools ('primary' or 'secondary'). Defaults to 'primary'.
|
|
531
531
|
* @returns Object containing the related metadata
|
|
532
532
|
*
|
|
@@ -600,7 +600,7 @@ declare namespace DataverseAPI {
|
|
|
600
600
|
getEntityRelatedMetadata: <P extends EntityRelatedMetadataPath>(
|
|
601
601
|
entityLogicalName: string,
|
|
602
602
|
relatedPath: P,
|
|
603
|
-
|
|
603
|
+
relatedProperties?: string[],
|
|
604
604
|
connectionTarget?: "primary" | "secondary",
|
|
605
605
|
) => Promise<EntityRelatedMetadataResponse<P>>;
|
|
606
606
|
|
package/package.json
CHANGED
package/toolboxAPI.d.ts
CHANGED
|
@@ -191,11 +191,13 @@ declare namespace ToolBoxAPI {
|
|
|
191
191
|
/**
|
|
192
192
|
* Show a loading screen in the tool's context
|
|
193
193
|
* @param message Optional message to display (default: "Loading...")
|
|
194
|
+
* @deprecated Use a tool-level loading pattern instead. Will be removed in a future version.
|
|
194
195
|
*/
|
|
195
196
|
showLoading: (message?: string) => Promise<void>;
|
|
196
197
|
|
|
197
198
|
/**
|
|
198
199
|
* Hide the loading screen in the tool's context
|
|
200
|
+
* @deprecated Use a tool-level loading pattern instead. Will be removed in a future version.
|
|
199
201
|
*/
|
|
200
202
|
hideLoading: () => Promise<void>;
|
|
201
203
|
}
|