@shipengine/connect-carrier-api 4.32.0 → 4.33.0
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/cpsc/cpsc-certificate-schema.js.map +1 -0
- package/lib/models/cpsc/cpsc-certificate.js.map +1 -0
- package/lib/models/cpsc/cpsc-disclaim-schema.d.ts +2 -0
- package/lib/models/cpsc/cpsc-disclaim-schema.js +14 -0
- package/lib/models/cpsc/cpsc-disclaim-schema.js.map +1 -0
- package/lib/models/cpsc/cpsc-disclaim.d.ts +10 -0
- package/lib/models/cpsc/cpsc-disclaim.js +14 -0
- package/lib/models/cpsc/cpsc-disclaim.js.map +1 -0
- package/lib/models/cpsc/disclaim-code.d.ts +4 -0
- package/lib/models/cpsc/disclaim-code.js +9 -0
- package/lib/models/cpsc/disclaim-code.js.map +1 -0
- package/lib/models/cpsc/index.d.ts +5 -0
- package/lib/models/cpsc/index.js +9 -0
- package/lib/models/cpsc/index.js.map +1 -0
- package/lib/models/index.d.ts +1 -2
- package/lib/models/index.js +1 -2
- package/lib/models/index.js.map +1 -1
- package/lib/models/pickup/shipped-products-schema.js +3 -1
- package/lib/models/pickup/shipped-products-schema.js.map +1 -1
- package/lib/models/pickup/shipped-products.d.ts +4 -1
- package/lib/models/pickup/shipped-products.js +2 -0
- package/lib/models/pickup/shipped-products.js.map +1 -1
- package/lib/models/products.d.ts +4 -1
- package/lib/models/products.js +2 -0
- package/lib/models/products.js.map +1 -1
- package/package.json +1 -1
- package/spec.json +36 -0
- package/src/models/cpsc/cpsc-disclaim-schema.ts +10 -0
- package/src/models/cpsc/cpsc-disclaim.ts +11 -0
- package/src/models/cpsc/disclaim-code.ts +4 -0
- package/src/models/cpsc/index.ts +5 -0
- package/src/models/index.ts +1 -2
- package/src/models/pickup/shipped-products-schema.ts +3 -1
- package/src/models/pickup/shipped-products.ts +4 -1
- package/src/models/products.ts +4 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/models/cpsc-certificate-schema.js.map +0 -1
- package/lib/models/cpsc-certificate.js.map +0 -1
- /package/lib/models/{cpsc-certificate-schema.d.ts → cpsc/cpsc-certificate-schema.d.ts} +0 -0
- /package/lib/models/{cpsc-certificate-schema.js → cpsc/cpsc-certificate-schema.js} +0 -0
- /package/lib/models/{cpsc-certificate.d.ts → cpsc/cpsc-certificate.d.ts} +0 -0
- /package/lib/models/{cpsc-certificate.js → cpsc/cpsc-certificate.js} +0 -0
- /package/src/models/{cpsc-certificate-schema.ts → cpsc/cpsc-certificate-schema.ts} +0 -0
- /package/src/models/{cpsc-certificate.ts → cpsc/cpsc-certificate.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cpsc-certificate-schema.js","sourceRoot":"","sources":["../../../src/models/cpsc/cpsc-certificate-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAET,QAAA,qBAAqB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,sBAAsB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cpsc-certificate.js","sourceRoot":"","sources":["../../../src/models/cpsc/cpsc-certificate.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,eAAe;IAC1B,gKAAgK;IAChK,YAAY,CAAU;IACtB,6HAA6H;IAC7H,sBAAsB,CAAU;CACjC;AALD,0CAKC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CpscDisclaimSchema = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
6
|
+
const disclaim_code_1 = require("./disclaim-code");
|
|
7
|
+
exports.CpscDisclaimSchema = joi_1.default.object({
|
|
8
|
+
disclaim_code: joi_1.default.string()
|
|
9
|
+
.valid(...Object.values(disclaim_code_1.DisclaimCode))
|
|
10
|
+
.optional(),
|
|
11
|
+
intended_use_code: joi_1.default.string().max(16).optional(),
|
|
12
|
+
intended_use_description: joi_1.default.string().max(100).optional(),
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=cpsc-disclaim-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cpsc-disclaim-schema.js","sourceRoot":"","sources":["../../../src/models/cpsc/cpsc-disclaim-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,mDAA+C;AAElC,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC3C,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE;SACxB,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,4BAAY,CAAC,CAAC;SACrC,QAAQ,EAAE;IACb,iBAAiB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,wBAAwB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CAC3D,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DisclaimCode } from './disclaim-code';
|
|
2
|
+
/** @description Object for CPSC disclaimer data, submitted when the shipment qualifies for a disclaim message instead of a full CPSC certificate of compliance. Note: Omit this object if the product requires CPSC certification. */
|
|
3
|
+
export declare class CpscDisclaim {
|
|
4
|
+
/** @description Code representing the CPSC declaration status. Accepted values: "A" - Product is not regulated by CPSC. "B" - Data is not required per CPSC. */
|
|
5
|
+
disclaim_code?: DisclaimCode;
|
|
6
|
+
/** @description A code from CBP's Intended Use Code list indicating the product's intended use. Must be submitted alongside any disclaim message. */
|
|
7
|
+
intended_use_code?: string;
|
|
8
|
+
/** @description Description of the product's intended use. If "For Other Use" (980.000) code is used, then a free text description of the intended use should be provided. */
|
|
9
|
+
intended_use_description?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CpscDisclaim = void 0;
|
|
4
|
+
/** @description Object for CPSC disclaimer data, submitted when the shipment qualifies for a disclaim message instead of a full CPSC certificate of compliance. Note: Omit this object if the product requires CPSC certification. */
|
|
5
|
+
class CpscDisclaim {
|
|
6
|
+
/** @description Code representing the CPSC declaration status. Accepted values: "A" - Product is not regulated by CPSC. "B" - Data is not required per CPSC. */
|
|
7
|
+
disclaim_code;
|
|
8
|
+
/** @description A code from CBP's Intended Use Code list indicating the product's intended use. Must be submitted alongside any disclaim message. */
|
|
9
|
+
intended_use_code;
|
|
10
|
+
/** @description Description of the product's intended use. If "For Other Use" (980.000) code is used, then a free text description of the intended use should be provided. */
|
|
11
|
+
intended_use_description;
|
|
12
|
+
}
|
|
13
|
+
exports.CpscDisclaim = CpscDisclaim;
|
|
14
|
+
//# sourceMappingURL=cpsc-disclaim.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cpsc-disclaim.js","sourceRoot":"","sources":["../../../src/models/cpsc/cpsc-disclaim.ts"],"names":[],"mappings":";;;AAEA,sOAAsO;AACtO,MAAa,YAAY;IACvB,gKAAgK;IAChK,aAAa,CAAgB;IAC7B,qJAAqJ;IACrJ,iBAAiB,CAAU;IAC3B,8KAA8K;IAC9K,wBAAwB,CAAU;CACnC;AAPD,oCAOC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisclaimCode = void 0;
|
|
4
|
+
var DisclaimCode;
|
|
5
|
+
(function (DisclaimCode) {
|
|
6
|
+
DisclaimCode["A"] = "A";
|
|
7
|
+
DisclaimCode["B"] = "B";
|
|
8
|
+
})(DisclaimCode || (exports.DisclaimCode = DisclaimCode = {}));
|
|
9
|
+
//# sourceMappingURL=disclaim-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disclaim-code.js","sourceRoot":"","sources":["../../../src/models/cpsc/disclaim-code.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,uBAAO,CAAA;IACP,uBAAO,CAAA;AACT,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./cpsc-certificate"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./cpsc-certificate-schema"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./cpsc-disclaim"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./cpsc-disclaim-schema"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./disclaim-code"), exports);
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/cpsc/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,oEAA0C;AAC1C,0DAAgC;AAChC,iEAAuC;AACvC,0DAAgC"}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -5,8 +5,7 @@ export * from './cod-payment-type';
|
|
|
5
5
|
export * from './collect-on-delivery';
|
|
6
6
|
export * from './billing';
|
|
7
7
|
export * from './confirmation-types';
|
|
8
|
-
export * from './cpsc
|
|
9
|
-
export * from './cpsc-certificate-schema';
|
|
8
|
+
export * from './cpsc';
|
|
10
9
|
export * from './currency-schema';
|
|
11
10
|
export * from './currency';
|
|
12
11
|
export * from './customs';
|
package/lib/models/index.js
CHANGED
|
@@ -8,8 +8,7 @@ tslib_1.__exportStar(require("./cod-payment-type"), exports);
|
|
|
8
8
|
tslib_1.__exportStar(require("./collect-on-delivery"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./billing"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./confirmation-types"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./cpsc
|
|
12
|
-
tslib_1.__exportStar(require("./cpsc-certificate-schema"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./cpsc"), exports);
|
|
13
12
|
tslib_1.__exportStar(require("./currency-schema"), exports);
|
|
14
13
|
tslib_1.__exportStar(require("./currency"), exports);
|
|
15
14
|
tslib_1.__exportStar(require("./customs"), exports);
|
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,
|
|
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,iDAAuB;AACvB,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,iFAAuD;AACvD,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;AAC3C,kEAAwC"}
|
|
@@ -6,7 +6,8 @@ const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
|
6
6
|
const connect_carrier_api_1 = require("@shipengine/connect-carrier-api");
|
|
7
7
|
const weight_details_schema_1 = require("../units/weight-details-schema");
|
|
8
8
|
const manufacturer_product_identifier_type_1 = require("../manufacturer-product-identifier-type");
|
|
9
|
-
const cpsc_certificate_schema_1 = require("../cpsc-certificate-schema");
|
|
9
|
+
const cpsc_certificate_schema_1 = require("../cpsc/cpsc-certificate-schema");
|
|
10
|
+
const cpsc_disclaim_schema_1 = require("../cpsc/cpsc-disclaim-schema");
|
|
10
11
|
exports.ShippedProductsSchema = joi_1.default.object({
|
|
11
12
|
description: joi_1.default.string().optional(),
|
|
12
13
|
quantity: joi_1.default.number().optional(),
|
|
@@ -26,5 +27,6 @@ exports.ShippedProductsSchema = joi_1.default.object({
|
|
|
26
27
|
manufacturer_ns_product_id: joi_1.default.string().optional(),
|
|
27
28
|
dangerous_goods: joi_1.default.object().optional(),
|
|
28
29
|
cpsc_certificates: joi_1.default.array().items(cpsc_certificate_schema_1.CpscCertificateSchema).optional(),
|
|
30
|
+
cpsc_disclaim: cpsc_disclaim_schema_1.CpscDisclaimSchema.optional(),
|
|
29
31
|
});
|
|
30
32
|
//# sourceMappingURL=shipped-products-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipped-products-schema.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-products-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,yEAAiE;AACjE,0EAAqE;AACrE,kGAA4F;AAC5F,
|
|
1
|
+
{"version":3,"file":"shipped-products-schema.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-products-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,yEAAiE;AACjE,0EAAqE;AACrE,kGAA4F;AAC5F,6EAAwE;AACxE,uEAAkE;AAErD,QAAA,qBAAqB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,oCAAc,CAAC,QAAQ,EAAE;IAChC,iBAAiB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,sBAAsB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/C,GAAG,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,WAAW,EAAE,2CAAmB,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,4BAA4B,EAAE,aAAG,CAAC,MAAM,EAAE;SACvC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,wEAAiC,CAAC,CAAC;SAC1D,QAAQ,EAAE;IACb,uBAAuB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,0BAA0B,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnD,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,iBAAiB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,+CAAqB,CAAC,CAAC,QAAQ,EAAE;IACtE,aAAa,EAAE,yCAAkB,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Currency, WeightDetails } from '@shipengine/connect-carrier-api';
|
|
2
2
|
import { DangerousGoods } from '../dangerous-good/dangerous-goods';
|
|
3
3
|
import { ManufacturerProductIdentifierType } from '../manufacturer-product-identifier-type';
|
|
4
|
-
import { CpscCertificate } from '../cpsc-certificate';
|
|
4
|
+
import { CpscCertificate } from '../cpsc/cpsc-certificate';
|
|
5
|
+
import { CpscDisclaim } from '../cpsc/cpsc-disclaim';
|
|
5
6
|
/** @description Basic structure for a product from a shipped shipment*/
|
|
6
7
|
export declare class ShippedProducts {
|
|
7
8
|
/** @description A user specified free form string describing this customs item. If the field is absent the user has not specified a description */
|
|
@@ -36,6 +37,8 @@ export declare class ShippedProducts {
|
|
|
36
37
|
dangerous_goods?: DangerousGoods[];
|
|
37
38
|
/** @description CPSC (U.S. Consumer Product Safety Commission) Certificate of Compliance reference data for U.S. CPSC eFiling. Supports the Reference (Abbreviated) PGA Message Set. */
|
|
38
39
|
cpsc_certificates?: CpscCertificate[];
|
|
40
|
+
/** @description CPSC (U.S. Consumer Product Safety Commission) eFiling Disclaim data for products that are not subject to CPSC regulation. */
|
|
41
|
+
cpsc_disclaim?: CpscDisclaim;
|
|
39
42
|
/** @description Additional details for product. */
|
|
40
43
|
[key: string]: any;
|
|
41
44
|
}
|
|
@@ -35,6 +35,8 @@ class ShippedProducts {
|
|
|
35
35
|
dangerous_goods;
|
|
36
36
|
/** @description CPSC (U.S. Consumer Product Safety Commission) Certificate of Compliance reference data for U.S. CPSC eFiling. Supports the Reference (Abbreviated) PGA Message Set. */
|
|
37
37
|
cpsc_certificates;
|
|
38
|
+
/** @description CPSC (U.S. Consumer Product Safety Commission) eFiling Disclaim data for products that are not subject to CPSC regulation. */
|
|
39
|
+
cpsc_disclaim;
|
|
38
40
|
}
|
|
39
41
|
exports.ShippedProducts = ShippedProducts;
|
|
40
42
|
//# sourceMappingURL=shipped-products.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipped-products.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-products.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"shipped-products.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-products.ts"],"names":[],"mappings":";;;AAMA,wEAAwE;AACxE,MAAa,eAAe;IAC1B,mJAAmJ;IACnJ,WAAW,CAAU;IACrB,4GAA4G;IAC5G,QAAQ,CAAU;IAClB,mKAAmK;IACnK,KAAK,CAAY;IACjB,sFAAsF;IACtF,iBAAiB,CAAU;IAC3B,8GAA8G;IAC9G,sBAAsB,CAAU;IAChC,oGAAoG;IACpG,GAAG,CAAU;IACb,gHAAgH;IAChH,eAAe,CAAU;IACzB,sEAAsE;IACtE,WAAW,CAAiB;IAC5B,0LAA0L;IAC1L,WAAW,CAAU;IACrB,oHAAoH;IACpH,QAAQ,CAAU;IAClB,yNAAyN;IACzN,QAAQ,CAAU;IAClB,wMAAwM;IACxM,4BAA4B,CAAqC;IACjE,8DAA8D;IAC9D,uBAAuB,CAAU;IACjC,iKAAiK;IACjK,0BAA0B,CAAU;IACpC,qGAAqG;IACrG,eAAe,CAAoB;IACnC,wLAAwL;IACxL,iBAAiB,CAAqB;IACtC,8IAA8I;IAC9I,aAAa,CAAgB;CAG9B;AArCD,0CAqCC"}
|
package/lib/models/products.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import { Currency } from './currency';
|
|
|
3
3
|
import { DangerousGoods } from './dangerous-good/dangerous-goods';
|
|
4
4
|
import { UnitOfMeasureTypes } from './customs/unit-of-measure-types';
|
|
5
5
|
import { ManufacturerProductIdentifierType } from './manufacturer-product-identifier-type';
|
|
6
|
-
import { CpscCertificate } from './cpsc-certificate';
|
|
6
|
+
import { CpscCertificate } from './cpsc/cpsc-certificate';
|
|
7
|
+
import { CpscDisclaim } from './cpsc/cpsc-disclaim';
|
|
7
8
|
/** @description Basic structure for a product */
|
|
8
9
|
export declare class Products {
|
|
9
10
|
/** @description A user specified free form string describing this customs item. If the field is absent the user has not specified a description */
|
|
@@ -40,6 +41,8 @@ export declare class Products {
|
|
|
40
41
|
manufacturer_ns_product_id?: string;
|
|
41
42
|
/** @description CPSC (U.S. Consumer Product Safety Commission) Certificate of Compliance reference data for U.S. CPSC eFiling. Supports the Reference (Abbreviated) PGA Message Set. */
|
|
42
43
|
cpsc_certificates?: CpscCertificate[];
|
|
44
|
+
/** @description CPSC (U.S. Consumer Product Safety Commission) eFiling Disclaim data for products that are not subject to CPSC regulation. */
|
|
45
|
+
cpsc_disclaim?: CpscDisclaim;
|
|
43
46
|
/** @description Additional details for product. */
|
|
44
47
|
[key: string]: any;
|
|
45
48
|
}
|
package/lib/models/products.js
CHANGED
|
@@ -37,6 +37,8 @@ class Products {
|
|
|
37
37
|
manufacturer_ns_product_id;
|
|
38
38
|
/** @description CPSC (U.S. Consumer Product Safety Commission) Certificate of Compliance reference data for U.S. CPSC eFiling. Supports the Reference (Abbreviated) PGA Message Set. */
|
|
39
39
|
cpsc_certificates;
|
|
40
|
+
/** @description CPSC (U.S. Consumer Product Safety Commission) eFiling Disclaim data for products that are not subject to CPSC regulation. */
|
|
41
|
+
cpsc_disclaim;
|
|
40
42
|
}
|
|
41
43
|
exports.Products = Products;
|
|
42
44
|
//# sourceMappingURL=products.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/models/products.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/models/products.ts"],"names":[],"mappings":";;;AAQA,iDAAiD;AACjD,MAAa,QAAQ;IACnB,mJAAmJ;IACnJ,WAAW,CAAU;IACrB,4GAA4G;IAC5G,QAAQ,CAAU;IAClB,mKAAmK;IACnK,KAAK,CAAY;IACjB,sFAAsF;IACtF,iBAAiB,CAAU;IAC3B,8GAA8G;IAC9G,sBAAsB,CAAU;IAChC,2EAA2E;IAC3E,eAAe,CAAsB;IACrC,oGAAoG;IACpG,GAAG,CAAU;IACb,gHAAgH;IAChH,eAAe,CAAU;IACzB,sEAAsE;IACtE,WAAW,CAAiB;IAC5B,0LAA0L;IAC1L,WAAW,CAAU;IACrB,oHAAoH;IACpH,QAAQ,CAAU;IAClB,yNAAyN;IACzN,QAAQ,CAAU;IAClB,qGAAqG;IACrG,eAAe,CAAoB;IACnC,wMAAwM;IACxM,4BAA4B,CAAqC;IACjE,8DAA8D;IAC9D,uBAAuB,CAAU;IACjC,iKAAiK;IACjK,0BAA0B,CAAU;IACpC,wLAAwL;IACxL,iBAAiB,CAAqB;IACtC,8IAA8I;IAC9I,aAAa,CAAgB;CAG9B;AAvCD,4BAuCC"}
|
package/package.json
CHANGED
package/spec.json
CHANGED
|
@@ -1422,6 +1422,28 @@
|
|
|
1422
1422
|
],
|
|
1423
1423
|
"type": "string"
|
|
1424
1424
|
},
|
|
1425
|
+
"CpscDisclaim": {
|
|
1426
|
+
"type": "object",
|
|
1427
|
+
"properties": {
|
|
1428
|
+
"disclaim_code": {
|
|
1429
|
+
"$ref": "#/components/schemas/DisclaimCode"
|
|
1430
|
+
},
|
|
1431
|
+
"intended_use_code": {
|
|
1432
|
+
"type": "string",
|
|
1433
|
+
"description": "A code from CBP's Intended Use Code list indicating the product's intended use. Must be submitted alongside any disclaim message.",
|
|
1434
|
+
"maxLength": 16,
|
|
1435
|
+
"nullable": true
|
|
1436
|
+
},
|
|
1437
|
+
"intended_use_description": {
|
|
1438
|
+
"type": "string",
|
|
1439
|
+
"description": "Description of the product's intended use. If \"For Other Use\" (980.000) code is used, then a free text description of the intended use should be provided.",
|
|
1440
|
+
"maxLength": 100,
|
|
1441
|
+
"nullable": true
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1444
|
+
"additionalProperties": false,
|
|
1445
|
+
"description": "Object for CPSC disclaimer data, submitted when the shipment qualifies for a disclaim message instead of a full CPSC certificate of compliance. Note: Omit this object if the product requires CPSC certification."
|
|
1446
|
+
},
|
|
1425
1447
|
"CpscCertificate": {
|
|
1426
1448
|
"type": "object",
|
|
1427
1449
|
"properties": {
|
|
@@ -2391,6 +2413,14 @@
|
|
|
2391
2413
|
"additionalProperties": false,
|
|
2392
2414
|
"description": "This model represents the measurements for dimensions."
|
|
2393
2415
|
},
|
|
2416
|
+
"DisclaimCode": {
|
|
2417
|
+
"enum": [
|
|
2418
|
+
"A",
|
|
2419
|
+
"B"
|
|
2420
|
+
],
|
|
2421
|
+
"type": "string",
|
|
2422
|
+
"description": "Code representing the CPSC declaration status. Accepted values: \"A\" - Product is not regulated by CPSC. \"B\" - Data is not required per CPSC."
|
|
2423
|
+
},
|
|
2394
2424
|
"DisplayScheme": {
|
|
2395
2425
|
"enum": [
|
|
2396
2426
|
"label",
|
|
@@ -3987,6 +4017,9 @@
|
|
|
3987
4017
|
},
|
|
3988
4018
|
"description": "CPSC (U.S. Consumer Product Safety Commission) Certificate of Compliance reference\r\ndata for U.S. CPSC eFiling. Supports the Reference (Abbreviated) PGA Message Set.",
|
|
3989
4019
|
"nullable": true
|
|
4020
|
+
},
|
|
4021
|
+
"cpsc_disclaim": {
|
|
4022
|
+
"$ref": "#/components/schemas/CpscDisclaim"
|
|
3990
4023
|
}
|
|
3991
4024
|
},
|
|
3992
4025
|
"additionalProperties": { },
|
|
@@ -4872,6 +4905,9 @@
|
|
|
4872
4905
|
},
|
|
4873
4906
|
"description": "CPSC (U.S. Consumer Product Safety Commission) Certificate of Compliance reference\r\ndata for U.S. CPSC eFiling. Supports the Reference (Abbreviated) PGA Message Set.",
|
|
4874
4907
|
"nullable": true
|
|
4908
|
+
},
|
|
4909
|
+
"cpsc_disclaim": {
|
|
4910
|
+
"$ref": "#/components/schemas/CpscDisclaim"
|
|
4875
4911
|
}
|
|
4876
4912
|
},
|
|
4877
4913
|
"additionalProperties": { },
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Joi from 'joi';
|
|
2
|
+
import { DisclaimCode } from './disclaim-code';
|
|
3
|
+
|
|
4
|
+
export const CpscDisclaimSchema = Joi.object({
|
|
5
|
+
disclaim_code: Joi.string()
|
|
6
|
+
.valid(...Object.values(DisclaimCode))
|
|
7
|
+
.optional(),
|
|
8
|
+
intended_use_code: Joi.string().max(16).optional(),
|
|
9
|
+
intended_use_description: Joi.string().max(100).optional(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DisclaimCode } from './disclaim-code';
|
|
2
|
+
|
|
3
|
+
/** @description Object for CPSC disclaimer data, submitted when the shipment qualifies for a disclaim message instead of a full CPSC certificate of compliance. Note: Omit this object if the product requires CPSC certification. */
|
|
4
|
+
export class CpscDisclaim {
|
|
5
|
+
/** @description Code representing the CPSC declaration status. Accepted values: "A" - Product is not regulated by CPSC. "B" - Data is not required per CPSC. */
|
|
6
|
+
disclaim_code?: DisclaimCode;
|
|
7
|
+
/** @description A code from CBP's Intended Use Code list indicating the product's intended use. Must be submitted alongside any disclaim message. */
|
|
8
|
+
intended_use_code?: string;
|
|
9
|
+
/** @description Description of the product's intended use. If "For Other Use" (980.000) code is used, then a free text description of the intended use should be provided. */
|
|
10
|
+
intended_use_description?: string;
|
|
11
|
+
}
|
package/src/models/index.ts
CHANGED
|
@@ -5,8 +5,7 @@ export * from './cod-payment-type';
|
|
|
5
5
|
export * from './collect-on-delivery';
|
|
6
6
|
export * from './billing';
|
|
7
7
|
export * from './confirmation-types';
|
|
8
|
-
export * from './cpsc
|
|
9
|
-
export * from './cpsc-certificate-schema';
|
|
8
|
+
export * from './cpsc';
|
|
10
9
|
export * from './currency-schema';
|
|
11
10
|
export * from './currency';
|
|
12
11
|
export * from './customs';
|
|
@@ -2,7 +2,8 @@ import Joi from 'joi';
|
|
|
2
2
|
import { CurrencySchema } from '@shipengine/connect-carrier-api';
|
|
3
3
|
import { WeightDetailsSchema } from '../units/weight-details-schema';
|
|
4
4
|
import { ManufacturerProductIdentifierType } from '../manufacturer-product-identifier-type';
|
|
5
|
-
import { CpscCertificateSchema } from '../cpsc-certificate-schema';
|
|
5
|
+
import { CpscCertificateSchema } from '../cpsc/cpsc-certificate-schema';
|
|
6
|
+
import { CpscDisclaimSchema } from '../cpsc/cpsc-disclaim-schema';
|
|
6
7
|
|
|
7
8
|
export const ShippedProductsSchema = Joi.object({
|
|
8
9
|
description: Joi.string().optional(),
|
|
@@ -23,4 +24,5 @@ export const ShippedProductsSchema = Joi.object({
|
|
|
23
24
|
manufacturer_ns_product_id: Joi.string().optional(),
|
|
24
25
|
dangerous_goods: Joi.object().optional(),
|
|
25
26
|
cpsc_certificates: Joi.array().items(CpscCertificateSchema).optional(),
|
|
27
|
+
cpsc_disclaim: CpscDisclaimSchema.optional(),
|
|
26
28
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Currency, WeightDetails } from '@shipengine/connect-carrier-api';
|
|
2
2
|
import { DangerousGoods } from '../dangerous-good/dangerous-goods';
|
|
3
3
|
import { ManufacturerProductIdentifierType } from '../manufacturer-product-identifier-type';
|
|
4
|
-
import { CpscCertificate } from '../cpsc-certificate';
|
|
4
|
+
import { CpscCertificate } from '../cpsc/cpsc-certificate';
|
|
5
|
+
import { CpscDisclaim } from '../cpsc/cpsc-disclaim';
|
|
5
6
|
|
|
6
7
|
/** @description Basic structure for a product from a shipped shipment*/
|
|
7
8
|
export class ShippedProducts {
|
|
@@ -37,6 +38,8 @@ export class ShippedProducts {
|
|
|
37
38
|
dangerous_goods?: DangerousGoods[];
|
|
38
39
|
/** @description CPSC (U.S. Consumer Product Safety Commission) Certificate of Compliance reference data for U.S. CPSC eFiling. Supports the Reference (Abbreviated) PGA Message Set. */
|
|
39
40
|
cpsc_certificates?: CpscCertificate[];
|
|
41
|
+
/** @description CPSC (U.S. Consumer Product Safety Commission) eFiling Disclaim data for products that are not subject to CPSC regulation. */
|
|
42
|
+
cpsc_disclaim?: CpscDisclaim;
|
|
40
43
|
/** @description Additional details for product. */
|
|
41
44
|
[key: string]: any;
|
|
42
45
|
}
|
package/src/models/products.ts
CHANGED
|
@@ -3,7 +3,8 @@ import { Currency } from './currency';
|
|
|
3
3
|
import { DangerousGoods } from './dangerous-good/dangerous-goods';
|
|
4
4
|
import { UnitOfMeasureTypes } from './customs/unit-of-measure-types';
|
|
5
5
|
import { ManufacturerProductIdentifierType } from './manufacturer-product-identifier-type';
|
|
6
|
-
import { CpscCertificate } from './cpsc-certificate';
|
|
6
|
+
import { CpscCertificate } from './cpsc/cpsc-certificate';
|
|
7
|
+
import { CpscDisclaim } from './cpsc/cpsc-disclaim';
|
|
7
8
|
|
|
8
9
|
/** @description Basic structure for a product */
|
|
9
10
|
export class Products {
|
|
@@ -41,6 +42,8 @@ export class Products {
|
|
|
41
42
|
manufacturer_ns_product_id?: string;
|
|
42
43
|
/** @description CPSC (U.S. Consumer Product Safety Commission) Certificate of Compliance reference data for U.S. CPSC eFiling. Supports the Reference (Abbreviated) PGA Message Set. */
|
|
43
44
|
cpsc_certificates?: CpscCertificate[];
|
|
45
|
+
/** @description CPSC (U.S. Consumer Product Safety Commission) eFiling Disclaim data for products that are not subject to CPSC regulation. */
|
|
46
|
+
cpsc_disclaim?: CpscDisclaim;
|
|
44
47
|
/** @description Additional details for product. */
|
|
45
48
|
[key: string]: any;
|
|
46
49
|
}
|