@artaio/node-api 1.1.0 → 1.2.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.
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -86,14 +86,14 @@ var ArtaClient = /** @class */ (function () {
86
86
  method: method,
87
87
  headers: {
88
88
  'User-Agent': "ARTA/v1 arta-node/".concat(package_json_1.version),
89
- 'Content-Type': 'application/json'
89
+ 'Content-Type': 'application/json',
90
90
  },
91
91
  };
92
92
  if (auth) {
93
93
  if (reqParams.headers == null) {
94
94
  reqParams.headers = {
95
95
  'User-Agent': "ARTA/v1 arta-node/".concat(package_json_1.version),
96
- 'Content-Type': 'application/json'
96
+ 'Content-Type': 'application/json',
97
97
  };
98
98
  }
99
99
  reqParams.headers.Authorization = this.makeArtaAuthHeader(auth);
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -39,7 +39,7 @@ var __await = (this && this.__await) || function (v) { return this instanceof __
39
39
  var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
40
40
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
41
41
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
42
- return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
42
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
43
43
  function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
44
44
  function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
45
45
  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -20,8 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  });
21
21
  };
22
22
  var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
24
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
@@ -88,7 +88,7 @@ var QuoteRequestsEndpoint = /** @class */ (function () {
88
88
  switch (_a.label) {
89
89
  case 0: return [4 /*yield*/, this.artaClient.patch("".concat(this.path, "/").concat(id, "/contacts"), contacts, auth)];
90
90
  case 1:
91
- rawReq = _a.sent();
91
+ rawReq = (_a.sent());
92
92
  return [2 /*return*/, this.enrichFields(rawReq)];
93
93
  }
94
94
  });
@@ -101,7 +101,7 @@ var QuoteRequestsEndpoint = /** @class */ (function () {
101
101
  switch (_a.label) {
102
102
  case 0: return [4 /*yield*/, this.artaClient.patch("".concat(this.path, "/").concat(id, "/custom"), customQuote, auth)];
103
103
  case 1:
104
- rawReq = _a.sent();
104
+ rawReq = (_a.sent());
105
105
  return [2 /*return*/, this.enrichFields(rawReq)];
106
106
  }
107
107
  });
@@ -114,7 +114,7 @@ var QuoteRequestsEndpoint = /** @class */ (function () {
114
114
  switch (_a.label) {
115
115
  case 0: return [4 /*yield*/, this.artaClient.patch("".concat(this.path, "/").concat(id, "/cancel"), undefined, auth)];
116
116
  case 1:
117
- rawReq = _a.sent();
117
+ rawReq = (_a.sent());
118
118
  return [2 /*return*/, this.enrichFields(rawReq)];
119
119
  }
120
120
  });
@@ -20,8 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  });
21
21
  };
22
22
  var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
24
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -2,11 +2,11 @@ export { Arta } from './arta';
2
2
  export { Logger, LoggerVerbosity } from './logging';
3
3
  export { AttachmentCreateBodyRequest, AttachmentCreateBodyShipment, AttachmentCreateBody, } from './endpoint/attachment';
4
4
  export { EmailRuleCreateBody } from './endpoint/emailRules';
5
- export { EmailSubscriptionCreateBody, } from './endpoint/emailSubscriptions';
6
- export { HostedSessionCreateBody, } from './endpoint/hostedSessions';
5
+ export { EmailSubscriptionCreateBody } from './endpoint/emailSubscriptions';
6
+ export { HostedSessionCreateBody } from './endpoint/hostedSessions';
7
7
  export { KeyCreateBody } from './endpoint/keys';
8
8
  export * from './MetadataTypes';
9
9
  export { UploadCreateBody } from './endpoint/uploads';
10
10
  export { ExtendedWebhook as Webhook, WebhookCreate } from './endpoint/webhooks';
11
11
  export { QuoteRequestCreateBody, UpdateRequestsContactsBody, CustomQuotePayload, } from './endpoint/requests';
12
- export { ShipmentCreateBody, } from './endpoint/shipments';
12
+ export { ShipmentCreateBody } from './endpoint/shipments';
@@ -20,8 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  });
21
21
  };
