@shipengine/connect-carrier-api 4.17.0-beta → 4.17.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.
Files changed (71) 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/tracking/index.d.ts +2 -0
  8. package/lib/models/tracking/index.js +2 -0
  9. package/lib/models/tracking/index.js.map +1 -1
  10. package/lib/models/tracking/start-tracking-status-schema.d.ts +2 -0
  11. package/lib/models/tracking/start-tracking-status-schema.js +10 -0
  12. package/lib/models/tracking/start-tracking-status-schema.js.map +1 -0
  13. package/lib/models/tracking/start-tracking-status.d.ts +7 -0
  14. package/lib/models/tracking/start-tracking-status.js +12 -0
  15. package/lib/models/tracking/start-tracking-status.js.map +1 -0
  16. package/lib/requests/index.d.ts +2 -0
  17. package/lib/requests/index.js +2 -0
  18. package/lib/requests/index.js.map +1 -1
  19. package/lib/requests/start-tracking-request-schema.d.ts +2 -0
  20. package/lib/requests/start-tracking-request-schema.js +11 -0
  21. package/lib/requests/start-tracking-request-schema.js.map +1 -0
  22. package/lib/requests/start-tracking-request.d.ts +8 -0
  23. package/lib/requests/start-tracking-request.js +12 -0
  24. package/lib/requests/start-tracking-request.js.map +1 -0
  25. package/lib/responses/create-label-response-schema.js +0 -2
  26. package/lib/responses/create-label-response-schema.js.map +1 -1
  27. package/lib/responses/create-label-response.d.ts +0 -2
  28. package/lib/responses/create-label-response.js +0 -1
  29. package/lib/responses/create-label-response.js.map +1 -1
  30. package/lib/responses/index.d.ts +2 -0
  31. package/lib/responses/index.js +2 -0
  32. package/lib/responses/index.js.map +1 -1
  33. package/lib/responses/start-tracking-response-schema.d.ts +3 -0
  34. package/lib/responses/start-tracking-response-schema.js +17 -0
  35. package/lib/responses/start-tracking-response-schema.js.map +1 -0
  36. package/lib/responses/start-tracking-response.d.ts +14 -0
  37. package/lib/responses/start-tracking-response.js +12 -0
  38. package/lib/responses/start-tracking-response.js.map +1 -0
  39. package/package.json +1 -1
  40. package/spec.json +107 -33
  41. package/src/app/carrier-app-definition.ts +9 -0
  42. package/src/app/constants.ts +1 -0
  43. package/src/app/create-endpoint-mapping.ts +1 -0
  44. package/src/models/tracking/index.ts +2 -0
  45. package/src/models/tracking/start-tracking-status-schema.ts +6 -0
  46. package/src/models/tracking/start-tracking-status.ts +7 -0
  47. package/src/requests/index.ts +2 -0
  48. package/src/requests/start-tracking-request-schema.ts +7 -0
  49. package/src/requests/start-tracking-request.ts +9 -0
  50. package/src/responses/create-label-response-schema.ts +0 -2
  51. package/src/responses/create-label-response.ts +0 -2
  52. package/src/responses/index.ts +2 -0
  53. package/src/responses/start-tracking-response-schema.ts +14 -0
  54. package/src/responses/start-tracking-response.ts +16 -0
  55. package/tsconfig.tsbuildinfo +1 -1
  56. package/lib/models/limit-identifier-schema.d.ts +0 -2
  57. package/lib/models/limit-identifier-schema.js +0 -11
  58. package/lib/models/limit-identifier-schema.js.map +0 -1
  59. package/lib/models/limit-identifier-type-schema.d.ts +0 -2
  60. package/lib/models/limit-identifier-type-schema.js +0 -8
  61. package/lib/models/limit-identifier-type-schema.js.map +0 -1
  62. package/lib/models/limit-identifier-type.d.ts +0 -3
  63. package/lib/models/limit-identifier-type.js +0 -8
  64. package/lib/models/limit-identifier-type.js.map +0 -1
  65. package/lib/models/limit-identifier.d.ts +0 -5
  66. package/lib/models/limit-identifier.js +0 -9
  67. package/lib/models/limit-identifier.js.map +0 -1
  68. package/src/models/limit-identifier-schema.ts +0 -7
  69. package/src/models/limit-identifier-type-schema.ts +0 -4
  70. package/src/models/limit-identifier-type.ts +0 -3
  71. package/src/models/limit-identifier.ts +0 -6
