@shipengine/connect-carrier-api 4.6.3 → 4.6.5
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/documents/document-type.d.ts +1 -1
- package/lib/models/documents/document-type.js +1 -1
- package/lib/models/documents/document-type.js.map +1 -1
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.js +1 -0
- package/lib/models/index.js.map +1 -1
- package/lib/models/labels/label-package.d.ts +3 -0
- package/lib/models/labels/label-package.js +2 -0
- package/lib/models/labels/label-package.js.map +1 -1
- package/lib/models/labels/paperless-details-schema.d.ts +2 -0
- package/lib/models/labels/paperless-details-schema.js +10 -0
- package/lib/models/labels/paperless-details-schema.js.map +1 -0
- package/lib/models/labels/paperless-details.d.ts +5 -0
- package/lib/models/labels/paperless-details.js +10 -0
- package/lib/models/labels/paperless-details.js.map +1 -0
- 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 -1
- 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 +327 -20
- package/src/models/documents/document-type.ts +1 -1
- package/src/models/index.ts +1 -0
- package/src/models/labels/label-package.ts +3 -0
- package/src/models/labels/paperless-details-schema.ts +6 -0
- package/src/models/labels/paperless-details.ts +5 -0
- package/src/responses/create-label-response-schema.ts +2 -0
- package/src/responses/create-label-response.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -8,6 +8,6 @@ export declare enum DocumentType {
|
|
|
8
8
|
CommercialInvoice = "commercial_invoice",
|
|
9
9
|
/** @description A legal document issued by a carrier to a shipper that details the type, quantity, and destination of the goods being carried (does not indicate the ownership of goods nor does it carry a title to the goods being sold) */
|
|
10
10
|
BillOfLading = "bill_of_lading",
|
|
11
|
-
/** @description A paperless label. For example: a
|
|
11
|
+
/** @description A paperless label. For example: a paperless label that customers can display on their phone */
|
|
12
12
|
PaperlessLabel = "paperless_label"
|
|
13
13
|
}
|
|
@@ -12,7 +12,7 @@ var DocumentType;
|
|
|
12
12
|
DocumentType["CommercialInvoice"] = "commercial_invoice";
|
|
13
13
|
/** @description A legal document issued by a carrier to a shipper that details the type, quantity, and destination of the goods being carried (does not indicate the ownership of goods nor does it carry a title to the goods being sold) */
|
|
14
14
|
DocumentType["BillOfLading"] = "bill_of_lading";
|
|
15
|
-
/** @description A paperless label. For example: a
|
|
15
|
+
/** @description A paperless label. For example: a paperless label that customers can display on their phone */
|
|
16
16
|
DocumentType["PaperlessLabel"] = "paperless_label";
|
|
17
17
|
})(DocumentType || (exports.DocumentType = DocumentType = {}));
|
|
18
18
|
//# sourceMappingURL=document-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-type.js","sourceRoot":"","sources":["../../../src/models/documents/document-type.ts"],"names":[],"mappings":";;;AAAA,sCAAsC;AACtC,IAAY,YAWX;AAXD,WAAY,YAAY;IACtB,oCAAoC;IACpC,+BAAe,CAAA;IACf,uKAAuK;IACvK,4CAA4B,CAAA;IAC5B,sMAAsM;IACtM,wDAAwC,CAAA;IACxC,8OAA8O;IAC9O,+CAA+B,CAAA;IAC/B
|
|
1
|
+
{"version":3,"file":"document-type.js","sourceRoot":"","sources":["../../../src/models/documents/document-type.ts"],"names":[],"mappings":";;;AAAA,sCAAsC;AACtC,IAAY,YAWX;AAXD,WAAY,YAAY;IACtB,oCAAoC;IACpC,+BAAe,CAAA;IACf,uKAAuK;IACvK,4CAA4B,CAAA;IAC5B,sMAAsM;IACtM,wDAAwC,CAAA;IACxC,8OAA8O;IAC9O,+CAA+B,CAAA;IAC/B,+GAA+G;IAC/G,kDAAkC,CAAA;AACpC,CAAC,EAXW,YAAY,4BAAZ,YAAY,QAWvB"}
|
package/lib/models/index.d.ts
CHANGED
package/lib/models/index.js
CHANGED
|
@@ -37,4 +37,5 @@ tslib_1.__exportStar(require("./time-window"), exports);
|
|
|
37
37
|
tslib_1.__exportStar(require("./tracking"), exports);
|
|
38
38
|
tslib_1.__exportStar(require("./units"), exports);
|
|
39
39
|
tslib_1.__exportStar(require("./bill-to"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./labels/paperless-details"), exports);
|
|
40
41
|
//# sourceMappingURL=index.js.map
|
package/lib/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,6DAAmC;AACnC,0DAAgC;AAChC,6DAAmC;AACnC,gEAAsC;AACtC,oDAA0B;AAC1B,+DAAqC;AACrC,4DAAkC;AAClC,qDAA2B;AAC3B,oDAA0B;AAC1B,kEAAwC;AACxC,2DAAiC;AACjC,sDAA4B;AAC5B,mDAAyB;AACzB,8DAAoC;AACpC,8DAAoC;AACpC,uDAA6B;AAC7B,yEAA+C;AAC/C,kEAAwC;AACxC,gEAAsC;AACtC,mDAAyB;AACzB,sDAA4B;AAC5B,0DAAgC;AAChC,oDAA0B;AAC1B,mDAAyB;AACzB,kDAAwB;AACxB,yDAA+B;AAC/B,yDAA+B;AAC/B,qEAA2C;AAC3C,8DAAoC;AACpC,kDAAwB;AACxB,+DAAqC;AACrC,wDAA8B;AAC9B,qDAA2B;AAC3B,kDAAwB;AACxB,oDAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,6DAAmC;AACnC,0DAAgC;AAChC,6DAAmC;AACnC,gEAAsC;AACtC,oDAA0B;AAC1B,+DAAqC;AACrC,4DAAkC;AAClC,qDAA2B;AAC3B,oDAA0B;AAC1B,kEAAwC;AACxC,2DAAiC;AACjC,sDAA4B;AAC5B,mDAAyB;AACzB,8DAAoC;AACpC,8DAAoC;AACpC,uDAA6B;AAC7B,yEAA+C;AAC/C,kEAAwC;AACxC,gEAAsC;AACtC,mDAAyB;AACzB,sDAA4B;AAC5B,0DAAgC;AAChC,oDAA0B;AAC1B,mDAAyB;AACzB,kDAAwB;AACxB,yDAA+B;AAC/B,yDAA+B;AAC/B,qEAA2C;AAC3C,8DAAoC;AACpC,kDAAwB;AACxB,+DAAqC;AACrC,wDAA8B;AAC9B,qDAA2B;AAC3B,kDAAwB;AACxB,oDAA0B;AAC1B,qEAA2C"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Identifier } from '../identifier';
|
|
2
2
|
import { Document } from '../documents';
|
|
3
|
+
import { PaperlessDetails } from './paperless-details';
|
|
3
4
|
/** @description Package information provided by the carrier */
|
|
4
5
|
export declare class LabelPackage {
|
|
5
6
|
/** @description Tracking number for the package */
|
|
@@ -10,4 +11,6 @@ export declare class LabelPackage {
|
|
|
10
11
|
alternative_identifiers?: Identifier[];
|
|
11
12
|
/** @description Documents associated with this package, if documents are not specified at a package level, use the Documents array at the CreateLabelResponse level. */
|
|
12
13
|
documents?: Document[];
|
|
14
|
+
/** @description Paperless details */
|
|
15
|
+
paperless_details?: PaperlessDetails;
|
|
13
16
|
}
|
|
@@ -11,6 +11,8 @@ class LabelPackage {
|
|
|
11
11
|
alternative_identifiers;
|
|
12
12
|
/** @description Documents associated with this package, if documents are not specified at a package level, use the Documents array at the CreateLabelResponse level. */
|
|
13
13
|
documents;
|
|
14
|
+
/** @description Paperless details */
|
|
15
|
+
paperless_details;
|
|
14
16
|
}
|
|
15
17
|
exports.LabelPackage = LabelPackage;
|
|
16
18
|
//# sourceMappingURL=label-package.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-package.js","sourceRoot":"","sources":["../../../src/models/labels/label-package.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"label-package.js","sourceRoot":"","sources":["../../../src/models/labels/label-package.ts"],"names":[],"mappings":";;;AAIA,+DAA+D;AAC/D,MAAa,YAAY;IACvB,mDAAmD;IACnD,eAAe,CAAU;IACzB,gDAAgD;IAChD,YAAY,CAAU;IACtB,6EAA6E;IAC7E,uBAAuB,CAAgB;IACvC,wKAAwK;IACxK,SAAS,CAAc;IACvB,qCAAqC;IACrC,iBAAiB,CAAoB;CACtC;AAXD,oCAWC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaperlessDetailsSchema = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
6
|
+
exports.PaperlessDetailsSchema = joi_1.default.object({
|
|
7
|
+
instructions: joi_1.default.string().optional(),
|
|
8
|
+
handoffCode: joi_1.default.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=paperless-details-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paperless-details-schema.js","sourceRoot":"","sources":["../../../src/models/labels/paperless-details-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAET,QAAA,sBAAsB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC/C,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaperlessDetails = void 0;
|
|
4
|
+
/** @description Paperless Details Object. This object contains information on hand off code and instruction that shipper needs to follow. */
|
|
5
|
+
class PaperlessDetails {
|
|
6
|
+
instructions;
|
|
7
|
+
handoff_code;
|
|
8
|
+
}
|
|
9
|
+
exports.PaperlessDetails = PaperlessDetails;
|
|
10
|
+
//# sourceMappingURL=paperless-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paperless-details.js","sourceRoot":"","sources":["../../../src/models/labels/paperless-details.ts"],"names":[],"mappings":";;;AAAA,6IAA6I;AAC7I,MAAa,gBAAgB;IAC3B,YAAY,CAAU;IACtB,YAAY,CAAU;CACvB;AAHD,4CAGC"}
|
|
@@ -12,10 +12,12 @@ const label_download_schema_1 = require("../models/labels/label-download-schema"
|
|
|
12
12
|
const label_package_schema_1 = require("../models/labels/label-package-schema");
|
|
13
13
|
const relay_point_details_schema_1 = require("../models/relay-points/relay-point-details-schema");
|
|
14
14
|
const time_window_schema_1 = require("../models/time-window-schema");
|
|
15
|
+
const paperless_details_schema_1 = require("../models/labels/paperless-details-schema");
|
|
15
16
|
exports.CreateLabelResponseSchema = base_response_schema_1.BaseResponseSchema.keys({
|
|
16
17
|
transaction_id: joi_1.default.string().required(),
|
|
17
18
|
label_download: label_download_schema_1.LabelDownloadSchema.optional(),
|
|
18
19
|
form_download: form_download_schema_1.FormDownloadSchema.optional(),
|
|
20
|
+
paperless_details: paperless_details_schema_1.PaperlessDetailsSchema.optional(),
|
|
19
21
|
documents: joi_1.default.array().optional().items(document_schema_1.DocumentSchema),
|
|
20
22
|
packages: joi_1.default.array().optional().items(label_package_schema_1.LabelPackageSchema),
|
|
21
23
|
billing_line_items: joi_1.default.array().optional().items(billing_line_item_schema_1.BillingLineItemSchema),
|
|
@@ -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;
|
|
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,yE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CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,oDAAuB,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { BaseResponse } from './base-response';
|
|
2
|
-
import { LabelDownload, FormDownload, Document, BillingLineItem, LabelPackage, Identifier, TimeWindow, RelayPointDetails } from '../models';
|
|
2
|
+
import { LabelDownload, FormDownload, Document, BillingLineItem, LabelPackage, Identifier, TimeWindow, RelayPointDetails, PaperlessDetails } from '../models';
|
|
3
3
|
/** @description Basic structure for a response to create a label */
|
|
4
4
|
export declare class CreateLabelResponse extends BaseResponse {
|
|
5
5
|
transaction_id: string;
|
|
6
6
|
label_download?: LabelDownload;
|
|
7
7
|
form_download?: FormDownload;
|
|
8
|
+
paperless_details?: PaperlessDetails;
|
|
8
9
|
documents?: Document[];
|
|
9
10
|
packages?: LabelPackage[];
|
|
10
11
|
billing_line_items?: BillingLineItem[];
|
|
@@ -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;AAa/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;CAClC;AAnBD,kDAmBC"}
|
package/package.json
CHANGED