@shipengine/connect-carrier-api 4.26.2 → 4.26.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.
@@ -0,0 +1,9 @@
1
+ /** @description Shipment information relating to an uploaded document */
2
+ export declare class DocumentUploadShipment {
3
+ /** @description The shipment datetime */
4
+ datetime: string;
5
+ /** @description The origin country code */
6
+ origin_country_code: string;
7
+ /** @description The destination country code */
8
+ destination_country_code: string;
9
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentUploadShipment = void 0;
4
+ /** @description Shipment information relating to an uploaded document */
5
+ class DocumentUploadShipment {
6
+ /** @description The shipment datetime */
7
+ datetime;
8
+ /** @description The origin country code */
9
+ origin_country_code;
10
+ /** @description The destination country code */
11
+ destination_country_code;
12
+ }
13
+ exports.DocumentUploadShipment = DocumentUploadShipment;
14
+ //# sourceMappingURL=document-upload-shipment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-upload-shipment.js","sourceRoot":"","sources":["../../../../src/models/documents/uploads/document-upload-shipment.ts"],"names":[],"mappings":";;;AAAA,yEAAyE;AACzE,MAAa,sBAAsB;IACjC,yCAAyC;IACzC,QAAQ,CAAU;IAClB,2CAA2C;IAC3C,mBAAmB,CAAU;IAC7B,gDAAgD;IAChD,wBAAwB,CAAU;CACnC;AAPD,wDAOC"}
@@ -31,5 +31,7 @@ export declare enum DocumentUploadType {
31
31
  /** @description A shipper's letter of instruction */
32
32
  ShippersLetterOfInstruction = "shippers_letter_of_instruction",
33
33
  /** @description A declaration document */
34
- Declaration = "declaration"
34
+ Declaration = "declaration",
35
+ /** @description Section 232 customs affidavit */
36
+ Section232CustomsAffidavit = "section_232_customs_affidavit"
35
37
  }
@@ -36,5 +36,7 @@ var DocumentUploadType;
36
36
  DocumentUploadType["ShippersLetterOfInstruction"] = "shippers_letter_of_instruction";
37
37
  /** @description A declaration document */
38
38
  DocumentUploadType["Declaration"] = "declaration";
39
+ /** @description Section 232 customs affidavit */
40
+ DocumentUploadType["Section232CustomsAffidavit"] = "section_232_customs_affidavit";
39
41
  })(DocumentUploadType || (exports.DocumentUploadType = DocumentUploadType = {}));
40
42
  //# sourceMappingURL=document-upload-type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"document-upload-type.js","sourceRoot":"","sources":["../../../../src/models/documents/uploads/document-upload-type.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,IAAY,kBAiCX;AAjCD,WAAY,kBAAkB;IAC5B,sMAAsM;IACtM,8DAAwC,CAAA;IACxC,2CAA2C;IAC3C,mEAA6C,CAAA;IAC7C,sEAAsE;IACtE,sHAAgG,CAAA;IAChG,mDAAmD;IACnD,kFAA4D,CAAA;IAC5D,uCAAuC;IACvC,2DAAqC,CAAA;IACrC,uCAAuC;IACvC,qCAAe,CAAA;IACf,yCAAyC;IACzC,8DAAwC,CAAA;IACxC,mDAAmD;IACnD,iFAA2D,CAAA;IAC3D,qCAAqC;IACrC,sDAAgC,CAAA;IAChC,oCAAoC;IACpC,oDAA8B,CAAA;IAC9B,gDAAgD;IAChD,qDAA+B,CAAA;IAC/B,gDAAgD;IAChD,2DAAqC,CAAA;IACrC,kCAAkC;IAClC,kDAA4B,CAAA;IAC5B,iEAAiE;IACjE,kDAA4B,CAAA;IAC5B,qDAAqD;IACrD,oFAA8D,CAAA;IAC9D,0CAA0C;IAC1C,iDAA2B,CAAA;AAC7B,CAAC,EAjCW,kBAAkB,kCAAlB,kBAAkB,QAiC7B"}
