@artaio/node-api 0.29.0 → 0.29.2

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.
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### Pre-release notice
2
+
3
+ arta-node-api is in a pre-release beta. The package's API is unstable and expected to change prior to public release. Please only make use of the package in coordination with ARTA during this period.
4
+
1
5
  Arta Node.js Library
2
6
  ===
3
7
 
@@ -45,6 +45,9 @@ export interface ArtaLocation {
45
45
  country: string;
46
46
  title?: NullableString;
47
47
  contacts?: Nullable<Contact[]>;
48
+ estimated_country?: string;
49
+ estimated_region?: string;
50
+ estimated_city?: string;
48
51
  }
49
52
  export type Details = {
50
53
  materials?: Nullable<ObjectMaterial[]>;
@@ -94,3 +97,13 @@ export interface ArtaService {
94
97
  subtype: ArtaTrackingServiceSubType;
95
98
  type: ArtaTrackingServiceType;
96
99
  }
100
+ export interface Quote {
101
+ id: number;
102
+ included_services: ArtaService[];
103
+ included_insurance_policy?: Nullable<InsurancePolicy>;
104
+ optional_services: ArtaService[];
105
+ quote_type: QuoteType;
106
+ status: string;
107
+ total: number;
108
+ total_currency: SupportedCurrency;
109
+ }
@@ -1,19 +1,9 @@
1
1
  import { ArtaID } from '../ArtaClient';
2
- import { AdditionalService, ArtaLocation, ArtaObject, ArtaService, Contact, Disqualification, Insurance, InsurancePolicy, PaymentProcessType, QuoteRequestStatus, QuoteType, SupportedCurrency } from '../MetadataTypes';
2
+ import { AdditionalService, ArtaLocation, ArtaObject, Contact, Disqualification, Insurance, PaymentProcessType, Quote, QuoteRequestStatus, QuoteType, SupportedCurrency } from '../MetadataTypes';
3
3
  import { RestClient } from '../net/RestClient';
4
4
  import { Page } from '../pagination';
5
5
  import { RequestsSearch } from '../search';
6
6
  import { DatedInterface, Nullable, NullableString } from '../utils';
7
- export interface Quote {
8
- id: number;
9
- included_services: ArtaService[];
10
- included_insurance_policy?: Nullable<InsurancePolicy>;
11
- optional_services: ArtaService[];
12
- quote_type: QuoteType;
13
- status: string;
14
- total: number;
15
- total_currency: SupportedCurrency;
16
- }
17
7
  export interface QuoteRequest extends DatedInterface {
18
8
  id: ArtaID;
19
9
  currency: SupportedCurrency;
@@ -15,5 +15,5 @@ export { Upload, UploadCreateBody } from './endpoint/uploads';
15
15
  export { WebhookDelivery } from './endpoint/webhookDeliveries';
16
16
  export { Webhook, WebhookCreate } from './endpoint/webhooks';
17
17
  export { Tracking, TrackingEvent, Carrier } from './endpoint/trackings';
18
- export { Quote, QuoteRequest, QuoteRequestCreateBody, UpdateRequestsContactsBody, CustomQuotePayload, } from './endpoint/requests';
18
+ export { QuoteRequest, QuoteRequestCreateBody, UpdateRequestsContactsBody, CustomQuotePayload, } from './endpoint/requests';
19
19
  export { Package, ShipmentSchedule, ShipmentTracking, Shipment, ShipmentCreateBody, } from './endpoint/shipments';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artaio/node-api",
3
- "version": "0.29.0",
3
+ "version": "0.29.2",
4
4
  "description": "The Arta Node library provides a seamless integration to Arta API for applications running on Node.js using both Typescript or Javascript.",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig-build.json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artaio/node-api",
3
- "version": "0.29.0",
3
+ "version": "0.29.2",
4
4
  "description": "The Arta Node library provides a seamless integration to Arta API for applications running on Node.js using both Typescript or Javascript.",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig-build.json",