@hantera/portal-app 20260406.0.0-develop.1 → 20260428.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +24 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -909,7 +909,9 @@ declare const _default_3: {
909
909
  };
910
910
  };
911
911
  legacyPayment: {
912
- contextMenu: AppSlot<Record<string, any>>;
912
+ contextMenu: AppSlot< {
913
+ payment: LegacyPayment;
914
+ }>;
913
915
  };
914
916
  };
915
917
 
@@ -1494,7 +1496,7 @@ declare interface GraphNodeMeta_2 {
1494
1496
  export declare interface GraphQueryNavigation {
1495
1497
  edge: string;
1496
1498
  limit?: number;
1497
- require?: boolean;
1499
+ require?: GraphQueryRequire;
1498
1500
  count?: boolean | number;
1499
1501
  orderBy?: string;
1500
1502
  filter?: string;
@@ -1506,6 +1508,8 @@ export declare interface GraphQueryNavigation {
1506
1508
  };
1507
1509
  }
1508
1510
 
1511
+ export declare type GraphQueryRequire = 'any' | 'some' | 'none' | boolean;
1512
+
1509
1513
  declare interface GraphValueTypeArray {
1510
1514
  type: 'array'
1511
1515
  itemType: GraphValueTypeMeta
@@ -1684,7 +1688,7 @@ declare interface InvoiceLine {
1684
1688
  invoiceLineId: string
1685
1689
  invoiceLineNumber: Decimal
1686
1690
  productNumber: string
1687
- referenceType: 'orderLine' | 'shipping'
1691
+ referenceType: 'orderLine' | 'delivery'
1688
1692
  tax: Decimal
1689
1693
  net: Decimal
1690
1694
  total: Decimal
@@ -1697,7 +1701,7 @@ declare interface InvoiceLine_2 {
1697
1701
  invoiceLineId: string;
1698
1702
  invoiceLineNumber: default_2;
1699
1703
  productNumber: string;
1700
- referenceType: 'orderLine' | 'shipping';
1704
+ referenceType: 'orderLine' | 'delivery';
1701
1705
  tax: default_2;
1702
1706
  net: default_2;
1703
1707
  total: default_2;
@@ -2303,6 +2307,14 @@ declare interface LinkPaymentCommand {
2303
2307
  paymentId: string;
2304
2308
  }
2305
2309
 
2310
+ declare interface LiveQueryResult<T = unknown> {
2311
+ nodes: DeepReadonly<Ref<T[]>>;
2312
+ loading: DeepReadonly<Ref<boolean>>;
2313
+ totalCount: DeepReadonly<Ref<number | null>>;
2314
+ capped: DeepReadonly<Ref<boolean>>;
2315
+ dispose(): void;
2316
+ }
2317
+
2306
2318
  declare interface LocalizedLabel {
2307
2319
  default: string
2308
2320
  [languageCode: string]: string
@@ -3845,6 +3857,14 @@ export declare function useHost(): {
3845
3857
  send(message: HostMessage): void;
3846
3858
  };
3847
3859
 
3860
+ export declare function useLiveQueries(): {
3861
+ available: false;
3862
+ query: <T = unknown>(_spec: object) => LiveQueryResult<T>;
3863
+ } | {
3864
+ available: true;
3865
+ query: <T = unknown>(spec: object) => LiveQueryResult<T>;
3866
+ };
3867
+
3848
3868
  export declare function useLocalization(basePath?: string): {
3849
3869
  (path: string, values?: {
3850
3870
  [key: string]: string | number | default_2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hantera/portal-app",
3
- "version": "20260406.0.0-develop.1",
3
+ "version": "20260428.0.0-develop.1",
4
4
  "types": "./dist/index.d.ts",
5
5
  "scripts": {
6
6
  "build": "cpx ../../portal/portal-app/dist/**/*.d.ts ./dist -C"