@shipengine/connect-carrier-api 2.6.2 → 2.7.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.
Files changed (72) hide show
  1. package/lib/app/carrier-app-definition.d.ts +12 -2
  2. package/lib/app/carrier-app.js +10 -0
  3. package/lib/app/carrier-app.js.map +1 -1
  4. package/lib/app/constants.d.ts +3 -1
  5. package/lib/app/constants.js +2 -0
  6. package/lib/app/constants.js.map +1 -1
  7. package/lib/app/metadata/service-point-feature.d.ts +9 -0
  8. package/lib/app/metadata/service-point-feature.js +15 -0
  9. package/lib/app/metadata/service-point-feature.js.map +1 -0
  10. package/lib/models/addresses/service-point-address.d.ts +7 -0
  11. package/lib/models/addresses/service-point-address.js +9 -0
  12. package/lib/models/addresses/service-point-address.js.map +1 -0
  13. package/lib/models/service-points/hours-of-operation.d.ts +9 -0
  14. package/lib/models/service-points/hours-of-operation.js +14 -0
  15. package/lib/models/service-points/hours-of-operation.js.map +1 -0
  16. package/lib/models/service-points/index.d.ts +3 -0
  17. package/lib/models/service-points/index.js +7 -0
  18. package/lib/models/service-points/index.js.map +1 -0
  19. package/lib/models/service-points/search-radius-unit.d.ts +5 -0
  20. package/lib/models/service-points/search-radius-unit.js +10 -0
  21. package/lib/models/service-points/search-radius-unit.js.map +1 -0
  22. package/lib/models/service-points/search-radius.d.ts +12 -0
  23. package/lib/models/service-points/search-radius.js +8 -0
  24. package/lib/models/service-points/search-radius.js.map +1 -0
  25. package/lib/models/service-points/service-point-response-address.d.ts +8 -0
  26. package/lib/models/service-points/service-point-response-address.js +23 -0
  27. package/lib/models/service-points/service-point-response-address.js.map +1 -0
  28. package/lib/models/service-points/service-point.d.ts +16 -0
  29. package/lib/models/service-points/service-point.js +19 -0
  30. package/lib/models/service-points/service-point.js.map +1 -0
  31. package/lib/models/service-points/weekly-hours-of-operation.d.ts +13 -0
  32. package/lib/models/service-points/weekly-hours-of-operation.js +20 -0
  33. package/lib/models/service-points/weekly-hours-of-operation.js.map +1 -0
  34. package/lib/requests/get-service-point-request.d.ts +8 -0
  35. package/lib/requests/get-service-point-request.js +9 -0
  36. package/lib/requests/get-service-point-request.js.map +1 -0
  37. package/lib/requests/get-service-points-request.d.ts +14 -0
  38. package/lib/requests/get-service-points-request.js +9 -0
  39. package/lib/requests/get-service-points-request.js.map +1 -0
  40. package/lib/requests/index.d.ts +2 -0
  41. package/lib/requests/index.js +2 -0
  42. package/lib/requests/index.js.map +1 -1
  43. package/lib/responses/get-service-point-response.d.ts +8 -0
  44. package/lib/responses/get-service-point-response.js +13 -0
  45. package/lib/responses/get-service-point-response.js.map +1 -0
  46. package/lib/responses/get-service-points-response.d.ts +9 -0
  47. package/lib/responses/get-service-points-response.js +15 -0
  48. package/lib/responses/get-service-points-response.js.map +1 -0
  49. package/lib/responses/index.d.ts +2 -0
  50. package/lib/responses/index.js +2 -0
  51. package/lib/responses/index.js.map +1 -1
  52. package/package.json +1 -1
  53. package/spec.json +3871 -4044
  54. package/src/app/carrier-app-definition.ts +18 -0
  55. package/src/app/carrier-app.ts +14 -0
  56. package/src/app/constants.ts +2 -0
  57. package/src/app/metadata/service-point-feature.ts +13 -0
  58. package/src/models/addresses/service-point-address.ts +8 -0
  59. package/src/models/service-points/hours-of-operation.ts +14 -0
  60. package/src/models/service-points/index.ts +3 -0
  61. package/src/models/service-points/search-radius-unit.ts +5 -0
  62. package/src/models/service-points/search-radius.ts +13 -0
  63. package/src/models/service-points/service-point-response-address.ts +21 -0
  64. package/src/models/service-points/service-point.ts +29 -0
  65. package/src/models/service-points/weekly-hours-of-operation.ts +23 -0
  66. package/src/requests/get-service-point-request.ts +9 -0
  67. package/src/requests/get-service-points-request.ts +15 -0
  68. package/src/requests/index.ts +2 -0
  69. package/src/responses/get-service-point-response.ts +12 -0
  70. package/src/responses/get-service-points-response.ts +13 -0
  71. package/src/responses/index.ts +2 -0
  72. package/tsconfig.tsbuildinfo +1 -1
