@hantera/portal-app 20251230.1.0 → 20260209.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 +26 -8
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -635,6 +635,8 @@ declare interface CreateItemRelationCommand {
635
635
  relation: string;
636
636
  /** The ID of the node to create relation to */
637
637
  nodeId: string;
638
+ /** Returns error if the relation already exists */
639
+ errorIfExists?: boolean;
638
640
  }
639
641
 
640
642
  /**
@@ -690,6 +692,8 @@ declare interface CreateRelationCommand {
690
692
  relation: string;
691
693
  /** The ID of the node to create relation to */
692
694
  nodeId: string;
695
+ /** Returns error if the relation already exists */
696
+ errorIfExists?: boolean;
693
697
  }
694
698
 
695
699
  /**
@@ -1110,7 +1114,7 @@ export declare type EventData = {
1110
1114
  data: JobFailedData;
1111
1115
  timestamp: string;
1112
1116
  } | {
1113
- eventType: 'actorCheckpoint';
1117
+ eventType: 'checkpoint';
1114
1118
  path: string;
1115
1119
  data: ActorCheckpointData;
1116
1120
  timestamp: string;
@@ -1802,6 +1806,7 @@ export declare interface LegacyInventoryItem {
1802
1806
  physicalStock: default_2;
1803
1807
  availablePhysicalStock: default_2;
1804
1808
  inventoryId: string;
1809
+ inventoryKey: string;
1805
1810
  }
1806
1811
 
1807
1812
  export declare interface LegacyInvoice {
@@ -2312,6 +2317,16 @@ export declare interface NavHubSection {
2312
2317
 
2313
2318
  declare function number(value: default_2 | number): string;
2314
2319
 
2320
+ /**
2321
+ * Opens a delivery that is currently in processing. Ensure there are no external dependencies such as warehouses actively working on the delivery.
2322
+ *
2323
+ * @see {@link https://developer.hantera.io/reference/actors/order/commands/open-delivery/|Hantera Developer Portal}
2324
+ */
2325
+ declare interface OpenDeliveryCommand {
2326
+ type: 'openDelivery';
2327
+ deliveryId: string;
2328
+ }
2329
+
2315
2330
  declare interface Options {
2316
2331
  rowHue?: (row: Record<string, any>) => number | string | undefined;
2317
2332
  rowKey?: (row: Record<string, any>) => string;
@@ -2395,6 +2410,7 @@ export declare namespace Order_3 {
2395
2410
  GenerateOrderNumberByPrefixCommand,
2396
2411
  InvoiceCommand,
2397
2412
  LinkPaymentCommand,
2413
+ OpenDeliveryCommand,
2398
2414
  ReleaseDeliveryCommand,
2399
2415
  ReleaseOrderLineToInvoicingCommand,
2400
2416
  ReleaseShippingToInvoicingCommand,
@@ -2430,7 +2446,7 @@ export declare namespace Order_3 {
2430
2446
  }
2431
2447
  }
2432
2448
 
2433
- declare type OrderCommand = AddActivityLogCommand | AddDeliveryTagCommand | AddTagCommand | CancelDeliveryCommand | CancelInvoiceCommand | CompleteDeliveryCommand | CreateComputedOrderDiscountBySourceCommand | CreateComputedOrderDiscountCommand | CreateDeliveryCommand | CreateOrderLineCommand | CreateReturnCommand | CreateStaticOrderDiscountCommand | CreateStaticOrderLineDiscountCommand | CreateStaticShippingDiscountCommand | DeleteDiscountCommand | DeleteOrderLineCommand | DeleteReturnCommand | GenerateOrderNumberByPrefixCommand | InvoiceCommand | LinkPaymentCommand | ReleaseDeliveryCommand | ReleaseOrderLineToInvoicingCommand | ReleaseShippingToInvoicingCommand | RemoveDeliveryTagCommand | RemoveTagCommand | RetractOrderLineFromInvoicingCommand | RetractShippingFromInvoicingCommand | SetChannelKeyCommand | SetComputedOrderDiscountParametersCommand | SetCustomerNumberCommand | SetDeliveryAddressCommand | SetDeliveryDynamicFieldsCommand | SetDeliveryInventoryCommand | SetDiscountDescriptionCommand | SetDiscountDynamicFieldsCommand | SetInvoiceAddressCommand | SetLocaleCommand | SetNotesCommand | SetOrderDynamicFieldsCommand | SetOrderLineDynamicFieldsCommand | SetOrderLineProductCommand | SetOrderLineQuantityCommand | SetOrderLineSkusCommand | SetOrderLineTaxCommand | SetOrderLineUnitPriceCommand | SetOrderStateCommand | SetReturnDynamicFieldsCommand | SetShippingPriceCommand | SetShippingProductCommand | SetShippingTaxCommand | SetStaticDiscountValueCommand | UnsetDeliveryInventoryCommand;
2449
+ declare type OrderCommand = AddActivityLogCommand | AddDeliveryTagCommand | AddTagCommand | CancelDeliveryCommand | CancelInvoiceCommand | CompleteDeliveryCommand | CreateComputedOrderDiscountBySourceCommand | CreateComputedOrderDiscountCommand | CreateDeliveryCommand | CreateOrderLineCommand | CreateReturnCommand | CreateStaticOrderDiscountCommand | CreateStaticOrderLineDiscountCommand | CreateStaticShippingDiscountCommand | DeleteDiscountCommand | DeleteOrderLineCommand | DeleteReturnCommand | GenerateOrderNumberByPrefixCommand | InvoiceCommand | LinkPaymentCommand | OpenDeliveryCommand | ReleaseDeliveryCommand | ReleaseOrderLineToInvoicingCommand | ReleaseShippingToInvoicingCommand | RemoveDeliveryTagCommand | RemoveTagCommand | RetractOrderLineFromInvoicingCommand | RetractShippingFromInvoicingCommand | SetChannelKeyCommand | SetComputedOrderDiscountParametersCommand | SetCustomerNumberCommand | SetDeliveryAddressCommand | SetDeliveryDynamicFieldsCommand | SetDeliveryInventoryCommand | SetDiscountDescriptionCommand | SetDiscountDynamicFieldsCommand | SetInvoiceAddressCommand | SetLocaleCommand | SetNotesCommand | SetOrderDynamicFieldsCommand | SetOrderLineDynamicFieldsCommand | SetOrderLineProductCommand | SetOrderLineQuantityCommand | SetOrderLineSkusCommand | SetOrderLineTaxCommand | SetOrderLineUnitPriceCommand | SetOrderStateCommand | SetReturnDynamicFieldsCommand | SetShippingPriceCommand | SetShippingProductCommand | SetShippingTaxCommand | SetStaticDiscountValueCommand | UnsetDeliveryInventoryCommand;
2434
2450
 
2435
2451
  declare interface OrderJournalEntry {
2436
2452
  orderJournalEntryId: string
@@ -2513,8 +2529,9 @@ declare interface OrderProduct {
2513
2529
  description: string;
2514
2530
  unitPrice: default_2;
2515
2531
  image?: string;
2532
+ skus?: Record<string, default_2>;
2516
2533
  dynamic?: Record<string, any>;
2517
- taxFactor: default_2;
2534
+ taxFactor?: default_2;
2518
2535
  }
2519
2536
 
2520
2537
  declare const orderView: {
@@ -2602,6 +2619,7 @@ declare interface OrderViewContext {
2602
2619
  declare interface Payment {
2603
2620
  paymentId: string;
2604
2621
  paymentNumber: string;
2622
+ externalReference?: string;
2605
2623
  authorizedAmount: default_2;
2606
2624
  providerKey: string;
2607
2625
  tags: Array<string>;
@@ -2617,6 +2635,7 @@ declare interface Payment {
2617
2635
  declare interface Payment_2 {
2618
2636
  paymentId: string
2619
2637
  paymentNumber: string
2638
+ externalReference?: string
2620
2639
  authorizedAmount: Decimal
2621
2640
  providerKey: string
2622
2641
  tags: Array<string>
@@ -3322,11 +3341,10 @@ declare interface SetOrderLineTaxCommand {
3322
3341
  type: 'setOrderLineTax';
3323
3342
  /** The ID of the Order Line to set the tax of. */
3324
3343
  orderLineId: string;
3325
- /** Sets the taxTotal of the order line. Can not be combined with taxFactor command field. */
3326
- taxTotal?: Decimal | number;
3327
- /** Sets the tax percentage of the order line. If set, the order line's taxTotal will be
3328
- calculated automatically based on the order line's total. Can not be combined with
3329
- taxTotal command field. */
3344
+ /** Sets the salesTax of the order line. Can not be combined with taxFactor command field. The value should should be based on the original sale value/quantity and not account for returns, as returns carry their own tax amount. */
3345
+ salesTax?: Decimal | number;
3346
+ /** Sets the tax percentage of the order line. If set, the order line's taxAmount, taxTotal and returns.tax
3347
+ will be calculated automatically. Can not be combined with taxAmount command field. */
3330
3348
  taxFactor?: Decimal | number;
3331
3349
  }
3332
3350
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hantera/portal-app",
3
- "version": "20251230.1.0",
3
+ "version": "20260209.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"
@@ -12,7 +12,7 @@
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
14
  "decimal.js": "^10.4.2",
15
- "vue": "^3.4.37"
15
+ "vue": "^3.5.13"
16
16
  },
17
17
  "devDependencies": {
18
18
  "cpx": "^1.5.0",