@shipengine/connect-carrier-api 2.3.3 → 2.4.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 (62) hide show
  1. package/lib/app/carrier-app-definition.d.ts +12 -2
  2. package/lib/app/carrier-app.js +7 -2
  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/internal/metadata.js +3 -0
  8. package/lib/app/internal/metadata.js.map +1 -1
  9. package/lib/models/index.d.ts +1 -0
  10. package/lib/models/index.js +1 -0
  11. package/lib/models/index.js.map +1 -1
  12. package/lib/models/manifest-status.d.ts +10 -0
  13. package/lib/models/manifest-status.js +16 -0
  14. package/lib/models/manifest-status.js.map +1 -0
  15. package/lib/models/relay-points/index.d.ts +2 -0
  16. package/lib/models/relay-points/index.js +6 -0
  17. package/lib/models/relay-points/index.js.map +1 -0
  18. package/lib/models/relay-points/opening-times.d.ts +11 -0
  19. package/lib/models/relay-points/opening-times.js +18 -0
  20. package/lib/models/relay-points/opening-times.js.map +1 -0
  21. package/lib/models/relay-points/relay-point.d.ts +17 -0
  22. package/lib/models/relay-points/relay-point.js +24 -0
  23. package/lib/models/relay-points/relay-point.js.map +1 -0
  24. package/lib/requests/create-label-request.d.ts +2 -1
  25. package/lib/requests/create-label-request.js.map +1 -1
  26. package/lib/requests/get-manifest-request.d.ts +9 -0
  27. package/lib/requests/get-manifest-request.js +9 -0
  28. package/lib/requests/get-manifest-request.js.map +1 -0
  29. package/lib/requests/get-relay-points-request.d.ts +6 -0
  30. package/lib/requests/get-relay-points-request.js +8 -0
  31. package/lib/requests/get-relay-points-request.js.map +1 -0
  32. package/lib/requests/index.d.ts +2 -0
  33. package/lib/requests/index.js +2 -0
  34. package/lib/requests/index.js.map +1 -1
  35. package/lib/responses/create-manifest-response.d.ts +6 -0
  36. package/lib/responses/create-manifest-response.js +6 -0
  37. package/lib/responses/create-manifest-response.js.map +1 -1
  38. package/lib/responses/get-relay-points-response.d.ts +8 -0
  39. package/lib/responses/get-relay-points-response.js +15 -0
  40. package/lib/responses/get-relay-points-response.js.map +1 -0
  41. package/lib/responses/index.d.ts +1 -0
  42. package/lib/responses/index.js +1 -0
  43. package/lib/responses/index.js.map +1 -1
  44. package/package.json +1 -1
  45. package/spec.json +107 -0
  46. package/src/app/carrier-app-definition.ts +17 -0
  47. package/src/app/carrier-app.ts +8 -0
  48. package/src/app/constants.ts +2 -0
  49. package/src/app/internal/metadata.ts +4 -0
  50. package/src/models/index.ts +1 -0
  51. package/src/models/manifest-status.ts +11 -0
  52. package/src/models/relay-points/index.ts +2 -0
  53. package/src/models/relay-points/opening-times.ts +21 -0
  54. package/src/models/relay-points/relay-point.ts +31 -0
  55. package/src/requests/create-label-request.ts +2 -0
  56. package/src/requests/get-manifest-request.ts +13 -0
  57. package/src/requests/get-relay-points-request.ts +7 -0
  58. package/src/requests/index.ts +2 -0
  59. package/src/responses/create-manifest-response.ts +11 -0
  60. package/src/responses/get-relay-points-response.ts +12 -0
  61. package/src/responses/index.ts +1 -0
  62. package/tsconfig.tsbuildinfo +1 -1
@@ -1,5 +1,5 @@
1
- import { RegisterRequest, CreateLabelRequest, VoidLabelsRequest, CreateManifestRequest, SchedulePickupRequest, CancelPickupRequest, GetRatesRequest, TrackingRequest, CancelNotificationRequest, CreateNotificationRequest, ValidateInboundDataRequest, NormalizeTrackingDataRequest } from '../requests';
2
- import { RegisterResponse, CreateLabelResponse, VoidLabelsResponse, CreateManifestResponse, SchedulePickupResponse, CancelPickupResponse, GetRatesResponse, TrackingResponse, CancelNotificationResponse, CreateNotificationResponse, ValidateInboundDataResponse, NormalizeTrackingDataResponse } from '../responses';
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';
3
3
  import { CarrierAppMetadata } from './metadata/carrier-app-metadata';
