@hantera/portal-app 20260625.0.0-develop.1 → 20260812.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 +55 -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
|
}
|
|
@@ -849,6 +857,11 @@ declare const _default_2: {
|
|
|
849
857
|
orderLine: OrderLine;
|
|
850
858
|
}>;
|
|
851
859
|
};
|
|
860
|
+
shippingLine: {
|
|
861
|
+
extras: AppSlot< {
|
|
862
|
+
delivery: Delivery;
|
|
863
|
+
}>;
|
|
864
|
+
};
|
|
852
865
|
payment: {
|
|
853
866
|
header: AppSlot< {
|
|
854
867
|
payment: Payment;
|
|
@@ -942,6 +955,10 @@ declare const _default_5: {
|
|
|
942
955
|
};
|
|
943
956
|
};
|
|
944
957
|
|
|
958
|
+
declare const _default_6: {
|
|
959
|
+
settings: AppSlot<AppSettingsSlotContext>;
|
|
960
|
+
};
|
|
961
|
+
|
|
945
962
|
declare function defineService<T>(key: string): AppService<T>;
|
|
946
963
|
|
|
947
964
|
declare function defineSlot<T extends Record<string, any>>(key: string): AppSlot<T>;
|
|
@@ -1073,8 +1090,8 @@ declare interface Delivery {
|
|
|
1073
1090
|
deliveryState: 'open' | 'processing' | 'completed' | 'cancelled' | 'cancelledByOrder';
|
|
1074
1091
|
deliveryAddress: Address;
|
|
1075
1092
|
shippingPrice: default_2;
|
|
1076
|
-
shippingTaxFactor
|
|
1077
|
-
|
|
1093
|
+
shippingTaxFactor?: default_2;
|
|
1094
|
+
shippingTax: default_2;
|
|
1078
1095
|
shippingTotal: default_2;
|
|
1079
1096
|
shippingProductNumber: string;
|
|
1080
1097
|
shippingDescription: string;
|
|
@@ -1094,9 +1111,10 @@ declare interface Delivery_2 {
|
|
|
1094
1111
|
deliveryState: 'open' | 'processing' | 'completed' | 'cancelled' | 'cancelledByOrder'
|
|
1095
1112
|
deliveryAddress: Address_2
|
|
1096
1113
|
shippingPrice: Decimal
|
|
1097
|
-
shippingTaxFactor
|
|
1098
|
-
|
|
1114
|
+
shippingTaxFactor?: Decimal
|
|
1115
|
+
shippingTax: Decimal
|
|
1099
1116
|
shippingTotal: Decimal
|
|
1117
|
+
|
|
1100
1118
|
shippingProductNumber: string
|
|
1101
1119
|
shippingDescription: string
|
|
1102
1120
|
tags: Array<string>
|
|
@@ -1542,6 +1560,11 @@ export declare interface GraphQueryNavigation {
|
|
|
1542
1560
|
|
|
1543
1561
|
export declare type GraphQueryRequire = 'any' | 'some' | 'none' | boolean;
|
|
1544
1562
|
|
|
1563
|
+
export declare interface GraphQueryWarning {
|
|
1564
|
+
code: string;
|
|
1565
|
+
message: string;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1545
1568
|
declare interface GraphValueTypeArray {
|
|
1546
1569
|
type: 'array'
|
|
1547
1570
|
itemType: GraphValueTypeMeta
|
|
@@ -1824,6 +1847,7 @@ export declare interface JsonTableResponse {
|
|
|
1824
1847
|
totalCount?: default_2;
|
|
1825
1848
|
headers: string[];
|
|
1826
1849
|
rows: Array<Array<unknown>>;
|
|
1850
|
+
warnings?: GraphQueryWarning[];
|
|
1827
1851
|
}
|
|
1828
1852
|
|
|
1829
1853
|
export declare interface LegacyActivityLog {
|
|
@@ -2623,7 +2647,7 @@ declare interface OrderLine {
|
|
|
2623
2647
|
reservedQuantity: default_2;
|
|
2624
2648
|
salesQuantity: default_2;
|
|
2625
2649
|
unitPrice: default_2;
|
|
2626
|
-
taxFactor
|
|
2650
|
+
taxFactor?: default_2;
|
|
2627
2651
|
taxTotal: default_2;
|
|
2628
2652
|
orderLineTotal: default_2;
|
|
2629
2653
|
dynamic: Record<string, any>;
|
|
@@ -2645,8 +2669,9 @@ declare interface OrderLine_2 {
|
|
|
2645
2669
|
reservedQuantity: Decimal
|
|
2646
2670
|
salesQuantity: Decimal
|
|
2647
2671
|
unitPrice: Decimal
|
|
2648
|
-
taxFactor
|
|
2672
|
+
taxFactor?: Decimal
|
|
2649
2673
|
taxTotal: Decimal
|
|
2674
|
+
|
|
2650
2675
|
orderLineTotal: Decimal
|
|
2651
2676
|
dynamic: Record<string, any>
|
|
2652
2677
|
releasedToInvoice: boolean
|
|
@@ -2686,7 +2711,30 @@ declare interface OrderProduct {
|
|
|
2686
2711
|
taxFactor?: default_2;
|
|
2687
2712
|
}
|
|
2688
2713
|
|
|
2714
|
+
/**
|
|
2715
|
+
* Append-only extension of a graph query node, used by apps to add fields and
|
|
2716
|
+
* navigations to the foundational order view query. Apps can only add; existing
|
|
2717
|
+
* fields and navigations are never removed.
|
|
2718
|
+
*/
|
|
2719
|
+
declare interface OrderQueryNodeExtension {
|
|
2720
|
+
fields?: string[];
|
|
2721
|
+
navigate?: {
|
|
2722
|
+
edge: string;
|
|
2723
|
+
node: OrderQueryNodeExtension;
|
|
2724
|
+
}[];
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2689
2727
|
declare const orderView: {
|
|
2728
|
+
/**
|
|
2729
|
+
* Allows services to extend the foundational order view graph query with
|
|
2730
|
+
* additional fields and navigations. Extensions are append-only: existing
|
|
2731
|
+
* fields and navigations are never removed. This lets apps surface their own
|
|
2732
|
+
* typed fields (including registry-defined dynamic fields) on the order view
|
|
2733
|
+
* state instead of reading and coercing values from the dynamic bag manually.
|
|
2734
|
+
*/
|
|
2735
|
+
queryExtensionProvider: AppService< {
|
|
2736
|
+
extendOrderQuery(): OrderQueryNodeExtension;
|
|
2737
|
+
}>;
|
|
2690
2738
|
/**
|
|
2691
2739
|
* Allows services to extend the details tabs of the standard order view
|
|
2692
2740
|
*/
|
|
@@ -3837,6 +3885,7 @@ export declare namespace standardServices {
|
|
|
3837
3885
|
OrderProduct,
|
|
3838
3886
|
SearchProduct,
|
|
3839
3887
|
shippingProductsService,
|
|
3888
|
+
OrderQueryNodeExtension,
|
|
3840
3889
|
productsService,
|
|
3841
3890
|
orderView,
|
|
3842
3891
|
legacyOrderView
|