@artaio/node-api 1.0.1 → 1.1.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.
@@ -165,6 +165,7 @@ export type Shipment = {
165
165
  estimated_city?: string | undefined;
166
166
  };
167
167
  eei_form_status?: (("pending" | "cleared" | "approved" | "rejected" | "submitted") | null) | undefined;
168
+ eei_form_url?: (string | null) | undefined;
168
169
  emissions?: (number | null) | undefined;
169
170
  emissions_unit?: (string | null) | undefined;
170
171
  exceptions?: ({
package/dist/lib/utils.js CHANGED
@@ -11,13 +11,14 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.parseService = exports.convertDatesToUtc = exports.createDateAsUTC = void 0;
14
+ exports.parseService = void 0;
15
+ exports.createDateAsUTC = createDateAsUTC;
16
+ exports.convertDatesToUtc = convertDatesToUtc;
15
17
  function createDateAsUTC(dateStr) {
16
18
  var date = new Date(dateStr);
17
19
  var timestamp = Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
18
20
  return new Date(timestamp);
19
21
  }
20
- exports.createDateAsUTC = createDateAsUTC;
21
22
  function convertDatesToUtc(artaResponse) {
22
23
  return __assign(__assign({}, artaResponse), { created_at: artaResponse.created_at
23
24
  ? createDateAsUTC(artaResponse.created_at)
@@ -25,7 +26,6 @@ function convertDatesToUtc(artaResponse) {
25
26
  ? createDateAsUTC(artaResponse.updated_at)
26
27
  : undefined });
27
28
  }
28
- exports.convertDatesToUtc = convertDatesToUtc;
29
29
  var parseService = function (s) {
30
30
  s.amount = Number(s.amount);
31
31
  if (s.included_services) {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artaio/node-api",
3
- "version": "1.0.1",
3
+ "version": "1.1.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.0.1",
3
+ "version": "1.1.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",