@artaio/node-api 1.8.0 → 1.9.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.
@@ -5,6 +5,9 @@ import type { ShipmentsSearch } from '../search';
5
5
  import type { NullableString } from '../utils';
6
6
  import type { Shipment } from '../types';
7
7
  export interface ShipmentCreateBody {
8
+ exceptions?: Array<{
9
+ type: 'label_hold';
10
+ }>;
8
11
  internal_reference?: NullableString;
9
12
  public_reference?: NullableString;
10
13
  quote_id: number;
@@ -221,7 +221,7 @@ export type Shipment = {
221
221
  package_id?: (number | null) | undefined;
222
222
  resolution?: (string | null) | undefined;
223
223
  status: "in_progress" | "new" | "resolved";
224
- type: "change_of_address_request" | "customs_information_required" | "damaged_items" | "direct_payment_required" | "held_at_customs" | "inaccurate_object_details" | "incorrect_address" | "lost_in_transit" | "not_ready_for_delivery" | "not_ready_for_release" | "other" | "prepayment_required" | "requested_hold_to_collect" | "requested_hold_to_deliver" | "wrong_item";
224
+ type: "change_of_address_request" | "customs_information_required" | "damaged_items" | "direct_payment_required" | "held_at_customs" | "inaccurate_object_details" | "incorrect_address" | "label_hold" | "lost_in_transit" | "not_ready_for_delivery" | "not_ready_for_release" | "other" | "prepayment_required" | "requested_hold_to_collect" | "requested_hold_to_deliver" | "wrong_item";
225
225
  }[] | null) | undefined;
226
226
  hosted_session_id?: (number | null) | undefined;
227
227
  insurance_policy?: ({
@@ -773,7 +773,7 @@ export type Package = {
773
773
  weight_unit: string;
774
774
  width: number;
775
775
  };
776
- export type ShipmentExceptionTypeId = "change_of_address_request" | "customs_information_required" | "damaged_items" | "direct_payment_required" | "held_at_customs" | "inaccurate_object_details" | "incorrect_address" | "lost_in_transit" | "not_ready_for_delivery" | "not_ready_for_release" | "other" | "prepayment_required" | "requested_hold_to_collect" | "requested_hold_to_deliver" | "wrong_item";
776
+ export type ShipmentExceptionTypeId = "change_of_address_request" | "customs_information_required" | "damaged_items" | "direct_payment_required" | "held_at_customs" | "inaccurate_object_details" | "incorrect_address" | "label_hold" | "lost_in_transit" | "not_ready_for_delivery" | "not_ready_for_release" | "other" | "prepayment_required" | "requested_hold_to_collect" | "requested_hold_to_deliver" | "wrong_item";
777
777
  export type ShipmentException = {
778
778
  updated_at: Date;
779
779
  created_at: Date;
@@ -782,7 +782,7 @@ export type ShipmentException = {
782
782
  package_id?: (number | null) | undefined;
783
783
  resolution?: (string | null) | undefined;
784
784
  status: "in_progress" | "new" | "resolved";
785
- type: "change_of_address_request" | "customs_information_required" | "damaged_items" | "direct_payment_required" | "held_at_customs" | "inaccurate_object_details" | "incorrect_address" | "lost_in_transit" | "not_ready_for_delivery" | "not_ready_for_release" | "other" | "prepayment_required" | "requested_hold_to_collect" | "requested_hold_to_deliver" | "wrong_item";
785
+ type: "change_of_address_request" | "customs_information_required" | "damaged_items" | "direct_payment_required" | "held_at_customs" | "inaccurate_object_details" | "incorrect_address" | "label_hold" | "lost_in_transit" | "not_ready_for_delivery" | "not_ready_for_release" | "other" | "prepayment_required" | "requested_hold_to_collect" | "requested_hold_to_deliver" | "wrong_item";
786
786
  };
787
787
  export type ShipmentSchedule = {
788
788
  delivery_end?: (Date | null) | undefined;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artaio/node-api",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.",
5
5
  "scripts": {
6
6
  "build": "npm run build:types && tsc -p tsconfig-build.json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artaio/node-api",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.",
5
5
  "scripts": {
6
6
  "build": "npm run build:types && tsc -p tsconfig-build.json",