@shipengine/connect-carrier-api 4.16.6 → 4.16.7

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 (60) hide show
  1. package/lib/app/carrier-app-definition.d.ts +7 -2
  2. package/lib/app/constants.d.ts +2 -1
  3. package/lib/app/constants.js +1 -0
  4. package/lib/app/constants.js.map +1 -1
  5. package/lib/app/create-endpoint-mapping.js +1 -0
  6. package/lib/app/create-endpoint-mapping.js.map +1 -1
  7. package/lib/models/addresses/pickup-address.d.ts +3 -0
  8. package/lib/models/addresses/pickup-address.js +8 -0
  9. package/lib/models/addresses/pickup-address.js.map +1 -0
  10. package/lib/models/labels/void-request.d.ts +0 -2
  11. package/lib/models/labels/void-request.js +0 -2
  12. package/lib/models/labels/void-request.js.map +1 -1
  13. package/lib/models/manifests/manifest-request-shipment.d.ts +0 -1
  14. package/lib/models/manifests/manifest-request-shipment.js +0 -1
  15. package/lib/models/manifests/manifest-request-shipment.js.map +1 -1
  16. package/lib/models/pickup/pickup-schema.d.ts +2 -0
  17. package/lib/models/pickup/pickup-schema.js +11 -0
  18. package/lib/models/pickup/pickup-schema.js.map +1 -0
  19. package/lib/models/pickup/pickup.d.ts +5 -0
  20. package/lib/models/pickup/pickup.js +10 -0
  21. package/lib/models/pickup/pickup.js.map +1 -0
  22. package/lib/models/pickup/shipped-shipment.d.ts +2 -0
  23. package/lib/models/pickup/shipped-shipment.js +2 -0
  24. package/lib/models/pickup/shipped-shipment.js.map +1 -1
  25. package/lib/models/tracking/index.d.ts +2 -0
  26. package/lib/models/tracking/index.js +2 -0
  27. package/lib/models/tracking/index.js.map +1 -1
  28. package/lib/requests/index.d.ts +1 -0
  29. package/lib/requests/index.js +1 -0
  30. package/lib/requests/index.js.map +1 -1
  31. package/lib/requests/list-pickups-request.d.ts +9 -0
  32. package/lib/requests/list-pickups-request.js +12 -0
  33. package/lib/requests/list-pickups-request.js.map +1 -0
  34. package/lib/responses/index.d.ts +2 -0
  35. package/lib/responses/index.js +2 -0
  36. package/lib/responses/index.js.map +1 -1
  37. package/lib/responses/list-pickups-response-schema.d.ts +1 -0
  38. package/lib/responses/list-pickups-response-schema.js +9 -0
  39. package/lib/responses/list-pickups-response-schema.js.map +1 -0
  40. package/lib/responses/list-pickups-response.d.ts +6 -0
  41. package/lib/responses/list-pickups-response.js +10 -0
  42. package/lib/responses/list-pickups-response.js.map +1 -0
  43. package/package.json +1 -1
  44. package/spec.json +501 -441
  45. package/src/app/carrier-app-definition.ts +7 -0
  46. package/src/app/constants.ts +1 -0
  47. package/src/app/create-endpoint-mapping.ts +1 -0
  48. package/src/models/addresses/pickup-address.ts +3 -0
  49. package/src/models/labels/void-request.ts +0 -2
  50. package/src/models/manifests/manifest-request-shipment.ts +0 -1
  51. package/src/models/pickup/pickup-schema.ts +7 -0
  52. package/src/models/pickup/pickup.ts +5 -0
  53. package/src/models/pickup/shipped-shipment.ts +2 -0
  54. package/src/models/tracking/index.ts +2 -0
  55. package/src/requests/index.ts +1 -0
  56. package/src/requests/list-pickups-request.ts +10 -0
  57. package/src/responses/index.ts +2 -0
  58. package/src/responses/list-pickups-response-schema.ts +6 -0
  59. package/src/responses/list-pickups-response.ts +7 -0
  60. package/tsconfig.tsbuildinfo +1 -1
@@ -1,7 +1,7 @@
1
1
  import { ImportedTrackingEvent } from '../models';
2
2
  import type { Request } from 'express';
