Socket
Socket
Sign inDemoInstall

aftership

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aftership - npm Package Compare versions

Comparing version 7.0.5 to 7.0.6

dist/model/tracking/custom_estimated_delivery_date.d.ts

50

CHANGELOG.md

@@ -7,2 +7,52 @@ # Changelog

## [7.0.6] 2023-05-18
### Added
- tracking object add new fileds
- origin_state
- origin_city
- origin_postal_code
- origin_raw_location
- destination_state
- destination_city
- destination_postal_code
- custom_estimated_delivery_date
- first_estimated_delivery
- shipment_tags
- courier_connection_id
- next_couriers
- create tracking add new params
- origin_state
- origin_city
- origin_postal_code
- origin_raw_location
- destination_state
- destination_city
- destination_postal_code
- destination_raw_location
- shipment_tags
- courier_connection_id
- next_couriers
- update tracking add new params
- slug
- tracking_account_number
- tracking_key
- tracking_ship_date
- origin_country_iso3
- origin_state
- origin_city
- origin_postal_code
- origin_raw_location
- destination_country_iso3
- destination_state
- destination_city
- destination_postal_code
- destination_raw_location
- courier detect add new params
- tracking_account_number
- tracking_origin_country
- tracking_state
- slug_group
- origin_country_iso3
- destination_country_iso3
## [7.0.5] 2022-07-20

@@ -9,0 +59,0 @@ ### Added

@@ -40,2 +40,31 @@ /**

/**
* Account number of the shipper for a specific courier. Required by some couriers.
* Refer to this page for more details
*/
tracking_account_number?: string;
/**
* Origin Country/Region of the shipment for a specific courier. Required by some couriers
*/
tracking_origin_country?: string;
/**
* State of the destination shipping address of the shipment. Required by some couriers
*/
tracking_state?: string;
/**
* Slug group is a group of slugs which belong to same courier.
* For example, when you inpit "fedex-group" as slug_group,
* AfterShip will detect the tracking with "fedex-uk", "fedex-fims",
* and other slugs which belong to "fedex".
* It cannot be used with slug at the same time
*/
slug_group?: string;
/**
* Enter ISO Alpha-3 (three letters) to specify the origin of the shipment (e.g. USA for United States)
*/
origin_country_iso3?: string;
/**
* Enter ISO Alpha-3 (three letters) to specify the destination of the shipment (e.g. USA for United States)
*/
destination_country_iso3?: string;
/**
* If not specified, Aftership will automatically detect the courier based on the tracking number format

@@ -42,0 +71,0 @@ * and your selected couriers. Use array or comma separated to input a list of couriers for auto detect.

import { DeliveryType } from './delivery_type';
import { NextCourier } from './next_courier';
/**

@@ -155,3 +156,65 @@ * The request object of tracking create

shipment_type?: string;
/**
* The state of the sender’s address. This can help AfterShip with various functions like tracking,
* carrier auto-detection and auto-correction, calculating an EDD, etc.
*/
origin_state?: string;
/**
* The city of the sender’s address. This can help AfterShip with various functions like tracking,
* carrier auto-detection and auto-correction, calculating an EDD, etc.
*/
origin_city?: string;
/**
* The postal of the sender’s address. This can help AfterShip with various functions like tracking,
* carrier auto-detection and auto-correction, calculating an EDD, etc.
*/
origin_postal_code?: string;
/**
* The sender address that the shipment is shipping from.
* This can help AfterShip with various functions like tracking,
* carrier auto-detection and auto-correction, calculating an EDD, etc.
*/
origin_raw_location?: string;
/**
* The state of the recipient’s address. This can help AfterShip with various functions like tracking,
* carrier auto-detection and auto-correction, calculating an EDD, etc.
* Also the additional field required by some carriers to retrieve the tracking info.
* The state/province of the recipient’s address.
*/
destination_state?: string;
/**
* The city of the recipient’s address. This can help AfterShip with various functions like tracking,
* carrier auto-detection and auto-correction, calculating an EDD, etc.
*/
destination_city?: string;
/**
* The postal of the recipient’s address. This can help AfterShip with various functions like tracking,
* carrier auto-detection and auto-correction, calculating an EDD, etc.
* Also the additional field required by some carriers to retrieve the tracking info.
* The postal code of the recipient’s address.
*/
destination_postal_code?: string;
/**
* The shipping address that the shipment is shipping to.
* This can help AfterShip with various functions like tracking,
* carrier auto-detection and auto-correction, calculating an EDD, etc.
*/
destination_raw_location?: string;
/**
* Used to add tags to your shipments to help categorize and filter them easily.
*/
shipment_tags?: string[];
/**
* If you’ve connected multiple accounts for a single carrier on AfterShip,
* you can now use the courier_connection_id field to tell AfterShip which
* carrier account you’ve used to handle a shipment so we can track it.
*/
courier_connection_id?: string;
/**
* If a shipment has multiple carriers, you can use the next_couriers
* field to tell AfterShip who the second carrier is.
* This is useful if the first carrier does not send us this information.
*/
next_couriers?: NextCourier[];
}
//# sourceMappingURL=tracking_create_params.d.ts.map

@@ -76,4 +76,89 @@ import { DeliveryType } from './delivery_type';

