bt-core-app 2.0.160 → 2.0.162

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/dist/index.d.ts CHANGED
@@ -501,7 +501,7 @@ export declare interface BTUseDialog {
501
501
  export declare interface BTUseDialogOption extends RegisterDialogOptions {
502
502
  }
503
503
 
504
- declare interface BulkActionResult<T> {
504
+ export declare interface BulkActionResult<T> {
505
505
  item?: T;
506
506
  isSuccess?: boolean;
507
507
  msg?: string;
@@ -878,11 +878,6 @@ export declare interface ExtendedPinia extends Pinia {
878
878
 
879
879
  export declare function extensionExists(elementId?: string): boolean;
880
880
 
881
- export declare interface ExternalConfig {
882
- textProp: string;
883
- parties?: ExternalParty[];
884
- }
885
-
886
881
  export declare interface ExternalParty {
887
882
  additionalUrl: string;
888
883
  canUnlink: boolean;
@@ -1397,7 +1392,7 @@ export declare interface NavigationItem extends AuthItem {
1397
1392
  /**the name that will be displayed in the navigation menu */
1398
1393
  displayName?: string;
1399
1394
  /**the configuration for external parties */
1400
- externalConfig?: ExternalConfig;
1395
+ externals?: ExternalParty[];
1401
1396
  /**custom override for getting the key to store */
1402
1397
  getStorageKey?: (dOptions: GetStorageKeyOptions) => string;
1403
1398
  /**will hide app bar if set to true when the route opens this nav */
@@ -1674,23 +1669,35 @@ export declare interface SWEvent extends Event {
1674
1669
  detail: any;
1675
1670
  }
1676
1671
 
1677
- declare interface SyncActionInstruction<T> extends SyncActionPOST {
1672
+ export declare interface SyncAction<T> {
1673
+ partyID?: string;
1674
+ localIDProp: string;
1675
+ actions: SyncActionInstruction<T>[];
1676
+ }
1677
+
1678
+ export declare interface SyncActionInstruction<T> extends SyncActionPOST {
1678
1679
  item?: T;
1679
1680
  }
1680
1681
 
1681
- declare interface SyncActionPOST {
1682
+ export declare interface SyncActionPOST {
1682
1683
  action: 'unlink' | 'link' | 'push';
1683
1684
  externalItemID?: string;
1684
1685
  localItemID: string;
1685
1686
  }
1686
1687
 
1687
- declare interface SyncOptions<T> extends StoreAction, StorePathOptions, DoActionOptions {
1688
+ export declare interface SyncOptions<T> extends StoreAction, StorePathOptions, DoActionOptions {
1688
1689
  actions?: SyncActionInstruction<T>[];
1689
1690
  localIDProp: string;
1690
1691
  onSyncAsync?: (opt: SyncOptions<T>) => Promise<BulkActionResult<T>[]>;
1691
1692
  partyID: string;
1692
1693
  }
1693
1694
 
1695
+ export declare interface SyncPOST {
1696
+ partyID?: string;
1697
+ autoSync?: boolean;
1698
+ actions?: SyncActionPOST[];
1699
+ }
1700
+
1694
1701
  export declare interface TableColumn {
1695
1702
  align?: 'start' | 'end' | 'center';
1696
1703
  bool?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.160",
3
+ "version": "2.0.162",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {