@shipengine/connect-carrier-api 4.16.1 → 4.16.3
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/app/metadata/carrier-attributes.d.ts +11 -0
- package/lib/app/metadata/carrier-attributes.js +11 -0
- package/lib/app/metadata/carrier-attributes.js.map +1 -1
- package/lib/models/rates/rate.d.ts +3 -0
- package/lib/models/rates/rate.js +2 -0
- package/lib/models/rates/rate.js.map +1 -1
- package/lib/models/units/carrier-weight.d.ts +8 -0
- package/lib/models/units/carrier-weight.js +12 -0
- package/lib/models/units/carrier-weight.js.map +1 -0
- 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 +1 -1
- package/spec.json +20 -0
- package/src/app/metadata/carrier-attributes.ts +11 -0
- package/src/models/rates/rate.ts +3 -0
- package/src/models/units/carrier-weight.ts +9 -0
- package/src/responses/create-label-response.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import Joi from 'joi';
|
|
2
2
|
export declare enum CarrierAttributeEnum {
|
|
3
|
+
/** @description Manifesting is done electronically. */
|
|
3
4
|
ManifestDigital = "ManifestDigital",
|
|
5
|
+
/** @description Manifesting is done via print forms. */
|
|
4
6
|
ManifestPhysical = "ManifestPhysical",
|
|
7
|
+
/** @description The shipping provider is a shipping consolidator. */
|
|
5
8
|
Consolidator = "Consolidator",
|
|
9
|
+
/** @description The shipping provider is a regional carrier. */
|
|
6
10
|
Regional = "Regional",
|
|
11
|
+
/** @description The shipping provider requires a inbound webhook id. */
|
|
7
12
|
RequiresInboundWebhook = "RequiresInboundWebhook",
|
|
13
|
+
/** @description The shipping provider is capable of returning rate for all services. */
|
|
14
|
+
NonZeroRating = "NonZeroRating",
|
|
15
|
+
/** @description The shipping provider can receive tracking updates via inbound webhooks or file based tracking for all services */
|
|
16
|
+
InboundTrackingUpdates = "InboundTrackingUpdates",
|
|
17
|
+
/** @description The shipping provider returns status details via tracking */
|
|
8
18
|
DetailedStatuses = "DetailedStatuses",
|
|
19
|
+
/** @description The shipping provider returns an image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient via tracking */
|
|
9
20
|
ProofOfDelivery = "ProofOfDelivery"
|
|
10
21
|
}
|
|
11
22
|
export declare const CarrierAttributeEnumSchema: Joi.StringSchema;
|
|
@@ -5,12 +5,23 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
6
6
|
var CarrierAttributeEnum;
|
|
7
7
|
(function (CarrierAttributeEnum) {
|
|
8
|
+
/** @description Manifesting is done electronically. */
|
|
8
9
|
CarrierAttributeEnum["ManifestDigital"] = "ManifestDigital";
|
|
10
|
+
/** @description Manifesting is done via print forms. */
|
|
9
11
|
CarrierAttributeEnum["ManifestPhysical"] = "ManifestPhysical";
|
|
12
|
+
/** @description The shipping provider is a shipping consolidator. */
|
|
10
13
|
CarrierAttributeEnum["Consolidator"] = "Consolidator";
|
|
14
|
+
/** @description The shipping provider is a regional carrier. */
|
|
11
15
|
CarrierAttributeEnum["Regional"] = "Regional";
|
|
16
|
+
/** @description The shipping provider requires a inbound webhook id. */
|
|
12
17
|
CarrierAttributeEnum["RequiresInboundWebhook"] = "RequiresInboundWebhook";
|
|
18
|
+
/** @description The shipping provider is capable of returning rate for all services. */
|
|
19
|
+
CarrierAttributeEnum["NonZeroRating"] = "NonZeroRating";
|
|
20
|
+
/** @description The shipping provider can receive tracking updates via inbound webhooks or file based tracking for all services */
|
|
21
|
+
CarrierAttributeEnum["InboundTrackingUpdates"] = "InboundTrackingUpdates";
|
|
22
|
+
/** @description The shipping provider returns status details via tracking */
|
|
13
23
|
CarrierAttributeEnum["DetailedStatuses"] = "DetailedStatuses";
|
|
24
|
+
/** @description The shipping provider returns an image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient via tracking */
|
|
14
25
|
CarrierAttributeEnum["ProofOfDelivery"] = "ProofOfDelivery";
|
|
15
26
|
})(CarrierAttributeEnum || (exports.CarrierAttributeEnum = CarrierAttributeEnum = {}));
|
|
16
27
|
exports.CarrierAttributeEnumSchema = joi_1.default.string().valid(...Object.values(CarrierAttributeEnum));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carrier-attributes.js","sourceRoot":"","sources":["../../../src/app/metadata/carrier-attributes.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,IAAY,
|
|
1
|
+
{"version":3,"file":"carrier-attributes.js","sourceRoot":"","sources":["../../../src/app/metadata/carrier-attributes.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,IAAY,oBAmBX;AAnBD,WAAY,oBAAoB;IAC9B,uDAAuD;IACvD,2DAAmC,CAAA;IACnC,wDAAwD;IACxD,6DAAqC,CAAA;IACrC,qEAAqE;IACrE,qDAA6B,CAAA;IAC7B,gEAAgE;IAChE,6CAAqB,CAAA;IACrB,wEAAwE;IACxE,yEAAiD,CAAA;IACjD,wFAAwF;IACxF,uDAA+B,CAAA;IAC/B,mIAAmI;IACnI,yEAAiD,CAAA;IACjD,6EAA6E;IAC7E,6DAAqC,CAAA;IACrC,2LAA2L;IAC3L,2DAAmC,CAAA;AACrC,CAAC,EAnBW,oBAAoB,oCAApB,oBAAoB,QAmB/B;AAEY,QAAA,0BAA0B,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAC1D,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CACvC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BillingLineItem } from '../billing/billing-line-item';
|
|
2
2
|
import { TimeWindow } from '../time-window';
|
|
3
|
+
import { CarrierWeight } from '../units/carrier-weight';
|
|
3
4
|
/** @description Basic structure for a rate */
|
|
4
5
|
export declare class Rate {
|
|
5
6
|
/** @description The service code uniquely identifies a shipping service that you offer. Which service codes can be passed to you will be configured in ShipEngine. If this field is missing, the rate will be discarded. */
|
|
@@ -32,4 +33,6 @@ export declare class Rate {
|
|
|
32
33
|
zone?: string;
|
|
33
34
|
/** @description Guaranteed delivery days. The number of days it will take for the package to be delivered */
|
|
34
35
|
guaranteed_delivery_days?: number;
|
|
36
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
37
|
+
carrier_weight?: CarrierWeight;
|
|
35
38
|
}
|
package/lib/models/rates/rate.js
CHANGED
|
@@ -33,6 +33,8 @@ class Rate {
|
|
|
33
33
|
zone;
|
|
34
34
|
/** @description Guaranteed delivery days. The number of days it will take for the package to be delivered */
|
|
35
35
|
guaranteed_delivery_days;
|
|
36
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
37
|
+
carrier_weight;
|
|
36
38
|
}
|
|
37
39
|
exports.Rate = Rate;
|
|
38
40
|
//# sourceMappingURL=rate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rate.js","sourceRoot":"","sources":["../../../src/models/rates/rate.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"rate.js","sourceRoot":"","sources":["../../../src/models/rates/rate.ts"],"names":[],"mappings":";;;AAIA,8CAA8C;AAC9C,MAAa,IAAI;IACf,4NAA4N;IAC5N,YAAY,CAAU;IACtB,wDAAwD;IACxD,aAAa,CAAU;IACvB,8DAA8D;IAC9D,2BAA2B,CAAU;IACrC,qDAAqD;IACrD,kBAAkB,CAAqB;IACvC,iFAAiF;IACjF,cAAc,CAAY;IAC1B,mFAAmF;IACnF,gBAAgB,CAAY;IAC5B,+CAA+C;IAC/C,eAAe,CAAW;IAC1B,wIAAwI;IACxI,qBAAqB,CAAc;IACnC,0HAA0H;IAC1H,eAAe,CAAc;IAC7B,0DAA0D;IAC1D,eAAe,CAAU;IACzB,2JAA2J;IAC3J,mBAAmB,CAAU;IAC7B,yFAAyF;IACzF,uBAAuB,CAAU;IACjC,iDAAiD;IACjD,YAAY,CAAU;IACtB,6CAA6C;IAC7C,IAAI,CAAU;IACd,6GAA6G;IAC7G,wBAAwB,CAAU;IAClC,oJAAoJ;IACpJ,cAAc,CAAiB;CAChC;AAjCD,oBAiCC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WeightUnit } from './weight-unit';
|
|
2
|
+
/** @description Represents the actual weight and unit supplied by a carrier based on the ingredients provided. */
|
|
3
|
+
export declare class CarrierWeight {
|
|
4
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
5
|
+
value?: number;
|
|
6
|
+
/** @description The unit of measurement for the carrier weight, it may be used for customer billing purposes. */
|
|
7
|
+
unit: WeightUnit;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CarrierWeight = void 0;
|
|
4
|
+
/** @description Represents the actual weight and unit supplied by a carrier based on the ingredients provided. */
|
|
5
|
+
class CarrierWeight {
|
|
6
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
7
|
+
value;
|
|
8
|
+
/** @description The unit of measurement for the carrier weight, it may be used for customer billing purposes. */
|
|
9
|
+
unit;
|
|
10
|
+
}
|
|
11
|
+
exports.CarrierWeight = CarrierWeight;
|
|
12
|
+
//# sourceMappingURL=carrier-weight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carrier-weight.js","sourceRoot":"","sources":["../../../src/models/units/carrier-weight.ts"],"names":[],"mappings":";;;AAEA,kHAAkH;AAClH,MAAa,aAAa;IACxB,sJAAsJ;IACtJ,KAAK,CAAU;IACf,iHAAiH;IACjH,IAAI,CAAc;CACnB;AALD,sCAKC"}
|
|
@@ -1,5 +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
|
+
import { CarrierWeight } from '../models/units/carrier-weight';
|
|
3
4
|
/** @description Basic structure for a response to create a label */
|
|
4
5
|
export declare class CreateLabelResponse extends BaseResponse {
|
|
5
6
|
transaction_id: string;
|
|
@@ -22,4 +23,5 @@ export declare class CreateLabelResponse extends BaseResponse {
|
|
|
22
23
|
relay_points?: RelayPointDetails;
|
|
23
24
|
dropoff_location?: PudoLocation;
|
|
24
25
|
pickup_location?: PudoLocation;
|
|
26
|
+
carrier_weight?: CarrierWeight;
|
|
25
27
|
}
|
|
@@ -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;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"}
|
package/package.json
CHANGED
package/spec.json
CHANGED
|
@@ -1218,6 +1218,20 @@
|
|
|
1218
1218
|
"type": "string",
|
|
1219
1219
|
"description": "An enumeration of common reasons cancellations occur"
|
|
1220
1220
|
},
|
|
1221
|
+
"CarrierWeight": {
|
|
1222
|
+
"type": "object",
|
|
1223
|
+
"properties": {
|
|
1224
|
+
"value": {
|
|
1225
|
+
"type": "number",
|
|
1226
|
+
"description": "The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes.",
|
|
1227
|
+
"format": "double"
|
|
1228
|
+
},
|
|
1229
|
+
"unit": {
|
|
1230
|
+
"$ref": "#/components/schemas/WeightUnit"
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
"additionalProperties": false
|
|
1234
|
+
},
|
|
1221
1235
|
"CodPaymentType": {
|
|
1222
1236
|
"enum": [
|
|
1223
1237
|
"any",
|
|
@@ -1489,6 +1503,9 @@
|
|
|
1489
1503
|
},
|
|
1490
1504
|
"paperless_details": {
|
|
1491
1505
|
"$ref": "#/components/schemas/PaperlessDetails"
|
|
1506
|
+
},
|
|
1507
|
+
"carrier_weight": {
|
|
1508
|
+
"$ref": "#/components/schemas/CarrierWeight"
|
|
1492
1509
|
}
|
|
1493
1510
|
},
|
|
1494
1511
|
"additionalProperties": false,
|
|
@@ -3528,6 +3545,9 @@
|
|
|
3528
3545
|
"type": "integer",
|
|
3529
3546
|
"format": "int32",
|
|
3530
3547
|
"nullable": true
|
|
3548
|
+
},
|
|
3549
|
+
"carrier_weight": {
|
|
3550
|
+
"$ref": "#/components/schemas/CarrierWeight"
|
|
3531
3551
|
}
|
|
3532
3552
|
},
|
|
3533
3553
|
"additionalProperties": false,
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import Joi from 'joi';
|
|
2
2
|
|
|
3
3
|
export enum CarrierAttributeEnum {
|
|
4
|
+
/** @description Manifesting is done electronically. */
|
|
4
5
|
ManifestDigital = 'ManifestDigital',
|
|
6
|
+
/** @description Manifesting is done via print forms. */
|
|
5
7
|
ManifestPhysical = 'ManifestPhysical',
|
|
8
|
+
/** @description The shipping provider is a shipping consolidator. */
|
|
6
9
|
Consolidator = 'Consolidator',
|
|
10
|
+
/** @description The shipping provider is a regional carrier. */
|
|
7
11
|
Regional = 'Regional',
|
|
12
|
+
/** @description The shipping provider requires a inbound webhook id. */
|
|
8
13
|
RequiresInboundWebhook = 'RequiresInboundWebhook',
|
|
14
|
+
/** @description The shipping provider is capable of returning rate for all services. */
|
|
15
|
+
NonZeroRating = 'NonZeroRating',
|
|
16
|
+
/** @description The shipping provider can receive tracking updates via inbound webhooks or file based tracking for all services */
|
|
17
|
+
InboundTrackingUpdates = 'InboundTrackingUpdates',
|
|
18
|
+
/** @description The shipping provider returns status details via tracking */
|
|
9
19
|
DetailedStatuses = 'DetailedStatuses',
|
|
20
|
+
/** @description The shipping provider returns an image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient via tracking */
|
|
10
21
|
ProofOfDelivery = 'ProofOfDelivery',
|
|
11
22
|
}
|
|
12
23
|
|
package/src/models/rates/rate.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BillingLineItem } from '../billing/billing-line-item';
|
|
2
2
|
import { TimeWindow } from '../time-window';
|
|
3
|
+
import { CarrierWeight } from '../units/carrier-weight';
|
|
3
4
|
|
|
4
5
|
/** @description Basic structure for a rate */
|
|
5
6
|
export class Rate {
|
|
@@ -33,4 +34,6 @@ export class Rate {
|
|
|
33
34
|
zone?: string;
|
|
34
35
|
/** @description Guaranteed delivery days. The number of days it will take for the package to be delivered */
|
|
35
36
|
guaranteed_delivery_days?: number;
|
|
37
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
38
|
+
carrier_weight?: CarrierWeight;
|
|
36
39
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WeightUnit } from './weight-unit';
|
|
2
|
+
|
|
3
|
+
/** @description Represents the actual weight and unit supplied by a carrier based on the ingredients provided. */
|
|
4
|
+
export class CarrierWeight {
|
|
5
|
+
/** @description The actual weight value assessed by the carrier based on the ingredients provided, it may be used for customer billing purposes. */
|
|
6
|
+
value?: number;
|
|
7
|
+
/** @description The unit of measurement for the carrier weight, it may be used for customer billing purposes. */
|
|
8
|
+
unit!: WeightUnit;
|
|
9
|
+
}
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
PaperlessDetails,
|
|
12
12
|
PudoLocation,
|
|
13
13
|
} from '../models';
|
|
14
|
+
import { CarrierWeight } from '../models/units/carrier-weight';
|
|
14
15
|
|
|
15
16
|
/** @description Basic structure for a response to create a label */
|
|
16
17
|
export class CreateLabelResponse extends BaseResponse {
|
|
@@ -34,4 +35,5 @@ export class CreateLabelResponse extends BaseResponse {
|
|
|
34
35
|
relay_points?: RelayPointDetails;
|
|
35
36
|
dropoff_location?: PudoLocation;
|
|
36
37
|
pickup_location?: PudoLocation;
|
|
38
|
+
carrier_weight?: CarrierWeight;
|
|
37
39
|
}
|