@shipengine/connect-carrier-api 4.22.0 → 4.22.1
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/dangerous-good/dangerous-goods-declaration.d.ts +6 -1
- package/lib/models/dangerous-good/dangerous-goods-declaration.js +4 -0
- package/lib/models/dangerous-good/dangerous-goods-declaration.js.map +1 -1
- package/lib/models/dangerous-good/dangerous-goods-package-info.d.ts +5 -2
- package/lib/models/dangerous-good/dangerous-goods-package-info.js +2 -0
- package/lib/models/dangerous-good/dangerous-goods-package-info.js.map +1 -1
- package/lib/models/dangerous-good/regulation-level-types.d.ts +11 -0
- package/lib/models/dangerous-good/regulation-level-types.js +13 -1
- package/lib/models/dangerous-good/regulation-level-types.js.map +1 -1
- package/lib/models/dangerous-good/regulation-set-types.d.ts +15 -0
- package/lib/models/dangerous-good/regulation-set-types.js +20 -0
- package/lib/models/dangerous-good/regulation-set-types.js.map +1 -0
- package/package.json +1 -1
- package/src/models/dangerous-good/dangerous-goods-declaration.ts +6 -1
- package/src/models/dangerous-good/dangerous-goods-package-info.ts +5 -2
- package/src/models/dangerous-good/regulation-level-types.ts +12 -0
- package/src/models/dangerous-good/regulation-set-types.ts +15 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { Signatory } from '../signatory';
|
|
2
2
|
import { DangerousGoodsContact } from './dangerous-goods-contact';
|
|
3
|
+
import { RegulationSetTypes } from './regulation-set-types';
|
|
3
4
|
/** @description An object containing high-level information about the dangerous goods declaration for the entire shipment. */
|
|
4
5
|
export declare class DangerousGoodsDeclaration {
|
|
6
|
+
/** @description Indicates whether a shipper declaration is required for the dangerous goods shipment */
|
|
7
|
+
shipper_declaration?: boolean;
|
|
5
8
|
/** @description Name of the regulatory authority */
|
|
6
|
-
regulation_set?:
|
|
9
|
+
regulation_set?: RegulationSetTypes;
|
|
7
10
|
/** @description Contact information for Dangerous goods */
|
|
8
11
|
emergency_contact?: DangerousGoodsContact;
|
|
9
12
|
/** @description An object containing details of the person signing the dangerous goods declaration. */
|
|
10
13
|
signatory?: Signatory;
|
|
11
14
|
/** @description Any supplementary instructions or special provisions related to the handling of the dangerous goods shipment, such as competent authority approvals or specific handling requirements. */
|
|
12
15
|
additional_handling_information?: string;
|
|
16
|
+
/** @description Indicates whether the shipment contains alcohol */
|
|
17
|
+
contains_alcohol?: boolean;
|
|
13
18
|
}
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DangerousGoodsDeclaration = void 0;
|
|
4
4
|
/** @description An object containing high-level information about the dangerous goods declaration for the entire shipment. */
|
|
5
5
|
class DangerousGoodsDeclaration {
|
|
6
|
+
/** @description Indicates whether a shipper declaration is required for the dangerous goods shipment */
|
|
7
|
+
shipper_declaration;
|
|
6
8
|
/** @description Name of the regulatory authority */
|
|
7
9
|
regulation_set;
|
|
8
10
|
/** @description Contact information for Dangerous goods */
|
|
@@ -11,6 +13,8 @@ class DangerousGoodsDeclaration {
|
|
|
11
13
|
signatory;
|
|
12
14
|
/** @description Any supplementary instructions or special provisions related to the handling of the dangerous goods shipment, such as competent authority approvals or specific handling requirements. */
|
|
13
15
|
additional_handling_information;
|
|
16
|
+
/** @description Indicates whether the shipment contains alcohol */
|
|
17
|
+
contains_alcohol;
|
|
14
18
|
}
|
|
15
19
|
exports.DangerousGoodsDeclaration = DangerousGoodsDeclaration;
|
|
16
20
|
//# sourceMappingURL=dangerous-goods-declaration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dangerous-goods-declaration.js","sourceRoot":"","sources":["../../../src/models/dangerous-good/dangerous-goods-declaration.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"dangerous-goods-declaration.js","sourceRoot":"","sources":["../../../src/models/dangerous-good/dangerous-goods-declaration.ts"],"names":[],"mappings":";;;AAIA,8HAA8H;AAC9H,MAAa,yBAAyB;IACpC,wGAAwG;IACxG,mBAAmB,CAAW;IAC9B,oDAAoD;IACpD,cAAc,CAAsB;IACpC,2DAA2D;IAC3D,iBAAiB,CAAyB;IAC1C,uGAAuG;IACvG,SAAS,CAAa;IACtB,0MAA0M;IAC1M,+BAA+B,CAAU;IACzC,mEAAmE;IACnE,gBAAgB,CAAW;CAC5B;AAbD,8DAaC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RegulationLevelTypesV2 } from './regulation-level-types';
|
|
2
2
|
import { TransportMeanTypes } from './transport-mean-types';
|
|
3
|
+
import { CarrierWeight } from '../units/carrier-weight';
|
|
3
4
|
/** @description An object containing information specific to the dangerous goods aspects of an individual package. */
|
|
4
5
|
export declare class DangerousGoodsPackageInfo {
|
|
5
6
|
/** @description Transportation means through which the dangerous goods are transported */
|
|
@@ -15,5 +16,7 @@ export declare class DangerousGoodsPackageInfo {
|
|
|
15
16
|
/** @description The type of outer packaging used for the dangerous goods package, typically represented by a UN packaging code (e.g., "4G" for fiberboard box, "1A2" for steel drum). */
|
|
16
17
|
outer_packaging_type?: string;
|
|
17
18
|
/** @description Regulation level of the dangerous goods */
|
|
18
|
-
regulation_level?:
|
|
19
|
+
regulation_level?: RegulationLevelTypesV2;
|
|
20
|
+
/** @description The weight of dry ice in the package */
|
|
21
|
+
dry_ice?: CarrierWeight;
|
|
19
22
|
}
|
|
@@ -17,6 +17,8 @@ class DangerousGoodsPackageInfo {
|
|
|
17
17
|
outer_packaging_type;
|
|
18
18
|
/** @description Regulation level of the dangerous goods */
|
|
19
19
|
regulation_level;
|
|
20
|
+
/** @description The weight of dry ice in the package */
|
|
21
|
+
dry_ice;
|
|
20
22
|
}
|
|
21
23
|
exports.DangerousGoodsPackageInfo = DangerousGoodsPackageInfo;
|
|
22
24
|
//# sourceMappingURL=dangerous-goods-package-info.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dangerous-goods-package-info.js","sourceRoot":"","sources":["../../../src/models/dangerous-good/dangerous-goods-package-info.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"dangerous-goods-package-info.js","sourceRoot":"","sources":["../../../src/models/dangerous-good/dangerous-goods-package-info.ts"],"names":[],"mappings":";;;AAIA,sHAAsH;AACtH,MAAa,yBAAyB;IACpC,0FAA0F;IAC1F,cAAc,CAAsB;IACpC,qKAAqK;IACrK,aAAa,CAAW;IACxB,0MAA0M;IAC1M,WAAW,CAAW;IACtB,wKAAwK;IACxK,iBAAiB,CAAW;IAC5B,sOAAsO;IACtO,OAAO,CAAU;IACjB,yLAAyL;IACzL,oBAAoB,CAAU;IAC9B,2DAA2D;IAC3D,gBAAgB,CAA0B;IAC1C,wDAAwD;IACxD,OAAO,CAAiB;CACzB;AAjBD,8DAiBC"}
|
|
@@ -9,3 +9,14 @@ export declare enum RegulationLevelTypes {
|
|
|
9
9
|
/** @description excepted quantity regulated */
|
|
10
10
|
ExceptedQuantity = "excepted_quantity"
|
|
11
11
|
}
|
|
12
|
+
/** @description Types of regulation level defined for dangerous good (V2) */
|
|
13
|
+
export declare enum RegulationLevelTypesV2 {
|
|
14
|
+
/** @description lightly regulated */
|
|
15
|
+
LightlyRegulated = "lightly_regulated",
|
|
16
|
+
/** @description fully regualted */
|
|
17
|
+
FullyRegulated = "fully_regulated",
|
|
18
|
+
/** @description limited quantity regulated */
|
|
19
|
+
LimitedQuantity = "limited_quantity",
|
|
20
|
+
/** @description excepted quantity regulated */
|
|
21
|
+
ExceptedQuantity = "excepted_quantity"
|
|
22
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RegulationLevelTypes = void 0;
|
|
3
|
+
exports.RegulationLevelTypesV2 = exports.RegulationLevelTypes = void 0;
|
|
4
4
|
/** @description Types of regulation level defined for dangerous good */
|
|
5
5
|
var RegulationLevelTypes;
|
|
6
6
|
(function (RegulationLevelTypes) {
|
|
@@ -13,4 +13,16 @@ var RegulationLevelTypes;
|
|
|
13
13
|
/** @description excepted quantity regulated */
|
|
14
14
|
RegulationLevelTypes["ExceptedQuantity"] = "excepted_quantity";
|
|
15
15
|
})(RegulationLevelTypes || (exports.RegulationLevelTypes = RegulationLevelTypes = {}));
|
|
16
|
+
/** @description Types of regulation level defined for dangerous good (V2) */
|
|
17
|
+
var RegulationLevelTypesV2;
|
|
18
|
+
(function (RegulationLevelTypesV2) {
|
|
19
|
+
/** @description lightly regulated */
|
|
20
|
+
RegulationLevelTypesV2["LightlyRegulated"] = "lightly_regulated";
|
|
21
|
+
/** @description fully regualted */
|
|
22
|
+
RegulationLevelTypesV2["FullyRegulated"] = "fully_regulated";
|
|
23
|
+
/** @description limited quantity regulated */
|
|
24
|
+
RegulationLevelTypesV2["LimitedQuantity"] = "limited_quantity";
|
|
25
|
+
/** @description excepted quantity regulated */
|
|
26
|
+
RegulationLevelTypesV2["ExceptedQuantity"] = "excepted_quantity";
|
|
27
|
+
})(RegulationLevelTypesV2 || (exports.RegulationLevelTypesV2 = RegulationLevelTypesV2 = {}));
|
|
16
28
|
//# sourceMappingURL=regulation-level-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regulation-level-types.js","sourceRoot":"","sources":["../../../src/models/dangerous-good/regulation-level-types.ts"],"names":[],"mappings":";;;AAAA,wEAAwE;AACxE,IAAY,oBASX;AATD,WAAY,oBAAoB;IAC9B,qCAAqC;IACrC,8DAAsC,CAAA;IACtC,mCAAmC;IACnC,0DAAkC,CAAA;IAClC,gDAAgD;IAChD,gEAAwC,CAAA;IACxC,+CAA+C;IAC/C,8DAAsC,CAAA;AACxC,CAAC,EATW,oBAAoB,oCAApB,oBAAoB,QAS/B"}
|
|
1
|
+
{"version":3,"file":"regulation-level-types.js","sourceRoot":"","sources":["../../../src/models/dangerous-good/regulation-level-types.ts"],"names":[],"mappings":";;;AAAA,wEAAwE;AACxE,IAAY,oBASX;AATD,WAAY,oBAAoB;IAC9B,qCAAqC;IACrC,8DAAsC,CAAA;IACtC,mCAAmC;IACnC,0DAAkC,CAAA;IAClC,gDAAgD;IAChD,gEAAwC,CAAA;IACxC,+CAA+C;IAC/C,8DAAsC,CAAA;AACxC,CAAC,EATW,oBAAoB,oCAApB,oBAAoB,QAS/B;AAED,6EAA6E;AAC7E,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,qCAAqC;IACrC,gEAAsC,CAAA;IACtC,mCAAmC;IACnC,4DAAkC,CAAA;IAClC,8CAA8C;IAC9C,8DAAoC,CAAA;IACpC,+CAA+C;IAC/C,gEAAsC,CAAA;AACxC,CAAC,EATW,sBAAsB,sCAAtB,sBAAsB,QASjC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** @description Name of the regulatory authority for dangerous goods */
|
|
2
|
+
export declare enum RegulationSetTypes {
|
|
3
|
+
/** @description International Air Transport Association */
|
|
4
|
+
IATA = "iata",
|
|
5
|
+
/** @description European Agreement concerning the International Carriage of Dangerous Goods by Road */
|
|
6
|
+
ADR = "adr",
|
|
7
|
+
/** @description International Maritime Dangerous Goods */
|
|
8
|
+
IMDG = "imdg",
|
|
9
|
+
/** @description Code of Federal Regulations Title 49 */
|
|
10
|
+
CFR49 = "cfr49",
|
|
11
|
+
/** @description Regulations concerning the International Carriage of Dangerous Goods by Rail */
|
|
12
|
+
RID = "rid",
|
|
13
|
+
/** @description Transportation of Dangerous Goods (Canada) */
|
|
14
|
+
TDG = "tdg"
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegulationSetTypes = void 0;
|
|
4
|
+
/** @description Name of the regulatory authority for dangerous goods */
|
|
5
|
+
var RegulationSetTypes;
|
|
6
|
+
(function (RegulationSetTypes) {
|
|
7
|
+
/** @description International Air Transport Association */
|
|
8
|
+
RegulationSetTypes["IATA"] = "iata";
|
|
9
|
+
/** @description European Agreement concerning the International Carriage of Dangerous Goods by Road */
|
|
10
|
+
RegulationSetTypes["ADR"] = "adr";
|
|
11
|
+
/** @description International Maritime Dangerous Goods */
|
|
12
|
+
RegulationSetTypes["IMDG"] = "imdg";
|
|
13
|
+
/** @description Code of Federal Regulations Title 49 */
|
|
14
|
+
RegulationSetTypes["CFR49"] = "cfr49";
|
|
15
|
+
/** @description Regulations concerning the International Carriage of Dangerous Goods by Rail */
|
|
16
|
+
RegulationSetTypes["RID"] = "rid";
|
|
17
|
+
/** @description Transportation of Dangerous Goods (Canada) */
|
|
18
|
+
RegulationSetTypes["TDG"] = "tdg";
|
|
19
|
+
})(RegulationSetTypes || (exports.RegulationSetTypes = RegulationSetTypes = {}));
|
|
20
|
+
//# sourceMappingURL=regulation-set-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regulation-set-types.js","sourceRoot":"","sources":["../../../src/models/dangerous-good/regulation-set-types.ts"],"names":[],"mappings":";;;AAAA,wEAAwE;AACxE,IAAY,kBAaX;AAbD,WAAY,kBAAkB;IAC5B,2DAA2D;IAC3D,mCAAa,CAAA;IACb,uGAAuG;IACvG,iCAAW,CAAA;IACX,0DAA0D;IAC1D,mCAAa,CAAA;IACb,wDAAwD;IACxD,qCAAe,CAAA;IACf,gGAAgG;IAChG,iCAAW,CAAA;IACX,8DAA8D;IAC9D,iCAAW,CAAA;AACb,CAAC,EAbW,kBAAkB,kCAAlB,kBAAkB,QAa7B"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { Signatory } from '../signatory';
|
|
2
2
|
import { DangerousGoodsContact } from './dangerous-goods-contact';
|
|
3
|
+
import { RegulationSetTypes } from './regulation-set-types';
|
|
3
4
|
|
|
4
5
|
/** @description An object containing high-level information about the dangerous goods declaration for the entire shipment. */
|
|
5
6
|
export class DangerousGoodsDeclaration {
|
|
7
|
+
/** @description Indicates whether a shipper declaration is required for the dangerous goods shipment */
|
|
8
|
+
shipper_declaration?: boolean;
|
|
6
9
|
/** @description Name of the regulatory authority */
|
|
7
|
-
regulation_set?:
|
|
10
|
+
regulation_set?: RegulationSetTypes;
|
|
8
11
|
/** @description Contact information for Dangerous goods */
|
|
9
12
|
emergency_contact?: DangerousGoodsContact;
|
|
10
13
|
/** @description An object containing details of the person signing the dangerous goods declaration. */
|
|
11
14
|
signatory?: Signatory;
|
|
12
15
|
/** @description Any supplementary instructions or special provisions related to the handling of the dangerous goods shipment, such as competent authority approvals or specific handling requirements. */
|
|
13
16
|
additional_handling_information?: string;
|
|
17
|
+
/** @description Indicates whether the shipment contains alcohol */
|
|
18
|
+
contains_alcohol?: boolean;
|
|
14
19
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RegulationLevelTypesV2 } from './regulation-level-types';
|
|
2
2
|
import { TransportMeanTypes } from './transport-mean-types';
|
|
3
|
+
import { CarrierWeight } from '../units/carrier-weight';
|
|
3
4
|
|
|
4
5
|
/** @description An object containing information specific to the dangerous goods aspects of an individual package. */
|
|
5
6
|
export class DangerousGoodsPackageInfo {
|
|
@@ -16,5 +17,7 @@ export class DangerousGoodsPackageInfo {
|
|
|
16
17
|
/** @description The type of outer packaging used for the dangerous goods package, typically represented by a UN packaging code (e.g., "4G" for fiberboard box, "1A2" for steel drum). */
|
|
17
18
|
outer_packaging_type?: string;
|
|
18
19
|
/** @description Regulation level of the dangerous goods */
|
|
19
|
-
regulation_level?:
|
|
20
|
+
regulation_level?: RegulationLevelTypesV2;
|
|
21
|
+
/** @description The weight of dry ice in the package */
|
|
22
|
+
dry_ice?: CarrierWeight;
|
|
20
23
|
}
|
|
@@ -9,3 +9,15 @@ export enum RegulationLevelTypes {
|
|
|
9
9
|
/** @description excepted quantity regulated */
|
|
10
10
|
ExceptedQuantity = 'excepted_quantity',
|
|
11
11
|
}
|
|
12
|
+
|
|
13
|
+
/** @description Types of regulation level defined for dangerous good (V2) */
|
|
14
|
+
export enum RegulationLevelTypesV2 {
|
|
15
|
+
/** @description lightly regulated */
|
|
16
|
+
LightlyRegulated = 'lightly_regulated',
|
|
17
|
+
/** @description fully regualted */
|
|
18
|
+
FullyRegulated = 'fully_regulated',
|
|
19
|
+
/** @description limited quantity regulated */
|
|
20
|
+
LimitedQuantity = 'limited_quantity',
|
|
21
|
+
/** @description excepted quantity regulated */
|
|
22
|
+
ExceptedQuantity = 'excepted_quantity',
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** @description Name of the regulatory authority for dangerous goods */
|
|
2
|
+
export enum RegulationSetTypes {
|
|
3
|
+
/** @description International Air Transport Association */
|
|
4
|
+
IATA = 'iata',
|
|
5
|
+
/** @description European Agreement concerning the International Carriage of Dangerous Goods by Road */
|
|
6
|
+
ADR = 'adr',
|
|
7
|
+
/** @description International Maritime Dangerous Goods */
|
|
8
|
+
IMDG = 'imdg',
|
|
9
|
+
/** @description Code of Federal Regulations Title 49 */
|
|
10
|
+
CFR49 = 'cfr49',
|
|
11
|
+
/** @description Regulations concerning the International Carriage of Dangerous Goods by Rail */
|
|
12
|
+
RID = 'rid',
|
|
13
|
+
/** @description Transportation of Dangerous Goods (Canada) */
|
|
14
|
+
TDG = 'tdg',
|
|
15
|
+
}
|