4
4
  /**
5
5
  * @description This defines a connect carrier app
@@ -26,6 +26,11 @@ export interface CarrierAppDefinition {
26
26
  * @param request Data needed by the provider to create a manifest
27
27
  */
28
28
  CreateManifest?: (request: CreateManifestRequest) => CreateManifestResponse | Promise<CreateManifestResponse>;
29
+ /**
30
+ * @description This method is used to retrieve a manifest with a carrier
31
+ * @param request Data needed by the provider to retrieve a previousely created manifest
32
+ */
33
+ GetManifest?: (request: GetManifestRequest) => CreateManifestResponse | Promise<CreateManifestResponse>;
29
34
  /**
30
35
  * @description This endpoint is used to schedule an adhoc pickup with the shipping provider
31
36
  * @param request Data needed by the provider to schedule adhoc pickups
@@ -66,4 +71,9 @@ export interface CarrierAppDefinition {
66
71
  * @param request Tracking data received from the provider via an inbound method, such as a webhook
67
72
  */
68
73
  NormalizeTrackingData?: (request: NormalizeTrackingDataRequest) => NormalizeTrackingDataResponse | Promise<NormalizeTrackingDataResponse>;
74
+ /**
75
+ * @description This endpoint is used to get all relay points for carrier
76
+ * @param request Data needed by the provider about the relay points to be returned
77
+ */
78
+ GetRelayPoints?: (request: GetRelayPointsRequest) => GetRelayPointsResponse | Promise<GetRelayPointsResponse>;
69
79
  }