1
+ {"version":3,"file":"document-upload-type.js","sourceRoot":"","sources":["../../../../src/models/documents/uploads/document-upload-type.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,IAAY,kBAmCX;AAnCD,WAAY,kBAAkB;IAC5B,sMAAsM;IACtM,8DAAwC,CAAA;IACxC,2CAA2C;IAC3C,mEAA6C,CAAA;IAC7C,sEAAsE;IACtE,sHAAgG,CAAA;IAChG,mDAAmD;IACnD,kFAA4D,CAAA;IAC5D,uCAAuC;IACvC,2DAAqC,CAAA;IACrC,uCAAuC;IACvC,qCAAe,CAAA;IACf,yCAAyC;IACzC,8DAAwC,CAAA;IACxC,mDAAmD;IACnD,iFAA2D,CAAA;IAC3D,qCAAqC;IACrC,sDAAgC,CAAA;IAChC,oCAAoC;IACpC,oDAA8B,CAAA;IAC9B,gDAAgD;IAChD,qDAA+B,CAAA;IAC/B,gDAAgD;IAChD,2DAAqC,CAAA;IACrC,kCAAkC;IAClC,kDAA4B,CAAA;IAC5B,iEAAiE;IACjE,kDAA4B,CAAA;IAC5B,qDAAqD;IACrD,oFAA8D,CAAA;IAC9D,0CAA0C;IAC1C,iDAA2B,CAAA;IAC3B,iDAAiD;IACjD,kFAA4D,CAAA;AAC9D,CAAC,EAnCW,kBAAkB,kCAAlB,kBAAkB,QAmC7B"}
@@ -1,4 +1,5 @@
1
1
  export * from './document-upload-format';
2
2
  export * from './document-upload-format-schema';
3
+ export * from './document-upload-shipment';
3
4
  export * from './document-upload-type';
4
5
  export * from './document-upload-type-schema';
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./document-upload-format"), exports);
5
5
  tslib_1.__exportStar(require("./document-upload-format-schema"), exports);
6
+ tslib_1.__exportStar(require("./document-upload-shipment"), exports);
6
7
  tslib_1.__exportStar(require("./document-upload-type"), exports);
7
8
  tslib_1.__exportStar(require("./document-upload-type-schema"), exports);
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/documents/uploads/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,0EAAgD;AAChD,iEAAuC;AACvC,wEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/documents/uploads/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,0EAAgD;AAChD,qEAA2C;AAC3C,iEAAuC;AACvC,wEAA8C"}
@@ -1,5 +1,5 @@
1
1
  import { BaseRequest } from './base-request';
2
- import { Identifier, DocumentUploadFormat, DocumentUploadType } from '../models';
2
+ import { Identifier, DocumentUploadFormat, DocumentUploadShipment, DocumentUploadType } from '../models';
3
3
  /**
4
4
  * A request to upload a document for a shipment.
5
5
  */
@@ -18,4 +18,6 @@ export declare class UploadDocumentRequest extends BaseRequest {
18
18
  tracking_number: string;
19
19
  /** @description Non-tracking alternative ids associated with this shipment */
20
20
  alternative_identifiers?: Identifier[];
21
+ /** @description Shipment information relating to an uploaded document */
22
+ shipment?: DocumentUploadShipment;
21
23
  }
@@ -20,6 +20,8 @@ class UploadDocumentRequest extends base_request_1.BaseRequest {
20
20
  tracking_number;
21
21
  /** @description Non-tracking alternative ids associated with this shipment */
22
22
  alternative_identifiers;
23
+ /** @description Shipment information relating to an uploaded document */
24
+ shipment;
23
25
  }
24
26
  exports.UploadDocumentRequest = UploadDocumentRequest;
25
27
  //# sourceMappingURL=upload-document-request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload-document-request.js","sourceRoot":"","sources":["../../src/requests/upload-document-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAG7C;;GAEG;AACH,MAAa,qBAAsB,SAAQ,0BAAW;IACpD,mCAAmC;IACnC,WAAW,CAAU;IACrB,4CAA4C;IAC5C,aAAa,CAAsB;IACnC,8CAA8C;IAC9C,eAAe,CAAwB;IACvC,iCAAiC;IACjC,SAAS,CAAU;IACnB,gCAAgC;IAChC,QAAQ,CAAU;IAClB,iEAAiE;IACjE,eAAe,CAAU;IACzB,8EAA8E;IAC9E,uBAAuB,CAAgB;CACxC;AAfD,sDAeC"}
1
+ {"version":3,"file":"upload-document-request.js","sourceRoot":"","sources":["../../src/requests/upload-document-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAQ7C;;GAEG;AACH,MAAa,qBAAsB,SAAQ,0BAAW;IACpD,mCAAmC;IACnC,WAAW,CAAU;IACrB,4CAA4C;IAC5C,aAAa,CAAsB;IACnC,8CAA8C;IAC9C,eAAe,CAAwB;IACvC,iCAAiC;IACjC,SAAS,CAAU;IACnB,gCAAgC;IAChC,QAAQ,CAAU;IAClB,iEAAiE;IACjE,eAAe,CAAU;IACzB,8EAA8E;IAC9E,uBAAuB,CAAgB;IACvC,yEAAyE;IACzE,QAAQ,CAA0B;CACnC;AAjBD,sDAiBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.26.2",
3
+ "version": "4.26.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
@@ -2428,6 +2428,28 @@
2428
2428
  ],
2429
2429
  "type": "string"
2430
2430
  },
2431
+ "DocumentUploadShipment": {
2432
+ "type": "object",
2433
+ "properties": {
2434
+ "datetime": {
2435
+ "type": "string",
2436
+ "description": "The shipment datetime",
2437
+ "format": "date-time"
2438
+ },
2439
+ "origin_country_code": {
2440
+ "type": "string",
2441
+ "description": "The origin country code.",
2442
+ "nullable": true
2443
+ },
2444
+ "destination_country_code": {
2445
+ "type": "string",
2446
+ "description": "The destination country code.",
2447
+ "nullable": true
2448
+ }
2449
+ },
2450
+ "additionalProperties": false,
2451
+ "description": "Shipment information relating to an uploaded document."
2452
+ },
2431
2453
  "DocumentUploadType": {
2432
2454
  "enum": [
2433
2455
  "commercial_invoice",
@@ -2445,7 +2467,8 @@
2445
2467
  "packing_list",
2446
2468
  "sed_document",
2447
2469
  "shippers_letter_of_instruction",
2448
- "declaration"
2470
+ "declaration",
2471
+ "section_232_customs_affidavit"
2449
2472
  ],
2450
2473
  "type": "string"
2451
2474
  },
@@ -3941,6 +3964,16 @@
3941
3964
  }
3942
3965
  ],
3943
3966
  "properties": {
3967
+ "postal_code": {
3968
+ "type": "string",
3969
+ "description": "The postal code of the address.\r\nNot required when location_id is provided.",
3970
+ "nullable": true
3971
+ },
3972
+ "country_code": {
3973
+ "type": "string",
3974
+ "description": "The two character country code of the shipment address.\r\nNot required when location_id is provided.",
3975
+ "nullable": true
3976
+ },
3944
3977
  "carrier_code": {
3945
3978
  "type": "string",
3946
3979
  "description": "Standardized carrier code the location ID belongs to.",
@@ -5602,6 +5635,9 @@
5602
5635
  },
5603
5636
  "description": "Alternative identifiers associated with this package",
5604
5637
  "nullable": true
5638
+ },
5639
+ "shipment": {
5640
+ "$ref": "#/components/schemas/DocumentUploadShipment"
5605
5641
  }
5606
5642
  },
5607
5643
  "additionalProperties": false,
@@ -0,0 +1,9 @@
1
+ /** @description Shipment information relating to an uploaded document */
2
+ export class DocumentUploadShipment {
3
+ /** @description The shipment datetime */
4
+ datetime!: string;
5
+ /** @description The origin country code */
6
+ origin_country_code!: string;
7
+ /** @description The destination country code */
8
+ destination_country_code!: string;
9
+ }
@@ -32,4 +32,6 @@ export enum DocumentUploadType {
32
32
  ShippersLetterOfInstruction = 'shippers_letter_of_instruction',
33
33
  /** @description A declaration document */
34
34
  Declaration = 'declaration',
35
+ /** @description Section 232 customs affidavit */
36
+ Section232CustomsAffidavit = 'section_232_customs_affidavit',
35
37
  }
@@ -1,4 +1,5 @@
1
1
  export * from './document-upload-format';
2
2
  export * from './document-upload-format-schema';
3
+ export * from './document-upload-shipment';
3
4
  export * from './document-upload-type';
4
5
  export * from './document-upload-type-schema';
@@ -1,5 +1,10 @@
1
1
  import { BaseRequest } from './base-request';
2
- import { Identifier, DocumentUploadFormat, DocumentUploadType } from '../models';
2
+ import {
3
+ Identifier,
4
+ DocumentUploadFormat,
5
+ DocumentUploadShipment,
6
+ DocumentUploadType,
7
+ } from '../models';
3
8
 
4
9
  /**
5
10
  * A request to upload a document for a shipment.
@@ -19,4 +24,6 @@ export class UploadDocumentRequest extends BaseRequest {
19
24
  tracking_number!: string;
20
25
  /** @description Non-tracking alternative ids associated with this shipment */
21
26
  alternative_identifiers?: Identifier[];
27
+ /** @description Shipment information relating to an uploaded document */
28
+ shipment?: DocumentUploadShipment;
22
29
  }