@shipengine/connect-carrier-api 2.4.1 → 2.4.4

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.
@@ -1,4 +1,5 @@
1
1
  import Joi from 'joi';
2
+ /** @description The times each day that the relay point is open, for example: "11:00-13:00, 14:30-19:30" */
2
3
  export declare class OpeningTimes {
3
4
  monday: string;
4
5
  tuesday: string;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpeningTimesSchema = exports.OpeningTimes = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ /** @description The times each day that the relay point is open, for example: "11:00-13:00, 14:30-19:30" */
6
7
  class OpeningTimes {
7
8
  }
8
9
  exports.OpeningTimes = OpeningTimes;
@@ -1 +1 @@
1
- {"version":3,"file":"opening-times.js","sourceRoot":"","sources":["../../../src/models/relay-points/opening-times.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,MAAa,YAAY;CAQxB;AARD,oCAQC;AAEY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACvC,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACxC,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC1C,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACzC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACvC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACzC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CACxC,CAAC,CAAC"}
1
+ {"version":3,"file":"opening-times.js","sourceRoot":"","sources":["../../../src/models/relay-points/opening-times.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,4GAA4G;AAC5G,MAAa,YAAY;CAQxB;AARD,oCAQC;AAEY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACvC,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACxC,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC1C,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACzC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACvC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACzC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CACxC,CAAC,CAAC"}
@@ -3,7 +3,7 @@ import Joi from 'joi';
3
3
  export declare class RelayPointAddress {
4
4
  relay_point_id: string;
5
5
  company_name?: string;
6
- address_line1: string;
6
+ address_lines: string[];
7
7
  city_locality: string;
8
8
  state_province: string;
9
9
  postal_code: string;
@@ -10,7 +10,7 @@ exports.RelayPointAddress = RelayPointAddress;
10
10
  exports.RelayPointAddressSchema = joi_1.default.object({
11
11
  relay_point_id: joi_1.default.string().required(),
12
12
  company_name: joi_1.default.string().optional().empty(),
13
- address_line1: joi_1.default.string().required(),
13
+ address_lines: joi_1.default.array().items(joi_1.default.string()).required(),
14
14
  city_locality: joi_1.default.string().required(),
15
15
  state_province: joi_1.default.string().required(),
16
16
  postal_code: joi_1.default.string().required(),
@@ -1 +1 @@
1
- {"version":3,"file":"relay-point-address.js","sourceRoot":"","sources":["../../../src/models/relay-points/relay-point-address.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,mFAAmF;AACnF,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AAEY,QAAA,uBAAuB,GAAG,aAAG,CAAC,MAAM,CAAC;IAChD,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7C,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
1
+ {"version":3,"file":"relay-point-address.js","sourceRoot":"","sources":["../../../src/models/relay-points/relay-point-address.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,mFAAmF;AACnF,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AAEY,QAAA,uBAAuB,GAAG,aAAG,CAAC,MAAM,CAAC;IAChD,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7C,aAAa,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzD,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
@@ -4,8 +4,8 @@ import { OpeningTimes } from './opening-times';
4
4
  /** @description Basic structure for a relay point */
5
5
  export declare class RelayPoint extends RelayPointAddress {
6
6
  phone?: string;
7
- long?: number;
8
- lat?: number;
7
+ longitude?: number;
8
+ latitude?: number;
9
9
  opening_times: OpeningTimes;
10
10
  }
11
11
  export declare const RelayPointSchema: Joi.ObjectSchema<any>;
@@ -10,9 +10,9 @@ class RelayPoint extends relay_point_address_1.RelayPointAddress {
10
10
  }
11
11
  exports.RelayPoint = RelayPoint;
12
12
  exports.RelayPointSchema = relay_point_address_1.RelayPointAddressSchema.keys({
13
- phone: joi_1.default.string().required(),
14
- long: joi_1.default.number().optional(),
15
- lat: joi_1.default.number().optional(),
13
+ phone: joi_1.default.string().optional(),
14
+ longitude: joi_1.default.number().optional(),
15
+ latitude: joi_1.default.number().optional(),
16
16
  opening_times: opening_times_1.OpeningTimesSchema.required(),
17
17
  });
18
18
  //# sourceMappingURL=relay-point.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"relay-point.js","sourceRoot":"","sources":["../../../src/models/relay-points/relay-point.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,+DAAmF;AACnF,mDAAmE;AAEnE,qDAAqD;AACrD,MAAa,UAAW,SAAQ,uCAAiB;CAKhD;AALD,gCAKC;AAEY,QAAA,gBAAgB,GAAG,6CAAuB,CAAC,IAAI,CAAC;IAC3D,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,GAAG,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,kCAAkB,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC"}
1
+ {"version":3,"file":"relay-point.js","sourceRoot":"","sources":["../../../src/models/relay-points/relay-point.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,+DAAmF;AACnF,mDAAmE;AAEnE,qDAAqD;AACrD,MAAa,UAAW,SAAQ,uCAAiB;CAKhD;AALD,gCAKC;AAEY,QAAA,gBAAgB,GAAG,6CAAuB,CAAC,IAAI,CAAC;IAC3D,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,kCAAkB,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { BaseRequest } from './base-request';
2
+ /** @description Basic structure for a request to get relay points */
2
3
  export declare class GetRelayPointsRequest extends BaseRequest {
3
4
  service_code: string;
4
5
  postal_code: string;
5
6
  country_code: string;
7
+ city_locality?: string;
6
8
  }
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetRelayPointsRequest = void 0;
4
4
  const base_request_1 = require("./base-request");
5
+ /** @description Basic structure for a request to get relay points */
5
6
  class GetRelayPointsRequest extends base_request_1.BaseRequest {
6
7
  }
7
8
  exports.GetRelayPointsRequest = GetRelayPointsRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"get-relay-points-request.js","sourceRoot":"","sources":["../../src/requests/get-relay-points-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,MAAa,qBAAsB,SAAQ,0BAAW;CAIrD;AAJD,sDAIC"}
1
+ {"version":3,"file":"get-relay-points-request.js","sourceRoot":"","sources":["../../src/requests/get-relay-points-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,qEAAqE;AACrE,MAAa,qBAAsB,SAAQ,0BAAW;CAKrD;AALD,sDAKC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "2.4.1",
3
+ "version": "2.4.4",
4
4
  "description": "This is the typescript/javascript definitions for carrier api",
5
5
  "homepage": "https://github.com/ShipEngine/connect",
6
6
  "main": "./lib/index.js",