@@ -45,7 +45,7 @@ class CarrierApp {
45
45
  constants_1.ApiEndpoints.CreateManifest,
46
46
  definition.CreateManifest,
47
47
  responses_1.CreateManifestResponseSchema,
48
- ], [
48
+ ], [internal_1.Method.POST, constants_1.ApiEndpoints.GetManifest, definition.GetManifest, responses_1.CreateManifestResponseSchema], [
49
49
  internal_1.Method.POST,
50
50
  constants_1.ApiEndpoints.CreateNotification,
51
51
  definition.CreateNotification,
@@ -65,7 +65,12 @@ class CarrierApp {
65
65
  constants_1.ApiEndpoints.ValidateInboundData,
66
66
  definition.ValidateInboundData,
67
67
  responses_1.ValidateInboundDataResponseSchema,
68
- ], [internal_1.Method.POST, constants_1.ApiEndpoints.VoidLabels, definition.VoidLabels, responses_1.VoidLabelsResponseSchema]).forEach(([method, path, implementation, schema]) => {
68
+ ], [internal_1.Method.POST, constants_1.ApiEndpoints.VoidLabels, definition.VoidLabels, responses_1.VoidLabelsResponseSchema], [
69
+ internal_1.Method.POST,
70
+ constants_1.ApiEndpoints.GetRelayPoints,
71
+ definition.GetRelayPoints,
72
+ responses_1.GetRelayPointsResponseSchema,
73
+ ]).forEach(([method, path, implementation, schema]) => {
69
74
  if (implementation) {
70
75
  this.routes.push({
71
76
  method,
@@ -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,4CAasB;AAGtB,MAAM,aAAa,GAAG,CAAC,cAAyB,EAAO,EAAE;IACvD,IAAI,cAAc,EAAE;QAClB,OAAO,CAAC,OAAY,EAAE,EAAE;YACtB,OAAO,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACtC,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,CAAC,CAAC,CAAC,EAAE,EAAE,WAC/D,OAAA,MAAA,CAAC,CAAC,yBAAyB,0CAAE,OAAO,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H,IAAI,CAAC,IAAI,GAAG,IAAI,mBAAQ,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,2BAAoB,CAAC,CAAC;IACpD,CAAC;IACD,SAAS;QACP,MAAM,gBAAgB,GAAG,CAAC,OAA6B,EAAiB,EAAE;YACxE,OAAO;gBACL,EAAE,EAAE,OAAO,CAAC,EAAE;gBACd,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO;gBAC5B,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO;aAC7B,CAAC;QACJ,CAAC,CAAC;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClD,CAAC;CACF;AA5GD,gCA4GC"}
@@ -4,11 +4,13 @@ export declare enum ApiEndpoints {
4
4
  VoidLabels = "/VoidLabels",
5
5
  GetRates = "/GetRates",
6
6
  CreateManifest = "/CreateManifest",
7
+ GetManifest = "/GetManifest",
7
8
  SchedulePickup = "/SchedulePickup",
8
9
  CancelPickup = "/CancelPickup",
9
10
  Track = "/Track",
10
11
  CreateNotification = "/CreateNotification",
11
12
  CancelNotification = "/CancelNotification",
12
13
  ValidateInboundData = "/ValidateInboundData",
13
- NormalizeTrackingData = "/NormalizeTrackingData"
14
+ NormalizeTrackingData = "/NormalizeTrackingData",
15
+ GetRelayPoints = "/RelayPoints"
14
16
  }
@@ -8,6 +8,7 @@ var ApiEndpoints;
8
8
  ApiEndpoints["VoidLabels"] = "/VoidLabels";
9
9
  ApiEndpoints["GetRates"] = "/GetRates";
10
10
  ApiEndpoints["CreateManifest"] = "/CreateManifest";
11
+ ApiEndpoints["GetManifest"] = "/GetManifest";
11
12
  ApiEndpoints["SchedulePickup"] = "/SchedulePickup";
12
13
  ApiEndpoints["CancelPickup"] = "/CancelPickup";
13
14
  ApiEndpoints["Track"] = "/Track";
@@ -15,5 +16,6 @@ var ApiEndpoints;
15
16
  ApiEndpoints["CancelNotification"] = "/CancelNotification";
16
17
  ApiEndpoints["ValidateInboundData"] = "/ValidateInboundData";
17
18
  ApiEndpoints["NormalizeTrackingData"] = "/NormalizeTrackingData";
19
+ ApiEndpoints["GetRelayPoints"] = "/RelayPoints";
18
20
  })(ApiEndpoints = exports.ApiEndpoints || (exports.ApiEndpoints = {}));
19
21
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,sCAAsB,CAAA;IACtB,4CAA4B,CAAA;IAC5B,0CAA0B,CAAA;IAC1B,sCAAsB,CAAA;IACtB,kDAAkC,CAAA;IAClC,kDAAkC,CAAA;IAClC,8CAA8B,CAAA;IAC9B,gCAAgB,CAAA;IAChB,0DAA0C,CAAA;IAC1C,0DAA0C,CAAA;IAC1C,4DAA4C,CAAA;IAC5C,gEAAgD,CAAA;AAClD,CAAC,EAbW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAavB"}
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,+CAA+B,CAAA;AACjC,CAAC,EAfW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAevB"}
@@ -20,6 +20,9 @@ const mapFunctions = (app) => {
20
20
  if (app.CreateManifest) {
21
21
  fns.push(fn('CreateManifest'));
22
22
  }
23
+ if (app.GetManifest) {
24
+ fns.push(fn('GetManifest'));
25
+ }
23
26
  if (app.SchedulePickup) {
24
27
  fns.push(fn('SchedulePickup'));
25
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/app/internal/metadata.ts"],"names":[],"mappings":";;;AAKA,mEAA+D;AAG/D,MAAM,EAAE,GAAG,CAAC,IAAY,EAAyB,EAAE,CAAC,CAAC;IACnD,IAAI,EAAE,IAAI;IACV,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,GAAyB,EAA2B,EAAE;IAC1E,MAAM,GAAG,GAA4B,EAAE,CAAC;IAExC,IAAI,GAAG,CAAC,QAAQ,EAAE;QAChB,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;KAC1B;IAED,IAAI,GAAG,CAAC,WAAW,EAAE;QACnB,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;KAC7B;IAED,IAAI,GAAG,CAAC,UAAU,EAAE;QAClB,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;KAC5B;IAED,IAAI,GAAG,CAAC,cAAc,EAAE;QACtB,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;KAChC;IAED,IAAI,GAAG,CAAC,cAAc,EAAE;QACtB,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;KAChC;IAED,IAAI,GAAG,CAAC,YAAY,EAAE;QACpB,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;KAC9B;IAED,IAAI,GAAG,CAAC,QAAQ,EAAE;QAChB,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;KAC1B;IAED,IAAI,GAAG,CAAC,KAA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I,IAAI,CAAC,WAAW,EAAE;YACpB,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,GAAG,KAAK,CAAC;SAC7C;QACD,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,4CAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;QAE9E,IAAI,CAAC,SAAS,GAAG;YACf,gBAAgB,EAAE;gBAChB,QAAQ,EAAE,uBAAuB;gBACjC,SAAS,EAAE,wBAAwB;gBACnC,OAAO,EAAE,sBAAsB;aAChC;YACD,UAAU,EAAE,OAAO;YACnB,SAAS,EAAE,YAAY,CAAC,GAAG,CAAC;SAC7B,CAAC;IACJ,CAAC;CACF;AA1BD,4BA0BC"}
@@ -22,3 +22,4 @@ export * from './taxes';
22
22
  export * from './documents';
23
23
  export * from './time-window';
24
24
  export * from './inbound-content-types';
25
+ export * from './relay-points';
@@ -25,4 +25,5 @@ tslib_1.__exportStar(require("./taxes"), exports);
25
25
  tslib_1.__exportStar(require("./documents"), exports);
26
26
  tslib_1.__exportStar(require("./time-window"), exports);
27
27
  tslib_1.__exportStar(require("./inbound-content-types"), exports);
28
+ tslib_1.__exportStar(require("./relay-points"), exports);
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,0DAAgC;AAChC,oDAA0B;AAC1B,oDAA0B;AAC1B,mDAAyB;AACzB,8DAAoC;AACpC,mDAAyB;AACzB,sDAA4B;AAC5B,mDAAyB;AACzB,kDAAwB;AACxB,yDAA+B;AAC/B,qDAA2B;AAC3B,kDAAwB;AACxB,6DAAmC;AACnC,+DAAqC;AACrC,qDAA2B;AAC3B,uDAA6B;AAC7B,gEAAsC;AACtC,oDAA0B;AAC1B,8DAAoC;AACpC,kDAAwB;AACxB,sDAA4B;AAC5B,wDAA8B;AAC9B,kEAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,0DAAgC;AAChC,oDAA0B;AAC1B,oDAA0B;AAC1B,mDAAyB;AACzB,8DAAoC;AACpC,mDAAyB;AACzB,sDAA4B;AAC5B,mDAAyB;AACzB,kDAAwB;AACxB,yDAA+B;AAC/B,qDAA2B;AAC3B,kDAAwB;AACxB,6DAAmC;AACnC,+DAAqC;AACrC,qDAA2B;AAC3B,uDAA6B;AAC7B,gEAAsC;AACtC,oDAA0B;AAC1B,8DAAoC;AACpC,kDAAwB;AACxB,sDAA4B;AAC5B,wDAA8B;AAC9B,kEAAwC;AACxC,yDAA+B"}
@@ -0,0 +1,10 @@
1
+ import Joi from 'joi';
2
+ /** @description Possible status values for Created Manifest */
3
+ export declare enum ManifestStatus {
4
+ /** @description Unknown, The request is in process */
5
+ Unknown = "unknown",
6
+ InProgress = "in_progress",
7
+ Completed = "completed",
8
+ Failed = "failed"
9
+ }
10
+ export declare const ManifestStatusSchema: Joi.StringSchema;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ManifestStatusSchema = exports.ManifestStatus = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ /** @description Possible status values for Created Manifest */
7
+ var ManifestStatus;
8
+ (function (ManifestStatus) {
9
+ /** @description Unknown, The request is in process */
10
+ ManifestStatus["Unknown"] = "unknown";
11
+ ManifestStatus["InProgress"] = "in_progress";
12
+ ManifestStatus["Completed"] = "completed";
13
+ ManifestStatus["Failed"] = "failed";
14
+ })(ManifestStatus = exports.ManifestStatus || (exports.ManifestStatus = {}));
15
+ exports.ManifestStatusSchema = joi_1.default.string().valid(...Object.values(ManifestStatus));
16
+ //# sourceMappingURL=manifest-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest-status.js","sourceRoot":"","sources":["../../src/models/manifest-status.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,+DAA+D;AAC/D,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,sDAAsD;IACtD,qCAAmB,CAAA;IACnB,4CAA0B,CAAA;IAC1B,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;AACnB,CAAC,EANW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAMzB;AACY,QAAA,oBAAoB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './relay-point';
2
+ export * from './opening-times';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./relay-point"), exports);
5
+ tslib_1.__exportStar(require("./opening-times"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/relay-points/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,0DAAgC"}
@@ -0,0 +1,11 @@
1
+ import Joi from 'joi';
2
+ export declare class OpeningTimes {
3
+ monday: string;
4
+ tuesday: string;
5
+ wednesday: string;
6
+ thursday: string;
7
+ friday: string;
8
+ saturday: string;
9
+ sunday: string;
10
+ }
11
+ export declare const OpeningTimesSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OpeningTimesSchema = exports.OpeningTimes = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ class OpeningTimes {
7
+ }
8
+ exports.OpeningTimes = OpeningTimes;
9
+ exports.OpeningTimesSchema = joi_1.default.object({
10
+ monday: joi_1.default.string().required().empty(),
11
+ tuesday: joi_1.default.string().required().empty(),
12
+ wednesday: joi_1.default.string().required().empty(),
13
+ thursday: joi_1.default.string().required().empty(),
14
+ friday: joi_1.default.string().required().empty(),
15
+ saturday: joi_1.default.string().required().empty(),
16
+ sunday: joi_1.default.string().required().empty(),
17
+ });
18
+ //# sourceMappingURL=opening-times.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opening-times.js","sourceRoot":"","sources":["../../../src/models/relay-points/opening-times.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,MAAa,YAAY;CAQxB;AARD,oCAQC;AAEY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACvC,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACxC,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC1C,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACzC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACvC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACzC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CACxC,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import Joi from 'joi';
2
+ import { OpeningTimes } from './opening-times';
3
+ /** @description Basic structure for a relay point */
4
+ export declare class RelayPoint {
5
+ relay_point_id: string;
6
+ company_name?: string;
7
+ address_line1: string;
8
+ city_locality: string;
9
+ state_province: string;
10
+ postal_code: string;
11
+ country_code: string;
12
+ phone?: string;
13
+ long?: number;
14
+ lat?: number;
15
+ opening_times: OpeningTimes;
16
+ }
17
+ export declare const RelayPointSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RelayPointSchema = exports.RelayPoint = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const opening_times_1 = require("./opening-times");
7
+ /** @description Basic structure for a relay point */
8
+ class RelayPoint {
9
+ }
10
+ exports.RelayPoint = RelayPoint;
11
+ exports.RelayPointSchema = joi_1.default.object({
12
+ relay_point_id: joi_1.default.string().required(),
13
+ company_name: joi_1.default.string().optional().empty(),
14
+ address_line1: joi_1.default.string().required(),
15
+ city_locality: joi_1.default.string().required(),
16
+ state_province: joi_1.default.string().required(),
17
+ postal_code: joi_1.default.string().required(),
18
+ country_code: joi_1.default.string().required(),
19
+ phone: joi_1.default.string().required(),
20
+ long: joi_1.default.number().optional(),
21
+ lat: joi_1.default.number().optional(),
22
+ opening_times: opening_times_1.OpeningTimesSchema.required(),
23
+ });
24
+ //# sourceMappingURL=relay-point.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relay-point.js","sourceRoot":"","sources":["../../../src/models/relay-points/relay-point.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,mDAAmE;AAEnE,qDAAqD;AACrD,MAAa,UAAU;CAYtB;AAZD,gCAYC;AAEY,QAAA,gBAAgB,GAAG,aAAG,CAAC,MAAM,CAAC;IACzC,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7C,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,GAAG,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,kCAAkB,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { BaseRequest } from './base-request';
2
- import { AdvancedOptions, ConfirmationTypes, FulfillmentPlanDetails, InsuranceProviders, DocumentFormat, LabelLayouts, Package, ReturnLabelDetails, ShipFrom, PudoLocation, ShipFromDisplay, ShipTo, Document, TimeWindow } from '../models';
2
+ import { AdvancedOptions, ConfirmationTypes, FulfillmentPlanDetails, InsuranceProviders, DocumentFormat, LabelLayouts, Package, ReturnLabelDetails, ShipFrom, PudoLocation, ShipFromDisplay, ShipTo, Document, TimeWindow, RelayPoint } from '../models';
3
3
  /** @description Basic structure for a request to create a label */
4
4
  export declare class CreateLabelRequest extends BaseRequest {
5
5
  service_code?: string;
@@ -18,6 +18,7 @@ export declare class CreateLabelRequest extends BaseRequest {
18
18
  ship_to: ShipTo;
19
19
  ship_from: ShipFrom;
20
20
  pickup_location?: PudoLocation;
21
+ relay_points?: RelayPoint[];
21
22
  ship_from_display?: ShipFromDisplay;
22
23
  /** @description Whether the shipment requires next day shipping */
23
24
  next_day?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"create-label-request.js","sourceRoot":"","sources":["../../src/requests/create-label-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAkB7C,mEAAmE;AACnE,MAAa,kBAAmB,SAAQ,0BAAW;CA8BlD;AA9BD,gDA8BC"}
1
+ {"version":3,"file":"create-label-request.js","sourceRoot":"","sources":["../../src/requests/create-label-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAmB7C,mEAAmE;AACnE,MAAa,kBAAmB,SAAQ,0BAAW;CA+BlD;AA/BD,gDA+BC"}
@@ -0,0 +1,9 @@
1
+ import { BaseRequest } from './base-request';
2
+ /** @description Basic structure for a request to get previousely created manifests */
3
+ export declare class GetManifestRequest extends BaseRequest {
4
+ manifest_request_id?: number;
5
+ manifest_identifiers?: {
6
+ [key: string]: any;
7
+ };
8
+ return_immediately?: boolean;
9
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetManifestRequest = void 0;
4
+ const base_request_1 = require("./base-request");
5
+ /** @description Basic structure for a request to get previousely created manifests */
6
+ class GetManifestRequest extends base_request_1.BaseRequest {
7
+ }
8
+ exports.GetManifestRequest = GetManifestRequest;
9
+ //# sourceMappingURL=get-manifest-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-manifest-request.js","sourceRoot":"","sources":["../../src/requests/get-manifest-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,sFAAsF;AACtF,MAAa,kBAAmB,SAAQ,0BAAW;CASlD;AATD,gDASC"}
@@ -0,0 +1,6 @@
1
+ import { BaseRequest } from './base-request';
2
+ export declare class GetRelayPointsRequest extends BaseRequest {
3
+ service_code: string;
4
+ postal_code: string;
5
+ country_code: string;
6
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetRelayPointsRequest = void 0;
4
+ const base_request_1 = require("./base-request");
5
+ class GetRelayPointsRequest extends base_request_1.BaseRequest {
6
+ }
7
+ exports.GetRelayPointsRequest = GetRelayPointsRequest;
8
+ //# sourceMappingURL=get-relay-points-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-relay-points-request.js","sourceRoot":"","sources":["../../src/requests/get-relay-points-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,MAAa,qBAAsB,SAAQ,0BAAW;CAIrD;AAJD,sDAIC"}
@@ -1,6 +1,7 @@
1
1
  export * from './cancel-pickup-request';
2
2
  export * from './create-label-request';
3
3
  export * from './create-manifest-request';
4
+ export * from './get-manifest-request';
4
5
  export * from './get-rates-request';
5
6
  export * from './register-request';
6
7
  export * from './schedule-pickup-request';
@@ -10,3 +11,4 @@ export * from './create-notification-request';
10
11
  export * from './cancel-notification-request';
11
12
  export * from './validate-inbound-data-request';
12
13
  export * from './normalize-tracking-data-request';
14
+ export * from './get-relay-points-request';
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./cancel-pickup-request"), exports);
5
5
  tslib_1.__exportStar(require("./create-label-request"), exports);
6
6
  tslib_1.__exportStar(require("./create-manifest-request"), exports);
7
+ tslib_1.__exportStar(require("./get-manifest-request"), exports);
7
8
  tslib_1.__exportStar(require("./get-rates-request"), exports);
8
9
  tslib_1.__exportStar(require("./register-request"), exports);
9
10
  tslib_1.__exportStar(require("./schedule-pickup-request"), exports);
@@ -13,4 +14,5 @@ tslib_1.__exportStar(require("./create-notification-request"), exports);
13
14
  tslib_1.__exportStar(require("./cancel-notification-request"), exports);
14
15
  tslib_1.__exportStar(require("./validate-inbound-data-request"), exports);
15
16
  tslib_1.__exportStar(require("./normalize-tracking-data-request"), exports);
17
+ tslib_1.__exportStar(require("./get-relay-points-request"), exports);
16
18
  //# 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,8DAAoC;AACpC,6DAAmC;AACnC,oEAA0C;AAC1C,6DAAmC;AACnC,gEAAsC;AACtC,wEAA8C;AAC9C,wEAA8C;AAC9C,0EAAgD;AAChD,4EAAkD"}
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,9 +1,15 @@
1
1
  import { BaseResponse } from './base-response';
2
2
  import { Manifest } from '../models';
3
3
  import Joi from 'joi';
4
+ import { ManifestStatus } from '../models/manifest-status';
4
5
  /** @description Basic structure for a response to create a manifest */
5
6
  export declare class CreateManifestResponse extends BaseResponse {
6
7
  transaction_id: string;
7
8
  manifests?: Manifest[];
9
+ manifest_request_id?: number;
10
+ manifest_status?: ManifestStatus;
11
+ total_shipments?: number;
12
+ total_invalid?: number;
13
+ manifest_identifiers?: any;
8
14
  }
9
15
  export declare const CreateManifestResponseSchema: Joi.ObjectSchema<any>;
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const base_response_1 = require("./base-response");
6
6
  const models_1 = require("../models");
7
7
  const joi_1 = tslib_1.__importDefault(require("joi"));
8
+ const manifest_status_1 = require("../models/manifest-status");
8
9
  /** @description Basic structure for a response to create a manifest */
9
10
  class CreateManifestResponse extends base_response_1.BaseResponse {
10
11
  }
@@ -12,5 +13,10 @@ exports.CreateManifestResponse = CreateManifestResponse;
12
13
  exports.CreateManifestResponseSchema = base_response_1.BaseResponseSchema.keys({
13
14
  transaction_id: joi_1.default.string().required(),
14
15
  manifests: joi_1.default.array().optional().items(models_1.ManifestSchema),
16
+ manifest_request_id: joi_1.default.number().optional(),
17
+ manifest_status: manifest_status_1.ManifestStatusSchema.optional,
18
+ total_shipments: joi_1.default.number().optional(),
19
+ total_invalid: joi_1.default.number().optional(),
20
+ manifest_identifiers: joi_1.default.any().optional(),
15
21
  });
16
22
  //# sourceMappingURL=create-manifest-response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-manifest-response.js","sourceRoot":"","sources":["../../src/responses/create-manifest-response.ts"],"names":[],"mappings":";;;;AAAA,mDAAmE;AACnE,sCAAqD;AACrD,sDAAsB;AAEtB,uEAAuE;AACvE,MAAa,sBAAuB,SAAQ,4BAAY;CAGvD;AAHD,wDAGC;AAEY,QAAA,4BAA4B,GAAG,kCAAkB,CAAC,IAAI,CAAC;IAClE,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,SAAS,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,uBAAc,CAAC;CACxD,CAAC,CAAC"}
1
+ {"version":3,"file":"create-manifest-response.js","sourceRoot":"","sources":["../../src/responses/create-manifest-response.ts"],"names":[],"mappings":";;;;AAAA,mDAAmE;AACnE,sCAAqD;AACrD,sDAAsB;AACtB,+DAAiF;AAEjF,uEAAuE;AACvE,MAAa,sBAAuB,SAAQ,4BAAY;CAQvD;AARD,wDAQC;AAEY,QAAA,4BAA4B,GAAG,kCAAkB,CAAC,IAAI,CAAC;IAClE,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,SAAS,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,uBAAc,CAAC;IACvD,mBAAmB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,eAAe,EAAE,sCAAoB,CAAC,QAAQ;IAC9C,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,oBAAoB,EAAE,aAAG,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { BaseResponse } from './base-response';
2
+ import { RelayPoint } from '../models';
3
+ import Joi from 'joi';
4
+ /** @description Basic structure for a response to create a label */
5
+ export declare class GetRelayPointsResponse extends BaseResponse {
6
+ relay_points: RelayPoint[];
7
+ }
8
+ export declare const GetRelayPointsResponseSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetRelayPointsResponseSchema = exports.GetRelayPointsResponse = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const base_response_1 = require("./base-response");
6
+ const models_1 = require("../models");
7
+ const joi_1 = tslib_1.__importDefault(require("joi"));
8
+ /** @description Basic structure for a response to create a label */
9
+ class GetRelayPointsResponse extends base_response_1.BaseResponse {
10
+ }
11
+ exports.GetRelayPointsResponse = GetRelayPointsResponse;
12
+ exports.GetRelayPointsResponseSchema = base_response_1.BaseResponseSchema.keys({
13
+ relay_points: joi_1.default.array().required().items(models_1.RelayPointSchema),
14
+ });
15
+ //# sourceMappingURL=get-relay-points-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-relay-points-response.js","sourceRoot":"","sources":["../../src/responses/get-relay-points-response.ts"],"names":[],"mappings":";;;;AAAA,mDAAmE;AACnE,sCAAyD;AACzD,sDAAsB;AAEtB,oEAAoE;AACpE,MAAa,sBAAuB,SAAQ,4BAAY;CAEvD;AAFD,wDAEC;AAEY,QAAA,4BAA4B,GAAG,kCAAkB,CAAC,IAAI,CAAC;IAClE,YAAY,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,yBAAgB,CAAC;CAC7D,CAAC,CAAC"}
@@ -11,3 +11,4 @@ export * from './cancel-notification-response';
11
11
  export * from './create-notification-response';
12
12
  export * from './validate-inbound-data-response';
13
13
  export * from './normalize-tracking-data-response';
14
+ export * from './get-relay-points-response';
@@ -14,4 +14,5 @@ tslib_1.__exportStar(require("./cancel-notification-response"), exports);
14
14
  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
+ tslib_1.__exportStar(require("./get-relay-points-response"), exports);
17
18
  //# 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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "2.3.3",
3
+ "version": "2.4.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",
package/spec.json CHANGED
@@ -362,6 +362,89 @@
362
362
  }
363
363
  }
364
364
  },
365
+ "/GetManifest": {
366
+ "post": {
367
+ "tags": ["Manifesting"],
368
+ "description": "This method retrieves an end-of-day manifest and should be implemented by carrier apps that support retrieving end-of-day manifesting following create.",
369
+ "operationId": "Get Manifest",
370
+ "parameters": [
371
+ {
372
+ "name": "ShipStation-TransactionID",
373
+ "in": "header",
374
+ "description": "The transaction ID uniquely represents this request.",
375
+ "schema": {
376
+ "type": "string",
377
+ "format": "uuid"
378
+ }
379
+ }
380
+ ],
381
+ "requestBody": {
382
+ "description": "An object containing information required to retrieve a manifest.",
383
+ "content": {
384
+ "application/json": {
385
+ "schema": {
386
+ "$ref": "#/components/schemas/GetManifestRequest"
387
+ }
388
+ }
389
+ }
390
+ },
391
+ "responses": {
392
+ "400": {
393
+ "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
394
+ "content": {
395
+ "application/json": {
396
+ "schema": {
397
+ "$ref": "#/components/schemas/BadRequestResponse"
398
+ }
399
+ }
400
+ }
401
+ },
402
+ "401": {
403
+ "description": "Use this to indicate an authentication or authorization error.",
404
+ "content": {
405
+ "application/json": {
406
+ "schema": {
407
+ "$ref": "#/components/schemas/UnauthorizedResponse"
408
+ }
409
+ }
410
+ }
411
+ },
412
+ "500": {
413
+ "description": "An unexpected error occurred in the carrier app.",
414
+ "content": {
415
+ "application/json": {
416
+ "schema": {
417
+ "$ref": "#/components/schemas/InternalServerErrorResponse"
418
+ }
419
+ }
420
+ }
421
+ },
422
+ "520": {
423
+ "description": "Use this when an error is the result of calling an external service, such as an API. This indicates that the error came from a downstream service rather than directly in your app.",
424
+ "content": {
425
+ "application/json": {
426
+ "schema": {
427
+ "$ref": "#/components/schemas/ExternalServerErrorResponse"
428
+ }
429
+ }
430
+ }
431
+ },
432
+ "404": {
433
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
434
+ },
435
+ "200": {
436
+ "description": "This object model represents the response from a successful get manifest request. It is the same as the response from create manifest",
437
+ "content": {
438
+ "application/json": {
439
+ "schema": {
440
+ "$ref": "#/components/schemas/CreateManifestResponse"
441
+ }
442
+ }
443
+ }
444
+ }
445
+ }
446
+ }
447
+ },
365
448
  "/ValidateInboundData": {
366
449
  "post": {
367
450
  "tags": ["Normalize Inbound Data"],
@@ -1900,6 +1983,30 @@
1900
1983
  "additionalProperties": false,
1901
1984
  "description": "This model represents the response from a successful create label request."
1902
1985
  },
1986
+ "GetManifestRequest": {
1987
+ "type": "object",
1988
+ "allOf": [
1989
+ {
1990
+ "$ref": "#/components/schemas/BaseRequest"
1991
+ }
1992
+ ],
1993
+ "properties": {
1994
+ "manifest_request_id":{
1995
+ "type": "integer"
1996
+ },
1997
+ "manifest_identifiers": {
1998
+ "type": "array",
1999
+ "items": {
2000
+ "$ref": "#/components/schemas/Identifier"
2001
+ }
2002
+ },
2003
+ "return_immediately": {
2004
+ "type": "boolean"
2005
+ }
2006
+ },
2007
+ "additionalProperties": false,
2008
+ "description": "This model represents the request payload needed to retrieve a previously created manifest."
2009
+ },
1903
2010
  "CreateManifestRequest": {
1904
2011
  "type": "object",
1905
2012
  "allOf": [