@hantera/portal-app 20260315.0.0-develop.2 → 20260320.1.0

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 +13 -46
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -635,8 +635,6 @@ 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;
640
638
  }
641
639
 
642
640
  /**
@@ -692,8 +690,6 @@ declare interface CreateRelationCommand {
692
690
  relation: string;
693
691
  /** The ID of the node to create relation to */
694
692
  nodeId: string;
695
- /** Returns error if the relation already exists */
696
- errorIfExists?: boolean;
697
693
  }
698
694
 
699
695
  /**
@@ -914,7 +910,9 @@ declare const _default_3: {
914
910
  };
915
911
  };
916
912
  legacyPayment: {
917
- contextMenu: AppSlot<Record<string, any>>;
913
+ contextMenu: AppSlot< {
914
+ payment: LegacyPayment;
915
+ }>;
918
916
  };
919
917
  };
920
918
 
@@ -1050,7 +1048,6 @@ declare interface Delivery {
1050
1048
  createdAt: Date;
1051
1049
  finalizedAt: Date;
1052
1050
  dynamic: Record<string, any>;
1053
- releasedToInvoice: boolean;
1054
1051
  orderLines: Array<OrderLine>;
1055
1052
  calculatedShippingDiscounts: Array<CalculatedDiscount>;
1056
1053
  shippingDiscounts: Array<Discount>;
@@ -1073,7 +1070,6 @@ declare interface Delivery_2 {
1073
1070
  createdAt: Date
1074
1071
  finalizedAt: Date
1075
1072
  dynamic: Record<string, any>
1076
- releasedToInvoice: boolean
1077
1073
 
1078
1074
  orderLines: Array<OrderLine_2>
1079
1075
  calculatedShippingDiscounts: Array<CalculatedDiscount_2>
@@ -1116,7 +1112,7 @@ export declare type EventData = {
1116
1112
  data: JobFailedData;
1117
1113
  timestamp: string;
1118
1114
  } | {
1119
- eventType: 'checkpoint';
1115
+ eventType: 'actorCheckpoint';
1120
1116
  path: string;
1121
1117
  data: ActorCheckpointData;
1122
1118
  timestamp: string;
@@ -2298,19 +2294,6 @@ declare namespace Models_2 {
2298
2294
  }
2299
2295
  }
2300
2296
 
2301
- /**
2302
- * Moves an existing order line to a different delivery.
2303
- *
2304
- * @see {@link https://developer.hantera.io/reference/actors/order/commands/move-order-line-to-delivery/|Hantera Developer Portal}
2305
- */
2306
- declare interface MoveOrderLineToDeliveryCommand {
2307
- type: 'moveOrderLineToDelivery';
2308
- /** The ID of the Order Line to move. */
2309
- orderLineId: string;
2310
- /** The ID of the Delivery to move the Order Line to. */
2311
- deliveryId: string;
2312
- }
2313
-
2314
2297
  export declare interface NavHubSection {
2315
2298
  /**
2316
2299
  * If multiple apps register sections with the same id, or the id is one of the system-provided ones, the items will
@@ -2332,16 +2315,6 @@ export declare interface NavHubSection {
2332
2315
 
2333
2316
  declare function number(value: default_2 | number): string;
2334
2317
 
2335
- /**
2336
- * Opens a delivery that is currently in processing. Ensure there are no external dependencies such as warehouses actively working on the delivery.
2337
- *
2338
- * @see {@link https://developer.hantera.io/reference/actors/order/commands/open-delivery/|Hantera Developer Portal}
2339
- */
2340
- declare interface OpenDeliveryCommand {
2341
- type: 'openDelivery';
2342
- deliveryId: string;
2343
- }
2344
-
2345
2318
  declare interface Options {
2346
2319
  rowHue?: (row: Record<string, any>) => number | string | undefined;
2347
2320
  rowKey?: (row: Record<string, any>) => string;
@@ -2425,8 +2398,6 @@ export declare namespace Order_3 {
2425
2398
  GenerateOrderNumberByPrefixCommand,
2426
2399
  InvoiceCommand,
2427
2400
  LinkPaymentCommand,
2428
- MoveOrderLineToDeliveryCommand,
2429
- OpenDeliveryCommand,
2430
2401
  ReleaseDeliveryCommand,
2431
2402
  ReleaseOrderLineToInvoicingCommand,
2432
2403
  ReleaseShippingToInvoicingCommand,
@@ -2462,7 +2433,7 @@ export declare namespace Order_3 {
2462
2433
  }
2463
2434
  }
2464
2435
 
2465
- declare type OrderCommand = AddActivityLogCommand | AddDeliveryTagCommand | AddTagCommand | CancelDeliveryCommand | CancelInvoiceCommand | CompleteDeliveryCommand | CreateComputedOrderDiscountBySourceCommand | CreateComputedOrderDiscountCommand | CreateDeliveryCommand | CreateOrderLineCommand | CreateReturnCommand | CreateStaticOrderDiscountCommand | CreateStaticOrderLineDiscountCommand | CreateStaticShippingDiscountCommand | DeleteDiscountCommand | DeleteOrderLineCommand | DeleteReturnCommand | GenerateOrderNumberByPrefixCommand | InvoiceCommand | LinkPaymentCommand | MoveOrderLineToDeliveryCommand | 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;
2436
+ 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;
2466
2437
 
2467
2438
  declare interface OrderJournalEntry {
2468
2439
  orderJournalEntryId: string
@@ -2493,7 +2464,6 @@ declare interface OrderLine {
2493
2464
  taxTotal: default_2;
2494
2465
  orderLineTotal: default_2;
2495
2466
  dynamic: Record<string, any>;
2496
- releasedToInvoice: boolean;
2497
2467
  calculatedDiscounts: Array<CalculatedDiscount>;
2498
2468
  orderLineDiscounts: Array<Discount>;
2499
2469
  backOrders: Array<BackOrder>;
@@ -2515,7 +2485,6 @@ declare interface OrderLine_2 {
2515
2485
  taxTotal: Decimal
2516
2486
  orderLineTotal: Decimal
2517
2487
  dynamic: Record<string, any>
2518
- releasedToInvoice: boolean
2519
2488
 
2520
2489
  calculatedDiscounts: Array<CalculatedDiscount_2>
2521
2490
  orderLineDiscounts: Array<Discount_2>
@@ -2547,9 +2516,8 @@ declare interface OrderProduct {
2547
2516
  description: string;
2548
2517
  unitPrice: default_2;
2549
2518
  image?: string;
2550
- skus?: Record<string, default_2>;
2551
2519
  dynamic?: Record<string, any>;
2552
- taxFactor?: default_2;
2520
+ taxFactor: default_2;
2553
2521
  }
2554
2522
 
2555
2523
  declare const orderView: {
@@ -2612,7 +2580,7 @@ declare interface OrderViewContext {
2612
2580
  * https://developer.hantera.io/reference/actors/order/commands/add-activity-log/ for details.
2613
2581
  * @param messageDynamic Additional properties to add to the accompanying activity log.
2614
2582
  */
2615
- pushPendingChange(changeId: string | undefined, commands: OrderCommand[], messageTemplate: string, messageDynamic?: Record<string, any>): Promise<boolean>;
2583
+ pushPendingChange(changeId: string | undefined, commands: OrderCommand[], messageTemplate: string, messageDynamic?: Record<string, any>): void;
2616
2584
  /**
2617
2585
  * Enter timetravel mode to preview the order at a specific checkpoint.
2618
2586
  * Automatically refreshes the order state to show the rewound state.
@@ -2637,7 +2605,6 @@ declare interface OrderViewContext {
2637
2605
  declare interface Payment {
2638
2606
  paymentId: string;
2639
2607
  paymentNumber: string;
2640
- externalReference?: string;
2641
2608
  authorizedAmount: default_2;
2642
2609
  providerKey: string;
2643
2610
  tags: Array<string>;
@@ -2653,7 +2620,6 @@ declare interface Payment {
2653
2620
  declare interface Payment_2 {
2654
2621
  paymentId: string
2655
2622
  paymentNumber: string
2656
- externalReference?: string
2657
2623
  authorizedAmount: Decimal
2658
2624
  providerKey: string
2659
2625
  tags: Array<string>
@@ -3272,7 +3238,7 @@ declare interface SetItemDynamicFieldsCommand_2 {
3272
3238
  */
3273
3239
  declare interface SetLocaleCommand {
3274
3240
  type: 'setLocale';
3275
- value: string;
3241
+ locale: string;
3276
3242
  }
3277
3243
 
3278
3244
  /**
@@ -3359,10 +3325,11 @@ declare interface SetOrderLineTaxCommand {
3359
3325
  type: 'setOrderLineTax';
3360
3326
  /** The ID of the Order Line to set the tax of. */
3361
3327
  orderLineId: string;
3362
- /** 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. */
3363
- salesTax?: Decimal | number;
3364
- /** Sets the tax percentage of the order line. If set, the order line's taxAmount, taxTotal and returns.tax
3365
- will be calculated automatically. Can not be combined with taxAmount command field. */
3328
+ /** Sets the taxTotal of the order line. Can not be combined with taxFactor command field. */
3329
+ taxTotal?: Decimal | number;
3330
+ /** Sets the tax percentage of the order line. If set, the order line's taxTotal will be
3331
+ calculated automatically based on the order line's total. Can not be combined with
3332
+ taxTotal command field. */
3366
3333
  taxFactor?: Decimal | number;
3367
3334
  }
3368
3335
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hantera/portal-app",
3
- "version": "20260315.0.0-develop.2",
3
+ "version": "20260320.1.0",
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.5.13"
15
+ "vue": "^3.4.37"
16
16
  },
17
17
  "devDependencies": {
18
18
  "cpx": "^1.5.0",