shipstation-node
Version:
Unofficial Node.js wrapper for the ShipStation API
31 lines (30 loc) • 1.31 kB
TypeScript
import type BaseAPI from '../../BaseAPI';
import { BaseResource } from '../../BaseResource';
import type { CreateTagResponse, GetTagsResponse } from '../types';
/**
* [Official Documentation](https://docs.shipstation.com/openapi/tags)
*
* Tags are text-based identifiers you can add to shipments to help in your shipment management workflows.
*/
export declare class Tags extends BaseResource {
constructor(shipstation: BaseAPI);
/**
* [Official Documentation](https://docs.shipstation.com/openapi/tags/list_tags)
*
* Get a list of all tags associated with an account.
*
* @returns A list of tags for the account.
*/
get(): Promise<GetTagsResponse>;
/**
* [Official Documentation](https://docs.shipstation.com/openapi/tags/create_tag)
*
* Create a new Tag for customizing how you track your shipments
*
* @param tagName Tags are arbitrary strings that you can use to categorize shipments. For example, you may want to
* use tags to distinguish between domestic and international shipments, or between insured and uninsured shipments.
* Or maybe you want to create a tag for each of your customers so you can easily retrieve every shipment for a
* customer.
*/
create(tagName: string): Promise<CreateTagResponse>;
}