@@ -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, ListPickupsRequest } from '../requests';
4
- import { RegisterResponse, CreateLabelResponse, VoidLabelsResponse, CreateManifestResponse, SchedulePickupResponse, CancelPickupResponse, GetRatesResponse, TrackingResponse, CancelNotificationResponse, CreateNotificationResponse, ValidateInboundDataResponse, NormalizeTrackingDataResponse, GetRelayPointsResponse, GetServicePointsResponse, GetServicePointResponse, UpdateSettingsResponse, ListPickupsResponse } from '../responses';
3
+ import { RegisterRequest, CreateLabelRequest, VoidLabelsRequest, CreateManifestRequest, GetManifestRequest, SchedulePickupRequest, CancelPickupRequest, GetRatesRequest, TrackingRequest, CancelNotificationRequest, CreateNotificationRequest, ValidateInboundDataRequest, NormalizeTrackingDataRequest, GetRelayPointsRequest, GetServicePointsRequest, GetServicePointRequest, ImportTrackingEventsRequest, UpdateSettingsRequest, ListPickupsRequest, StartTrackingRequest } from '../requests';
4
+ import { RegisterResponse, CreateLabelResponse, VoidLabelsResponse, CreateManifestResponse, SchedulePickupResponse, CancelPickupResponse, GetRatesResponse, TrackingResponse, CancelNotificationResponse, CreateNotificationResponse, ValidateInboundDataResponse, NormalizeTrackingDataResponse, GetRelayPointsResponse, GetServicePointsResponse, GetServicePointResponse, UpdateSettingsResponse, ListPickupsResponse, StartTrackingResponse } from '../responses';
5
5
  import { CarrierAppMetadata } from './metadata/carrier-app-metadata';
6
6
  import { RequestResponseInfo, Handler } from '@shipengine/connect-runtime';
7
7
  /**
@@ -111,6 +111,11 @@ export interface CarrierAppDefinition {
111
111
  * @param request Data needed by the provider to update carrier settings
112
112
  */
113
113
  UpdateSettings?: (request: UpdateSettingsRequest) => UpdateSettingsResponse | Promise<UpdateSettingsResponse>;
