@shipengine/connect-carrier-api 4.27.0-beta → 4.28.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-certificate-schema.d.ts +2 -0
- package/lib/models/cpsc-certificate-schema.js +10 -0
- package/lib/models/cpsc-certificate-schema.js.map +1 -0
- package/lib/models/cpsc-certificate.d.ts +11 -0
- package/lib/models/cpsc-certificate.js +16 -0
- package/lib/models/cpsc-certificate.js.map +1 -0
- package/lib/models/index.d.ts +3 -0
- package/lib/models/index.js +3 -0
- package/lib/models/index.js.map +1 -1
- package/lib/models/manufacturer-product-identifier-type.d.ts +15 -0
- package/lib/models/manufacturer-product-identifier-type.js +20 -0
- package/lib/models/manufacturer-product-identifier-type.js.map +1 -0
- package/lib/models/pickup/shipped-products-schema.js +7 -0
- package/lib/models/pickup/shipped-products-schema.js.map +1 -1
- package/lib/models/pickup/shipped-products.d.ts +8 -0
- package/lib/models/pickup/shipped-products.js +6 -0
- package/lib/models/pickup/shipped-products.js.map +1 -1
- package/lib/models/products.d.ts +8 -0
- package/lib/models/products.js +6 -0
- package/lib/models/products.js.map +1 -1
- package/package.json +1 -1
- package/spec.json +6149 -6112
- package/src/models/cpsc-certificate-schema.ts +6 -0
- package/src/models/cpsc-certificate.ts +11 -0
- package/src/models/index.ts +3 -0
- package/src/models/manufacturer-product-identifier-type.ts +15 -0
- package/src/models/pickup/shipped-products-schema.ts +7 -0
- package/src/models/pickup/shipped-products.ts +8 -0
- package/src/models/products.ts +8 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description CPSC (U.S. Consumer Product Safety Commission) eFiling Certificate of Compliance
|
|
3
|
+
* reference data for the Reference (Abbreviated) PGA Message Set. Used for products
|
|
4
|
+
* preregistered in the CPSC Product Registry.
|
|
5
|
+
*/
|
|
6
|
+
export class CpscCertificate {
|
|
7
|
+
/** @description A unique identifier created by the importer ultimately responsible for certifying the product certificates. Maximum length of 50 characters. */
|
|
8
|
+
certifier_id?: string;
|
|
9
|
+
/** @description A unique identifier for the specific version of the product certificate. Maximum length of 50 characters. */
|
|
10
|
+
certificate_version_id?: string;
|
|
11
|
+
}
|
package/src/models/index.ts
CHANGED
|
@@ -5,6 +5,8 @@ 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-certificate';
|
|
9
|
+
export * from './cpsc-certificate-schema';
|
|
8
10
|
export * from './currency-schema';
|
|
9
11
|
export * from './currency';
|
|
10
12
|
export * from './customs';
|
|
@@ -20,6 +22,7 @@ export * from './inbound-content-types';
|
|
|
20
22
|
export * from './insurance-providers';
|
|
21
23
|
export * from './labels';
|
|
22
24
|
export * from './manifests';
|
|
25
|
+
export * from './manufacturer-product-identifier-type';
|
|
23
26
|
export * from './native-rating';
|
|
24
27
|
export * from './package';
|
|
25
28
|
export * from './pickup';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** @description The type of a manufacturer product identifier. A product code assigned by a manufacturer, producer, or supplier. Custom denotes a code that is unique to the manufacturer's own system and does not follow an internationally recognised standard. */
|
|
2
|
+
export enum ManufacturerProductIdentifierType {
|
|
3
|
+
/** @description CUSTOM */
|
|
4
|
+
CUSTOM = 'CUSTOM',
|
|
5
|
+
/** @description GTIN */
|
|
6
|
+
GTIN = 'GTIN',
|
|
7
|
+
/** @description EAN */
|
|
8
|
+
EAN = 'EAN',
|
|
9
|
+
/** @description ISBN */
|
|
10
|
+
ISBN = 'ISBN',
|
|
11
|
+
/** @description UPC */
|
|
12
|
+
UPC = 'UPC',
|
|
13
|
+
/** @description MPN */
|
|
14
|
+
MPN = 'MPN',
|
|
15
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import Joi from 'joi';
|
|
2
2
|
import { CurrencySchema } from '@shipengine/connect-carrier-api';
|
|
3
3
|
import { WeightDetailsSchema } from '../units/weight-details-schema';
|
|
4
|
+
import { ManufacturerProductIdentifierType } from '../manufacturer-product-identifier-type';
|
|
5
|
+
import { CpscCertificateSchema } from '../cpsc-certificate-schema';
|
|
4
6
|
|
|
5
7
|
export const ShippedProductsSchema = Joi.object({
|
|
6
8
|
description: Joi.string().optional(),
|
|
@@ -14,5 +16,10 @@ export const ShippedProductsSchema = Joi.object({
|
|
|
14
16
|
product_url: Joi.string().optional(),
|
|
15
17
|
vat_rate: Joi.number().optional(),
|
|
16
18
|
mid_code: Joi.string().optional(),
|
|
19
|
+
manufacturer_product_id_type: Joi.string()
|
|
20
|
+
.valid(...Object.values(ManufacturerProductIdentifierType))
|
|
21
|
+
.optional(),
|
|
22
|
+
manufacturer_product_id: Joi.string().optional(),
|
|
17
23
|
dangerous_goods: Joi.object().optional(),
|
|
24
|
+
cpsc_certificates: Joi.array().items(CpscCertificateSchema).optional(),
|
|
18
25
|
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Currency, WeightDetails } from '@shipengine/connect-carrier-api';
|
|
2
2
|
import { DangerousGoods } from '../dangerous-good/dangerous-goods';
|
|
3
|
+
import { ManufacturerProductIdentifierType } from '../manufacturer-product-identifier-type';
|
|
4
|
+
import { CpscCertificate } from '../cpsc-certificate';
|
|
3
5
|
|
|
4
6
|
/** @description Basic structure for a product from a shipped shipment*/
|
|
5
7
|
export class ShippedProducts {
|
|
@@ -25,8 +27,14 @@ export class ShippedProducts {
|
|
|
25
27
|
vat_rate?: number;
|
|
26
28
|
/** @description The Manufacturer Identification Code (MID). It is ussed as an alternative to the full name and address of a manufacturer, shipper or exporter and is always required for U.S. formal customs entries. */
|
|
27
29
|
mid_code?: string;
|
|
30
|
+
/** @description The type of the manufacturer product identifier. A product code assigned by a manufacturer, producer, or supplier that identifies this item. Used to support full customs clearance. */
|
|
31
|
+
manufacturer_product_id_type?: ManufacturerProductIdentifierType;
|
|
32
|
+
/** @description The manufacturer product identifier value. */
|
|
33
|
+
manufacturer_product_id?: string;
|
|
28
34
|
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
29
35
|
dangerous_goods?: DangerousGoods[];
|
|
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
|
+
cpsc_certificates?: CpscCertificate[];
|
|
30
38
|
/** @description Additional details for product. */
|
|
31
39
|
[key: string]: any;
|
|
32
40
|
}
|
package/src/models/products.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { WeightDetails } from './units/weight-details';
|
|
|
2
2
|
import { Currency } from './currency';
|
|
3
3
|
import { DangerousGoods } from './dangerous-good/dangerous-goods';
|
|
4
4
|
import { UnitOfMeasureTypes } from './customs/unit-of-measure-types';
|
|
5
|
+
import { ManufacturerProductIdentifierType } from './manufacturer-product-identifier-type';
|
|
6
|
+
import { CpscCertificate } from './cpsc-certificate';
|
|
5
7
|
|
|
6
8
|
/** @description Basic structure for a product */
|
|
7
9
|
export class Products {
|
|
@@ -31,6 +33,12 @@ export class Products {
|
|
|
31
33
|
mid_code?: string;
|
|
32
34
|
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
33
35
|
dangerous_goods?: DangerousGoods[];
|
|
36
|
+
/** @description The type of the manufacturer product identifier. A product code assigned by a manufacturer, producer, or supplier that identifies this item. Used to support full customs clearance. */
|
|
37
|
+
manufacturer_product_id_type?: ManufacturerProductIdentifierType;
|
|
38
|
+
/** @description The manufacturer product identifier value. */
|
|
39
|
+
manufacturer_product_id?: string;
|
|
40
|
+
/** @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. */
|
|
41
|
+
cpsc_certificates?: CpscCertificate[];
|
|
34
42
|
/** @description Additional details for product. */
|
|
35
43
|
[key: string]: any;
|
|
36
44
|
}
|