@hantera/portal-app 20260609.0.0-develop.3 → 20260617.0.0-develop.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/dist/index.d.ts +32 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import Decimal from 'decimal.js';
|
|
|
16
16
|
import { DeepReadonly } from 'vue';
|
|
17
17
|
import { default as default_2 } from 'decimal.js';
|
|
18
18
|
import { DefineComponent } from 'vue';
|
|
19
|
+
import { IconName } from '@hantera/design-system';
|
|
19
20
|
import { InjectionKey } from 'vue';
|
|
20
21
|
import { LabelTagDefinition } from '@hantera/design-system';
|
|
21
22
|
import { PublicProps } from 'vue';
|
|
@@ -2343,6 +2344,7 @@ declare interface LiveQueryResult<T = unknown> {
|
|
|
2343
2344
|
loading: DeepReadonly<Ref<boolean>>;
|
|
2344
2345
|
totalCount: DeepReadonly<Ref<number | null>>;
|
|
2345
2346
|
capped: DeepReadonly<Ref<boolean>>;
|
|
2347
|
+
revision: DeepReadonly<Ref<number>>;
|
|
2346
2348
|
dispose(): void;
|
|
2347
2349
|
}
|
|
2348
2350
|
|
|
@@ -2679,10 +2681,12 @@ declare const orderView: {
|
|
|
2679
2681
|
}[];
|
|
2680
2682
|
}>;
|
|
2681
2683
|
/**
|
|
2682
|
-
* Allows services to contribute context menu items to delivery
|
|
2684
|
+
* Allows services to contribute context menu items to delivery and payment
|
|
2685
|
+
* panels in the order view. Implement only the methods relevant to the app.
|
|
2683
2686
|
*/
|
|
2684
2687
|
contextMenuProvider: AppService< {
|
|
2685
|
-
buildDeliveryContextMenu(context: PortalContext, orderViewContext: OrderViewContext, delivery: Models_2.Graph.Delivery): ContextMenuSection;
|
|
2688
|
+
buildDeliveryContextMenu?(context: PortalContext, orderViewContext: OrderViewContext, delivery: Models_2.Graph.Delivery): ContextMenuSection;
|
|
2689
|
+
buildPaymentContextMenu?(context: PortalContext, orderViewContext: OrderViewContext, payment: Models_2.Graph.Payment): ContextMenuSection;
|
|
2686
2690
|
}>;
|
|
2687
2691
|
/**
|
|
2688
2692
|
* Allows services to react to events occurring in the standard order view,
|
|
@@ -2701,6 +2705,19 @@ declare const orderView: {
|
|
|
2701
2705
|
appliedCommands: OrderCommand[];
|
|
2702
2706
|
}): Promise<void>;
|
|
2703
2707
|
}>;
|
|
2708
|
+
/**
|
|
2709
|
+
* Allows services to contribute options to the "New payment" dropdown in the
|
|
2710
|
+
* payments tab of the order view.
|
|
2711
|
+
*/
|
|
2712
|
+
paymentActionsProvider: AppService< {
|
|
2713
|
+
buildNewPaymentOptions(context: PortalContext, orderViewContext: OrderViewContext): {
|
|
2714
|
+
id: string;
|
|
2715
|
+
label: string | ComputedRef<string>;
|
|
2716
|
+
icon?: IconName;
|
|
2717
|
+
disabled?: boolean;
|
|
2718
|
+
onClick: () => void;
|
|
2719
|
+
}[];
|
|
2720
|
+
}>;
|
|
2704
2721
|
};
|
|
2705
2722
|
|
|
2706
2723
|
declare interface OrderViewContext {
|
|
@@ -2739,6 +2756,16 @@ declare interface OrderViewContext {
|
|
|
2739
2756
|
* Refreshes the order state with the server. If there are pending changes, they will be previewed.
|
|
2740
2757
|
*/
|
|
2741
2758
|
refresh(): Promise<void>;
|
|
2759
|
+
/**
|
|
2760
|
+
* Subscribes to live updates of the order. When there are no pending changes or active timetravel,
|
|
2761
|
+
* incoming updates are bound directly to the state. Otherwise, updates trigger a preview refresh.
|
|
2762
|
+
* Requires the order state to be loaded first (call refresh before this).
|
|
2763
|
+
*/
|
|
2764
|
+
startLiveUpdates(): void;
|
|
2765
|
+
/**
|
|
2766
|
+
* Disposes live update subscriptions and pending timers. Call when the view is torn down.
|
|
2767
|
+
*/
|
|
2768
|
+
dispose(): void;
|
|
2742
2769
|
/**
|
|
2743
2770
|
* Adds a pending changeset to the current instance. Call refresh to update preview.
|
|
2744
2771
|
*
|
|
@@ -2774,6 +2801,7 @@ declare interface Payment {
|
|
|
2774
2801
|
paymentId: string;
|
|
2775
2802
|
paymentNumber: string;
|
|
2776
2803
|
externalReference?: string;
|
|
2804
|
+
channelKey?: string;
|
|
2777
2805
|
authorizedAmount: default_2;
|
|
2778
2806
|
providerKey: string;
|
|
2779
2807
|
tags: Array<string>;
|
|
@@ -2790,8 +2818,10 @@ declare interface Payment_2 {
|
|
|
2790
2818
|
paymentId: string
|
|
2791
2819
|
paymentNumber: string
|
|
2792
2820
|
externalReference?: string
|
|
2821
|
+
channelKey?: string
|
|
2793
2822
|
authorizedAmount: Decimal
|
|
2794
2823
|
providerKey: string
|
|
2824
|
+
|
|
2795
2825
|
tags: Array<string>
|
|
2796
2826
|
capturedBalance: Decimal
|
|
2797
2827
|
creditBalance: Decimal
|