shipment_type?: string;
/**
* Unique code of each courier. Provide a single courier
*/
slug?: string;
/**
* Additional field required by some carriers to retrieve the tracking info. The shipper’s carrier account number.
*/
tracking_account_number?: string;
/**
* Additional field required by some carriers to retrieve the tracking info.
* A type of tracking credential required by some carriers
*/
tracking_key?: string;
/**
* Additional field required by some carriers to retrieve the tracking info.
* The date the shipment was sent, using the format YYYYMMDD
*/
tracking_ship_date?: string;
/**
* The ISO Alpha-3 code (3 letters) for the origin country/region.
* E.g. USA for the United States.
* This can help AfterShip with various functions like tracking,
* carrier auto-detection and auto-correction, calculating an EDD, etc.
* Also the additional field required by some carriers to retrieve
* the tracking info. The origin country/region of the shipment
*/
origin_country_iso3?: string;
/**
* The state of the sender’s address. This can help AfterShip with
* various functions like tracking, carrier auto-detection and auto-correction,
* calculating an EDD, etc
*/
origin_state?: string;
/**
* The city of the sender’s address. This can help AfterShip with
* various functions like tracking, carrier auto-detection and auto-correction,
* calculating an EDD, etc
*/
origin_city?: string;
/**
* The postal of the sender’s address. This can help AfterShip with
* various functions like tracking, carrier auto-detection and auto-correction,
* calculating an EDD, etc.
*/
origin_postal_code?: string;
/**
* The sender address that the shipment is shipping from.
* This can help AfterShip with various functions like tracking,
* carrier auto-detection and auto-correction, calculating an EDD, etc
*/
origin_raw_location?: string;
/**
* The ISO Alpha-3 code (3 letters) for the destination country/region.
* E.g. USA for the United States. This can help AfterShip with various functions like tracking,
* carrier auto-detection and auto-correction, calculating an EDD, etc.
* Also the additional field required by some carriers to retrieve the
* tracking info. The destination country/region of the shipment.
*/
destination_country_iso3?: string;
/**
* The state of the recipient’s address. This can help AfterShip with various
* functions like tracking, carrier auto-detection and auto-correction,
* calculating an EDD, etc. Also the additional field required by some carriers
* to retrieve the tracking info. The state/province of the recipient’s address.
*/
destination_state?: string;
/**
* The city of the recipient’s address. This can help AfterShip with various
* functions like tracking, carrier auto-detection and auto-correction,
* calculating an EDD, etc
*/
destination_city?: string;
/**
* The postal of the recipient’s address. This can help AfterShip with various functions
* like tracking, carrier auto-detection and auto-correction, calculating an EDD, etc.
* Also the additional field required by some carriers to retrieve the tracking info.
* The postal code of the recipient’s address
*/
destination_postal_code?: string;
/**
* The shipping address that the shipment is shipping to. This can help AfterShip with
* various functions like tracking, carrier auto-detection and auto-correction,
* calculating an EDD, etc.
*/
destination_raw_location?: string;
}
export {};
//# sourceMappingURL=tracking_update_params.d.ts.map

@@ -6,2 +6,5 @@ import { Checkpoint } from '../checkpoint/checkpoint';

import { LatestEstimatedDelivery } from './latest_estimated_delivery';
import { CustomEstimatedDeliveryDate } from './custom_estimated_delivery_date';
import { FirstEstimatedDelivery } from './first_estimated_delivery';
import { NextCourier } from './next_courier';
/**

@@ -292,4 +295,55 @@ * Tracking Object

latest_estimated_delivery?: LatestEstimatedDelivery;
/**
* The state of the sender’s address
*/
origin_state: string | null;
/**
* The city of the sender’s address
*/
origin_city: string | null;
/**
* The postal code of the sender’s address
*/
origin_postal_code: string | null;
/**
* The sender address that the shipment is shipping from
*/
origin_raw_location: string | null;
/**
* The state of the recipient’s address
*/
destination_state: string | null;
/**
* The city of the recipient’s address
*/
destination_city: string | null;
/**
* The postal code of the recipient’s address
*/
destination_postal_code: string | null;
/**
* Estimated delivery time of the shipment based on your
* custom EDD settings(https://admin.aftership.com/settings/promised-delivery-date).
* It uses the format YYYY-MM-DD based on the shipment recipient’s timezone.
*/
custom_estimated_delivery_date: CustomEstimatedDeliveryDate | null;
/**
* The shipment’s original estimated delivery date. It could be provided by the carrier,
* AfterShip AI,or based on your custom settings
*/
first_estimated_delivery: FirstEstimatedDelivery | null;
/**
* Used to add tags to your shipments to help categorize and filter them easily
*/
shipment_tags: string[];
/**
* The courier connection id tells which carrier account you’ve used to handle a shipment so we can track it
*/
courier_connection_id: string | null;
/**
* The next couriers get the second carrier information from user or AfterShip
*/
next_couriers: NextCourier[];
};
}
//# sourceMappingURL=tracking.d.ts.map

2

package.json
{
"name": "aftership",
"description": "node.js SDK for AfterShip API",
"version": "7.0.5",
"version": "7.0.6",
"homepage": "https://github.com/aftership/aftership-sdk-nodejs",

@@ -6,0 +6,0 @@ "author": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc