@shipengine/connect-carrier-api 4.6.3 → 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.
Files changed (30) hide show
  1. package/lib/models/documents/document-type.d.ts +1 -1
  2. package/lib/models/documents/document-type.js +1 -1
  3. package/lib/models/documents/document-type.js.map +1 -1
  4. package/lib/models/index.d.ts +1 -0
  5. package/lib/models/index.js +1 -0
  6. package/lib/models/index.js.map +1 -1
  7. package/lib/models/labels/label-package.d.ts +3 -0
  8. package/lib/models/labels/label-package.js +2 -0
  9. package/lib/models/labels/label-package.js.map +1 -1
  10. package/lib/models/labels/paperless-details-schema.d.ts +2 -0
  11. package/lib/models/labels/paperless-details-schema.js +10 -0
  12. package/lib/models/labels/paperless-details-schema.js.map +1 -0
  13. package/lib/models/labels/paperless-details.d.ts +5 -0
  14. package/lib/models/labels/paperless-details.js +10 -0
  15. package/lib/models/labels/paperless-details.js.map +1 -0
  16. package/lib/responses/create-label-response-schema.js +2 -0
  17. package/lib/responses/create-label-response-schema.js.map +1 -1
  18. package/lib/responses/create-label-response.d.ts +2 -1
  19. package/lib/responses/create-label-response.js +1 -0
  20. package/lib/responses/create-label-response.js.map +1 -1
  21. package/package.json +1 -1
  22. package/spec.json +22 -1
  23. package/src/models/documents/document-type.ts +1 -1
  24. package/src/models/index.ts +1 -0
  25. package/src/models/labels/label-package.ts +3 -0
  26. package/src/models/labels/paperless-details-schema.ts +6 -0
  27. package/src/models/labels/paperless-details.ts +5 -0
  28. package/src/responses/create-label-response-schema.ts +2 -0
  29. package/src/responses/create-label-response.ts +2 -0
  30. 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 QR code that customers can display on their phone */
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 QR code that customers can display on their phone */
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,uGAAuG;IACvG,kDAAkC,CAAA;AACpC,CAAC,EAXW,YAAY,4BAAZ,YAAY,QAWvB"}
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"}
@@ -34,3 +34,4 @@ export * from './time-window';
34
34
  export * from './tracking';
35
35
  export * from './units';
36
36
  export * from './bill-to';
37
+ export * from './labels/paperless-details';
@@ -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
@@ -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":";;;AAGA,+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;CACxB;AATD,oCASC"}
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,2 @@
1
+ import Joi from 'joi';
2
+ export declare const PaperlessDetailsSchema: Joi.ObjectSchema<any>;
@@ -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,5 @@
1
+ /** @description Paperless Details Object. This object contains information on hand off code and instruction that shipper needs to follow. */
2
+ export declare class PaperlessDetails {
3
+ instructions: string;
4
+ handoff_code: string;
5
+ }
@@ -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;AAEnD,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,aAA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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[];
@@ -7,6 +7,7 @@ class CreateLabelResponse extends base_response_1.BaseResponse {
7
7
  transaction_id;
8
8
  label_download;
9
9
  form_download;
10
+ paperless_details;
10
11
  documents;
11
12
  packages;
12
13
  billing_line_items;
@@ -1 +1 @@
1
- {"version":3,"file":"create-label-response.js","sourceRoot":"","sources":["../../src/responses/create-label-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAY/C,oEAAoE;AACpE,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,cAAc,CAAU;IACxB,cAAc,CAAiB;IAC/B,aAAa,CAAgB;IAC7B,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;AAlBD,kDAkBC"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.6.3",
3
+ "version": "4.6.4",
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",
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.19.9"
6
+ "version": "1.20.0"
7
7
  },
8
8
  "paths": {
9
9
  "/Register": {
@@ -1450,6 +1450,9 @@
1450
1450
  },
1451
1451
  "relay_points": {
1452
1452
  "$ref": "#/components/schemas/RelayPointDetails"
1453
+ },
1454
+ "paperless_details": {
1455
+ "$ref": "#/components/schemas/PaperlessDetails"
1453
1456
  }
1454
1457
  },
1455
1458
  "additionalProperties": false,
@@ -2757,6 +2760,9 @@
2757
2760
  },
2758
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.",
2759
2762
  "nullable": true
2763
+ },
2764
+ "paperless_details": {
2765
+ "$ref": "#/components/schemas/PaperlessDetails"
2760
2766
  }
2761
2767
  },
2762
2768
  "additionalProperties": false,
@@ -3035,6 +3041,21 @@
3035
3041
  ],
3036
3042
  "type": "string"
3037
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
+ },
3038
3059
  "PickupConfirmation": {
3039
3060
  "type": "object",
3040
3061
  "properties": {
@@ -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 QR code that customers can display on their phone */
11
+ /** @description A paperless label. For example: a paperless label that customers can display on their phone */
12
12
  PaperlessLabel = 'paperless_label',
13
13
  }
@@ -34,3 +34,4 @@ export * from './time-window';
34
34
  export * from './tracking';
35
35
  export * from './units';
36
36
  export * from './bill-to';
37
+ export * from './labels/paperless-details';
@@ -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
  }
@@ -0,0 +1,6 @@
1
+ import Joi from 'joi';
2
+
3
+ export const PaperlessDetailsSchema = Joi.object({
4
+ instructions: Joi.string().optional(),
5
+ handoffCode: Joi.string().optional(),
6
+ });
@@ -0,0 +1,5 @@
1
+ /** @description Paperless Details Object. This object contains information on hand off code and instruction that shipper needs to follow. */
2
+ export class PaperlessDetails {
3
+ instructions!: string;
4
+ handoff_code!: string;
5
+ }
@@ -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[];