@hantera/portal-app 20260617.0.0-develop.1 → 20260625.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 +23 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -728,6 +728,8 @@ declare interface CreateReturnCommand {
|
|
|
728
728
|
refundFactor: Decimal | number;
|
|
729
729
|
}
|
|
730
730
|
|
|
731
|
+
declare function createReviver(options?: DeserializeOptions): (key: string, value: unknown) => unknown;
|
|
732
|
+
|
|
731
733
|
/**
|
|
732
734
|
* Creates a static discount on an Order. An order discount value is distributed across all order lines and shipping fees proportionally to their value.
|
|
733
735
|
*
|
|
@@ -1108,6 +1110,16 @@ declare interface Delivery_2 {
|
|
|
1108
1110
|
shippingDiscounts: Array<Discount_2>
|
|
1109
1111
|
}
|
|
1110
1112
|
|
|
1113
|
+
declare function deserialize(json: string, options?: DeserializeOptions): any;
|
|
1114
|
+
|
|
1115
|
+
export declare interface DeserializeOptions {
|
|
1116
|
+
/**
|
|
1117
|
+
* When true, objects containing an array property named "nodes" are replaced
|
|
1118
|
+
* by that array, flattening graph query responses for easier consumption.
|
|
1119
|
+
*/
|
|
1120
|
+
graph?: boolean;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1111
1123
|
export declare type Dialogs = ReturnType<typeof useDialogs>;
|
|
1112
1124
|
|
|
1113
1125
|
declare interface Discount {
|
|
@@ -1594,6 +1606,15 @@ declare interface GraphValueTypeScalar_2 {
|
|
|
1594
1606
|
scalarType: 'string' | 'instant' | 'decimal' | 'boolean' | 'uuid' | 'any';
|
|
1595
1607
|
}
|
|
1596
1608
|
|
|
1609
|
+
export declare namespace HanteraJson {
|
|
1610
|
+
export {
|
|
1611
|
+
serialize,
|
|
1612
|
+
deserialize,
|
|
1613
|
+
createReviver,
|
|
1614
|
+
DeserializeOptions
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1597
1618
|
export declare interface Host {
|
|
1598
1619
|
/**
|
|
1599
1620
|
* Send a message to the portal host
|
|
@@ -3193,6 +3214,8 @@ declare interface SearchProduct {
|
|
|
3193
3214
|
dynamic?: Record<string, any>;
|
|
3194
3215
|
}
|
|
3195
3216
|
|
|
3217
|
+
declare function serialize(value: unknown): string;
|
|
3218
|
+
|
|
3196
3219
|
export declare interface ServiceContext {
|
|
3197
3220
|
processes: Processes;
|
|
3198
3221
|
backend: BackendApi;
|