3
- import { RegisterRequest, CreateLabelRequest, VoidLabelsRequest, CreateManifestRequest, GetManifestRequest, SchedulePickupRequest, CancelPickupRequest, GetRatesRequest, TrackingRequest, CancelNotificationRequest, CreateNotificationRequest, ValidateInboundDataRequest, NormalizeTrackingDataRequest, GetRelayPointsRequest, GetServicePointsRequest, GetServicePointRequest, ImportTrackingEventsRequest, UpdateSettingsRequest } from '../requests';
4
- import { RegisterResponse, CreateLabelResponse, VoidLabelsResponse, CreateManifestResponse, SchedulePickupResponse, CancelPickupResponse, GetRatesResponse, TrackingResponse, CancelNotificationResponse, CreateNotificationResponse, ValidateInboundDataResponse, NormalizeTrackingDataResponse, GetRelayPointsResponse, GetServicePointsResponse, GetServicePointResponse, UpdateSettingsResponse } from '../responses';
3
+ import { RegisterRequest, CreateLabelRequest, VoidLabelsRequest, CreateManifestRequest, GetManifestRequest, SchedulePickupRequest, CancelPickupRequest, GetRatesRequest, TrackingRequest, CancelNotificationRequest, CreateNotificationRequest, ValidateInboundDataRequest, NormalizeTrackingDataRequest, GetRelayPointsRequest, GetServicePointsRequest, GetServicePointRequest, ImportTrackingEventsRequest, UpdateSettingsRequest, ListPickupsRequest } from '../requests';
4
+ import { RegisterResponse, CreateLabelResponse, VoidLabelsResponse, CreateManifestResponse, SchedulePickupResponse, CancelPickupResponse, GetRatesResponse, TrackingResponse, CancelNotificationResponse, CreateNotificationResponse, ValidateInboundDataResponse, NormalizeTrackingDataResponse, GetRelayPointsResponse, GetServicePointsResponse, GetServicePointResponse, UpdateSettingsResponse, ListPickupsResponse } from '../responses';
5
5
  import { CarrierAppMetadata } from './metadata/carrier-app-metadata';
6
6
  import { RequestResponseInfo, Handler } from '@shipengine/connect-runtime';
7
7
  /**
@@ -94,6 +94,11 @@ export interface CarrierAppDefinition {
94
94
  * @param request Data needed by the provider to import tracking events
95
95
  */
96
96
  ImportTrackingEvents?: (request: ImportTrackingEventsRequest) => AsyncGenerator<ImportedTrackingEvent>;
97
+ /**
98
+ * @description This endpoint is used to list information about previously scheduled pickups
99
+ * @param request Data needed by the provider to list pickups
100
+ */
101
+ ListPickups?: (request: ListPickupsRequest) => ListPickupsResponse | Promise<ListPickupsResponse>;
97
102
  ScheduledFunction?: (request: Record<string, any>) => Promise<{}[] | null> | {}[] | null;
98
103
  /** @description A method that gets additional context to log from the request when logging */
99
104
  getAdditionalContext?: (req: Request) => Record<string, string>;
@@ -16,5 +16,6 @@ export declare enum ApiEndpoints {
16
16
  GetServicePoints = "/GetServicePoints",
17
17
  GetServicePoint = "/GetServicePoint",
18
18
  ImportTrackingEvents = "/ImportTrackingEvents",
19
- UpdateSettings = "/UpdateSettings"
19
+ UpdateSettings = "/UpdateSettings",
20
+ ListPickups = "/ListPickups"
20
21
  }
@@ -21,5 +21,6 @@ var ApiEndpoints;
21
21
  ApiEndpoints["GetServicePoint"] = "/GetServicePoint";
22
22
  ApiEndpoints["ImportTrackingEvents"] = "/ImportTrackingEvents";
23
23
  ApiEndpoints["UpdateSettings"] = "/UpdateSettings";
24
+ ApiEndpoints["ListPickups"] = "/ListPickups";
24
25
  })(ApiEndpoints || (exports.ApiEndpoints = ApiEndpoints = {}));