@@ -1,5 +1,5 @@
1
- import { RegisterRequest, CreateLabelRequest, VoidLabelsRequest, CreateManifestRequest, GetManifestRequest, SchedulePickupRequest, CancelPickupRequest, GetRatesRequest, TrackingRequest, CancelNotificationRequest, CreateNotificationRequest, ValidateInboundDataRequest, NormalizeTrackingDataRequest, GetRelayPointsRequest } from '../requests';
2
- import { RegisterResponse, CreateLabelResponse, VoidLabelsResponse, CreateManifestResponse, SchedulePickupResponse, CancelPickupResponse, GetRatesResponse, TrackingResponse, CancelNotificationResponse, CreateNotificationResponse, ValidateInboundDataResponse, NormalizeTrackingDataResponse, GetRelayPointsResponse } from '../responses';
1
+ import { RegisterRequest, CreateLabelRequest, VoidLabelsRequest, CreateManifestRequest, GetManifestRequest, SchedulePickupRequest, CancelPickupRequest, GetRatesRequest, TrackingRequest, CancelNotificationRequest, CreateNotificationRequest, ValidateInboundDataRequest, NormalizeTrackingDataRequest, GetRelayPointsRequest, GetServicePointsRequest, GetServicePointRequest } from '../requests';
2
+ import { RegisterResponse, CreateLabelResponse, VoidLabelsResponse, CreateManifestResponse, SchedulePickupResponse, CancelPickupResponse, GetRatesResponse, TrackingResponse, CancelNotificationResponse, CreateNotificationResponse, ValidateInboundDataResponse, NormalizeTrackingDataResponse, GetRelayPointsResponse, GetServicePointsResponse, GetServicePointResponse } from '../responses';
3
3
  import { CarrierAppMetadata } from './metadata/carrier-app-metadata';
4
4
  /**
5
5
  * @description This defines a connect carrier app
@@ -76,4 +76,14 @@ export interface CarrierAppDefinition {
76
76
  * @param request Data needed by the provider about the relay points to be returned
77
77
  */
78
78
  GetRelayPoints?: (request: GetRelayPointsRequest) => GetRelayPointsResponse | Promise<GetRelayPointsResponse>;
79
+ /**
80
+ * @description This endpoint is used to get carrier service points
81
+ * @param request Data needed by the provider about the service points to be returned
82
+ */
83
+ GetServicePoints?: (request: GetServicePointsRequest) => GetServicePointsResponse | Promise<GetServicePointsResponse>;
84
+ /**
85
+ * @description This endpoint is used to get a carrier service point by id
86
+ * @param request Data needed by the provider about the service point to be returned
87
+ */
88
+ GetServicePoint?: (request: GetServicePointRequest) => GetServicePointResponse | Promise<GetServicePointResponse>;
79
89
  }
