@hantera/portal-app 20260625.0.0-develop.1 → 20260803.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 +50 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -249,6 +249,7 @@ export declare namespace apps {
|
|
|
249
249
|
_default_3 as legacySlots,
|
|
250
250
|
_default_4 as inventoryEditorSlots,
|
|
251
251
|
_default_5 as channelEditorSlots,
|
|
252
|
+
_default_6 as appSettingsSlots,
|
|
252
253
|
AppSlot,
|
|
253
254
|
AppService,
|
|
254
255
|
standardServices
|
|
@@ -259,6 +260,13 @@ declare interface AppService<T> {
|
|
|
259
260
|
key: string;
|
|
260
261
|
}
|
|
261
262
|
|
|
263
|
+
declare interface AppSettingsSlotContext {
|
|
264
|
+
appId: string;
|
|
265
|
+
values: Readonly<Record<string, any>>;
|
|
266
|
+
setValue: (key: string, value: any) => void;
|
|
267
|
+
refresh: () => Promise<void>;
|
|
268
|
+
}
|
|
269
|
+
|
|
262
270
|
declare interface AppSlot<T> {
|
|
263
271
|
key: string;
|
|
264
272
|
}
|
|
@@ -942,6 +950,10 @@ declare const _default_5: {
|
|
|
942
950
|
};
|
|
943
951
|
};
|
|
944
952
|
|
|
953
|
+
declare const _default_6: {
|
|
954
|
+
settings: AppSlot<AppSettingsSlotContext>;
|
|
955
|
+
};
|
|
956
|
+
|
|
945
957
|
declare function defineService<T>(key: string): AppService<T>;
|
|
946
958
|
|
|
947
959
|
declare function defineSlot<T extends Record<string, any>>(key: string): AppSlot<T>;
|
|
@@ -1073,8 +1085,8 @@ declare interface Delivery {
|
|
|
1073
1085
|
deliveryState: 'open' | 'processing' | 'completed' | 'cancelled' | 'cancelledByOrder';
|
|
1074
1086
|
deliveryAddress: Address;
|
|
1075
1087
|
shippingPrice: default_2;
|
|
1076
|
-
shippingTaxFactor
|
|
1077
|
-
|
|
1088
|
+
shippingTaxFactor?: default_2;
|
|
1089
|
+
shippingTax: default_2;
|
|
1078
1090
|
shippingTotal: default_2;
|
|
1079
1091
|
shippingProductNumber: string;
|
|
1080
1092
|
shippingDescription: string;
|
|
@@ -1094,9 +1106,10 @@ declare interface Delivery_2 {
|
|
|
1094
1106
|
deliveryState: 'open' | 'processing' | 'completed' | 'cancelled' | 'cancelledByOrder'
|
|
1095
1107
|
deliveryAddress: Address_2
|
|
1096
1108
|
shippingPrice: Decimal
|
|
1097
|
-
shippingTaxFactor
|
|
1098
|
-
|
|
1109
|
+
shippingTaxFactor?: Decimal
|
|
1110
|
+
shippingTax: Decimal
|
|
1099
1111
|
shippingTotal: Decimal
|
|
1112
|
+
|
|
1100
1113
|
shippingProductNumber: string
|
|
1101
1114
|
shippingDescription: string
|
|
1102
1115
|
tags: Array<string>
|
|
@@ -1542,6 +1555,11 @@ export declare interface GraphQueryNavigation {
|
|
|
1542
1555
|
|
|
1543
1556
|
export declare type GraphQueryRequire = 'any' | 'some' | 'none' | boolean;
|
|
1544
1557
|
|
|
1558
|
+
export declare interface GraphQueryWarning {
|
|
1559
|
+
code: string;
|
|
1560
|
+
message: string;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1545
1563
|
declare interface GraphValueTypeArray {
|
|
1546
1564
|
type: 'array'
|
|
1547
1565
|
itemType: GraphValueTypeMeta
|
|
@@ -1824,6 +1842,7 @@ export declare interface JsonTableResponse {
|
|
|
1824
1842
|
totalCount?: default_2;
|
|
1825
1843
|
headers: string[];
|
|
1826
1844
|
rows: Array<Array<unknown>>;
|
|
1845
|
+
warnings?: GraphQueryWarning[];
|
|
1827
1846
|
}
|
|
1828
1847
|
|
|
1829
1848
|
export declare interface LegacyActivityLog {
|
|
@@ -2623,7 +2642,7 @@ declare interface OrderLine {
|
|
|
2623
2642
|
reservedQuantity: default_2;
|
|
2624
2643
|
salesQuantity: default_2;
|
|
2625
2644
|
unitPrice: default_2;
|
|
2626
|
-
taxFactor
|
|
2645
|
+
taxFactor?: default_2;
|
|
2627
2646
|
taxTotal: default_2;
|
|
2628
2647
|
orderLineTotal: default_2;
|
|
2629
2648
|
dynamic: Record<string, any>;
|
|
@@ -2645,8 +2664,9 @@ declare interface OrderLine_2 {
|
|
|
2645
2664
|
reservedQuantity: Decimal
|
|
2646
2665
|
salesQuantity: Decimal
|
|
2647
2666
|
unitPrice: Decimal
|
|
2648
|
-
taxFactor
|
|
2667
|
+
taxFactor?: Decimal
|
|
2649
2668
|
taxTotal: Decimal
|
|
2669
|
+
|
|
2650
2670
|
orderLineTotal: Decimal
|
|
2651
2671
|
dynamic: Record<string, any>
|
|
2652
2672
|
releasedToInvoice: boolean
|
|
@@ -2686,7 +2706,30 @@ declare interface OrderProduct {
|
|
|
2686
2706
|
taxFactor?: default_2;
|
|
2687
2707
|
}
|
|
2688
2708
|
|
|
2709
|
+
/**
|
|
2710
|
+
* Append-only extension of a graph query node, used by apps to add fields and
|
|
2711
|
+
* navigations to the foundational order view query. Apps can only add; existing
|
|
2712
|
+
* fields and navigations are never removed.
|
|
2713
|
+
*/
|
|
2714
|
+
declare interface OrderQueryNodeExtension {
|
|
2715
|
+
fields?: string[];
|
|
2716
|
+
navigate?: {
|
|
2717
|
+
edge: string;
|
|
2718
|
+
node: OrderQueryNodeExtension;
|
|
2719
|
+
}[];
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2689
2722
|
declare const orderView: {
|
|
2723
|
+
/**
|
|
2724
|
+
* Allows services to extend the foundational order view graph query with
|
|
2725
|
+
* additional fields and navigations. Extensions are append-only: existing
|
|
2726
|
+
* fields and navigations are never removed. This lets apps surface their own
|
|
2727
|
+
* typed fields (including registry-defined dynamic fields) on the order view
|
|
2728
|
+
* state instead of reading and coercing values from the dynamic bag manually.
|
|
2729
|
+
*/
|
|
2730
|
+
queryExtensionProvider: AppService< {
|
|
2731
|
+
extendOrderQuery(): OrderQueryNodeExtension;
|
|
2732
|
+
}>;
|
|
2690
2733
|
/**
|
|
2691
2734
|
* Allows services to extend the details tabs of the standard order view
|
|
2692
2735
|
*/
|
|
@@ -3837,6 +3880,7 @@ export declare namespace standardServices {
|
|
|
3837
3880
|
OrderProduct,
|
|
3838
3881
|
SearchProduct,
|
|
3839
3882
|
shippingProductsService,
|
|
3883
|
+
OrderQueryNodeExtension,
|
|
3840
3884
|
productsService,
|
|
3841
3885
|
orderView,
|
|
3842
3886
|
legacyOrderView
|