@shipengine/connect-carrier-api 4.6.2 → 4.6.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.
- 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 +30 -2
- 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,yEAAqE;AACrE,mEAA+D;AAC/D,gFAA2E;AAC3E,kFAA6E;AAC7E,gFAA2E;AAC3E,kGAA4F;AAC5F,qEAAgE;AAChE,wFAAmF;AAEtE,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,yCAAkB,CAAC,QAAQ,EAAE;IAC5C,iBAAiB,EAAE,iDAAsB,CAAC,QAAQ,EAAE;IACpD,SAAS,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,gCAAc,CAAC;IACvD,QAAQ,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,yCAAkB,CAAC;IAC1D,kBAAkB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,gDAAqB,CAAC;IACvE,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;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
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.
|
|
6
|
+
"version": "1.20.0"
|
|
7
7
|
},
|
|
8
8
|
"paths": {
|
|
9
9
|
"/Register": {
|
|
@@ -885,6 +885,7 @@
|
|
|
885
885
|
"metadata": {
|
|
886
886
|
"type": "object",
|
|
887
887
|
"additionalProperties": {
|
|
888
|
+
"type": "object",
|
|
888
889
|
"nullable": true
|
|
889
890
|
},
|
|
890
891
|
"nullable": true
|
|
@@ -903,6 +904,7 @@
|
|
|
903
904
|
"metadata": {
|
|
904
905
|
"type": "object",
|
|
905
906
|
"additionalProperties": {
|
|
907
|
+
"type": "object",
|
|
906
908
|
"nullable": true
|
|
907
909
|
},
|
|
908
910
|
"description": "This is an optional schemaless object that you may return with a successful response. Anything returned\r\nunder this key will be included in all future requests. For example, you may store additional static\r\nproperties about the end user or their connection to the carrier. The maximum storage size\r\nfor data under this key is 4KB.",
|
|
@@ -1448,6 +1450,9 @@
|
|
|
1448
1450
|
},
|
|
1449
1451
|
"relay_points": {
|
|
1450
1452
|
"$ref": "#/components/schemas/RelayPointDetails"
|
|
1453
|
+
},
|
|
1454
|
+
"paperless_details": {
|
|
1455
|
+
"$ref": "#/components/schemas/PaperlessDetails"
|
|
1451
1456
|
}
|
|
1452
1457
|
},
|
|
1453
1458
|
"additionalProperties": false,
|
|
@@ -1556,6 +1561,7 @@
|
|
|
1556
1561
|
"manifest_identifiers": {
|
|
1557
1562
|
"type": "object",
|
|
1558
1563
|
"additionalProperties": {
|
|
1564
|
+
"type": "object",
|
|
1559
1565
|
"nullable": true
|
|
1560
1566
|
},
|
|
1561
1567
|
"description": "Carrier information needed to get created manifests.\r\nOnly needed if carrier requires two calls to create and get manifests.",
|
|
@@ -2258,6 +2264,7 @@
|
|
|
2258
2264
|
"manifest_identifiers": {
|
|
2259
2265
|
"type": "object",
|
|
2260
2266
|
"additionalProperties": {
|
|
2267
|
+
"type": "object",
|
|
2261
2268
|
"nullable": true
|
|
2262
2269
|
},
|
|
2263
2270
|
"description": "Carrier specific data needed to retrieve Manifest results",
|
|
@@ -2753,6 +2760,9 @@
|
|
|
2753
2760
|
},
|
|
2754
2761
|
"description": "Documents associated with this package, if documents are not specified at a package level, use the\r\nDocuments array at the CarrierApi.Common.Response.CreateLabelResponse level.",
|
|
2755
2762
|
"nullable": true
|
|
2763
|
+
},
|
|
2764
|
+
"paperless_details": {
|
|
2765
|
+
"$ref": "#/components/schemas/PaperlessDetails"
|
|
2756
2766
|
}
|
|
2757
2767
|
},
|
|
2758
2768
|
"additionalProperties": false,
|
|
@@ -3031,6 +3041,21 @@
|
|
|
3031
3041
|
],
|
|
3032
3042
|
"type": "string"
|
|
3033
3043
|
},
|
|
3044
|
+
"PaperlessDetails": {
|
|
3045
|
+
"type": "object",
|
|
3046
|
+
"properties": {
|
|
3047
|
+
"instructions": {
|
|
3048
|
+
"type": "string",
|
|
3049
|
+
"nullable": true
|
|
3050
|
+
},
|
|
3051
|
+
"handoff_code": {
|
|
3052
|
+
"type": "string",
|
|
3053
|
+
"nullable": true
|
|
3054
|
+
}
|
|
3055
|
+
},
|
|
3056
|
+
"additionalProperties": false,
|
|
3057
|
+
"description": "The Paperless details for the shipment. This consists of additional information for paperless labels."
|
|
3058
|
+
},
|
|
3034
3059
|
"PickupConfirmation": {
|
|
3035
3060
|
"type": "object",
|
|
3036
3061
|
"properties": {
|
|
@@ -3401,6 +3426,7 @@
|
|
|
3401
3426
|
"registration_info": {
|
|
3402
3427
|
"type": "object",
|
|
3403
3428
|
"additionalProperties": {
|
|
3429
|
+
"type": "object",
|
|
3404
3430
|
"nullable": true
|
|
3405
3431
|
},
|
|
3406
3432
|
"description": "This is a schemaless object used to contain any required fields for validating a users credentials or\r\nregistering a new account. These fields will be custom to the shipping service provider, and will be\r\ncollected via a form and sent over as key value pairs.",
|
|
@@ -3423,6 +3449,7 @@
|
|
|
3423
3449
|
"metadata": {
|
|
3424
3450
|
"type": "object",
|
|
3425
3451
|
"additionalProperties": {
|
|
3452
|
+
"type": "object",
|
|
3426
3453
|
"nullable": true
|
|
3427
3454
|
},
|
|
3428
3455
|
"description": "This is an optional schemaless object that should be returned for persisted auth and user information.\r\nAnything returned under this key will be included in all future requests. For example, you may store\r\nadditional static properties about the end user or their connection to the carrier. The maximum\r\nstorage size for data under this key is 4KB.",
|
|
@@ -4366,6 +4393,7 @@
|
|
|
4366
4393
|
"update_settings": {
|
|
4367
4394
|
"type": "object",
|
|
4368
4395
|
"additionalProperties": {
|
|
4396
|
+
"type": "object",
|
|
4369
4397
|
"nullable": true
|
|
4370
4398
|
},
|
|
4371
4399
|
"description": "This is a schemaless object used to contain any required fields for updating carrier settings.",
|
|
@@ -4761,4 +4789,4 @@
|
|
|
4761
4789
|
"description": "Given inbound data, such as a webhook with tracking updates, return normalized information."
|
|
4762
4790
|
}
|
|
4763
4791
|
]
|
|
4764
|
-
}
|
|
4792
|
+
}
|
|
@@ -8,6 +8,6 @@ export 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
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Identifier } from '../identifier';
|
|
2
2
|
import { Document } from '../documents';
|
|
3
|
+
import { PaperlessDetails } from './paperless-details';
|
|
3
4
|
|
|
4
5
|
/** @description Package information provided by the carrier */
|
|
5
6
|
export class LabelPackage {
|
|
@@ -11,4 +12,6 @@ export class LabelPackage {
|
|
|
11
12
|
alternative_identifiers?: Identifier[];
|
|
12
13
|
/** @description Documents associated with this package, if documents are not specified at a package level, use the Documents array at the CreateLabelResponse level. */
|
|
13
14
|
documents?: Document[];
|
|
15
|
+
/** @description Paperless details */
|
|
16
|
+
paperless_details?: PaperlessDetails;
|
|
14
17
|
}
|
|
@@ -8,11 +8,13 @@ import { LabelDownloadSchema } from '../models/labels/label-download-schema';
|
|
|
8
8
|
import { LabelPackageSchema } from '../models/labels/label-package-schema';
|
|
9
9
|
import { RelayPointDetailsSchema } from '../models/relay-points/relay-point-details-schema';
|
|
10
10
|
import { TimeWindowSchema } from '../models/time-window-schema';
|
|
11
|
+
import { PaperlessDetailsSchema } from '../models/labels/paperless-details-schema';
|
|
11
12
|
|
|
12
13
|
export const CreateLabelResponseSchema = BaseResponseSchema.keys({
|
|
13
14
|
transaction_id: Joi.string().required(),
|
|
14
15
|
label_download: LabelDownloadSchema.optional(),
|
|
15
16
|
form_download: FormDownloadSchema.optional(),
|
|
17
|
+
paperless_details: PaperlessDetailsSchema.optional(),
|
|
16
18
|
documents: Joi.array().optional().items(DocumentSchema),
|
|
17
19
|
packages: Joi.array().optional().items(LabelPackageSchema),
|
|
18
20
|
billing_line_items: Joi.array().optional().items(BillingLineItemSchema),
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Identifier,
|
|
9
9
|
TimeWindow,
|
|
10
10
|
RelayPointDetails,
|
|
11
|
+
PaperlessDetails,
|
|
11
12
|
} from '../models';
|
|
12
13
|
|
|
13
14
|
/** @description Basic structure for a response to create a label */
|
|
@@ -15,6 +16,7 @@ export class CreateLabelResponse extends BaseResponse {
|
|
|
15
16
|
transaction_id!: string;
|
|
16
17
|
label_download?: LabelDownload;
|
|
17
18
|
form_download?: FormDownload;
|
|
19
|
+
paperless_details?: PaperlessDetails;
|
|
18
20
|
documents?: Document[];
|
|
19
21
|
packages?: LabelPackage[];
|
|
20
22
|
billing_line_items?: BillingLineItem[];
|