@@ -73,6 +73,16 @@ class CarrierApp {
73
73
  constants_1.ApiEndpoints.GetRelayPoints,
74
74
  definition.GetRelayPoints,
75
75
  responses_1.GetRelayPointsResponseSchema,
76
+ ], [
77
+ internal_1.Method.POST,
78
+ constants_1.ApiEndpoints.GetServicePoints,
79
+ definition.GetServicePoints,
80
+ responses_1.GetServicePointsResponseSchema,
81
+ ], [
82
+ internal_1.Method.POST,
83
+ constants_1.ApiEndpoints.GetServicePoint,
84
+ definition.GetServicePoint,
85
+ responses_1.GetServicePointResponseSchema,
76
86
  ]).forEach(([method, path, implementation, schema]) => {
77
87
  if (implementation) {
78
88
  this.routes.push({
@@ -1 +1 @@
1
- {"version":3,"file":"carrier-app.js","sourceRoot":"","sources":["../../src/app/carrier-app.ts"],"names":[],"mappings":";;;AACA,yCAA6E;AAC7E,2CAA2C;AAC3C,kCAA+C;AAE/C,kDAA+C;AAE/C,yCAAsD;AACtD,4CAcsB;AAGtB,MAAM,aAAa,GAAG,CAAC,cAAyB,EAAO,EAAE;IACvD,IAAI,cAAc,EAAE;QAClB,OAAO,KAAK,EAAE,OAAY,EAAE,EAAE;YAC5B,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YACxC,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAClD,MAAM,CAAC,cAAc,GAAG,cAAc,CAAC;YACvC,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;KACH;AACH,CAAC,CAAC;AAEF,MAAa,UAAU;IAMrB,YAAY,UAAgC;QAL5C,WAAM,GAAY,EAAE,CAAC;QAMnB,IAAI,CAAC,qBAAqB,GAAG,GAAG,EAAE;YAChC,MAAM,SAAS,GAA2B,EAAE,CAAC;YAC7C,MAAM,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,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Data = "/ValidateInboundData",
14
14
  NormalizeTrackingData = "/NormalizeTrackingData",
15
- GetRelayPoints = "/GetRelayPoints"
15
+ GetRelayPoints = "/GetRelayPoints",
16
+ GetServicePoints = "/GetServicePoints",
17
+ GetServicePoint = "/GetServicePoint"
16
18
  }
@@ -17,5 +17,7 @@ var ApiEndpoints;
17
17
  ApiEndpoints["ValidateInboundData"] = "/ValidateInboundData";
18
18
  ApiEndpoints["NormalizeTrackingData"] = "/NormalizeTrackingData";
19
19
  ApiEndpoints["GetRelayPoints"] = "/GetRelayPoints";
20
+ ApiEndpoints["GetServicePoints"] = "/GetServicePoints";
21
+ ApiEndpoints["GetServicePoint"] = "/GetServicePoint";
20
22
  })(ApiEndpoints = exports.ApiEndpoints || (exports.ApiEndpoints = {}));
21
23
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAeX;AAfD,WAAY,YAAY;IACtB,sCAAsB,CAAA;IACtB,4CAA4B,CAAA;IAC5B,0CAA0B,CAAA;IAC1B,sCAAsB,CAAA;IACtB,kDAAkC,CAAA;IAClC,4CAA4B,CAAA;IAC5B,kDAAkC,CAAA;IAClC,8CAA8B,CAAA;IAC9B,gCAAgB,CAAA;IAChB,0DAA0C,CAAA;IAC1C,0DAA0C,CAAA;IAC1C,4DAA4C,CAAA;IAC5C,gEAAgD,CAAA;IAChD,kDAAkC,CAAA;AACpC,CAAC,EAfW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAevB"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAiBX;AAjBD,WAAY,YAAY;IACtB,sCAAsB,CAAA;IACtB,4CAA4B,CAAA;IAC5B,0CAA0B,CAAA;IAC1B,sCAAsB,CAAA;IACtB,kDAAkC,CAAA;IAClC,4CAA4B,CAAA;IAC5B,kDAAkC,CAAA;IAClC,8CAA8B,CAAA;IAC9B,gCAAgB,CAAA;IAChB,0DAA0C,CAAA;IAC1C,0DAA0C,CAAA;IAC1C,4DAA4C,CAAA;IAC5C,gEAAgD,CAAA;IAChD,kDAAkC,CAAA;IAClC,sDAAsC,CAAA;IACtC,oDAAoC,CAAA;AACtC,CAAC,EAjBW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAiBvB"}
@@ -0,0 +1,9 @@
1
+ import Joi from 'joi';
2
+ export declare enum ServicePointFeaturesEnum {
3
+ DropOffPoint = "DropOffPoint",
4
+ PickupPoint = "PickupPoint",
5
+ PrintServices = "PrintServices",
6
+ AfterHoursLocker = "AfterHoursLocker",
7
+ AfterHoursDropbox = "AfterHoursDropbox"
8
+ }
9
+ export declare const ServicePointFeaturesEnumSchema: Joi.StringSchema;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServicePointFeaturesEnumSchema = exports.ServicePointFeaturesEnum = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ var ServicePointFeaturesEnum;
7
+ (function (ServicePointFeaturesEnum) {
8
+ ServicePointFeaturesEnum["DropOffPoint"] = "DropOffPoint";
9
+ ServicePointFeaturesEnum["PickupPoint"] = "PickupPoint";
10
+ ServicePointFeaturesEnum["PrintServices"] = "PrintServices";
11
+ ServicePointFeaturesEnum["AfterHoursLocker"] = "AfterHoursLocker";
12
+ ServicePointFeaturesEnum["AfterHoursDropbox"] = "AfterHoursDropbox";
13
+ })(ServicePointFeaturesEnum = exports.ServicePointFeaturesEnum || (exports.ServicePointFeaturesEnum = {}));
14
+ exports.ServicePointFeaturesEnumSchema = joi_1.default.string().valid(...Object.values(ServicePointFeaturesEnum));
15
+ //# sourceMappingURL=service-point-feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-point-feature.js","sourceRoot":"","sources":["../../../src/app/metadata/service-point-feature.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,IAAY,wBAMX;AAND,WAAY,wBAAwB;IAClC,yDAA6B,CAAA;IAC7B,uDAA2B,CAAA;IAC3B,2DAA+B,CAAA;IAC/B,iEAAqC,CAAA;IACrC,mEAAuC,CAAA;AACzC,CAAC,EANW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAMnC;AAEY,QAAA,8BAA8B,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAC9D,GAAG,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAC3C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { LatLong } from '../tracking/lat-long';
2
+ import { AddressBase } from './address-base';
3
+ /** @description The basic address type related to service points */
4
+ export declare class ServicePointAddress extends AddressBase {
5
+ /** @description Geographical location */
6
+ geo?: LatLong;
7
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServicePointAddress = void 0;
4
+ const address_base_1 = require("./address-base");
5
+ /** @description The basic address type related to service points */
6
+ class ServicePointAddress extends address_base_1.AddressBase {
7
+ }
8
+ exports.ServicePointAddress = ServicePointAddress;
9
+ //# sourceMappingURL=service-point-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-point-address.js","sourceRoot":"","sources":["../../../src/models/addresses/service-point-address.ts"],"names":[],"mappings":";;;AACA,iDAA6C;AAE7C,oEAAoE;AACpE,MAAa,mBAAoB,SAAQ,0BAAW;CAGnD;AAHD,kDAGC"}
@@ -0,0 +1,9 @@
1
+ import Joi from 'joi';
2
+ /** @description Indicates a specific time window that a service point is open */
3
+ export declare class HoursOfOperation {
4
+ /** @description The open time expressed in ISO 8601 time only format */
5
+ open?: string;
6
+ /** @description The close time expressed in ISO 8601 time only format */
7
+ close?: string;
8
+ }
9
+ export declare const HoursOfOperationSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HoursOfOperationSchema = exports.HoursOfOperation = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ /** @description Indicates a specific time window that a service point is open */
7
+ class HoursOfOperation {
8
+ }
9
+ exports.HoursOfOperation = HoursOfOperation;
10
+ exports.HoursOfOperationSchema = joi_1.default.object({
11
+ open: joi_1.default.string().optional().empty(),
12
+ close: joi_1.default.string().optional().empty(),
13
+ });
14
+ //# sourceMappingURL=hours-of-operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hours-of-operation.js","sourceRoot":"","sources":["../../../src/models/service-points/hours-of-operation.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,iFAAiF;AACjF,MAAa,gBAAgB;CAK5B;AALD,4CAKC;AAEY,QAAA,sBAAsB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACrC,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CACvC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './service-point';
2
+ export * from './weekly-hours-of-operation';
3
+ export * from './service-point-response-address';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./service-point"), exports);
5
+ tslib_1.__exportStar(require("./weekly-hours-of-operation"), exports);
6
+ tslib_1.__exportStar(require("./service-point-response-address"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/service-points/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,sEAA4C;AAC5C,2EAAiD"}
@@ -0,0 +1,5 @@
1
+ /** @description Unit of measurement for search radius */
2
+ export declare enum SearchRadiusUnit {
3
+ Miles = "miles",
4
+ Kilometers = "kilometers"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchRadiusUnit = void 0;
4
+ /** @description Unit of measurement for search radius */
5
+ var SearchRadiusUnit;
6
+ (function (SearchRadiusUnit) {
7
+ SearchRadiusUnit["Miles"] = "miles";
8
+ SearchRadiusUnit["Kilometers"] = "kilometers";
9
+ })(SearchRadiusUnit = exports.SearchRadiusUnit || (exports.SearchRadiusUnit = {}));
10
+ //# sourceMappingURL=search-radius-unit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-radius-unit.js","sourceRoot":"","sources":["../../../src/models/service-points/search-radius-unit.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,6CAAyB,CAAA;AAC3B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B"}
@@ -0,0 +1,12 @@
1
+ import { SearchRadiusUnit } from './search-radius-unit';
2
+ /** @description Basic structure for service point search radius */
3
+ export declare class SearchRadius {
4
+ /** @description Search radius in miles */
5
+ radius_in_miles?: number;
6
+ /** @description Search radius in kilometers */
7
+ radius_in_kilometers?: number;
8
+ /** @description Search radius in the original unit */
9
+ source_radius?: number;
10
+ /** @description Search radius unit */
11
+ source_radius_unit: SearchRadiusUnit;
12
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchRadius = void 0;
4
+ /** @description Basic structure for service point search radius */
5
+ class SearchRadius {
6
+ }
7
+ exports.SearchRadius = SearchRadius;
8
+ //# sourceMappingURL=search-radius.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-radius.js","sourceRoot":"","sources":["../../../src/models/service-points/search-radius.ts"],"names":[],"mappings":";;;AAEA,mEAAmE;AACnE,MAAa,YAAY;CASxB;AATD,oCASC"}
@@ -0,0 +1,8 @@
1
+ import Joi from 'joi';
2
+ import { ServicePointAddress } from '../addresses/service-point-address';
3
+ /** @description The address information corresponding to a specific service point */
4
+ export declare class ServicePointResponseAddress extends ServicePointAddress {
5
+ /** @description Description of the location */
6
+ description?: string;
7
+ }
8
+ export declare const ServicePointResponseAddressSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServicePointResponseAddressSchema = exports.ServicePointResponseAddress = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const service_point_address_1 = require("../addresses/service-point-address");
7
+ const lat_long_1 = require("../tracking/lat-long");
8
+ /** @description The address information corresponding to a specific service point */
9
+ class ServicePointResponseAddress extends service_point_address_1.ServicePointAddress {
10
+ }
11
+ exports.ServicePointResponseAddress = ServicePointResponseAddress;
12
+ exports.ServicePointResponseAddressSchema = joi_1.default.object({
13
+ phone_number: joi_1.default.string().optional().empty(),
14
+ company_name: joi_1.default.string().optional().empty(),
15
+ description: joi_1.default.string().optional().empty(),
16
+ geo: lat_long_1.LatLongSchema.optional(),
17
+ address_lines: joi_1.default.array().items(joi_1.default.string()).required(),
18
+ city_locality: joi_1.default.string().required(),
19
+ state_province: joi_1.default.string().required(),
20
+ postal_code: joi_1.default.string().required(),
21
+ country_code: joi_1.default.string().required(),
22
+ });
23
+ //# sourceMappingURL=service-point-response-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-point-response-address.js","sourceRoot":"","sources":["../../../src/models/service-points/service-point-response-address.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,8EAAyE;AACzE,mDAAqD;AAErD,qFAAqF;AACrF,MAAa,2BAA4B,SAAQ,2CAAmB;CAGnE;AAHD,kEAGC;AAEY,QAAA,iCAAiC,GAAG,aAAG,CAAC,MAAM,CAAC;IAC1D,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7C,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC5C,GAAG,EAAE,wBAAa,CAAC,QAAQ,EAAE;IAC7B,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"}
@@ -0,0 +1,16 @@
1
+ import Joi from 'joi';
2
+ import { ServicePointFeaturesEnum } from '../../app/metadata/service-point-feature';
3
+ import { ServicePointResponseAddress } from './service-point-response-address';
4
+ import { WeeklyHoursOfOperation } from './weekly-hours-of-operation';
5
+ /** @description Basic structure for a service point */
6
+ export declare class ServicePoint {
7
+ /** @description The identifier for the carrier's service point */
8
+ service_point_id: string;
9
+ /** @description The address where the service point is located */
10
+ address: ServicePointResponseAddress;
11
+ /** @description Weekly hours of operation for the service point */
12
+ hours_of_operation: WeeklyHoursOfOperation;
13
+ /** @description Features supported by the service point */
14
+ features?: ServicePointFeaturesEnum[];
15
+ }
16
+ export declare const ServicePointSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServicePointSchema = exports.ServicePoint = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const service_point_feature_1 = require("../../app/metadata/service-point-feature");
7
+ const service_point_response_address_1 = require("./service-point-response-address");
8
+ const weekly_hours_of_operation_1 = require("./weekly-hours-of-operation");
9
+ /** @description Basic structure for a service point */
10
+ class ServicePoint {
11
+ }
12
+ exports.ServicePoint = ServicePoint;
13
+ exports.ServicePointSchema = joi_1.default.object({
14
+ service_point_id: joi_1.default.string().required(),
15
+ address: service_point_response_address_1.ServicePointResponseAddressSchema.required(),
16
+ hours_of_operation: weekly_hours_of_operation_1.WeeklyHoursOfOperationSchema.required(),
17
+ features: joi_1.default.array().items(service_point_feature_1.ServicePointFeaturesEnumSchema).optional(),
18
+ });
19
+ //# sourceMappingURL=service-point.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-point.js","sourceRoot":"","sources":["../../../src/models/service-points/service-point.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,oFAGkD;AAClD,qFAG0C;AAC1C,2EAAmG;AAEnG,uDAAuD;AACvD,MAAa,YAAY;CASxB;AATD,oCASC;AAEY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC3C,gBAAgB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,kEAAiC,CAAC,QAAQ,EAAE;IACrD,kBAAkB,EAAE,wDAA4B,CAAC,QAAQ,EAAE;IAC3D,QAAQ,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,sDAA8B,CAAC,CAAC,QAAQ,EAAE;CACvE,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import Joi from 'joi';
2
+ import { HoursOfOperation } from './hours-of-operation';
3
+ /** @description The times during the week that the relay point is open */
4
+ export declare class WeeklyHoursOfOperation {
5
+ monday?: HoursOfOperation[];
6
+ tuesday?: HoursOfOperation[];
7
+ wednesday?: HoursOfOperation[];
8
+ thursday?: HoursOfOperation[];
9
+ friday?: HoursOfOperation[];
10
+ saturday?: HoursOfOperation[];
11
+ sunday?: HoursOfOperation[];
12
+ }
13
+ export declare const WeeklyHoursOfOperationSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WeeklyHoursOfOperationSchema = exports.WeeklyHoursOfOperation = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const hours_of_operation_1 = require("./hours-of-operation");
7
+ /** @description The times during the week that the relay point is open */
8
+ class WeeklyHoursOfOperation {
9
+ }
10
+ exports.WeeklyHoursOfOperation = WeeklyHoursOfOperation;
11
+ exports.WeeklyHoursOfOperationSchema = joi_1.default.object({
12
+ monday: hours_of_operation_1.HoursOfOperationSchema.optional(),
13
+ tuesday: hours_of_operation_1.HoursOfOperationSchema.optional(),
14
+ wednesday: hours_of_operation_1.HoursOfOperationSchema.optional(),
15
+ thursday: hours_of_operation_1.HoursOfOperationSchema.optional(),
16
+ friday: hours_of_operation_1.HoursOfOperationSchema.optional(),
17
+ saturday: hours_of_operation_1.HoursOfOperationSchema.optional(),
18
+ sunday: hours_of_operation_1.HoursOfOperationSchema.optional(),
19
+ });
20
+ //# sourceMappingURL=weekly-hours-of-operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weekly-hours-of-operation.js","sourceRoot":"","sources":["../../../src/models/service-points/weekly-hours-of-operation.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,6DAAgF;AAEhF,0EAA0E;AAC1E,MAAa,sBAAsB;CAQlC;AARD,wDAQC;AAEY,QAAA,4BAA4B,GAAG,aAAG,CAAC,MAAM,CAAC;IACrD,MAAM,EAAE,2CAAsB,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,2CAAsB,CAAC,QAAQ,EAAE;IAC1C,SAAS,EAAE,2CAAsB,CAAC,QAAQ,EAAE;IAC5C,QAAQ,EAAE,2CAAsB,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,2CAAsB,CAAC,QAAQ,EAAE;IACzC,QAAQ,EAAE,2CAAsB,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,2CAAsB,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { BaseRequest } from './base-request';
2
+ /** @description Basic structure for a request to get a single service point by id */
3
+ export declare class GetServicePointRequest extends BaseRequest {
4
+ /** @description The service point id to get */
5
+ service_point_id: string;
6
+ /** @description The two character country code of the service point. The codes are specified by ISO 3166-1 alpha-2 */
7
+ country_code: string;
8
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServicePointRequest = void 0;
4
+ const base_request_1 = require("./base-request");
5
+ /** @description Basic structure for a request to get a single service point by id */
6
+ class GetServicePointRequest extends base_request_1.BaseRequest {
7
+ }
8
+ exports.GetServicePointRequest = GetServicePointRequest;
9
+ //# sourceMappingURL=get-service-point-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-service-point-request.js","sourceRoot":"","sources":["../../src/requests/get-service-point-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,qFAAqF;AACrF,MAAa,sBAAuB,SAAQ,0BAAW;CAKtD;AALD,wDAKC"}
@@ -0,0 +1,14 @@
1
+ import { ServicePointAddress } from '../models/addresses/service-point-address';
2
+ import { SearchRadius } from '../models/service-points/search-radius';
3
+ import { BaseRequest } from './base-request';
4
+ /** @description Basic structure for a request to get service points */
5
+ export declare class GetServicePointsRequest extends BaseRequest {
6
+ /** @description The service code uniquely identifies a shipping service */
7
+ service_code?: string;
8
+ /** @description The address input for searching nearby carrier service points */
9
+ address: ServicePointAddress;
10
+ /** @description The desired search radius around the given address */
11
+ search_radius?: SearchRadius;
12
+ /** @description The maximum number of service points to return */
13
+ max_results?: number;
14
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServicePointsRequest = void 0;
4
+ const base_request_1 = require("./base-request");
5
+ /** @description Basic structure for a request to get service points */
6
+ class GetServicePointsRequest extends base_request_1.BaseRequest {
7
+ }
8
+ exports.GetServicePointsRequest = GetServicePointsRequest;
9
+ //# sourceMappingURL=get-service-points-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-service-points-request.js","sourceRoot":"","sources":["../../src/requests/get-service-points-request.ts"],"names":[],"mappings":";;;AAEA,iDAA6C;AAE7C,uEAAuE;AACvE,MAAa,uBAAwB,SAAQ,0BAAW;CASvD;AATD,0DASC"}
@@ -12,3 +12,5 @@ export * from './cancel-notification-request';
12
12
  export * from './validate-inbound-data-request';
13
13
  export * from './normalize-tracking-data-request';
14
14
  export * from './get-relay-points-request';
15
+ export * from './get-service-points-request';
16
+ export * from './get-service-point-request';
@@ -15,4 +15,6 @@ tslib_1.__exportStar(require("./cancel-notification-request"), exports);
15
15
  tslib_1.__exportStar(require("./validate-inbound-data-request"), exports);
16
16
  tslib_1.__exportStar(require("./normalize-tracking-data-request"), exports);
17
17
  tslib_1.__exportStar(require("./get-relay-points-request"), exports);
18
+ tslib_1.__exportStar(require("./get-service-points-request"), exports);
19
+ tslib_1.__exportStar(require("./get-service-point-request"), exports);
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;AAAA,kEAAwC;AACxC,iEAAuC;AACvC,oEAA0C;AAC1C,iEAAuC;AACvC,8DAAoC;AACpC,6DAAmC;AACnC,oEAA0C;AAC1C,6DAAmC;AACnC,gEAAsC;AACtC,wEAA8C;AAC9C,wEAA8C;AAC9C,0EAAgD;AAChD,4EAAkD;AAClD,qEAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;AAAA,kEAAwC;AACxC,iEAAuC;AACvC,oEAA0C;AAC1C,iEAAuC;AACvC,8DAAoC;AACpC,6DAAmC;AACnC,oEAA0C;AAC1C,6DAAmC;AACnC,gEAAsC;AACtC,wEAA8C;AAC9C,wEAA8C;AAC9C,0EAAgD;AAChD,4EAAkD;AAClD,qEAA2C;AAC3C,uEAA6C;AAC7C,sEAA4C"}
@@ -0,0 +1,8 @@
1
+ import { BaseResponse } from './base-response';
2
+ import { ServicePoint } from '../models/service-points';
3
+ /** @description Basic structure for a response to get a single service point by id */
4
+ export declare class GetServicePointResponse extends BaseResponse {
5
+ /** @description The resulting service point */
6
+ service_point: ServicePoint;
7
+ }
8
+ export declare const GetServicePointResponseSchema: import("joi").ObjectSchema<any>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServicePointResponseSchema = exports.GetServicePointResponse = void 0;
4
+ const base_response_1 = require("./base-response");
5
+ const service_points_1 = require("../models/service-points");
6
+ /** @description Basic structure for a response to get a single service point by id */
7
+ class GetServicePointResponse extends base_response_1.BaseResponse {
8
+ }
9
+ exports.GetServicePointResponse = GetServicePointResponse;
10
+ exports.GetServicePointResponseSchema = base_response_1.BaseResponseSchema.keys({
11
+ service_point: service_points_1.ServicePointSchema.required(),
12
+ });
13
+ //# sourceMappingURL=get-service-point-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-service-point-response.js","sourceRoot":"","sources":["../../src/responses/get-service-point-response.ts"],"names":[],"mappings":";;;AAAA,mDAAmE;AACnE,6DAA4E;AAE5E,sFAAsF;AACtF,MAAa,uBAAwB,SAAQ,4BAAY;CAGxD;AAHD,0DAGC;AAEY,QAAA,6BAA6B,GAAG,kCAAkB,CAAC,IAAI,CAAC;IACnE,aAAa,EAAE,mCAAkB,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { BaseResponse } from './base-response';
2
+ import Joi from 'joi';
3
+ import { ServicePoint } from '../models/service-points';
4
+ /** @description Basic structure for a response to get service points */
5
+ export declare class GetServicePointsResponse extends BaseResponse {
6
+ /** @description The resulting service points */
7
+ service_points: ServicePoint[];
8
+ }
9
+ export declare const GetServicePointsResponseSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServicePointsResponseSchema = exports.GetServicePointsResponse = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const base_response_1 = require("./base-response");
6
+ const joi_1 = tslib_1.__importDefault(require("joi"));
7
+ const service_points_1 = require("../models/service-points");
8
+ /** @description Basic structure for a response to get service points */
9
+ class GetServicePointsResponse extends base_response_1.BaseResponse {
10
+ }
11
+ exports.GetServicePointsResponse = GetServicePointsResponse;
12
+ exports.GetServicePointsResponseSchema = base_response_1.BaseResponseSchema.keys({
13
+ service_points: joi_1.default.array().required().items(service_points_1.ServicePointSchema),
14
+ });
15
+ //# sourceMappingURL=get-service-points-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-service-points-response.js","sourceRoot":"","sources":["../../src/responses/get-service-points-response.ts"],"names":[],"mappings":";;;;AAAA,mDAAmE;AACnE,sDAAsB;AACtB,6DAA4E;AAE5E,wEAAwE;AACxE,MAAa,wBAAyB,SAAQ,4BAAY;CAGzD;AAHD,4DAGC;AAEY,QAAA,8BAA8B,GAAG,kCAAkB,CAAC,IAAI,CAAC;IACpE,cAAc,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,mCAAkB,CAAC;CACjE,CAAC,CAAC"}
@@ -12,3 +12,5 @@ export * from './create-notification-response';
12
12
  export * from './validate-inbound-data-response';
13
13
  export * from './normalize-tracking-data-response';
14
14
  export * from './get-relay-points-response';
15
+ export * from './get-service-points-response';
16
+ export * from './get-service-point-response';
@@ -15,4 +15,6 @@ tslib_1.__exportStar(require("./create-notification-response"), exports);
15
15
  tslib_1.__exportStar(require("./validate-inbound-data-response"), exports);
16
16
  tslib_1.__exportStar(require("./normalize-tracking-data-response"), exports);
17
17
  tslib_1.__exportStar(require("./get-relay-points-response"), exports);
18
+ tslib_1.__exportStar(require("./get-service-points-response"), exports);
19
+ tslib_1.__exportStar(require("./get-service-point-response"), exports);
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/responses/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,kEAAwC;AACxC,qEAA2C;AAC3C,+DAAqC;AACrC,8DAAoC;AACpC,qEAA2C;AAC3C,8DAAoC;AACpC,iEAAuC;AACvC,2DAAiC;AACjC,yEAA+C;AAC/C,yEAA+C;AAC/C,2EAAiD;AACjD,6EAAmD;AACnD,sEAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/responses/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,kEAAwC;AACxC,qEAA2C;AAC3C,+DAAqC;AACrC,8DAAoC;AACpC,qEAA2C;AAC3C,8DAAoC;AACpC,iEAAuC;AACvC,2DAAiC;AACjC,yEAA+C;AAC/C,yEAA+C;AAC/C,2EAAiD;AACjD,6EAAmD;AACnD,sEAA4C;AAC5C,wEAA8C;AAC9C,uEAA6C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "2.6.2",
3
+ "version": "2.7.0",
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",