Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@artaio/node-api

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@artaio/node-api - npm Package Compare versions

Comparing version 0.29.3 to 0.30.0

8

dist/lib/endpoint/metadata.d.ts

@@ -1,2 +0,2 @@

import { AccessRestriction, APIStatus, ArtaTrackingServiceSubSubType, ArtaTrackingServiceSubType, ArtaTrackingServiceType, AuthTypes, EmailNotificationId, Insurance, ObjectMaterial, ObjectSubType, ObjectType, PackageStatus, PackingSubType, PackingType, ParcelTransportServices, PaymentProcessType, QuoteRequestStatus, QuoteType, Recipients, ShipmentStatus, SupportedCurrency } from '../MetadataTypes';
import { AccessRestriction, APIStatus, ArtaTrackingServiceSubSubType, ArtaTrackingServiceSubType, ArtaTrackingServiceType, AuthTypes, EmailNotificationId, Insurance, ObjectMaterial, ObjectSubType, ObjectType, PackageStatus, PackingSubType, PackingType, ParcelTransportServices, PaymentProcessType, QuoteRequestStatus, QuoteType, Recipients, ShipmentExceptionTypeId, ShipmentStatus, SupportedCurrency } from '../MetadataTypes';
import { RestClient } from '../net/RestClient';

@@ -19,2 +19,7 @@ export interface APIVersionMetadata {

}
export interface ShipmentExceptionTypeMetadata {
id: ShipmentExceptionTypeId;
name: string;
resolutions: string[];
}
export interface BaseMetadata<T> {

@@ -67,3 +72,4 @@ description: string;

services(auth?: string): Promise<ServicesMetadata[]>;
shipmentExceptionTypes(auth?: string): Promise<ShipmentExceptionTypeMetadata[]>;
shipmentStatuses(auth?: string): Promise<ShipmentStatusesMetadata[]>;
}

@@ -51,2 +51,5 @@ "use strict";

};
MetadataEndpoint.prototype.shipmentExceptionTypes = function (auth) {
return this.artaClient.get("".concat(this.path, "/shipment_exception_types"), auth);
};
MetadataEndpoint.prototype.shipmentStatuses = function (auth) {

@@ -53,0 +56,0 @@ return this.artaClient.get("".concat(this.path, "/shipment_statuses"), auth);

import { ArtaID } from '../ArtaClient';
import { ArtaLocation, ArtaObject, ArtaService, EEIFormStatus, InsurancePolicy, PackageStatus, PackingSubType, PaymentProcessType, QuoteType, ShipmentStatus, SupportedCurrency } from '../MetadataTypes';
import { ArtaLocation, ArtaObject, ArtaService, EEIFormStatus, InsurancePolicy, PackageStatus, PackingSubType, PaymentProcessType, QuoteType, ShipmentStatus, ShipmentExceptionTypeId, SupportedCurrency } from '../MetadataTypes';
import { RestClient } from '../net/RestClient';

@@ -22,2 +22,11 @@ import { Page } from '../pagination';

}
export type ShipmentExceptionStatus = 'in_progress' | 'new' | 'resolved';
export interface ShipmentException extends DatedInterface {
exception_type_label: NullableString;
id: ArtaID;
package_id: Nullable<number>;
resolution: NullableString;
status: ShipmentExceptionStatus;
type: ShipmentExceptionTypeId;
}
export interface ShipmentSchedule {

@@ -42,2 +51,5 @@ delivery_end: Nullable<Date>;

eei_form_status?: Nullable<EEIFormStatus>;
emissions?: Nullable<number>;
emissions_unit?: NullableString;
exceptions?: Nullable<ShipmentException[]>;
hosted_session_id?: Nullable<number>;

@@ -44,0 +56,0 @@ insurance_policy?: Nullable<InsurancePolicy>;

@@ -14,2 +14,5 @@ "use strict";

r.total = Number(r.total);
if (r.emissions) {
r.emissions = Number(r.emissions);
}
if (r.schedule) {

@@ -16,0 +19,0 @@ r.schedule.delivery_end = new Date(r.schedule.delivery_end);

@@ -19,2 +19,3 @@ import { Nullable, NullableString } from './utils';

export type ObjectMaterial = 'stone_marble' | 'precious_stones' | 'fiber_synthetic' | 'fabric_natural' | 'taxidermy' | 'carbon_fiber' | 'live_animal' | 'paper' | 'glass' | 'presious_metals' | 'particleboard' | 'styrofoam' | 'wood' | 'photo_film' | 'sand' | 'metal' | 'plexiglass' | 'aquatic_life' | 'canvas' | 'drywall' | 'hard_plastic' | 'vinyl' | 'soft_plastic' | 'leather' | 'rubber' | 'concreate' | 'paint' | 'electronics' | 'fiber_natural' | 'gas' | 'fabric_synthetic' | 'CITES' | 'liquids' | 'salts';
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';
export type ArtaTrackingServiceType = 'transport' | 'location' | 'handling' | 'packing' | 'storage' | 'administration' | 'taxes_duties_fees' | 'security' | 'equipment';

@@ -21,0 +22,0 @@ export type ArtaTrackingServiceSubType = 'specialized' | 'consolidated' | 'freight' | 'parcel' | 'collection' | 'delivery' | 'location' | 'unpacking' | 'condition' | 'installation' | 'deinstallation' | 'debris_disposal' | 'site_visit' | 'handling' | 'packing' | 'packing_materials' | 'receive_release' | 'warehouse' | 'customs' | 'coi' | 'administration' | 'taxes_duties' | 'fees' | 'security' | 'equipment';

2

dist/package.json
{
"name": "@artaio/node-api",
"version": "0.29.3",
"version": "0.30.0",
"description": "The Arta Node library provides a seamless integration to Arta API for applications running on Node.js using both Typescript or Javascript.",

@@ -5,0 +5,0 @@ "scripts": {

{
"name": "@artaio/node-api",
"version": "0.29.3",
"version": "0.30.0",
"description": "The Arta Node library provides a seamless integration to Arta API for applications running on Node.js using both Typescript or Javascript.",

@@ -5,0 +5,0 @@ "scripts": {

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