@hantera/portal-app 20250513.0.0-develop.1 → 20250526.0.0-develop.2

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 +31 -16
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -288,6 +288,11 @@ export declare interface BackendFetch {
288
288
 
289
289
  export declare interface BackendFetchResponse extends Response {
290
290
  errors(): Promise<[BackendError, ...Array<BackendError>]>;
291
+ /**
292
+ * Parses the response as a graph result. This takes out the nested nodes object and returns a simpler model to work
293
+ * with in many cases. Use json() to get the raw result.
294
+ */
295
+ graph(): Promise<any>;
291
296
  }
292
297
 
293
298
  declare interface CalculatedDiscount {
@@ -730,12 +735,25 @@ declare const _default_2: {
730
735
  afterCustomer: AppSlot<unknown>;
731
736
  };
732
737
  delivery: {
733
- header: AppSlot<unknown>;
734
- footer: AppSlot<unknown>;
735
- details: AppSlot<unknown>;
736
- rows: AppSlot<unknown>;
737
- contextMenu: AppSlot<unknown>;
738
- rowDetails: AppSlot<unknown>;
738
+ header: AppSlot< {
739
+ delivery: LegacyDelivery;
740
+ }>;
741
+ footer: AppSlot< {
742
+ delivery: LegacyDelivery;
743
+ }>;
744
+ details: AppSlot< {
745
+ delivery: LegacyDelivery;
746
+ }>;
747
+ rows: AppSlot< {
748
+ delivery: LegacyDelivery;
749
+ }>;
750
+ contextMenu: AppSlot< {
751
+ delivery: LegacyDelivery;
752
+ }>;
753
+ rowDetails: AppSlot< {
754
+ delivery: LegacyDelivery;
755
+ orderRow: LegacyOrderRow;
756
+ }>;
739
757
  };
740
758
  contextMenu: AppSlot<unknown>;
741
759
  rmas: {
@@ -1423,11 +1441,6 @@ export declare interface LegacyDelivery {
1423
1441
  trackingUrl: string;
1424
1442
  }
1425
1443
 
1426
- /**
1427
- * Provides the current delivery if any
1428
- */
1429
- export declare const legacyDeliveryKey: InjectionKey<LegacyDelivery>;
1430
-
1431
1444
  export declare interface LegacyField {
1432
1445
  id: string;
1433
1446
  name: string;
@@ -1722,11 +1735,6 @@ export declare interface LegacyOrderRow {
1722
1735
  stock: LegacyInventoryItem[];
1723
1736
  }
1724
1737
 
1725
- /**
1726
- * Provides the current order row if any
1727
- */
1728
- export declare const legacyOrderRowKey: InjectionKey<LegacyOrderRow>;
1729
-
1730
1738
  export declare interface LegacyPayment {
1731
1739
  reservedAmount: default_2;
1732
1740
  unreservedAmount: default_2;
@@ -1758,6 +1766,7 @@ export declare interface LegacyRma {
1758
1766
  state: 'Init' | 'PackageReceived' | 'Processing' | 'Completed';
1759
1767
  stateTransitions: LegacyStateTransition[];
1760
1768
  comments: string;
1769
+ completedUtc?: Date;
1761
1770
  createdUtc: Date;
1762
1771
  lastUpdatedUtc: Date;
1763
1772
  images: string[];
@@ -1767,6 +1776,9 @@ export declare interface LegacyRma {
1767
1776
  adjustments: LegacyAdjustment[];
1768
1777
  unidentifiedProducts: LegacyUnidentifiedRmaRow[];
1769
1778
  rules: LegacyRule[];
1779
+ fields: {
1780
+ [key: string]: any;
1781
+ };
1770
1782
  }
1771
1783
 
1772
1784
  /**
@@ -1803,6 +1815,9 @@ export declare interface LegacyRmaRow {
1803
1815
  }[];
1804
1816
  reason: string;
1805
1817
  orderRow: LegacyOrderRow;
1818
+ fields: {
1819
+ [key: string]: any;
1820
+ };
1806
1821
  }
1807
1822
 
1808
1823
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hantera/portal-app",
3
- "version": "20250513.0.0-develop.1",
3
+ "version": "20250526.0.0-develop.2",
4
4
  "types": "./dist/index.d.ts",
5
5
  "scripts": {
6
6
  "build": "cpx ../../portal/portal-app/dist/**/*.d.ts ./dist -C"