25
26
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAmBX;AAnBD,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;IACpC,8DAA8C,CAAA;IAC9C,kDAAkC,CAAA;AACpC,CAAC,EAnBW,YAAY,4BAAZ,YAAY,QAmBvB"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAoBX;AApBD,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;IACpC,8DAA8C,CAAA;IAC9C,kDAAkC,CAAA;IAClC,4CAA4B,CAAA;AAC9B,CAAC,EApBW,YAAY,4BAAZ,YAAY,QAoBvB"}
@@ -24,6 +24,7 @@ const createEndpointMapping = (definition) => [
24
24
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.GetServicePoint, definition.GetServicePoint],
25
25
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.ImportTrackingEvents, definition.ImportTrackingEvents],
26
26
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.UpdateSettings, definition.UpdateSettings],
27
+ [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.ListPickups, definition.ListPickups],
27
28
  ...(0, connect_runtime_1.mapExtensions)(definition.Extensions),
28
29
  ];
29
30
  exports.createEndpointMapping = createEndpointMapping;
@@ -1 +1 @@
1
- {"version":3,"file":"create-endpoint-mapping.js","sourceRoot":"","sources":["../../src/app/create-endpoint-mapping.ts"],"names":[],"mappings":";;;AAAA,iEAA6E;AAC7E,2CAA2C;AAGpC,MAAM,qBAAqB,GAAG,CACnC,UAAgC,EACS,EAAE,CAAC;IAC5C,iFAAiF;IACjF,yFAAyF;IACzF,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,kBAAkB,EAAE,UAAU,CAAC,kBAAkB,CAAC;IAC7E,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC;IACjE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC;IAC/D,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,CAAC,wBAAM,CAAC,IAA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C,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,mBAAmB,EAAE,UAAU,CAAC,mBAAmB,CAAC;IAC/E,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAC7D,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACzE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,eAAe,EAAE,UAAU,CAAC,eAAe,CAAC;IACvE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,oBAAoB,EAAE,UAAU,CAAC,oBAAoB,CAAC;IACjF,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC;IAC/D,GAAG,IAAA,+BAAa,EAAC,UAAU,CAAC,UAAU,CAAC;CACxC,CAAC;AAzBW,QAAA,qBAAqB,yBAyBhC"}
@@ -0,0 +1,3 @@
1
+ import { AddressBase } from './address-base';
2
+ export declare class PickupAddress extends AddressBase {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PickupAddress = void 0;
4
+ const address_base_1 = require("./address-base");
5
+ class PickupAddress extends address_base_1.AddressBase {
6
+ }
7
+ exports.PickupAddress = PickupAddress;
8
+ //# sourceMappingURL=pickup-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pickup-address.js","sourceRoot":"","sources":["../../../src/models/addresses/pickup-address.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,MAAa,aAAc,SAAQ,0BAAW;CAAG;AAAjD,sCAAiD"}
@@ -6,6 +6,4 @@ export declare class VoidRequest extends ShippedShipment {
6
6
  void_request_id: string;
7
7
  /** @description The location the shipment was shipped from */
8
8
  ship_from: ShipFrom;
9
- /** @description The shipment's user provided reference */
10
- reference?: string;
11
9
  }
@@ -8,8 +8,6 @@ class VoidRequest extends shipped_shipment_1.ShippedShipment {
8
8
  void_request_id;
9
9
  /** @description The location the shipment was shipped from */
10
10
  ship_from;
11
- /** @description The shipment's user provided reference */
12
- reference;
13
11
  }
14
12
  exports.VoidRequest = VoidRequest;
15
13
  //# sourceMappingURL=void-request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"void-request.js","sourceRoot":"","sources":["../../../src/models/labels/void-request.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,iEAAiE;AACjE,MAAa,WAAY,SAAQ,kCAAe;IAC9C,0GAA0G;IAC1G,eAAe,CAAU;IACzB,8DAA8D;IAC9D,SAAS,CAAY;IACrB,0DAA0D;IAC1D,SAAS,CAAU;CACpB;AAPD,kCAOC"}
1
+ {"version":3,"file":"void-request.js","sourceRoot":"","sources":["../../../src/models/labels/void-request.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,iEAAiE;AACjE,MAAa,WAAY,SAAQ,kCAAe;IAC9C,0GAA0G;IAC1G,eAAe,CAAU;IACzB,8DAA8D;IAC9D,SAAS,CAAY;CACtB;AALD,kCAKC"}
@@ -3,6 +3,5 @@ import { ManifestCustoms } from './manifest-customs';
3
3
  export declare class ManifestRequestShipment extends ShippedShipment {
4
4
  manifest_request_shipment_id: string;
5
5
  ship_datetime?: string;
6
- reference?: string;
7
6
  customs?: ManifestCustoms;
8
7
  }
@@ -5,7 +5,6 @@ const shipped_shipment_1 = require("../pickup/shipped-shipment");
5
5
  class ManifestRequestShipment extends shipped_shipment_1.ShippedShipment {
6
6
  manifest_request_shipment_id;
7
7
  ship_datetime;
8
- reference;
9
8
  customs;
10
9
  }
11
10
  exports.ManifestRequestShipment = ManifestRequestShipment;
@@ -1 +1 @@
1
- {"version":3,"file":"manifest-request-shipment.js","sourceRoot":"","sources":["../../../src/models/manifests/manifest-request-shipment.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,MAAa,uBAAwB,SAAQ,kCAAe;IAC1D,4BAA4B,CAAU;IACtC,aAAa,CAAU;IACvB,SAAS,CAAU;IACnB,OAAO,CAAmB;CAC3B;AALD,0DAKC"}
1
+ {"version":3,"file":"manifest-request-shipment.js","sourceRoot":"","sources":["../../../src/models/manifests/manifest-request-shipment.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,MAAa,uBAAwB,SAAQ,kCAAe;IAC1D,4BAA4B,CAAU;IACtC,aAAa,CAAU;IACvB,OAAO,CAAmB;CAC3B;AAJD,0DAIC"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const PickupSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PickupSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ exports.PickupSchema = joi_1.default.object({
7
+ confirmation_number: joi_1.default.string().required(),
8
+ status: joi_1.default.string().required(),
9
+ status_reason: joi_1.default.string().optional(),
10
+ });
11
+ //# sourceMappingURL=pickup-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pickup-schema.js","sourceRoot":"","sources":["../../../src/models/pickup/pickup-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAET,QAAA,YAAY,GAAG,aAAG,CAAC,MAAM,CAAC;IACrC,mBAAmB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare class Pickup {
2
+ confirmation_number: string;
3
+ status: string;
4
+ status_reason?: string;
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Pickup = void 0;
4
+ class Pickup {
5
+ confirmation_number;
6
+ status;
7
+ status_reason;
8
+ }
9
+ exports.Pickup = Pickup;
10
+ //# sourceMappingURL=pickup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pickup.js","sourceRoot":"","sources":["../../../src/models/pickup/pickup.ts"],"names":[],"mappings":";;;AAAA,MAAa,MAAM;IACjB,mBAAmB,CAAU;IAC7B,MAAM,CAAU;IAChB,aAAa,CAAU;CACxB;AAJD,wBAIC"}
@@ -20,6 +20,8 @@ export declare class ShippedShipment extends Label {
20
20
  pickup_location?: PudoLocation;
21
21
  /** @description Add drop-off location detail*/
22
22
  dropoff_location?: PudoLocation;
23
+ /** @description User specified free form string to identify shipment in their own system */
24
+ reference?: string;
23
25
  }
24
26
  export declare class PickupShipment extends ShippedShipment {
25
27
  }
@@ -18,6 +18,8 @@ class ShippedShipment extends label_1.Label {
18
18
  pickup_location;
19
19
  /** @description Add drop-off location detail*/
20
20
  dropoff_location;
21
+ /** @description User specified free form string to identify shipment in their own system */
22
+ reference;
21
23
  }
22
24
  exports.ShippedShipment = ShippedShipment;
23
25
  class PickupShipment extends ShippedShipment {
@@ -1 +1 @@
1
- {"version":3,"file":"shipped-shipment.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-shipment.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAO3C,wEAAwE;AACxE,MAAa,eAAgB,SAAQ,aAAK;IACxC,oEAAoE;IACpE,OAAO,CAAU;IACjB,8EAA8E;IAC9E,uBAAuB,CAAgB;IACvC,2DAA2D;IAC3D,YAAY,CAAU;IACtB,sEAAsE;IACtE,QAAQ,CAAoB;IAC5B,qFAAqF;IACrF,gBAAgB,CAAmB;IACnC,8CAA8C;IAC9C,eAAe,CAAgB;IAC/B,+CAA+C;IAC/C,gBAAgB,CAAgB;CACjC;AAfD,0CAeC;AAED,MAAa,cAAe,SAAQ,eAAe;CAAG;AAAtD,wCAAsD"}
1
+ {"version":3,"file":"shipped-shipment.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-shipment.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAO3C,wEAAwE;AACxE,MAAa,eAAgB,SAAQ,aAAK;IACxC,oEAAoE;IACpE,OAAO,CAAU;IACjB,8EAA8E;IAC9E,uBAAuB,CAAgB;IACvC,2DAA2D;IAC3D,YAAY,CAAU;IACtB,sEAAsE;IACtE,QAAQ,CAAoB;IAC5B,qFAAqF;IACrF,gBAAgB,CAAmB;IACnC,8CAA8C;IAC9C,eAAe,CAAgB;IAC/B,+CAA+C;IAC/C,gBAAgB,CAAgB;IAChC,4FAA4F;IAC5F,SAAS,CAAU;CACpB;AAjBD,0CAiBC;AAED,MAAa,cAAe,SAAQ,eAAe;CAAG;AAAtD,wCAAsD"}
@@ -14,3 +14,5 @@ export * from './tracking-info-schema';
14
14
  export * from './tracking-info';
15
15
  export * from './update-method-schema';
16
16
  export * from './update-method';
17
+ export * from './standardized-status-detail-codes';
18
+ export * from './standardized-status-detail-codes-schema';
@@ -17,4 +17,6 @@ tslib_1.__exportStar(require("./tracking-info-schema"), exports);
17
17
  tslib_1.__exportStar(require("./tracking-info"), exports);
18
18
  tslib_1.__exportStar(require("./update-method-schema"), exports);
19
19
  tslib_1.__exportStar(require("./update-method"), exports);
20
+ tslib_1.__exportStar(require("./standardized-status-detail-codes"), exports);
21
+ tslib_1.__exportStar(require("./standardized-status-detail-codes-schema"), exports);
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/tracking/index.ts"],"names":[],"mappings":";;;AAAA,2EAAiD;AACjD,oEAA0C;AAC1C,4DAAkC;AAClC,qDAA2B;AAC3B,2DAAiC;AACjC,oDAA0B;AAC1B,6EAAmD;AACnD,sEAA4C;AAC5C,+DAAqC;AACrC,wDAA8B;AAC9B,+DAAqC;AACrC,gEAAsC;AACtC,iEAAuC;AACvC,0DAAgC;AAChC,iEAAuC;AACvC,0DAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/tracking/index.ts"],"names":[],"mappings":";;;AAAA,2EAAiD;AACjD,oEAA0C;AAC1C,4DAAkC;AAClC,qDAA2B;AAC3B,2DAAiC;AACjC,oDAA0B;AAC1B,6EAAmD;AACnD,sEAA4C;AAC5C,+DAAqC;AACrC,wDAA8B;AAC9B,+DAAqC;AACrC,gEAAsC;AACtC,iEAAuC;AACvC,0DAAgC;AAChC,iEAAuC;AACvC,0DAAgC;AAChC,6EAAmD;AACnD,oFAA0D"}
@@ -12,6 +12,7 @@ export * from './import-tracking-events-request';
12
12
  export * from './normalize-tracking-data-request';
13
13
  export * from './register-request';
14
14
  export * from './schedule-pickup-request';
15
+ export * from './list-pickups-request';
15
16
  export * from './tracking-request';
16
17
  export * from './validate-inbound-data-request';
17
18
  export * from './void-labels-request';
@@ -15,6 +15,7 @@ tslib_1.__exportStar(require("./import-tracking-events-request"), exports);
15
15
  tslib_1.__exportStar(require("./normalize-tracking-data-request"), exports);
16
16
  tslib_1.__exportStar(require("./register-request"), exports);
17
17
  tslib_1.__exportStar(require("./schedule-pickup-request"), exports);
18
+ tslib_1.__exportStar(require("./list-pickups-request"), exports);
18
19
  tslib_1.__exportStar(require("./tracking-request"), exports);
19
20
  tslib_1.__exportStar(require("./validate-inbound-data-request"), exports);
20
21
  tslib_1.__exportStar(require("./void-labels-request"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;AAAA,wEAA8C;AAC9C,kEAAwC;AACxC,iEAAuC;AACvC,oEAA0C;AAC1C,wEAA8C;AAC9C,iEAAuC;AACvC,8DAAoC;AACpC,qEAA2C;AAC3C,sEAA4C;AAC5C,uEAA6C;AAC7C,2EAAiD;AACjD,4EAAkD;AAClD,6DAAmC;AACnC,oEAA0C;AAC1C,6DAAmC;AACnC,0EAAgD;AAChD,gEAAsC;AACtC,oEAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;AAAA,wEAA8C;AAC9C,kEAAwC;AACxC,iEAAuC;AACvC,oEAA0C;AAC1C,wEAA8C;AAC9C,iEAAuC;AACvC,8DAAoC;AACpC,qEAA2C;AAC3C,sEAA4C;AAC5C,uEAA6C;AAC7C,2EAAiD;AACjD,4EAAkD;AAClD,6DAAmC;AACnC,oEAA0C;AAC1C,iEAAuC;AACvC,6DAAmC;AACnC,0EAAgD;AAChD,gEAAsC;AACtC,oEAA0C"}
@@ -0,0 +1,9 @@
1
+ import { PickupAddress } from '../models/addresses/pickup-address';
2
+ import { TimeWindow } from '../models/time-window';
3
+ import { BaseRequest } from './base-request';
4
+ /** @description Basic structure for a request to list scheduled pickups */
5
+ export declare class ListPickupsRequest extends BaseRequest {
6
+ /** @description The address to search for scheduled pickups. */
7
+ address?: PickupAddress;
8
+ search_window?: TimeWindow;
9
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListPickupsRequest = void 0;
4
+ const base_request_1 = require("./base-request");
5
+ /** @description Basic structure for a request to list scheduled pickups */
6
+ class ListPickupsRequest extends base_request_1.BaseRequest {
7
+ /** @description The address to search for scheduled pickups. */
8
+ address;
9
+ search_window;
10
+ }
11
+ exports.ListPickupsRequest = ListPickupsRequest;
12
+ //# sourceMappingURL=list-pickups-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-pickups-request.js","sourceRoot":"","sources":["../../src/requests/list-pickups-request.ts"],"names":[],"mappings":";;;AAEA,iDAA6C;AAE7C,2EAA2E;AAC3E,MAAa,kBAAmB,SAAQ,0BAAW;IACjD,gEAAgE;IAChE,OAAO,CAAiB;IACxB,aAAa,CAAc;CAC5B;AAJD,gDAIC"}
@@ -23,6 +23,8 @@ export * from './register-response-schema';
23
23
  export * from './register-response';
24
24
  export * from './schedule-pickup-response-schema';
25
25
  export * from './schedule-pickup-response';
26
+ export * from './list-pickups-response-schema';
27
+ export * from './list-pickups-response';
26
28
  export * from './tracking-response-schema';
27
29
  export * from './tracking-response';
28
30
  export * from './validate-inbound-data-response-schema';
@@ -26,6 +26,8 @@ tslib_1.__exportStar(require("./register-response-schema"), exports);
26
26
  tslib_1.__exportStar(require("./register-response"), exports);
27
27
  tslib_1.__exportStar(require("./schedule-pickup-response-schema"), exports);
28
28
  tslib_1.__exportStar(require("./schedule-pickup-response"), exports);
29
+ tslib_1.__exportStar(require("./list-pickups-response-schema"), exports);
30
+ tslib_1.__exportStar(require("./list-pickups-response"), exports);
29
31
  tslib_1.__exportStar(require("./tracking-response-schema"), exports);
30
32
  tslib_1.__exportStar(require("./tracking-response"), exports);
31
33
  tslib_1.__exportStar(require("./validate-inbound-data-response-schema"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/responses/index.ts"],"names":[],"mappings":";;;AAAA,gFAAsD;AACtD,yEAA+C;AAC/C,0EAAgD;AAChD,mEAAyC;AACzC,yEAA+C;AAC/C,kEAAwC;AACxC,4EAAkD;AAClD,qEAA2C;AAC3C,gFAAsD;AACtD,yEAA+C;AAC/C,2DAAiC;AACjC,sEAA4C;AAC5C,+DAAqC;AACrC,6EAAmD;AACnD,sEAA4C;AAC5C,8EAAoD;AACpD,uEAA6C;AAC7C,+EAAqD;AACrD,wEAA8C;AAC9C,oFAA0D;AAC1D,6EAAmD;AACnD,qEAA2C;AAC3C,8DAAoC;AACpC,4EAAkD;AAClD,qEAA2C;AAC3C,qEAA2C;AAC3C,8DAAoC;AACpC,kFAAwD;AACxD,2EAAiD;AACjD,wEAA8C;AAC9C,iEAAuC;AACvC,4EAAkD;AAClD,qEAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/responses/index.ts"],"names":[],"mappings":";;;AAAA,gFAAsD;AACtD,yEAA+C;AAC/C,0EAAgD;AAChD,mEAAyC;AACzC,yEAA+C;AAC/C,kEAAwC;AACxC,4EAAkD;AAClD,qEAA2C;AAC3C,gFAAsD;AACtD,yEAA+C;AAC/C,2DAAiC;AACjC,sEAA4C;AAC5C,+DAAqC;AACrC,6EAAmD;AACnD,sEAA4C;AAC5C,8EAAoD;AACpD,uEAA6C;AAC7C,+EAAqD;AACrD,wEAA8C;AAC9C,oFAA0D;AAC1D,6EAAmD;AACnD,qEAA2C;AAC3C,8DAAoC;AACpC,4EAAkD;AAClD,qEAA2C;AAC3C,yEAA+C;AAC/C,kEAAwC;AACxC,qEAA2C;AAC3C,8DAAoC;AACpC,kFAAwD;AACxD,2EAAiD;AACjD,wEAA8C;AAC9C,iEAAuC;AACvC,4EAAkD;AAClD,qEAA2C"}
@@ -0,0 +1 @@
1
+ export declare const ListPickupsResponseSchema: import("joi").ObjectSchema<any>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListPickupsResponseSchema = void 0;
4
+ const base_response_schema_1 = require("./base-response-schema");
5
+ const pickup_schema_1 = require("../models/pickup/pickup-schema");
6
+ exports.ListPickupsResponseSchema = base_response_schema_1.BaseResponseSchema.keys({
7
+ pickups: pickup_schema_1.PickupSchema.required(),
8
+ });
9
+ //# sourceMappingURL=list-pickups-response-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-pickups-response-schema.js","sourceRoot":"","sources":["../../src/responses/list-pickups-response-schema.ts"],"names":[],"mappings":";;;AAAA,iEAA4D;AAC5D,kEAA8D;AAEjD,QAAA,yBAAyB,GAAG,yCAAkB,CAAC,IAAI,CAAC;IAC/D,OAAO,EAAE,4BAAY,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Pickup } from '../models/pickup/pickup';
2
+ import { BaseResponse } from './base-response';
3
+ /** @description Basic structure for a response to list scheduled pickups */
4
+ export declare class ListPickupsResponse extends BaseResponse {
5
+ pickups: Pickup[];
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListPickupsResponse = void 0;
4
+ const base_response_1 = require("./base-response");
5
+ /** @description Basic structure for a response to list scheduled pickups */
6
+ class ListPickupsResponse extends base_response_1.BaseResponse {
7
+ pickups;
8
+ }
9
+ exports.ListPickupsResponse = ListPickupsResponse;
10
+ //# sourceMappingURL=list-pickups-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-pickups-response.js","sourceRoot":"","sources":["../../src/responses/list-pickups-response.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAE/C,4EAA4E;AAC5E,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,OAAO,CAAY;CACpB;AAFD,kDAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.16.6",
3
+ "version": "4.16.7",
4
4
  "description": "This is the typescript/javascript definitions for carrier api",
5
5
  "homepage": "https://connect.shipengine.com",
6
6
  "main": "./lib/index.js",