22
22
  var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
24
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
@@ -111,9 +111,12 @@ var FetchHttpClient = /** @class */ (function () {
111
111
  _b.label = 1;
112
112
  case 1:
113
113
  _b.trys.push([1, , 3, 4]);
114
- return [4 /*yield*/, Promise.race([fetchUrl, rejectTimeout])];
114
+ return [4 /*yield*/, Promise.race([
115
+ fetchUrl,
116
+ rejectTimeout,
117
+ ])];
115
118
  case 2:
116
- response = _b.sent();
119
+ response = (_b.sent());
117
120
  return [2 /*return*/, new FetchHttpClientResponse(response)];
118
121
  case 3:
119
122
  setTimeoutId != null && clearTimeout(setTimeoutId);
@@ -62,7 +62,7 @@ export type QuoteRequest = {
62
62
  shortcode: string;
63
63
  status: "cancelled" | "closed" | "disqualified" | "expired" | "in_progress" | "pending" | "quoted";
64
64
  tags?: any;
65
- currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
65
+ currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
66
66
  additional_services: ("assembly" | "debris_disposal" | "deinstallation" | "destination_additional_labor" | "destination_building_coi" | "destination_condition_check" | "destination_full_condition_report" | "destination_unpacking" | "double_blind_bols" | "installation" | "origin_building_coi" | "origin_condition_check" | "origin_full_condition_report" | "placement" | "signature_delivery" | "tarmac_supervision")[];
67
67
  disqualifications: {
68
68
  quote_types: ("parcel" | "premium" | "select" | "self_ship")[];
@@ -91,7 +91,7 @@ export type QuoteRequest = {
91
91
  subtype: "painting_unframed" | "painting_framed" | "painting_framed_plexi" | "painting_framed_glass" | "work_on_paper_unframed" | "work_on_paper_framed" | "work_on_paper_framed_plexi" | "work_on_paper_framed_glass" | "mixed_media_unframed" | "mixed_media_framed" | "mixed_media_framed_plexi" | "mixed_media_framed_glass" | "photograph_unframed" | "photograph_framed" | "photograph_framed_plexi" | "photograph_framed_glass" | "new_media" | "sculpture" | "pedestal" | "pedestal_case_glass" | "pedestal_case_plexi" | "ceramic" | "neon" | "tapestry" | "other_art" | "table" | "chair" | "sofa_loveseat_chaise" | "floor_lamp" | "floor_lamp_shade" | "table_lamp" | "table_lamp_shade" | "sconce" | "ottoman" | "bookcase_storage" | "nightstand" | "armoire_dresser" | "carpet_rug" | "mirror" | "chandelier" | "bedframe" | "headboard" | "desk_vanity" | "media_console" | "other_furniture" | "earrings" | "necklace" | "bracelet" | "ring" | "brooch" | "watch" | "cufflinks" | "eyeglasses" | "set" | "precious_stones" | "snuff_box_cigarette_case" | "other_jewelry" | "vase_vessel" | "bowl" | "plaque" | "object_of_vertu" | "candelabra_candlestick" | "dinnerware" | "flatware" | "glassware" | "serveware" | "porcelain_plate" | "porcelain_bowl" | "tabletop_accessory" | "clock" | "other_decorative_arts" | "stamp" | "book" | "coin" | "document_manuscript" | "toy" | "miniature_model" | "figurine_doll" | "neon_sign" | "memorabilia" | "camera_electrical" | "other_collectibles" | "wine_bottle" | "spirits_bottle" | "beer_bottle" | "wine_case" | "spirits_case" | "beer_case" | "wine_barrel" | "spirits_barrel" | "beer_barrel" | "other_alcohols" | "car" | "motorcycle" | "bus" | "van" | "limousine" | "carriage" | "trailer" | "sidecar" | "other_automotive" | "clothing" | "footwear" | "handbag" | "accessories" | "other_fashion" | "musical_instrument" | "firearm_weapon" | "hunting_fishing" | "medical_equipment" | "other";
92
92
  unit_of_measurement?: (string | null) | undefined;
93
93
  weight_unit?: (string | null) | undefined;
94
- value_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
94
+ value_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
95
95
  }[];
96
96
  payment_process: "checkout" | "checkout_direct" | "invoicing";
97
97
  preferred_quote_types?: (("parcel" | "premium" | "select" | "self_ship")[] | null) | undefined;
@@ -100,7 +100,7 @@ export type QuoteRequest = {
100
100
  id: number;
101
101
  included_services: {
102
102
  amount: number;
103
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
103
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
104
104
  is_requested?: boolean | undefined;
105
105
  is_required?: boolean | undefined;
106
106
  name: string;
@@ -111,14 +111,14 @@ export type QuoteRequest = {
111
111
  }[];
112
112
  included_insurance_policy?: ({
113
113
  amount: number;
114
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
114
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
115
115
  id: string;
116
116
  insured_value: number;
117
- insured_value_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
117
+ insured_value_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
118
118
  } | null) | undefined;
119
119
  optional_services: {
120
120
  amount: number;
121
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
121
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
122
122
  is_requested?: boolean | undefined;
123
123
  is_required?: boolean | undefined;
124
124
  name: string;
@@ -130,7 +130,7 @@ export type QuoteRequest = {
130
130
  quote_type: "parcel" | "premium" | "select" | "self_ship";
131
131
  status: string;
132
132
  total: number;
133
- total_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
133
+ total_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
134
134
  }[];
135
135
  };
136
136
  export type Key = {
@@ -181,10 +181,10 @@ export type Shipment = {
181
181
  hosted_session_id?: (number | null) | undefined;
182
182
  insurance_policy?: ({
183
183
  amount: number;
184
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
184
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
185
185
  id: string;
186
186
  insured_value: number;
187
- insured_value_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
187
+ insured_value_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
188
188
  } | null) | undefined;
189
189
  internal_reference?: (string | null) | undefined;
190
190
  log_request_id?: (string | null) | undefined;
@@ -238,7 +238,7 @@ export type Shipment = {
238
238
  subtype: "painting_unframed" | "painting_framed" | "painting_framed_plexi" | "painting_framed_glass" | "work_on_paper_unframed" | "work_on_paper_framed" | "work_on_paper_framed_plexi" | "work_on_paper_framed_glass" | "mixed_media_unframed" | "mixed_media_framed" | "mixed_media_framed_plexi" | "mixed_media_framed_glass" | "photograph_unframed" | "photograph_framed" | "photograph_framed_plexi" | "photograph_framed_glass" | "new_media" | "sculpture" | "pedestal" | "pedestal_case_glass" | "pedestal_case_plexi" | "ceramic" | "neon" | "tapestry" | "other_art" | "table" | "chair" | "sofa_loveseat_chaise" | "floor_lamp" | "floor_lamp_shade" | "table_lamp" | "table_lamp_shade" | "sconce" | "ottoman" | "bookcase_storage" | "nightstand" | "armoire_dresser" | "carpet_rug" | "mirror" | "chandelier" | "bedframe" | "headboard" | "desk_vanity" | "media_console" | "other_furniture" | "earrings" | "necklace" | "bracelet" | "ring" | "brooch" | "watch" | "cufflinks" | "eyeglasses" | "set" | "precious_stones" | "snuff_box_cigarette_case" | "other_jewelry" | "vase_vessel" | "bowl" | "plaque" | "object_of_vertu" | "candelabra_candlestick" | "dinnerware" | "flatware" | "glassware" | "serveware" | "porcelain_plate" | "porcelain_bowl" | "tabletop_accessory" | "clock" | "other_decorative_arts" | "stamp" | "book" | "coin" | "document_manuscript" | "toy" | "miniature_model" | "figurine_doll" | "neon_sign" | "memorabilia" | "camera_electrical" | "other_collectibles" | "wine_bottle" | "spirits_bottle" | "beer_bottle" | "wine_case" | "spirits_case" | "beer_case" | "wine_barrel" | "spirits_barrel" | "beer_barrel" | "other_alcohols" | "car" | "motorcycle" | "bus" | "van" | "limousine" | "carriage" | "trailer" | "sidecar" | "other_automotive" | "clothing" | "footwear" | "handbag" | "accessories" | "other_fashion" | "musical_instrument" | "firearm_weapon" | "hunting_fishing" | "medical_equipment" | "other";
239
239
  unit_of_measurement?: (string | null) | undefined;
240
240
  weight_unit?: (string | null) | undefined;
241
- value_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
241
+ value_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
242
242
  }[];
243
243
  packing_materials: ("alcohol_case" | "lay_flat_wine_box" | "blanket" | "wardrobe_box" | "cardboard_box" | "chandelier_box" | "chair_box" | "cbin_closed" | "cbin_open" | "ply_box" | "fine_art_econo_crate" | "fine_art_international_crate" | "econo_crate" | "international_econo_crate" | "furniture_crate" | "international_furniture_crate" | "parcel_crate" | "museum_crate" | "international_museum_crate" | "foam_lined_box" | "cavity_box" | "strongbox" | "double_box" | "travel_frame" | "travel_frame_art" | "travel_frame_other" | "a_frame" | "slat_crate" | "tri_wall_crate" | "lockbox" | "no_packing" | "pallet" | "international_pallet" | "portfolio" | "rug_rolled" | "shadow_box" | "slipcase" | "slipcase_glass_tape" | "poly_cardboard" | "bubble_cardboard" | "garment_bag" | "poly_only" | "dartek_only" | "bubble_only" | "cling_wrap" | "cbin_communal" | "sonotube" | "stabilizing_box" | "shipping_tube_small" | "shipping_tube_large")[];
244
244
  status?: (("pending" | "transit" | "out_for_delivery" | "delivered" | "unknown" | "notfound" | "undelivered" | "exception" | "expired") | null) | undefined;
@@ -260,7 +260,7 @@ export type Shipment = {
260
260
  } | null) | undefined;
261
261
  services?: ({
262
262
  amount: number;
263
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
263
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
264
264
  is_requested?: boolean | undefined;
265
265
  is_required?: boolean | undefined;
266
266
  name: string;
@@ -273,7 +273,7 @@ export type Shipment = {
273
273
  shortcode: string;
274
274
  status: "pending" | "confirmed" | "collected" | "in_transit" | "completed";
275
275
  total: number;
276
- total_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
276
+ total_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
277
277
  url?: (string | null) | undefined;
278
278
  tracking?: ({
279
279
  carrier_name: string;
@@ -347,7 +347,7 @@ export type HostedSession = {
347
347
  subtype: "painting_unframed" | "painting_framed" | "painting_framed_plexi" | "painting_framed_glass" | "work_on_paper_unframed" | "work_on_paper_framed" | "work_on_paper_framed_plexi" | "work_on_paper_framed_glass" | "mixed_media_unframed" | "mixed_media_framed" | "mixed_media_framed_plexi" | "mixed_media_framed_glass" | "photograph_unframed" | "photograph_framed" | "photograph_framed_plexi" | "photograph_framed_glass" | "new_media" | "sculpture" | "pedestal" | "pedestal_case_glass" | "pedestal_case_plexi" | "ceramic" | "neon" | "tapestry" | "other_art" | "table" | "chair" | "sofa_loveseat_chaise" | "floor_lamp" | "floor_lamp_shade" | "table_lamp" | "table_lamp_shade" | "sconce" | "ottoman" | "bookcase_storage" | "nightstand" | "armoire_dresser" | "carpet_rug" | "mirror" | "chandelier" | "bedframe" | "headboard" | "desk_vanity" | "media_console" | "other_furniture" | "earrings" | "necklace" | "bracelet" | "ring" | "brooch" | "watch" | "cufflinks" | "eyeglasses" | "set" | "precious_stones" | "snuff_box_cigarette_case" | "other_jewelry" | "vase_vessel" | "bowl" | "plaque" | "object_of_vertu" | "candelabra_candlestick" | "dinnerware" | "flatware" | "glassware" | "serveware" | "porcelain_plate" | "porcelain_bowl" | "tabletop_accessory" | "clock" | "other_decorative_arts" | "stamp" | "book" | "coin" | "document_manuscript" | "toy" | "miniature_model" | "figurine_doll" | "neon_sign" | "memorabilia" | "camera_electrical" | "other_collectibles" | "wine_bottle" | "spirits_bottle" | "beer_bottle" | "wine_case" | "spirits_case" | "beer_case" | "wine_barrel" | "spirits_barrel" | "beer_barrel" | "other_alcohols" | "car" | "motorcycle" | "bus" | "van" | "limousine" | "carriage" | "trailer" | "sidecar" | "other_automotive" | "clothing" | "footwear" | "handbag" | "accessories" | "other_fashion" | "musical_instrument" | "firearm_weapon" | "hunting_fishing" | "medical_equipment" | "other";
348
348
  unit_of_measurement?: (string | null) | undefined;
349
349
  weight_unit?: (string | null) | undefined;
350
- value_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
350
+ value_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
351
351
  }[];
352
352
  origin: {
353
353
  access_restrictions?: (("elevator_only" | "freight_elevator" | "loading_dock" | "loading_dock_low" | "low_clearance" | "non_paved" | "stairs_only" | "steep_gradient")[] | null) | undefined;
@@ -383,7 +383,7 @@ export type InvoicePayment = {
383
383
  created_at: Date;
384
384
  id: number;
385
385
  amount: number;
386
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
386
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
387
387
  credit_id?: (string | null) | undefined;
388
388
  invoice_id?: (string | null) | undefined;
389
389
  paid_on: Date;
@@ -395,9 +395,9 @@ export type Invoice = {
395
395
  created_at: Date;
396
396
  id: number;
397
397
  amount_owed: number;
398
- amount_owed_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
398
+ amount_owed_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
399
399
  amount_paid: number;
400
- amount_paid_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
400
+ amount_paid_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
401
401
  issued_on?: (Date | null) | undefined;
402
402
  shipment_id?: (string | null) | undefined;
403
403
  status: string;
@@ -437,7 +437,7 @@ export type Payment = {
437
437
  created_at: Date;
438
438
  id: number;
439
439
  amount: number;
440
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
440
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
441
441
  context: "hosted_checkout" | "invoiced";
442
442
  paid_on: Date;
443
443
  };
@@ -504,7 +504,7 @@ export type Webhook = {
504
504
  };
505
505
  export type ArtaService = {
506
506
  amount: number;
507
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
507
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
508
508
  is_requested?: boolean | undefined;
509
509
  is_required?: boolean | undefined;
510
510
  name: string;
@@ -528,7 +528,7 @@ export type Detail = {
528
528
  is_cites?: (boolean | null) | undefined;
529
529
  };
530
530
  export type AdditionalService = "assembly" | "debris_disposal" | "deinstallation" | "destination_additional_labor" | "destination_building_coi" | "destination_condition_check" | "destination_full_condition_report" | "destination_unpacking" | "double_blind_bols" | "installation" | "origin_building_coi" | "origin_condition_check" | "origin_full_condition_report" | "placement" | "signature_delivery" | "tarmac_supervision";
531
- export type SupportedCurrency = "CAD" | "EUR" | "GBP" | "HKD" | "USD";
531
+ export type SupportedCurrency = "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
532
532
  export type ArtaLocation = {
533
533
  access_restrictions?: (("elevator_only" | "freight_elevator" | "loading_dock" | "loading_dock_low" | "low_clearance" | "non_paved" | "stairs_only" | "steep_gradient")[] | null) | undefined;
534
534
  address_line_1?: (string | null) | undefined;
@@ -571,7 +571,7 @@ export type ArtaObject = {
571
571
  subtype: "painting_unframed" | "painting_framed" | "painting_framed_plexi" | "painting_framed_glass" | "work_on_paper_unframed" | "work_on_paper_framed" | "work_on_paper_framed_plexi" | "work_on_paper_framed_glass" | "mixed_media_unframed" | "mixed_media_framed" | "mixed_media_framed_plexi" | "mixed_media_framed_glass" | "photograph_unframed" | "photograph_framed" | "photograph_framed_plexi" | "photograph_framed_glass" | "new_media" | "sculpture" | "pedestal" | "pedestal_case_glass" | "pedestal_case_plexi" | "ceramic" | "neon" | "tapestry" | "other_art" | "table" | "chair" | "sofa_loveseat_chaise" | "floor_lamp" | "floor_lamp_shade" | "table_lamp" | "table_lamp_shade" | "sconce" | "ottoman" | "bookcase_storage" | "nightstand" | "armoire_dresser" | "carpet_rug" | "mirror" | "chandelier" | "bedframe" | "headboard" | "desk_vanity" | "media_console" | "other_furniture" | "earrings" | "necklace" | "bracelet" | "ring" | "brooch" | "watch" | "cufflinks" | "eyeglasses" | "set" | "precious_stones" | "snuff_box_cigarette_case" | "other_jewelry" | "vase_vessel" | "bowl" | "plaque" | "object_of_vertu" | "candelabra_candlestick" | "dinnerware" | "flatware" | "glassware" | "serveware" | "porcelain_plate" | "porcelain_bowl" | "tabletop_accessory" | "clock" | "other_decorative_arts" | "stamp" | "book" | "coin" | "document_manuscript" | "toy" | "miniature_model" | "figurine_doll" | "neon_sign" | "memorabilia" | "camera_electrical" | "other_collectibles" | "wine_bottle" | "spirits_bottle" | "beer_bottle" | "wine_case" | "spirits_case" | "beer_case" | "wine_barrel" | "spirits_barrel" | "beer_barrel" | "other_alcohols" | "car" | "motorcycle" | "bus" | "van" | "limousine" | "carriage" | "trailer" | "sidecar" | "other_automotive" | "clothing" | "footwear" | "handbag" | "accessories" | "other_fashion" | "musical_instrument" | "firearm_weapon" | "hunting_fishing" | "medical_equipment" | "other";
572
572
  unit_of_measurement?: (string | null) | undefined;
573
573
  weight_unit?: (string | null) | undefined;
574
- value_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
574
+ value_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
575
575
  };
576
576
  export type QuoteType = "parcel" | "premium" | "select" | "self_ship";
577
577
  export type Contact = {
@@ -610,7 +610,7 @@ export type Package = {
610
610
  subtype: "painting_unframed" | "painting_framed" | "painting_framed_plexi" | "painting_framed_glass" | "work_on_paper_unframed" | "work_on_paper_framed" | "work_on_paper_framed_plexi" | "work_on_paper_framed_glass" | "mixed_media_unframed" | "mixed_media_framed" | "mixed_media_framed_plexi" | "mixed_media_framed_glass" | "photograph_unframed" | "photograph_framed" | "photograph_framed_plexi" | "photograph_framed_glass" | "new_media" | "sculpture" | "pedestal" | "pedestal_case_glass" | "pedestal_case_plexi" | "ceramic" | "neon" | "tapestry" | "other_art" | "table" | "chair" | "sofa_loveseat_chaise" | "floor_lamp" | "floor_lamp_shade" | "table_lamp" | "table_lamp_shade" | "sconce" | "ottoman" | "bookcase_storage" | "nightstand" | "armoire_dresser" | "carpet_rug" | "mirror" | "chandelier" | "bedframe" | "headboard" | "desk_vanity" | "media_console" | "other_furniture" | "earrings" | "necklace" | "bracelet" | "ring" | "brooch" | "watch" | "cufflinks" | "eyeglasses" | "set" | "precious_stones" | "snuff_box_cigarette_case" | "other_jewelry" | "vase_vessel" | "bowl" | "plaque" | "object_of_vertu" | "candelabra_candlestick" | "dinnerware" | "flatware" | "glassware" | "serveware" | "porcelain_plate" | "porcelain_bowl" | "tabletop_accessory" | "clock" | "other_decorative_arts" | "stamp" | "book" | "coin" | "document_manuscript" | "toy" | "miniature_model" | "figurine_doll" | "neon_sign" | "memorabilia" | "camera_electrical" | "other_collectibles" | "wine_bottle" | "spirits_bottle" | "beer_bottle" | "wine_case" | "spirits_case" | "beer_case" | "wine_barrel" | "spirits_barrel" | "beer_barrel" | "other_alcohols" | "car" | "motorcycle" | "bus" | "van" | "limousine" | "carriage" | "trailer" | "sidecar" | "other_automotive" | "clothing" | "footwear" | "handbag" | "accessories" | "other_fashion" | "musical_instrument" | "firearm_weapon" | "hunting_fishing" | "medical_equipment" | "other";
611
611
  unit_of_measurement?: (string | null) | undefined;
612
612
  weight_unit?: (string | null) | undefined;
613
- value_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
613
+ value_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
614
614
  }[];
615
615
  packing_materials: ("alcohol_case" | "lay_flat_wine_box" | "blanket" | "wardrobe_box" | "cardboard_box" | "chandelier_box" | "chair_box" | "cbin_closed" | "cbin_open" | "ply_box" | "fine_art_econo_crate" | "fine_art_international_crate" | "econo_crate" | "international_econo_crate" | "furniture_crate" | "international_furniture_crate" | "parcel_crate" | "museum_crate" | "international_museum_crate" | "foam_lined_box" | "cavity_box" | "strongbox" | "double_box" | "travel_frame" | "travel_frame_art" | "travel_frame_other" | "a_frame" | "slat_crate" | "tri_wall_crate" | "lockbox" | "no_packing" | "pallet" | "international_pallet" | "portfolio" | "rug_rolled" | "shadow_box" | "slipcase" | "slipcase_glass_tape" | "poly_cardboard" | "bubble_cardboard" | "garment_bag" | "poly_only" | "dartek_only" | "bubble_only" | "cling_wrap" | "cbin_communal" | "sonotube" | "stabilizing_box" | "shipping_tube_small" | "shipping_tube_large")[];
616
616
  status?: (("pending" | "transit" | "out_for_delivery" | "delivered" | "unknown" | "notfound" | "undelivered" | "exception" | "expired") | null) | undefined;
@@ -647,16 +647,16 @@ export type ShipmentTracking = {
647
647
  };
648
648
  export type InsurancePolicy = {
649
649
  amount: number;
650
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
650
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
651
651
  id: string;
652
652
  insured_value: number;
653
- insured_value_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
653
+ insured_value_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
654
654
  };
655
655
  export type Quote = {
656
656
  id: number;
657
657
  included_services: {
658
658
  amount: number;
659
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
659
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
660
660
  is_requested?: boolean | undefined;
661
661
  is_required?: boolean | undefined;
662
662
  name: string;
@@ -667,14 +667,14 @@ export type Quote = {
667
667
  }[];
668
668
  included_insurance_policy?: ({
669
669
  amount: number;
670
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
670
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
671
671
  id: string;
672
672
  insured_value: number;
673
- insured_value_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
673
+ insured_value_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
674
674
  } | null) | undefined;
675
675
  optional_services: {
676
676
  amount: number;
677
- amount_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
677
+ amount_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
678
678
  is_requested?: boolean | undefined;
679
679
  is_required?: boolean | undefined;
680
680
  name: string;
@@ -686,7 +686,7 @@ export type Quote = {
686
686
  quote_type: "parcel" | "premium" | "select" | "self_ship";
687
687
  status: string;
688
688
  total: number;
689
- total_currency: "CAD" | "EUR" | "GBP" | "HKD" | "USD";
689
+ total_currency: "CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD";
690
690
  };
691
691
  export type QuoteRequestListItem = {
692
692
  updated_at: Date;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artaio/node-api",
3
- "version": "1.1.0",
3
+ "version": "1.2.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.1.0",
3
+ "version": "1.2.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",