114
+ /**
115
+ * @description This endpoint is used to subscribe for status updates from the carrier
116
+ * @param request Data needed by the provider to start tracking shipments
117
+ */
118
+ StartTracking?: (request: StartTrackingRequest) => StartTrackingResponse | Promise<StartTrackingResponse>;
114
119
  /**
115
120
  * @description A collection of additional routes that can be used to extend the functionality of the app.
116
121
  * Extension methods are not automatically called by the ShipEngine platform, and require working with Auctane developers to implement.
@@ -17,5 +17,6 @@ export declare enum ApiEndpoints {
17
17
  GetServicePoint = "/GetServicePoint",
18
18
  ImportTrackingEvents = "/ImportTrackingEvents",
19
19
  UpdateSettings = "/UpdateSettings",
20
- ListPickups = "/ListPickups"
20
+ ListPickups = "/ListPickups",
21
+ StartTracking = "/StartTracking"
21
22
  }
@@ -22,5 +22,6 @@ var ApiEndpoints;
22
22
  ApiEndpoints["ImportTrackingEvents"] = "/ImportTrackingEvents";
23
23
  ApiEndpoints["UpdateSettings"] = "/UpdateSettings";
24
24
  ApiEndpoints["ListPickups"] = "/ListPickups";
25
+ ApiEndpoints["StartTracking"] = "/StartTracking";
25
26
  })(ApiEndpoints || (exports.ApiEndpoints = ApiEndpoints = {}));
26
27
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAqBX;AArBD,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;IAC5B,gDAAgC,CAAA;AAClC,CAAC,EArBW,YAAY,4BAAZ,YAAY,QAqBvB"}
@@ -25,6 +25,7 @@ const createEndpointMapping = (definition) => [
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
27
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.ListPickups, definition.ListPickups],
28
+ [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.StartTracking, definition.StartTracking],
28
29
  ...(0, connect_runtime_1.mapExtensions)(definition.Extensions),
29
30
  ];
30
31
  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,UA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C,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC;IAC/D,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,aAAa,EAAE,UAAU,CAAC,aAAa,CAAC;IACnE,GAAG,IAAA,+BAAa,EAAC,UAAU,CAAC,UAAU,CAAC;CACxC,CAAC;AA1BW,QAAA,qBAAqB,yBA0BhC"}
@@ -16,3 +16,5 @@ export * from './update-method-schema';
16
16
  export * from './update-method';
17
17
  export * from './standardized-status-detail-codes';
18
18
  export * from './standardized-status-detail-codes-schema';
19
+ export * from './start-tracking-status';
20
+ export * from './start-tracking-status-schema';
@@ -19,4 +19,6 @@ tslib_1.__exportStar(require("./update-method-schema"), exports);
19
19
  tslib_1.__exportStar(require("./update-method"), exports);
20
20
  tslib_1.__exportStar(require("./standardized-status-detail-codes"), exports);
21
21
  tslib_1.__exportStar(require("./standardized-status-detail-codes-schema"), exports);
22
+ tslib_1.__exportStar(require("./start-tracking-status"), exports);
23
+ tslib_1.__exportStar(require("./start-tracking-status-schema"), exports);
22
24
  //# 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;AAChC,6EAAmD;AACnD,oFAA0D"}
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;AAC1D,kEAAwC;AACxC,yEAA+C"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const SubscriptionStatusSchema: Joi.StringSchema;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionStatusSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const start_tracking_status_1 = require("./start-tracking-status");
7
+ exports.SubscriptionStatusSchema = joi_1.default.string()
8
+ .valid(...Object.values(start_tracking_status_1.StartTrackingStatus))
9
+ .required();
10
+ //# sourceMappingURL=start-tracking-status-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-tracking-status-schema.js","sourceRoot":"","sources":["../../../src/models/tracking/start-tracking-status-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,mEAA8D;AAEjD,QAAA,wBAAwB,GAAG,aAAG,CAAC,MAAM,EAAE;KACjD,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,2CAAmB,CAAC,CAAC;KAC5C,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ /** Status of subscription results */
2
+ export declare enum StartTrackingStatus {
3
+ /** @description The tracking subscription was created successfully */
4
+ SUCCESS = "SUCCESS",
5
+ /** @description The tracking subscription could not be created */
6
+ FAILED = "FAILED"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartTrackingStatus = void 0;
4
+ /** Status of subscription results */
5
+ var StartTrackingStatus;
6
+ (function (StartTrackingStatus) {
7
+ /** @description The tracking subscription was created successfully */
8
+ StartTrackingStatus["SUCCESS"] = "SUCCESS";
9
+ /** @description The tracking subscription could not be created */
10
+ StartTrackingStatus["FAILED"] = "FAILED";
11
+ })(StartTrackingStatus || (exports.StartTrackingStatus = StartTrackingStatus = {}));
12
+ //# sourceMappingURL=start-tracking-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-tracking-status.js","sourceRoot":"","sources":["../../../src/models/tracking/start-tracking-status.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AACrC,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,sEAAsE;IACtE,0CAAmB,CAAA;IACnB,kEAAkE;IAClE,wCAAiB,CAAA;AACnB,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B"}
@@ -17,3 +17,5 @@ export * from './tracking-request';
17
17
  export * from './validate-inbound-data-request';
18
18
  export * from './void-labels-request';
19
19
  export * from './update-settings-request';
20
+ export * from './start-tracking-request';
21
+ export * from './start-tracking-request-schema';
@@ -20,4 +20,6 @@ tslib_1.__exportStar(require("./tracking-request"), exports);
20
20
  tslib_1.__exportStar(require("./validate-inbound-data-request"), exports);
21
21
  tslib_1.__exportStar(require("./void-labels-request"), exports);
22
22
  tslib_1.__exportStar(require("./update-settings-request"), exports);
23
+ tslib_1.__exportStar(require("./start-tracking-request"), exports);
24
+ tslib_1.__exportStar(require("./start-tracking-request-schema"), exports);
23
25
  //# sourceMappingURL=index.js.map
@@ -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,iEAAuC;AACvC,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;AAC1C,mEAAyC;AACzC,0EAAgD"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const StartTrackingRequestSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartTrackingRequestSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const identifier_schema_1 = require("../models/identifier-schema");
7
+ const base_request_schema_1 = require("./base-request-schema");
8
+ exports.StartTrackingRequestSchema = base_request_schema_1.BaseRequestSchema.keys({
9
+ identifiers: joi_1.default.array().required().items(identifier_schema_1.IdentifierSchema),
10
+ });
11
+ //# sourceMappingURL=start-tracking-request-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-tracking-request-schema.js","sourceRoot":"","sources":["../../src/requests/start-tracking-request-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,mEAA+D;AAC/D,+DAA0D;AAE7C,QAAA,0BAA0B,GAAG,uCAAiB,CAAC,IAAI,CAAC;IAC/D,WAAW,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,oCAAgB,CAAC;CAC5D,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { BaseRequest } from './base-request';
2
+ import { Identifier } from '../models/identifier';
3
+ /**
4
+ * @description Request to start tracking shipments using identifiers
5
+ */
6
+ export declare class StartTrackingRequest extends BaseRequest {
7
+ identifiers: Identifier[];
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartTrackingRequest = void 0;
4
+ const base_request_1 = require("./base-request");
5
+ /**
6
+ * @description Request to start tracking shipments using identifiers
7
+ */
8
+ class StartTrackingRequest extends base_request_1.BaseRequest {
9
+ identifiers;
10
+ }
11
+ exports.StartTrackingRequest = StartTrackingRequest;
12
+ //# sourceMappingURL=start-tracking-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-tracking-request.js","sourceRoot":"","sources":["../../src/requests/start-tracking-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAG7C;;GAEG;AACH,MAAa,oBAAqB,SAAQ,0BAAW;IACnD,WAAW,CAAgB;CAC5B;AAFD,oDAEC"}
@@ -14,7 +14,6 @@ const relay_point_details_schema_1 = require("../models/relay-points/relay-point
14
14
  const time_window_schema_1 = require("../models/time-window-schema");
15
15
  const paperless_details_schema_1 = require("../models/labels/paperless-details-schema");
16
16
  const pudo_location_schema_1 = require("../models/addresses/pudo-location-schema");
17
- const limit_identifier_schema_1 = require("../models/limit-identifier-schema");
18
17
  exports.CreateLabelResponseSchema = base_response_schema_1.BaseResponseSchema.keys({
19
18
  transaction_id: joi_1.default.string().required(),
20
19
  label_download: label_download_schema_1.LabelDownloadSchema.optional(),
@@ -34,6 +33,5 @@ exports.CreateLabelResponseSchema = base_response_schema_1.BaseResponseSchema.ke
34
33
  relay_points: relay_point_details_schema_1.RelayPointDetailsSchema.optional(),
35
34
  dropoff_location: pudo_location_schema_1.PudoLocationSchema.optional(),
36
35
  pickup_location: pudo_location_schema_1.PudoLocationSchema.optional(),
37
- limit_identifiers: joi_1.default.array().optional().items(limit_identifier_schema_1.LimitIdentifierSchema),
38
36
  });
39
37
  //# sourceMappingURL=create-label-response-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-label-response-schema.js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ACvE,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAChD,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7C,SAAS,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnC,uBAAuB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,oCAAgB,CAAC;IACvE,2BAA2B,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IACtE,yBAAyB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC1D,qBAAqB,EAAE,qCAAgB,CAAC,QAAQ,EAAE;IAClD,eAAe,EAAE,qCAAgB,CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,oDAAuB,CAAC,QAAQ,EAAE;IAChD,gBAAgB,EAAE,yCAAkB,CAAC,QAAQ,EAAE;IAC/C,eAAe,EAAE,yCAAkB,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { BaseResponse } from './base-response';
2
2
  import { LabelDownload, FormDownload, Document, BillingLineItem, LabelPackage, Identifier, TimeWindow, RelayPointDetails, PaperlessDetails, PudoLocation } from '../models';
3
3
  import { CarrierWeight } from '../models/units/carrier-weight';
4
- import { LimitIdentifier } from '../models/limit-identifier';
5
4
  /** @description Basic structure for a response to create a label */
6
5
  export declare class CreateLabelResponse extends BaseResponse {
7
6
  transaction_id: string;
@@ -25,5 +24,4 @@ export declare class CreateLabelResponse extends BaseResponse {
25
24
  dropoff_location?: PudoLocation;
26
25
  pickup_location?: PudoLocation;
27
26
  carrier_weight?: CarrierWeight;
28
- limit_identifiers?: LimitIdentifier[];
29
27
  }
@@ -25,7 +25,6 @@ class CreateLabelResponse extends base_response_1.BaseResponse {
25
25
  dropoff_location;
26
26
  pickup_location;
27
27
  carrier_weight;
28
- limit_identifiers;
29
28
  }
30
29
  exports.CreateLabelResponse = CreateLabelResponse;
31
30
  //# sourceMappingURL=create-label-response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-label-response.js","sourceRoot":"","sources":["../../src/responses/create-label-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAgB/C,oEAAoE;AACpE,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,cAAc,CAAU;IACxB,cAAc,CAAiB;IAC/B,aAAa,CAAgB;IAC7B,iBAAiB,CAAoB;IACrC,SAAS,CAAc;IACvB,QAAQ,CAAkB;IAC1B,kBAAkB,CAAqB;IACvC,eAAe,CAAU;IACzB,YAAY,CAAU;IACtB,SAAS,CAAW;IACpB,uBAAuB,CAAgB;IACvC,2BAA2B,CAAU;IACrC,yBAAyB,CAAU;IACnC,wIAAwI;IACxI,qBAAqB,CAAc;IACnC,0HAA0H;IAC1H,eAAe,CAAc;IAC7B,YAAY,CAAqB;IACjC,gBAAgB,CAAgB;IAChC,eAAe,CAAgB;IAC/B,cAAc,CAAiB;IAC/B,iBAAiB,CAAqB;CACvC;AAvBD,kDAuBC"}
1
+ {"version":3,"file":"create-label-response.js","sourceRoot":"","sources":["../../src/responses/create-label-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAe/C,oEAAoE;AACpE,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,cAAc,CAAU;IACxB,cAAc,CAAiB;IAC/B,aAAa,CAAgB;IAC7B,iBAAiB,CAAoB;IACrC,SAAS,CAAc;IACvB,QAAQ,CAAkB;IAC1B,kBAAkB,CAAqB;IACvC,eAAe,CAAU;IACzB,YAAY,CAAU;IACtB,SAAS,CAAW;IACpB,uBAAuB,CAAgB;IACvC,2BAA2B,CAAU;IACrC,yBAAyB,CAAU;IACnC,wIAAwI;IACxI,qBAAqB,CAAc;IACnC,0HAA0H;IAC1H,eAAe,CAAc;IAC7B,YAAY,CAAqB;IACjC,gBAAgB,CAAgB;IAChC,eAAe,CAAgB;IAC/B,cAAc,CAAiB;CAChC;AAtBD,kDAsBC"}
@@ -33,3 +33,5 @@ export * from './void-labels-response-schema';
33
33
  export * from './void-labels-response';
34
34
  export * from './update-settings-response-schema';
35
35
  export * from './update-settings-response';
36
+ export * from './start-tracking-response';
37
+ export * from './start-tracking-response-schema';
@@ -36,4 +36,6 @@ tslib_1.__exportStar(require("./void-labels-response-schema"), exports);
36
36
  tslib_1.__exportStar(require("./void-labels-response"), exports);
37
37
  tslib_1.__exportStar(require("./update-settings-response-schema"), exports);
38
38
  tslib_1.__exportStar(require("./update-settings-response"), exports);
39
+ tslib_1.__exportStar(require("./start-tracking-response"), exports);
40
+ tslib_1.__exportStar(require("./start-tracking-response-schema"), exports);
39
41
  //# sourceMappingURL=index.js.map
@@ -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,yEAA+C;AAC/C,kEAAwC;AACxC,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;AAC3C,oEAA0C;AAC1C,2EAAiD"}
@@ -0,0 +1,3 @@
1
+ import Joi from 'joi';
2
+ export declare const SubscriptionResultSchema: Joi.ObjectSchema<any>;
3
+ export declare const StartTrackingResponseSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartTrackingResponseSchema = exports.SubscriptionResultSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const identifier_schema_1 = require("../models/identifier-schema");
7
+ const base_response_schema_1 = require("./base-response-schema");
8
+ const start_tracking_status_schema_1 = require("../models/tracking/start-tracking-status-schema");
9
+ exports.SubscriptionResultSchema = joi_1.default.object({
10
+ identifier: identifier_schema_1.IdentifierSchema.required(),
11
+ status: start_tracking_status_schema_1.SubscriptionStatusSchema,
12
+ message: joi_1.default.string().required(),
13
+ });
14
+ exports.StartTrackingResponseSchema = base_response_schema_1.BaseResponseSchema.keys({
15
+ subscription_results: joi_1.default.array().required().items(exports.SubscriptionResultSchema),
16
+ });
17
+ //# sourceMappingURL=start-tracking-response-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-tracking-response-schema.js","sourceRoot":"","sources":["../../src/responses/start-tracking-response-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,mEAA+D;AAC/D,iEAA4D;AAC5D,kGAA2F;AAE9E,QAAA,wBAAwB,GAAG,aAAG,CAAC,MAAM,CAAC;IACjD,UAAU,EAAE,oCAAgB,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,uDAAwB;IAChC,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,yCAAkB,CAAC,IAAI,CAAC;IACjE,oBAAoB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,gCAAwB,CAAC;CAC7E,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { BaseResponse } from './base-response';
2
+ import { Identifier } from '../models';
3
+ import { StartTrackingStatus } from '../models/tracking/start-tracking-status';
4
+ /**
5
+ * @description Response from start tracking subscriptions
6
+ */
7
+ export declare class StartTrackingResponse extends BaseResponse {
8
+ subscription_results: SubscriptionResult[];
9
+ }
10
+ export interface SubscriptionResult {
11
+ identifier: Identifier;
12
+ status: StartTrackingStatus;
13
+ message: string;
14
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartTrackingResponse = void 0;
4
+ const base_response_1 = require("./base-response");
5
+ /**
6
+ * @description Response from start tracking subscriptions
7
+ */
8
+ class StartTrackingResponse extends base_response_1.BaseResponse {
9
+ subscription_results;
10
+ }
11
+ exports.StartTrackingResponse = StartTrackingResponse;
12
+ //# sourceMappingURL=start-tracking-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-tracking-response.js","sourceRoot":"","sources":["../../src/responses/start-tracking-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAI/C;;GAEG;AACH,MAAa,qBAAsB,SAAQ,4BAAY;IACrD,oBAAoB,CAAwB;CAC7C;AAFD,sDAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.17.0-beta",
3
+ "version": "4.17.4",
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",
package/spec.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Shipping API",
5
5
  "description": "This API specification describes the canonical ShipEngine Shipping API connector module.",
6
- "version": "1.29.0"
6
+ "version": "1.28.10"
7
7
  },
8
8
  "paths": {
9
9
  "/Register": {
@@ -947,6 +947,45 @@
947
947
  }
948
948
  }
949
949
  },
950
+ "/StartTracking": {
951
+ "post": {
952
+ "tags": ["Tracking"],
953
+ "description": "This method subscribes to tracking events for one or more identifiers. This endpoint initiate the subscription with the carrier's system.",
954
+ "operationId": "StartTracking",
955
+ "requestBody": {
956
+ "description": "An object containing identifiers to subscribe to tracking events for.",
957
+ "content": {
958
+ "application/json": {
959
+ "schema": {
960
+ "$ref": "#/components/schemas/StartTrackingRequest"
961
+ },
962
+ "example": {
963
+ "identifiers": [
964
+ { "type": "tracking_number", "value": "PL1234567890" },
965
+ { "type": "tracking_number", "value": "PL0987654321" }
966
+ ],
967
+ "transaction_id": "771323cb-75eb-4e2a-bc11-fda608c6ade8",
968
+ "authorization": {},
969
+ "metadata": {},
970
+ "connection_name": "a_connect_connection_name_string"
971
+ }
972
+ }
973
+ }
974
+ },
975
+ "responses": {
976
+ "200": {
977
+ "description": "Successful subscription response with results for each identifier.",
978
+ "content": {
979
+ "application/json": {
980
+ "schema": {
981
+ "$ref": "#/components/schemas/StartTrackingResponse"
982
+ }
983
+ }
984
+ }
985
+ }
986
+ }
987
+ }
988
+ },
950
989
  "/UpdateSettings": {
951
990
  "post": {
952
991
  "tags": [
@@ -1819,14 +1858,6 @@
1819
1858
  "description": "Alternative identifiers associated with this shipment.",
1820
1859
  "nullable": true
1821
1860
  },
1822
- "limit_identifiers": {
1823
- "type": "array",
1824
- "items": {
1825
- "$ref": "#/components/schemas/LimitIdentifier"
1826
- },
1827
- "description": "An array that defines rate/usage limit identifiers applicable to specific functionalities within the integration. Each entry represents a unique limit configuration tied to a functionality (e.g., \"track,\" \"createLabel\").",
1828
- "nullable": true
1829
- },
1830
1861
  "estimated_delivery_datetime": {
1831
1862
  "type": "string",
1832
1863
  "description": "The estimated date and time for when the shipment will be delivered. Formatted per the\r\nhttps://tools.ietf.org/html/rfc3339 spec.",
@@ -3080,29 +3111,6 @@
3080
3111
  "additionalProperties": false,
3081
3112
  "description": "A key value pair, allowing custom properties to be stored."
3082
3113
  },
3083
- "LimitIdentifier": {
3084
- "required": [
3085
- "type",
3086
- "value"
3087
- ],
3088
- "type": "object",
3089
- "properties": {
3090
- "type": {
3091
- "$ref": "#/components/schemas/LimitIdentifierType"
3092
- },
3093
- "value": {
3094
- "type": "string",
3095
- "description": "A unique identifier referencing the specific rate/usage limit configuration in the Rate Limiter."
3096
- }
3097
- }
3098
- },
3099
- "LimitIdentifierType": {
3100
- "type": "string",
3101
- "description": "The name of the functionality associated with this limit (e.g., \"track\").",
3102
- "enum": [
3103
- "track"
3104
- ]
3105
- },
3106
3114
  "ImportTrackingEventsRequest": {
3107
3115
  "required": [
3108
3116
  "transaction_id"
@@ -5383,6 +5391,72 @@
5383
5391
  "additionalProperties": false,
5384
5392
  "description": "This model represents the successful response from a tracking request."
5385
5393
  },
5394
+ "StartTrackingRequest": {
5395
+ "required": ["identifiers", "transaction_id"],
5396
+ "type": "object",
5397
+ "allOf": [
5398
+ {
5399
+ "$ref": "#/components/schemas/BaseRequest"
5400
+ }
5401
+ ],
5402
+ "properties": {
5403
+ "identifiers": {
5404
+ "type": "array",
5405
+ "items": {
5406
+ "$ref": "#/components/schemas/TrackingIdentifier"
5407
+ },
5408
+ "description": "Array of identifiers (e.g., tracking numbers) to subscribe to tracking events for.",
5409
+ "nullable": false
5410
+ }
5411
+ },
5412
+ "additionalProperties": false,
5413
+ "description": "This model represents the request payload for subscribing to tracking events for one or more identifiers."
5414
+ },
5415
+ "StartTrackingResponse": {
5416
+ "required": ["subscription_results"],
5417
+ "type": "object",
5418
+ "allOf": [
5419
+ {
5420
+ "$ref": "#/components/schemas/BaseResponse"
5421
+ }
5422
+ ],
5423
+ "properties": {
5424
+ "subscription_results": {
5425
+ "type": "array",
5426
+ "items": {
5427
+ "$ref": "#/components/schemas/SubscriptionResult"
5428
+ },
5429
+ "description": "Array of subscription results, one for each identifier in the request.",
5430
+ "nullable": false
5431
+ }
5432
+ },
5433
+ "additionalProperties": false,
5434
+ "description": "This model represents the response from a start tracking subscription request."
5435
+ },
5436
+ "SubscriptionResult": {
5437
+ "required": ["identifier", "status"],
5438
+ "type": "object",
5439
+ "properties": {
5440
+ "identifier": {
5441
+ "$ref": "#/components/schemas/TrackingIdentifier"
5442
+ },
5443
+ "status": {
5444
+ "$ref": "#/components/schemas/SubscriptionStatus"
5445
+ },
5446
+ "message": {
5447
+ "type": "string",
5448
+ "description": "Optional message providing additional details about the subscription result.",
5449
+ "nullable": true
5450
+ }
5451
+ },
5452
+ "additionalProperties": false,
5453
+ "description": "This model represents the result of a tracking subscription attempt for a single identifier."
5454
+ },
5455
+ "SubscriptionStatus": {
5456
+ "enum": ["success", "failed"],
5457
+ "type": "string",
5458
+ "description": "Status of the tracking subscription attempt.\nsuccess - Subscription was successful\nfailed - Subscription failed"
5459
+ },
5386
5460
  "TransportMeanEnum": {
5387
5461
  "enum": [
5388
5462
  "ground",
@@ -5869,4 +5943,4 @@
5869
5943
  "description": "Given inbound data, such as a webhook with tracking updates, return normalized information."
5870
5944
  }
5871
5945
  ]
5872
- }
5946
+ }
@@ -20,6 +20,7 @@ import {
20
20
  ImportTrackingEventsRequest,
21
21
  UpdateSettingsRequest,
22
22
  ListPickupsRequest,
23
+ StartTrackingRequest,
23
24
  } from '../requests';
24
25
 
25
26
  import {
@@ -40,6 +41,7 @@ import {
40
41
  GetServicePointResponse,
41
42
  UpdateSettingsResponse,
42
43
  ListPickupsResponse,
44
+ StartTrackingResponse,
43
45
  } from '../responses';
44
46
 
45
47
  import { CarrierAppMetadata } from './metadata/carrier-app-metadata';
@@ -183,6 +185,13 @@ export interface CarrierAppDefinition {
183
185
  UpdateSettings?: (
184
186
  request: UpdateSettingsRequest,
185
187
  ) => UpdateSettingsResponse | Promise<UpdateSettingsResponse>;
188
+ /**
189
+ * @description This endpoint is used to subscribe for status updates from the carrier
190
+ * @param request Data needed by the provider to start tracking shipments
191
+ */
192
+ StartTracking?: (
193
+ request: StartTrackingRequest,
194
+ ) => StartTrackingResponse | Promise<StartTrackingResponse>;
186
195
  /**
187
196
  * @description A collection of additional routes that can be used to extend the functionality of the app.
188
197
  * Extension methods are not automatically called by the ShipEngine platform, and require working with Auctane developers to implement.
@@ -18,4 +18,5 @@ export enum ApiEndpoints {
18
18
  ImportTrackingEvents = '/ImportTrackingEvents',
19
19
  UpdateSettings = '/UpdateSettings',
20
20
  ListPickups = '/ListPickups',
21
+ StartTracking = '/StartTracking',
21
22
  }
@@ -26,5 +26,6 @@ export const createEndpointMapping = (
26
26
  [Method.POST, ApiEndpoints.ImportTrackingEvents, definition.ImportTrackingEvents],
27
27
  [Method.POST, ApiEndpoints.UpdateSettings, definition.UpdateSettings],
28
28
  [Method.POST, ApiEndpoints.ListPickups, definition.ListPickups],
29
+ [Method.POST, ApiEndpoints.StartTracking, definition.StartTracking],
29
30
  ...mapExtensions(definition.Extensions),
30
31
  ];
@@ -16,3 +16,5 @@ export * from './update-method-schema';
16
16
  export * from './update-method';
17
17
  export * from './standardized-status-detail-codes';
18
18
  export * from './standardized-status-detail-codes-schema';
19
+ export * from './start-tracking-status';
20
+ export * from './start-tracking-status-schema';
@@ -0,0 +1,6 @@
1
+ import Joi from 'joi';
2
+ import { StartTrackingStatus } from './start-tracking-status';
3
+
4
+ export const SubscriptionStatusSchema = Joi.string()
5
+ .valid(...Object.values(StartTrackingStatus))
6
+ .required();
@@ -0,0 +1,7 @@
1
+ /** Status of subscription results */
2
+ export enum StartTrackingStatus {
3
+ /** @description The tracking subscription was created successfully */
4
+ SUCCESS = 'SUCCESS',
5
+ /** @description The tracking subscription could not be created */
6
+ FAILED = 'FAILED',
7
+ }
@@ -17,3 +17,5 @@ export * from './tracking-request';
17
17
  export * from './validate-inbound-data-request';
18
18
  export * from './void-labels-request';
19
19
  export * from './update-settings-request';
20
+ export * from './start-tracking-request';
21
+ export * from './start-tracking-request-schema';
@@ -0,0 +1,7 @@
1
+ import Joi from 'joi';
2
+ import { IdentifierSchema } from '../models/identifier-schema';
3
+ import { BaseRequestSchema } from './base-request-schema';
4
+
5
+ export const StartTrackingRequestSchema = BaseRequestSchema.keys({
6
+ identifiers: Joi.array().required().items(IdentifierSchema),
7
+ });