@shipengine/connect-carrier-api 4.16.10 → 4.17.0-beta
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.
- package/lib/models/limit-identifier-schema.d.ts +2 -0
- package/lib/models/limit-identifier-schema.js +11 -0
- package/lib/models/limit-identifier-schema.js.map +1 -0
- package/lib/models/limit-identifier-type-schema.d.ts +2 -0
- package/lib/models/limit-identifier-type-schema.js +8 -0
- package/lib/models/limit-identifier-type-schema.js.map +1 -0
- package/lib/models/limit-identifier-type.d.ts +3 -0
- package/lib/models/limit-identifier-type.js +8 -0
- package/lib/models/limit-identifier-type.js.map +1 -0
- package/lib/models/limit-identifier.d.ts +5 -0
- package/lib/models/limit-identifier.js +9 -0
- package/lib/models/limit-identifier.js.map +1 -0
- package/lib/models/pickup/pickup-shipment-details.d.ts +2 -2
- package/lib/models/pickup/pickup-shipment-details.js.map +1 -1
- package/lib/models/pickup/shipped-shipment.d.ts +3 -1
- package/lib/models/pickup/shipped-shipment.js +2 -0
- package/lib/models/pickup/shipped-shipment.js.map +1 -1
- package/lib/responses/create-label-response-schema.js +2 -0
- package/lib/responses/create-label-response-schema.js.map +1 -1
- package/lib/responses/create-label-response.d.ts +2 -0
- package/lib/responses/create-label-response.js +1 -0
- package/lib/responses/create-label-response.js.map +1 -1
- package/package.json +2 -2
- package/spec.json +581 -194
- package/src/models/limit-identifier-schema.ts +7 -0
- package/src/models/limit-identifier-type-schema.ts +4 -0
- package/src/models/limit-identifier-type.ts +3 -0
- package/src/models/limit-identifier.ts +6 -0
- package/src/models/pickup/pickup-shipment-details.ts +2 -2
- package/src/models/pickup/shipped-shipment.ts +5 -2
- package/src/responses/create-label-response-schema.ts +2 -0
- package/src/responses/create-label-response.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LimitIdentifierSchema = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
6
|
+
const limit_identifier_type_schema_1 = require("./limit-identifier-type-schema");
|
|
7
|
+
exports.LimitIdentifierSchema = joi_1.default.object({
|
|
8
|
+
type: limit_identifier_type_schema_1.LimitIdentifierTypeSchema.required(),
|
|
9
|
+
value: joi_1.default.string().required(),
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=limit-identifier-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limit-identifier-schema.js","sourceRoot":"","sources":["../../src/models/limit-identifier-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,iFAA2E;AAE9D,QAAA,qBAAqB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,wDAAyB,CAAC,QAAQ,EAAE;IAC1C,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LimitIdentifierTypeSchema = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
6
|
+
const limit_identifier_type_1 = require("./limit-identifier-type");
|
|
7
|
+
exports.LimitIdentifierTypeSchema = joi_1.default.string().valid(...Object.values(limit_identifier_type_1.LimitIdentifierType));
|
|
8
|
+
//# sourceMappingURL=limit-identifier-type-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limit-identifier-type-schema.js","sourceRoot":"","sources":["../../src/models/limit-identifier-type-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,mEAA8D;AAEjD,QAAA,yBAAyB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,2CAAmB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LimitIdentifierType = void 0;
|
|
4
|
+
var LimitIdentifierType;
|
|
5
|
+
(function (LimitIdentifierType) {
|
|
6
|
+
LimitIdentifierType["Track"] = "track";
|
|
7
|
+
})(LimitIdentifierType || (exports.LimitIdentifierType = LimitIdentifierType = {}));
|
|
8
|
+
//# sourceMappingURL=limit-identifier-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limit-identifier-type.js","sourceRoot":"","sources":["../../src/models/limit-identifier-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;AACjB,CAAC,EAFW,mBAAmB,mCAAnB,mBAAmB,QAE9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limit-identifier.js","sourceRoot":"","sources":["../../src/models/limit-identifier.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAC1B,IAAI,CAAuB;IAC3B,KAAK,CAAU;CAChB;AAHD,0CAGC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PickupShipment } from './shipped-shipment';
|
|
2
2
|
/** @description Details for a pickup shipment */
|
|
3
3
|
export declare class PickupShipmentDetails {
|
|
4
4
|
/** @description Service category for the carrier (ground, express, next_day) */
|
|
5
5
|
pickup_service_code?: string;
|
|
6
6
|
/** @description List of shipments to be picked up */
|
|
7
|
-
shipments?:
|
|
7
|
+
shipments?: PickupShipment[];
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pickup-shipment-details.js","sourceRoot":"","sources":["../../../src/models/pickup/pickup-shipment-details.ts"],"names":[],"mappings":";;;AAEA,iDAAiD;AACjD,MAAa,qBAAqB;IAChC,gFAAgF;IAChF,mBAAmB,CAAU;IAC7B,qDAAqD;IACrD,SAAS,
|
|
1
|
+
{"version":3,"file":"pickup-shipment-details.js","sourceRoot":"","sources":["../../../src/models/pickup/pickup-shipment-details.ts"],"names":[],"mappings":";;;AAEA,iDAAiD;AACjD,MAAa,qBAAqB;IAChC,gFAAgF;IAChF,mBAAmB,CAAU;IAC7B,qDAAqD;IACrD,SAAS,CAAoB;CAC9B;AALD,sDAKC"}
|
|
@@ -3,7 +3,7 @@ import { ShipTo } from '../addresses/ship-to';
|
|
|
3
3
|
import { AdvancedOptions } from '../advanced-options';
|
|
4
4
|
import { Identifier } from '../identifier';
|
|
5
5
|
import { ShippedPackage } from './shipped-package';
|
|
6
|
-
import { PudoLocation } from '../../models';
|
|
6
|
+
import { DisplayScheme, PudoLocation } from '../../models';
|
|
7
7
|
/** @description Basic structure for a shipment that has been shipped */
|
|
8
8
|
export declare class ShippedShipment extends Label {
|
|
9
9
|
/** @description The address that a shipment will be delivered to */
|
|
@@ -24,4 +24,6 @@ export declare class ShippedShipment extends Label {
|
|
|
24
24
|
reference?: string;
|
|
25
25
|
}
|
|
26
26
|
export declare class PickupShipment extends ShippedShipment {
|
|
27
|
+
/** @description Display schemes for shipments*/
|
|
28
|
+
display_schemes?: DisplayScheme[];
|
|
27
29
|
}
|
|
@@ -23,6 +23,8 @@ class ShippedShipment extends label_1.Label {
|
|
|
23
23
|
}
|
|
24
24
|
exports.ShippedShipment = ShippedShipment;
|
|
25
25
|
class PickupShipment extends ShippedShipment {
|
|
26
|
+
/** @description Display schemes for shipments*/
|
|
27
|
+
display_schemes;
|
|
26
28
|
}
|
|
27
29
|
exports.PickupShipment = PickupShipment;
|
|
28
30
|
//# sourceMappingURL=shipped-shipment.js.map
|
|
@@ -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;IAChC,4FAA4F;IAC5F,SAAS,CAAU;CACpB;AAjBD,0CAiBC;AAED,MAAa,cAAe,SAAQ,eAAe;
|
|
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;IACjD,gDAAgD;IAChD,eAAe,CAAmB;CACnC;AAHD,wCAGC"}
|
|
@@ -14,6 +14,7 @@ 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");
|
|
17
18
|
exports.CreateLabelResponseSchema = base_response_schema_1.BaseResponseSchema.keys({
|
|
18
19
|
transaction_id: joi_1.default.string().required(),
|
|
19
20
|
label_download: label_download_schema_1.LabelDownloadSchema.optional(),
|
|
@@ -33,5 +34,6 @@ exports.CreateLabelResponseSchema = base_response_schema_1.BaseResponseSchema.ke
|
|
|
33
34
|
relay_points: relay_point_details_schema_1.RelayPointDetailsSchema.optional(),
|
|
34
35
|
dropoff_location: pudo_location_schema_1.PudoLocationSchema.optional(),
|
|
35
36
|
pickup_location: pudo_location_schema_1.PudoLocationSchema.optional(),
|
|
37
|
+
limit_identifiers: joi_1.default.array().optional().items(limit_identifier_schema_1.LimitIdentifierSchema),
|
|
36
38
|
});
|
|
37
39
|
//# sourceMappingURL=create-label-response-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-label-response-schema.js","sourceRoot":"","sources":["../../src/responses/create-label-response-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,iEAA4D;AAC5D,yFAAmF;AACnF,yEAAqE;AACrE,mEAA+D;AAC/D,gFAA2E;AAC3E,kFAA6E;AAC7E,gFAA2E;AAC3E,kGAA4F;AAC5F,qEAAgE;AAChE,wFAAmF;AACnF,mFAA8E;
|
|
1
|
+
{"version":3,"file":"create-label-response-schema.js","sourceRoot":"","sources":["../../src/responses/create-label-response-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,iEAA4D;AAC5D,yFAAmF;AACnF,yEAAqE;AACrE,mEAA+D;AAC/D,gFAA2E;AAC3E,kFAA6E;AAC7E,gFAA2E;AAC3E,kGAA4F;AAC5F,qEAAgE;AAChE,wFAAmF;AACnF,mFAA8E;AAC9E,+EAA0E;AAE7D,QAAA,yBAAyB,GAAG,yCAAkB,CAAC,IAAI,CAAC;IAC/D,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,cAAc,EAAE,2CAAmB,CAAC,QAAQ,EAAE;IAC9C,aAAa,EAAE,y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,7 @@
|
|
|
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';
|
|
4
5
|
/** @description Basic structure for a response to create a label */
|
|
5
6
|
export declare class CreateLabelResponse extends BaseResponse {
|
|
6
7
|
transaction_id: string;
|
|
@@ -24,4 +25,5 @@ export declare class CreateLabelResponse extends BaseResponse {
|
|
|
24
25
|
dropoff_location?: PudoLocation;
|
|
25
26
|
pickup_location?: PudoLocation;
|
|
26
27
|
carrier_weight?: CarrierWeight;
|
|
28
|
+
limit_identifiers?: LimitIdentifier[];
|
|
27
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-label-response.js","sourceRoot":"","sources":["../../src/responses/create-label-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipengine/connect-carrier-api",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.17.0-beta",
|
|
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",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"tslib": "^2.6.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@shipengine/connect-runtime": "^4.10.
|
|
47
|
+
"@shipengine/connect-runtime": "^4.10.2",
|
|
48
48
|
"express": "^4.18.2",
|
|
49
49
|
"winston": "^3.8.2"
|
|
50
50
|
}
|