@shipengine/connect-carrier-api 2.2.2 → 2.2.3
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/addresses/address-base.d.ts +13 -13
- package/lib/models/addresses/address-base.js.map +1 -1
- package/lib/models/addresses/address-residential-indicator.d.ts +3 -0
- package/lib/models/addresses/address-residential-indicator.js +3 -0
- package/lib/models/addresses/address-residential-indicator.js.map +1 -1
- package/lib/models/addresses/ship-from-display.d.ts +1 -0
- package/lib/models/addresses/ship-from-display.js +1 -0
- package/lib/models/addresses/ship-from-display.js.map +1 -1
- package/lib/models/addresses/ship-from.d.ts +1 -0
- package/lib/models/addresses/ship-from.js +1 -0
- package/lib/models/addresses/ship-from.js.map +1 -1
- package/lib/models/addresses/ship-to.d.ts +1 -0
- package/lib/models/addresses/ship-to.js +1 -0
- package/lib/models/addresses/ship-to.js.map +1 -1
- package/lib/models/advanced-options.d.ts +1 -1
- package/lib/models/authorization.d.ts +2 -0
- package/lib/models/authorization.js.map +1 -1
- package/lib/models/billing/billing-categories.d.ts +1 -1
- package/lib/models/billing/billing-categories.js +1 -1
- package/lib/models/billing/billing-categories.js.map +1 -1
- package/lib/models/billing/billing-line-item.d.ts +5 -0
- package/lib/models/billing/billing-line-item.js +2 -2
- package/lib/models/billing/billing-line-item.js.map +1 -1
- package/lib/models/confirmation-types.d.ts +5 -5
- package/lib/models/confirmation-types.js +5 -5
- package/lib/models/confirmation-types.js.map +1 -1
- package/lib/models/currency.d.ts +2 -0
- package/lib/models/currency.js.map +1 -1
- package/lib/models/customs/customs-content-types.d.ts +5 -1
- package/lib/models/customs/customs-content-types.js +5 -1
- package/lib/models/customs/customs-content-types.js.map +1 -1
- package/lib/models/customs/customs-item.d.ts +9 -1
- package/lib/models/customs/customs-item.js +1 -1
- package/lib/models/customs/customs-item.js.map +1 -1
- package/lib/models/customs/customs-non-delivery.d.ts +2 -0
- package/lib/models/customs/customs-non-delivery.js +2 -0
- package/lib/models/customs/customs-non-delivery.js.map +1 -1
- package/lib/models/customs/customs.d.ts +6 -1
- package/lib/models/customs/customs.js +1 -1
- package/lib/models/customs/customs.js.map +1 -1
- package/lib/models/documents/document-type.d.ts +4 -0
- package/lib/models/documents/document-type.js +4 -0
- package/lib/models/documents/document-type.js.map +1 -1
- package/lib/models/documents/document.d.ts +3 -0
- package/lib/models/documents/document.js.map +1 -1
- package/lib/models/errors/detailed-error.d.ts +1 -1
- package/lib/models/errors/detailed-error.js +1 -1
- package/lib/models/errors/detailed-error.js.map +1 -1
- package/lib/models/errors/standardized-error-code.d.ts +1 -1
- package/lib/models/errors/standardized-error-code.js +1 -1
- package/lib/models/errors/standardized-error-code.js.map +1 -1
- package/lib/models/fulfillment-plans/fulfillment-plan-details.d.ts +4 -1
- package/lib/models/fulfillment-plans/fulfillment-plan-details.js +1 -1
- package/lib/models/fulfillment-plans/fulfillment-plan-details.js.map +1 -1
- package/lib/models/fulfillment-plans/fulfillment-plan-items.d.ts +4 -4
- package/lib/models/fulfillment-plans/raw-external-source.d.ts +2 -0
- package/lib/models/fulfillment-plans/raw-external-source.js +1 -0
- package/lib/models/fulfillment-plans/raw-external-source.js.map +1 -1
- package/lib/models/labels/form-download.d.ts +2 -0
- package/lib/models/labels/form-download.js +1 -0
- package/lib/models/labels/form-download.js.map +1 -1
- package/lib/models/labels/label-download.d.ts +2 -0
- package/lib/models/labels/label-download.js +1 -0
- package/lib/models/labels/label-download.js.map +1 -1
- package/lib/models/labels/label-package.d.ts +2 -0
- package/lib/models/labels/label-package.js.map +1 -1
- package/lib/models/labels/return-label-details.d.ts +1 -0
- package/lib/models/labels/return-label-details.js.map +1 -1
- package/lib/models/labels/void-request.d.ts +2 -0
- package/lib/models/labels/void-request.js.map +1 -1
- package/lib/models/labels/void-response.d.ts +1 -1
- package/lib/models/manifests/label.d.ts +2 -0
- package/lib/models/manifests/label.js.map +1 -1
- package/lib/models/manifests/manifest.d.ts +5 -1
- package/lib/models/manifests/manifest.js +1 -1
- package/lib/models/manifests/manifest.js.map +1 -1
- package/lib/models/package.d.ts +6 -0
- package/lib/models/package.js.map +1 -1
- package/lib/models/pickup/cancellation-details.d.ts +1 -0
- package/lib/models/pickup/cancellation-details.js.map +1 -1
- package/lib/models/pickup/pickup-confirmation.d.ts +3 -0
- package/lib/models/pickup/pickup-confirmation.js.map +1 -1
- package/lib/models/pickup/pickup-contact-details.d.ts +6 -1
- package/lib/models/pickup/pickup-contact-details.js +1 -1
- package/lib/models/pickup/pickup-contact-details.js.map +1 -1
- package/lib/models/pickup/pickup-location-details.d.ts +1 -0
- package/lib/models/pickup/pickup-location-details.js.map +1 -1
- package/lib/models/pickup/pickup-package.d.ts +7 -0
- package/lib/models/pickup/pickup-package.js.map +1 -1
- package/lib/models/pickup/pickup-shipment-details.d.ts +1 -0
- package/lib/models/pickup/pickup-shipment-details.js.map +1 -1
- package/lib/models/pickup/pickup-window.d.ts +5 -1
- package/lib/models/pickup/pickup-window.js +1 -1
- package/lib/models/pickup/pickup-window.js.map +1 -1
- package/lib/models/pickup/shipment-identifier.d.ts +2 -0
- package/lib/models/pickup/shipment-identifier.js.map +1 -1
- package/lib/models/pickup/shipped-package.d.ts +7 -0
- package/lib/models/pickup/shipped-package.js.map +1 -1
- package/lib/models/pickup/shipped-shipment.d.ts +6 -0
- package/lib/models/pickup/shipped-shipment.js.map +1 -1
- package/lib/models/rates/rate.d.ts +2 -4
- package/lib/models/rates/rate.js.map +1 -1
- package/lib/models/registration/credentials.d.ts +2 -0
- package/lib/models/registration/credentials.js.map +1 -1
- package/lib/models/resource-download.d.ts +2 -0
- package/lib/models/resource-download.js.map +1 -1
- package/lib/models/taxes/tax-identifier.d.ts +1 -1
- package/lib/models/taxes/tax-identifier.js +1 -1
- package/lib/models/taxes/tax-identifier.js.map +1 -1
- package/lib/models/tracking/lat-long.d.ts +2 -2
- package/lib/models/tracking/service.d.ts +2 -0
- package/lib/models/tracking/service.js.map +1 -1
- package/lib/models/tracking/track-event.d.ts +9 -0
- package/lib/models/tracking/track-event.js.map +1 -1
- package/lib/models/tracking/tracking-info.d.ts +18 -0
- package/lib/models/tracking/tracking-info.js.map +1 -1
- package/lib/models/units/dimension-details.d.ts +4 -0
- package/lib/models/units/dimension-details.js.map +1 -1
- package/lib/models/units/weight-details.d.ts +4 -0
- package/lib/models/units/weight-details.js.map +1 -1
- package/package.json +1 -1
- package/spec.json +355 -176
- package/src/models/addresses/address-base.ts +13 -14
- package/src/models/addresses/address-residential-indicator.ts +3 -0
- package/src/models/addresses/ship-from-display.ts +1 -0
- package/src/models/addresses/ship-from.ts +1 -0
- package/src/models/addresses/ship-to.ts +1 -0
- package/src/models/advanced-options.ts +1 -1
- package/src/models/authorization.ts +2 -0
- package/src/models/billing/billing-categories.ts +1 -1
- package/src/models/billing/billing-line-item.ts +7 -2
- package/src/models/confirmation-types.ts +5 -5
- package/src/models/currency.ts +2 -0
- package/src/models/customs/customs-content-types.ts +5 -1
- package/src/models/customs/customs-item.ts +9 -1
- package/src/models/customs/customs-non-delivery.ts +2 -0
- package/src/models/customs/customs.ts +6 -1
- package/src/models/documents/document-type.ts +4 -0
- package/src/models/documents/document.ts +3 -0
- package/src/models/errors/detailed-error.ts +1 -1
- package/src/models/errors/standardized-error-code.ts +1 -1
- package/src/models/fulfillment-plans/fulfillment-plan-details.ts +4 -1
- package/src/models/fulfillment-plans/fulfillment-plan-items.ts +4 -4
- package/src/models/fulfillment-plans/raw-external-source.ts +2 -0
- package/src/models/labels/form-download.ts +2 -0
- package/src/models/labels/label-download.ts +2 -0
- package/src/models/labels/label-package.ts +2 -0
- package/src/models/labels/return-label-details.ts +1 -0
- package/src/models/labels/void-request.ts +2 -0
- package/src/models/labels/void-response.ts +1 -1
- package/src/models/manifests/label.ts +2 -0
- package/src/models/manifests/manifest.ts +5 -1
- package/src/models/package.ts +6 -0
- package/src/models/pickup/cancellation-details.ts +1 -0
- package/src/models/pickup/pickup-confirmation.ts +3 -0
- package/src/models/pickup/pickup-contact-details.ts +6 -1
- package/src/models/pickup/pickup-location-details.ts +1 -0
- package/src/models/pickup/pickup-package.ts +7 -0
- package/src/models/pickup/pickup-shipment-details.ts +1 -0
- package/src/models/pickup/pickup-window.ts +5 -1
- package/src/models/pickup/shipment-identifier.ts +2 -0
- package/src/models/pickup/shipped-package.ts +7 -0
- package/src/models/pickup/shipped-shipment.ts +6 -0
- package/src/models/rates/rate.ts +2 -4
- package/src/models/registration/credentials.ts +2 -0
- package/src/models/resource-download.ts +2 -0
- package/src/models/taxes/tax-identifier.ts +1 -1
- package/src/models/tracking/lat-long.ts +2 -2
- package/src/models/tracking/service.ts +2 -0
- package/src/models/tracking/track-event.ts +9 -0
- package/src/models/tracking/tracking-info.ts +18 -0
- package/src/models/units/dimension-details.ts +4 -0
- package/src/models/units/weight-details.ts +4 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { AddressResidentialIndicator } from './address-residential-indicator';
|
|
2
2
|
export declare class AddressBase {
|
|
3
|
-
/** @description
|
|
3
|
+
/** @description The full name of the contact contact associated with the address */
|
|
4
4
|
name?: string;
|
|
5
|
-
/** @description
|
|
5
|
+
/** @description The first name of the contact associated with the address */
|
|
6
6
|
first_name?: string;
|
|
7
|
-
/** @description
|
|
7
|
+
/** @description The last name of the contact associated with the address */
|
|
8
8
|
last_name?: string;
|
|
9
|
-
/** @description
|
|
9
|
+
/** @description The email of the contact associated with the address */
|
|
10
10
|
email?: string;
|
|
11
|
-
/** @description
|
|
11
|
+
/** @description The phone number of the contact associated with the address (No Newline Characters) */
|
|
12
12
|
phone_number?: string;
|
|
13
|
-
/** @description
|
|
13
|
+
/** @description The name of the company associated with this address (No Newline Characters) max length 100 characters */
|
|
14
14
|
company_name?: string;
|
|
15
|
-
/** @description
|
|
15
|
+
/** @description The address lines of the address (No Newline Characters) max length 100 characters */
|
|
16
16
|
address_lines?: string[];
|
|
17
|
-
/** @description City or locality
|
|
17
|
+
/** @description City or locality (No Newline Characters) */
|
|
18
18
|
city_locality?: string;
|
|
19
|
-
/** @description State or province
|
|
19
|
+
/** @description State or province (No Newline Characters) */
|
|
20
20
|
state_province?: string;
|
|
21
|
-
/** @description Zip or postal code
|
|
21
|
+
/** @description Zip or postal code (No Newline Characters) */
|
|
22
22
|
postal_code: string;
|
|
23
|
-
/** @description ISO 3166-1 two-letter country code */
|
|
23
|
+
/** @description ISO 3166-1 two-letter country code max length 2 characters */
|
|
24
24
|
country_code: string;
|
|
25
25
|
/** @description Whether the address is residential or commercial */
|
|
26
26
|
address_residential_indicator?: AddressResidentialIndicator;
|
|
27
27
|
/** @description Whether the country of the shipment address is a member of the EU */
|
|
28
28
|
is_eu?: boolean;
|
|
29
|
-
/** @description
|
|
29
|
+
/** @description Additional metadata provided for specific requests */
|
|
30
30
|
address_metadata?: {
|
|
31
31
|
[key: string]: string;
|
|
32
32
|
};
|
|
33
|
-
/** @description Instructions to help the carrier navigate to the address
|
|
33
|
+
/** @description Instructions to help the carrier navigate to the address */
|
|
34
34
|
instructions?: string;
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-base.js","sourceRoot":"","sources":["../../../src/models/addresses/address-base.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;
|
|
1
|
+
{"version":3,"file":"address-base.js","sourceRoot":"","sources":["../../../src/models/addresses/address-base.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;CA+BvB;AA/BD,kCA+BC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/** @description Used for indicating whether an address is residential or commercial */
|
|
2
2
|
export declare enum AddressResidentialIndicator {
|
|
3
|
+
/** @description Indicates that it is unknown whether or not the address is in a residential or commercial area */
|
|
3
4
|
Unknown = "unknown",
|
|
5
|
+
/** @description Indicates that the address is in a residential area */
|
|
4
6
|
Yes = "yes",
|
|
7
|
+
/** @description Indicates that the address is not in a residential area */
|
|
5
8
|
No = "no"
|
|
6
9
|
}
|
|
@@ -4,8 +4,11 @@ exports.AddressResidentialIndicator = void 0;
|
|
|
4
4
|
/** @description Used for indicating whether an address is residential or commercial */
|
|
5
5
|
var AddressResidentialIndicator;
|
|
6
6
|
(function (AddressResidentialIndicator) {
|
|
7
|
+
/** @description Indicates that it is unknown whether or not the address is in a residential or commercial area */
|
|
7
8
|
AddressResidentialIndicator["Unknown"] = "unknown";
|
|
9
|
+
/** @description Indicates that the address is in a residential area */
|
|
8
10
|
AddressResidentialIndicator["Yes"] = "yes";
|
|
11
|
+
/** @description Indicates that the address is not in a residential area */
|
|
9
12
|
AddressResidentialIndicator["No"] = "no";
|
|
10
13
|
})(AddressResidentialIndicator = exports.AddressResidentialIndicator || (exports.AddressResidentialIndicator = {}));
|
|
11
14
|
//# sourceMappingURL=address-residential-indicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-residential-indicator.js","sourceRoot":"","sources":["../../../src/models/addresses/address-residential-indicator.ts"],"names":[],"mappings":";;;AAAA,uFAAuF;AACvF,IAAY,
|
|
1
|
+
{"version":3,"file":"address-residential-indicator.js","sourceRoot":"","sources":["../../../src/models/addresses/address-residential-indicator.ts"],"names":[],"mappings":";;;AAAA,uFAAuF;AACvF,IAAY,2BAOX;AAPD,WAAY,2BAA2B;IACrC,kHAAkH;IAClH,kDAAmB,CAAA;IACnB,uEAAuE;IACvE,0CAAW,CAAA;IACX,2EAA2E;IAC3E,wCAAS,CAAA;AACX,CAAC,EAPW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAOtC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ShipFromDisplay = void 0;
|
|
4
4
|
const address_base_1 = require("./address-base");
|
|
5
|
+
/** @description The address that should be displayed on the label as the ship from location */
|
|
5
6
|
class ShipFromDisplay extends address_base_1.AddressBase {
|
|
6
7
|
}
|
|
7
8
|
exports.ShipFromDisplay = ShipFromDisplay;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ship-from-display.js","sourceRoot":"","sources":["../../../src/models/addresses/ship-from-display.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,MAAa,eAAgB,SAAQ,0BAAW;CAAG;AAAnD,0CAAmD"}
|
|
1
|
+
{"version":3,"file":"ship-from-display.js","sourceRoot":"","sources":["../../../src/models/addresses/ship-from-display.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,+FAA+F;AAC/F,MAAa,eAAgB,SAAQ,0BAAW;CAAG;AAAnD,0CAAmD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddressBase } from './address-base';
|
|
2
2
|
import { TaxIdentifier } from '../taxes/tax-identifier';
|
|
3
|
+
/** @description The address for where the shipment will be shipped from */
|
|
3
4
|
export declare class ShipFrom extends AddressBase {
|
|
4
5
|
/** @description Tax IDs associated with the exporter */
|
|
5
6
|
tax_identifiers?: TaxIdentifier[];
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ShipFrom = void 0;
|
|
4
4
|
const address_base_1 = require("./address-base");
|
|
5
|
+
/** @description The address for where the shipment will be shipped from */
|
|
5
6
|
class ShipFrom extends address_base_1.AddressBase {
|
|
6
7
|
}
|
|
7
8
|
exports.ShipFrom = ShipFrom;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ship-from.js","sourceRoot":"","sources":["../../../src/models/addresses/ship-from.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAG7C,MAAa,QAAS,SAAQ,0BAAW;CAGxC;AAHD,4BAGC"}
|
|
1
|
+
{"version":3,"file":"ship-from.js","sourceRoot":"","sources":["../../../src/models/addresses/ship-from.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAG7C,2EAA2E;AAC3E,MAAa,QAAS,SAAQ,0BAAW;CAGxC;AAHD,4BAGC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddressBase } from './address-base';
|
|
2
2
|
import { TaxIdentifier } from '../taxes/tax-identifier';
|
|
3
|
+
/** @description The address that a shipment will be delivered to */
|
|
3
4
|
export declare class ShipTo extends AddressBase {
|
|
4
5
|
/** @description Tax IDs associated with the consignee */
|
|
5
6
|
tax_identifiers?: TaxIdentifier[];
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ShipTo = void 0;
|
|
4
4
|
const address_base_1 = require("./address-base");
|
|
5
|
+
/** @description The address that a shipment will be delivered to */
|
|
5
6
|
class ShipTo extends address_base_1.AddressBase {
|
|
6
7
|
}
|
|
7
8
|
exports.ShipTo = ShipTo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ship-to.js","sourceRoot":"","sources":["../../../src/models/addresses/ship-to.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAG7C,MAAa,MAAO,SAAQ,0BAAW;CAGtC;AAHD,wBAGC"}
|
|
1
|
+
{"version":3,"file":"ship-to.js","sourceRoot":"","sources":["../../../src/models/addresses/ship-to.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAG7C,oEAAoE;AACpE,MAAa,MAAO,SAAQ,0BAAW;CAGtC;AAHD,wBAGC"}
|
|
@@ -11,7 +11,7 @@ export declare class AdvancedOptions {
|
|
|
11
11
|
bill_duties_to_sender?: boolean;
|
|
12
12
|
/** @description Whether Saturday delivery is permissible */
|
|
13
13
|
saturday_delivery?: boolean;
|
|
14
|
-
/** @description Amount to be paid to the driver, used for local delivery and courier services
|
|
14
|
+
/** @description Amount to be paid to the driver, used for local delivery and courier services */
|
|
15
15
|
tip?: Currency;
|
|
16
16
|
/** @description Any other custom shipping options */
|
|
17
17
|
[key: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../src/models/authorization.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;
|
|
1
|
+
{"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../src/models/authorization.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;CAKzB;AALD,sCAKC"}
|
|
@@ -21,7 +21,7 @@ export declare enum BillingCategories {
|
|
|
21
21
|
Oversize = "oversize",
|
|
22
22
|
Returns = "returns",
|
|
23
23
|
Notifications = "notifications",
|
|
24
|
-
/** @description Amount to be paid to the driver, used for local delivery and courier services
|
|
24
|
+
/** @description Amount to be paid to the driver, used for local delivery and courier services */
|
|
25
25
|
Tip = "tip"
|
|
26
26
|
}
|
|
27
27
|
export declare const BillingCategoriesSchema: Joi.StringSchema;
|
|
@@ -26,7 +26,7 @@ var BillingCategories;
|
|
|
26
26
|
BillingCategories["Oversize"] = "oversize";
|
|
27
27
|
BillingCategories["Returns"] = "returns";
|
|
28
28
|
BillingCategories["Notifications"] = "notifications";
|
|
29
|
-
/** @description Amount to be paid to the driver, used for local delivery and courier services
|
|
29
|
+
/** @description Amount to be paid to the driver, used for local delivery and courier services */
|
|
30
30
|
BillingCategories["Tip"] = "tip";
|
|
31
31
|
})(BillingCategories = exports.BillingCategories || (exports.BillingCategories = {}));
|
|
32
32
|
exports.BillingCategoriesSchema = joi_1.default.string().valid(...Object.values(BillingCategories));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-categories.js","sourceRoot":"","sources":["../../../src/models/billing/billing-categories.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,oDAAoD;AACpD,IAAY,iBAuBX;AAvBD,WAAY,iBAAiB;IAC3B,oDAA+B,CAAA;IAC/B,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,oFAAoF;IACpF,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,+CAA0B,CAAA;IAC1B,uDAAkC,CAAA;IAClC,sCAAiB,CAAA;IACjB,gCAAW,CAAA;IACX,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,mDAA8B,CAAA;IAC9B,sCAAiB,CAAA;IACjB,wEAAwE;IACxE,iDAA4B,CAAA;IAC5B,iDAAiD;IACjD,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;IACnB,oDAA+B,CAAA;IAC/B,
|
|
1
|
+
{"version":3,"file":"billing-categories.js","sourceRoot":"","sources":["../../../src/models/billing/billing-categories.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,oDAAoD;AACpD,IAAY,iBAuBX;AAvBD,WAAY,iBAAiB;IAC3B,oDAA+B,CAAA;IAC/B,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,oFAAoF;IACpF,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,+CAA0B,CAAA;IAC1B,uDAAkC,CAAA;IAClC,sCAAiB,CAAA;IACjB,gCAAW,CAAA;IACX,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,mDAA8B,CAAA;IAC9B,sCAAiB,CAAA;IACjB,wEAAwE;IACxE,iDAA4B,CAAA;IAC5B,iDAAiD;IACjD,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;IACnB,oDAA+B,CAAA;IAC/B,iGAAiG;IACjG,gCAAW,CAAA;AACb,CAAC,EAvBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAuB5B;AAEY,QAAA,uBAAuB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CACvD,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CACpC,CAAC"}
|
|
@@ -3,10 +3,15 @@ import { Currency } from '../currency';
|
|
|
3
3
|
import Joi from 'joi';
|
|
4
4
|
/** @description Basic structure of each charge or line item */
|
|
5
5
|
export declare class BillingLineItem {
|
|
6
|
+
/** A generalized category for what type of billing line item this is */
|
|
6
7
|
billing_category: BillingCategories;
|
|
8
|
+
/** @description If the carrier provides a description from their API about the billing charge (not specific to the user). Maximum length of 100 characters. */
|
|
7
9
|
carrier_description?: string;
|
|
10
|
+
/** @description If the carrier provides a billing code for */
|
|
8
11
|
carrier_billing_code?: string;
|
|
12
|
+
/** @description This will often be empty; however, if there was additionally specific information about the charge it should go here, could also be a reference number. Maximum length of 250 characters. */
|
|
9
13
|
memo?: string;
|
|
14
|
+
/** @description Total amount of the line item */
|
|
10
15
|
amount: Currency;
|
|
11
16
|
}
|
|
12
17
|
export declare const BillingLineItemSchema: Joi.ObjectSchema<any>;
|
|
@@ -11,9 +11,9 @@ class BillingLineItem {
|
|
|
11
11
|
exports.BillingLineItem = BillingLineItem;
|
|
12
12
|
exports.BillingLineItemSchema = joi_1.default.object({
|
|
13
13
|
billing_category: billing_categories_1.BillingCategoriesSchema.required(),
|
|
14
|
-
carrier_description: joi_1.default.string().optional().empty(),
|
|
14
|
+
carrier_description: joi_1.default.string().optional().empty().max(100),
|
|
15
15
|
carrier_billing_code: joi_1.default.string().optional().empty(),
|
|
16
|
-
memo: joi_1.default.string().optional().empty(),
|
|
16
|
+
memo: joi_1.default.string().optional().empty().max(250),
|
|
17
17
|
amount: currency_1.CurrencySchema.required(),
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=billing-line-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-line-item.js","sourceRoot":"","sources":["../../../src/models/billing/billing-line-item.ts"],"names":[],"mappings":";;;;AAAA,6DAG8B;AAC9B,0CAAuD;AACvD,sDAAsB;AAEtB,+DAA+D;AAC/D,MAAa,eAAe;
|
|
1
|
+
{"version":3,"file":"billing-line-item.js","sourceRoot":"","sources":["../../../src/models/billing/billing-line-item.ts"],"names":[],"mappings":";;;;AAAA,6DAG8B;AAC9B,0CAAuD;AACvD,sDAAsB;AAEtB,+DAA+D;AAC/D,MAAa,eAAe;CAW3B;AAXD,0CAWC;AAEY,QAAA,qBAAqB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,4CAAuB,CAAC,QAAQ,EAAE;IACpD,mBAAmB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAC7D,oBAAoB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACrD,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAC9C,MAAM,EAAE,yBAAc,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/** @description Types of delivery confirmation */
|
|
2
2
|
export declare enum ConfirmationTypes {
|
|
3
|
-
/** @description No confirmation is requested
|
|
3
|
+
/** @description No confirmation is requested */
|
|
4
4
|
None = "None",
|
|
5
|
-
/** @description Delivery confirmation is requested
|
|
5
|
+
/** @description Delivery confirmation is requested */
|
|
6
6
|
Delivery = "Delivery",
|
|
7
|
-
/** @description A signature is required. This signature may be a neighbor, building manager, or the recipient can authorize the release of the package (without being present)
|
|
7
|
+
/** @description A signature is required. This signature may be a neighbor, building manager, or the recipient can authorize the release of the package (without being present) */
|
|
8
8
|
Signature = "Signature",
|
|
9
|
-
/** @description A signature of an adult is required
|
|
9
|
+
/** @description A signature of an adult is required */
|
|
10
10
|
AdultSignature = "AdultSignature",
|
|
11
|
-
/** @description Only supported by FedEx. The signature of somebody at the address is required
|
|
11
|
+
/** @description Only supported by FedEx. The signature of somebody at the address is required */
|
|
12
12
|
DirectSignature = "DirectSignature"
|
|
13
13
|
}
|
|
@@ -4,15 +4,15 @@ exports.ConfirmationTypes = void 0;
|
|
|
4
4
|
/** @description Types of delivery confirmation */
|
|
5
5
|
var ConfirmationTypes;
|
|
6
6
|
(function (ConfirmationTypes) {
|
|
7
|
-
/** @description No confirmation is requested
|
|
7
|
+
/** @description No confirmation is requested */
|
|
8
8
|
ConfirmationTypes["None"] = "None";
|
|
9
|
-
/** @description Delivery confirmation is requested
|
|
9
|
+
/** @description Delivery confirmation is requested */
|
|
10
10
|
ConfirmationTypes["Delivery"] = "Delivery";
|
|
11
|
-
/** @description A signature is required. This signature may be a neighbor, building manager, or the recipient can authorize the release of the package (without being present)
|
|
11
|
+
/** @description A signature is required. This signature may be a neighbor, building manager, or the recipient can authorize the release of the package (without being present) */
|
|
12
12
|
ConfirmationTypes["Signature"] = "Signature";
|
|
13
|
-
/** @description A signature of an adult is required
|
|
13
|
+
/** @description A signature of an adult is required */
|
|
14
14
|
ConfirmationTypes["AdultSignature"] = "AdultSignature";
|
|
15
|
-
/** @description Only supported by FedEx. The signature of somebody at the address is required
|
|
15
|
+
/** @description Only supported by FedEx. The signature of somebody at the address is required */
|
|
16
16
|
ConfirmationTypes["DirectSignature"] = "DirectSignature";
|
|
17
17
|
})(ConfirmationTypes = exports.ConfirmationTypes || (exports.ConfirmationTypes = {}));
|
|
18
18
|
//# sourceMappingURL=confirmation-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirmation-types.js","sourceRoot":"","sources":["../../src/models/confirmation-types.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;AAClD,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,
|
|
1
|
+
{"version":3,"file":"confirmation-types.js","sourceRoot":"","sources":["../../src/models/confirmation-types.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;AAClD,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,gDAAgD;IAChD,kCAAa,CAAA;IACb,sDAAsD;IACtD,0CAAqB,CAAA;IACrB,kLAAkL;IAClL,4CAAuB,CAAA;IACvB,uDAAuD;IACvD,sDAAiC,CAAA;IACjC,iGAAiG;IACjG,wDAAmC,CAAA;AACrC,CAAC,EAXW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAW5B"}
|
package/lib/models/currency.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import Joi from 'joi';
|
|
2
2
|
/** @description Basic structure for defining an amount of money and its currency */
|
|
3
3
|
export declare class Currency {
|
|
4
|
+
/** @description The ISO 4217 Currency Code (USD, EUR, etc) https://www.iso.org/iso-4217-currency-codes.html */
|
|
4
5
|
currency: string;
|
|
6
|
+
/** @description The amount */
|
|
5
7
|
amount: string;
|
|
6
8
|
}
|
|
7
9
|
export declare const CurrencySchema: Joi.ObjectSchema<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency.js","sourceRoot":"","sources":["../../src/models/currency.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,oFAAoF;AACpF,MAAa,QAAQ;
|
|
1
|
+
{"version":3,"file":"currency.js","sourceRoot":"","sources":["../../src/models/currency.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,oFAAoF;AACpF,MAAa,QAAQ;CAKpB;AALD,4BAKC;AAEY,QAAA,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IACvC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/** @description Denotes the type of content for customs */
|
|
2
2
|
export declare enum CustomsContentTypes {
|
|
3
|
+
/** @description This is generalized merchandise that someone has purchased */
|
|
3
4
|
Merchandise = "merchandise",
|
|
5
|
+
/** @description Documents that are being shipped */
|
|
4
6
|
Documents = "documents",
|
|
7
|
+
/** @description An item that is being shipped as a gift (not purchased) */
|
|
5
8
|
Gift = "gift",
|
|
6
|
-
/** @description
|
|
9
|
+
/** @description Sample goods that are being shipped */
|
|
7
10
|
Sample = "sample",
|
|
11
|
+
/** @description Items that are being returned */
|
|
8
12
|
ReturnedGoods = "returned_goods"
|
|
9
13
|
}
|
|
@@ -4,11 +4,15 @@ exports.CustomsContentTypes = void 0;
|
|
|
4
4
|
/** @description Denotes the type of content for customs */
|
|
5
5
|
var CustomsContentTypes;
|
|
6
6
|
(function (CustomsContentTypes) {
|
|
7
|
+
/** @description This is generalized merchandise that someone has purchased */
|
|
7
8
|
CustomsContentTypes["Merchandise"] = "merchandise";
|
|
9
|
+
/** @description Documents that are being shipped */
|
|
8
10
|
CustomsContentTypes["Documents"] = "documents";
|
|
11
|
+
/** @description An item that is being shipped as a gift (not purchased) */
|
|
9
12
|
CustomsContentTypes["Gift"] = "gift";
|
|
10
|
-
/** @description
|
|
13
|
+
/** @description Sample goods that are being shipped */
|
|
11
14
|
CustomsContentTypes["Sample"] = "sample";
|
|
15
|
+
/** @description Items that are being returned */
|
|
12
16
|
CustomsContentTypes["ReturnedGoods"] = "returned_goods";
|
|
13
17
|
})(CustomsContentTypes = exports.CustomsContentTypes || (exports.CustomsContentTypes = {}));
|
|
14
18
|
//# sourceMappingURL=customs-content-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customs-content-types.js","sourceRoot":"","sources":["../../../src/models/customs/customs-content-types.ts"],"names":[],"mappings":";;;AAAA,4DAA4D;AAC5D,IAAY,
|
|
1
|
+
{"version":3,"file":"customs-content-types.js","sourceRoot":"","sources":["../../../src/models/customs/customs-content-types.ts"],"names":[],"mappings":";;;AAAA,4DAA4D;AAC5D,IAAY,mBAWX;AAXD,WAAY,mBAAmB;IAC7B,8EAA8E;IAC9E,kDAA2B,CAAA;IAC3B,oDAAoD;IACpD,8CAAuB,CAAA;IACvB,2EAA2E;IAC3E,oCAAa,CAAA;IACb,uDAAuD;IACvD,wCAAiB,CAAA;IACjB,iDAAiD;IACjD,uDAAgC,CAAA;AAClC,CAAC,EAXW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAW9B"}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { Currency } from '../currency';
|
|
2
2
|
import { WeightDetails } from '../units';
|
|
3
|
-
/** @description
|
|
3
|
+
/** @description This model represents the customs declaration for a single item */
|
|
4
4
|
export declare class CustomsItem {
|
|
5
|
+
/** @description A user specified free form string describing this customs item. If the field is absent the user has not specified a description */
|
|
5
6
|
description?: string;
|
|
7
|
+
/** @description The user specified count of items in this declaration. This value should be 1 or greater */
|
|
6
8
|
quantity?: number;
|
|
9
|
+
/** @description The user specified declared customs value of this customs item. Generally, this value needs to be greater than 0 to be accepted through customs */
|
|
7
10
|
value?: Currency;
|
|
11
|
+
/** @description The user specified declared country of origin of this customs item */
|
|
8
12
|
country_of_origin?: string;
|
|
13
|
+
/** @description The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information */
|
|
9
14
|
harmonized_tariff_code?: string;
|
|
15
|
+
/** @description The user specified SKU of this customs item. This field is completely free form. */
|
|
10
16
|
sku?: string;
|
|
17
|
+
/** @description The user specified SKU description of this customs item. This field is completely free form. */
|
|
11
18
|
sku_description?: string;
|
|
19
|
+
/** @description Detailed information about the weight of this item */
|
|
12
20
|
item_weight?: WeightDetails;
|
|
13
21
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomsItem = void 0;
|
|
4
|
-
/** @description
|
|
4
|
+
/** @description This model represents the customs declaration for a single item */
|
|
5
5
|
class CustomsItem {
|
|
6
6
|
}
|
|
7
7
|
exports.CustomsItem = CustomsItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customs-item.js","sourceRoot":"","sources":["../../../src/models/customs/customs-item.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"customs-item.js","sourceRoot":"","sources":["../../../src/models/customs/customs-item.ts"],"names":[],"mappings":";;;AAGA,mFAAmF;AACnF,MAAa,WAAW;CAiBvB;AAjBD,kCAiBC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @description Denotes the action that should be taken when a shipment is not deliverable */
|
|
2
2
|
export declare enum CustomsNonDelivery {
|
|
3
|
+
/** @description Make an attempt to return this package to sender if unable to deliver */
|
|
3
4
|
ReturnToSender = "return_to_sender",
|
|
5
|
+
/** @description Do not make an attempt to return this package to sender if unable to deliver */
|
|
4
6
|
TreatAsAbandoned = "treat_as_abandoned"
|
|
5
7
|
}
|
|
@@ -4,7 +4,9 @@ exports.CustomsNonDelivery = void 0;
|
|
|
4
4
|
/** @description Denotes the action that should be taken when a shipment is not deliverable */
|
|
5
5
|
var CustomsNonDelivery;
|
|
6
6
|
(function (CustomsNonDelivery) {
|
|
7
|
+
/** @description Make an attempt to return this package to sender if unable to deliver */
|
|
7
8
|
CustomsNonDelivery["ReturnToSender"] = "return_to_sender";
|
|
9
|
+
/** @description Do not make an attempt to return this package to sender if unable to deliver */
|
|
8
10
|
CustomsNonDelivery["TreatAsAbandoned"] = "treat_as_abandoned";
|
|
9
11
|
})(CustomsNonDelivery = exports.CustomsNonDelivery || (exports.CustomsNonDelivery = {}));
|
|
10
12
|
//# sourceMappingURL=customs-non-delivery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customs-non-delivery.js","sourceRoot":"","sources":["../../../src/models/customs/customs-non-delivery.ts"],"names":[],"mappings":";;;AAAA,8FAA8F;AAC9F,IAAY,
|
|
1
|
+
{"version":3,"file":"customs-non-delivery.js","sourceRoot":"","sources":["../../../src/models/customs/customs-non-delivery.ts"],"names":[],"mappings":";;;AAAA,8FAA8F;AAC9F,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yFAAyF;IACzF,yDAAmC,CAAA;IACnC,gGAAgG;IAChG,6DAAuC,CAAA;AACzC,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B"}
|
|
@@ -2,11 +2,16 @@ import { CustomsContentTypes } from './customs-content-types';
|
|
|
2
2
|
import { CustomsNonDelivery } from './customs-non-delivery';
|
|
3
3
|
import { CustomsItem } from './customs-item';
|
|
4
4
|
import { Currency } from '../currency';
|
|
5
|
-
/** @description Basic structure for a customs declaration
|
|
5
|
+
/** @description Basic structure for a customs declaration */
|
|
6
6
|
export declare class Customs {
|
|
7
|
+
/** @description Indicates the type of contents associated with this shipment */
|
|
7
8
|
contents?: CustomsContentTypes;
|
|
9
|
+
/** @description Indicates what the seller would like done in case of an issue with delivery */
|
|
8
10
|
non_delivery?: CustomsNonDelivery;
|
|
11
|
+
/** @description A list of customs items to declare */
|
|
9
12
|
customs_items: CustomsItem[];
|
|
13
|
+
/** @description Indicates how much the buyer paid for shipping, if any. This amount may be different than the shipping cost billed to the shipper. */
|
|
10
14
|
buyer_shipping_amount_paid?: Currency;
|
|
15
|
+
/** @description The amount of duties paid by the shipper, if any. This is generally only necessary for DDP (bill_duties_to_sender) shipments. */
|
|
11
16
|
duties_paid?: Currency;
|
|
12
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Customs = void 0;
|
|
4
|
-
/** @description Basic structure for a customs declaration
|
|
4
|
+
/** @description Basic structure for a customs declaration */
|
|
5
5
|
class Customs {
|
|
6
6
|
}
|
|
7
7
|
exports.Customs = Customs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customs.js","sourceRoot":"","sources":["../../../src/models/customs/customs.ts"],"names":[],"mappings":";;;AAKA,
|
|
1
|
+
{"version":3,"file":"customs.js","sourceRoot":"","sources":["../../../src/models/customs/customs.ts"],"names":[],"mappings":";;;AAKA,6DAA6D;AAC7D,MAAa,OAAO;CAWnB;AAXD,0BAWC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import Joi from 'joi';
|
|
2
2
|
/** @description Types of documents */
|
|
3
3
|
export declare enum DocumentType {
|
|
4
|
+
/** @description A shipping label */
|
|
4
5
|
Label = "label",
|
|
6
|
+
/** @description A form that lists the details of goods that are being imported or exported when a citizen or visitor enters a customs territory (country's borders) */
|
|
5
7
|
CustomsForm = "customs_form",
|
|
8
|
+
/** @description A legal document issued by the seller (exporter) to the buyer (importer) in an international transaction and serves as a contract and a proof of sale between the buyer and seller */
|
|
6
9
|
CommercialInvoice = "commercial_invoice",
|
|
10
|
+
/** @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) */
|
|
7
11
|
BillOfLading = "bill_of_lading"
|
|
8
12
|
}
|
|
9
13
|
export declare const DocumentTypeSchema: Joi.StringSchema;
|
|
@@ -6,9 +6,13 @@ const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
|
6
6
|
/** @description Types of documents */
|
|
7
7
|
var DocumentType;
|
|
8
8
|
(function (DocumentType) {
|
|
9
|
+
/** @description A shipping label */
|
|
9
10
|
DocumentType["Label"] = "label";
|
|
11
|
+
/** @description A form that lists the details of goods that are being imported or exported when a citizen or visitor enters a customs territory (country's borders) */
|
|
10
12
|
DocumentType["CustomsForm"] = "customs_form";
|
|
13
|
+
/** @description A legal document issued by the seller (exporter) to the buyer (importer) in an international transaction and serves as a contract and a proof of sale between the buyer and seller */
|
|
11
14
|
DocumentType["CommercialInvoice"] = "commercial_invoice";
|
|
15
|
+
/** @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) */
|
|
12
16
|
DocumentType["BillOfLading"] = "bill_of_lading";
|
|
13
17
|
})(DocumentType = exports.DocumentType || (exports.DocumentType = {}));
|
|
14
18
|
exports.DocumentTypeSchema = joi_1.default.string().valid(...Object.values(DocumentType));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-type.js","sourceRoot":"","sources":["../../../src/models/documents/document-type.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,sCAAsC;AACtC,IAAY,
|
|
1
|
+
{"version":3,"file":"document-type.js","sourceRoot":"","sources":["../../../src/models/documents/document-type.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,sCAAsC;AACtC,IAAY,YASX;AATD,WAAY,YAAY;IACtB,oCAAoC;IACpC,+BAAe,CAAA;IACf,uKAAuK;IACvK,4CAA4B,CAAA;IAC5B,sMAAsM;IACtM,wDAAwC,CAAA;IACxC,8OAA8O;IAC9O,+CAA+B,CAAA;AACjC,CAAC,EATW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QASvB;AAEY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAClD,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAC/B,CAAC"}
|
|
@@ -3,8 +3,11 @@ import { DocumentFormat } from '../labels/document-formats';
|
|
|
3
3
|
import Joi from 'joi';
|
|
4
4
|
/** @description Basic structure for a document */
|
|
5
5
|
export declare class Document {
|
|
6
|
+
/** @description The document type(s) being returned. In most cases this is just a single document type; however, some carriers return multiple document types in the same PDF or ZPL */
|
|
6
7
|
type: DocumentType[];
|
|
8
|
+
/** @description Base64 encoded data for the document */
|
|
7
9
|
data: string;
|
|
10
|
+
/** @description The format the document is in (Pdf, Zpl, etc) */
|
|
8
11
|
format: DocumentFormat;
|
|
9
12
|
}
|
|
10
13
|
export declare const DocumentSchema: Joi.ObjectSchema<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../src/models/documents/document.ts"],"names":[],"mappings":";;;;AAAA,mDAAmE;AACnE,iEAGoC;AACpC,sDAAsB;AAEtB,kDAAkD;AAClD,MAAa,QAAQ;
|
|
1
|
+
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../src/models/documents/document.ts"],"names":[],"mappings":";;;;AAAA,mDAAmE;AACnE,iEAGoC;AACpC,sDAAsB;AAEtB,kDAAkD;AAClD,MAAa,QAAQ;CAOpB;AAPD,4BAOC;AACY,QAAA,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,kCAAkB,CAAC;IAC7D,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,uCAAoB,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StandardizedErrorCode } from './standardized-error-code';
|
|
2
|
-
/** @
|
|
2
|
+
/** @deprecated Please Use Runtime Errors */
|
|
3
3
|
export declare class DetailedError {
|
|
4
4
|
standardized_error_code: StandardizedErrorCode;
|
|
5
5
|
external_error_code?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DetailedError = void 0;
|
|
4
|
-
/** @
|
|
4
|
+
/** @deprecated Please Use Runtime Errors */
|
|
5
5
|
class DetailedError {
|
|
6
6
|
}
|
|
7
7
|
exports.DetailedError = DetailedError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detailed-error.js","sourceRoot":"","sources":["../../../src/models/errors/detailed-error.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"detailed-error.js","sourceRoot":"","sources":["../../../src/models/errors/detailed-error.ts"],"names":[],"mappings":";;;AAEA,4CAA4C;AAC5C,MAAa,aAAa;CAMzB;AAND,sCAMC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StandardizedErrorCode = void 0;
|
|
4
|
-
/** @
|
|
4
|
+
/** @deprecated Please Use Runtime Errors */
|
|
5
5
|
var StandardizedErrorCode;
|
|
6
6
|
(function (StandardizedErrorCode) {
|
|
7
7
|
StandardizedErrorCode[StandardizedErrorCode["Generic"] = 0] = "Generic";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standardized-error-code.js","sourceRoot":"","sources":["../../../src/models/errors/standardized-error-code.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"standardized-error-code.js","sourceRoot":"","sources":["../../../src/models/errors/standardized-error-code.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,IAAY,qBAcX;AAdD,WAAY,qBAAqB;IAC/B,uEAAW,CAAA;IACX,mFAAiB,CAAA;IACjB,yGAA4B,CAAA;IAC5B,6EAAc,CAAA;IACd,+FAAwB,CAAA;IACxB,mGAA0B,CAAA;IAC1B,iHAAiC,CAAA;IACjC,yGAA6B,CAAA;IAC7B,uGAA4B,CAAA;IAC5B,+FAAwB,CAAA;IACxB,+GAAgC,CAAA;IAChC,uGAA4B,CAAA;IAC5B,iGAAyB,CAAA;AAC3B,CAAC,EAdW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAchC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Identifier } from '../identifier';
|
|
2
2
|
import { FulfillmentPlanItems } from './fulfillment-plan-items';
|
|
3
3
|
import { RawExternalSource } from './raw-external-source';
|
|
4
|
-
/** @description
|
|
4
|
+
/** @description This model contains information about the fulfillment plan. */
|
|
5
5
|
export declare class FulfillmentPlanDetails {
|
|
6
|
+
/** @description A list of identifiers for the sales order. */
|
|
6
7
|
external_sales_order_identifiers?: Identifier[];
|
|
8
|
+
/** @description Information about the fulfillment plan item. */
|
|
7
9
|
items?: FulfillmentPlanItems[];
|
|
10
|
+
/** @description This model represents a raw external source of information */
|
|
8
11
|
raw_external_source?: RawExternalSource;
|
|
9
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FulfillmentPlanDetails = void 0;
|
|
4
|
-
/** @description
|
|
4
|
+
/** @description This model contains information about the fulfillment plan. */
|
|
5
5
|
class FulfillmentPlanDetails {
|
|
6
6
|
}
|
|
7
7
|
exports.FulfillmentPlanDetails = FulfillmentPlanDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fulfillment-plan-details.js","sourceRoot":"","sources":["../../../src/models/fulfillment-plans/fulfillment-plan-details.ts"],"names":[],"mappings":";;;AAIA
|
|
1
|
+
{"version":3,"file":"fulfillment-plan-details.js","sourceRoot":"","sources":["../../../src/models/fulfillment-plans/fulfillment-plan-details.ts"],"names":[],"mappings":";;;AAIA,+EAA+E;AAC/E,MAAa,sBAAsB;CAOlC;AAPD,wDAOC"}
|