@shipengine/connect-carrier-api 2.1.19 → 2.1.23
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/app/carrier-app-definition.d.ts +12 -2
- package/lib/app/carrier-app.js +79 -53
- package/lib/app/carrier-app.js.map +1 -1
- package/lib/app/constants.d.ts +14 -0
- package/lib/app/constants.js +19 -0
- package/lib/app/constants.js.map +1 -0
- package/lib/app/internal/{carrier-app-specificaion.d.ts → carrier-app-specification.d.ts} +4 -1
- package/lib/app/internal/{carrier-app-specificaion.js → carrier-app-specification.js} +1 -1
- package/lib/app/internal/carrier-app-specification.js.map +1 -0
- package/lib/app/internal/{carrier-specificaion.d.ts → carrier-specification.d.ts} +0 -0
- package/lib/app/internal/{carrier-specificaion.js → carrier-specification.js} +1 -1
- package/lib/app/internal/carrier-specification.js.map +1 -0
- package/lib/app/internal/metadata.d.ts +4 -2
- package/lib/app/internal/metadata.js +6 -2
- package/lib/app/internal/metadata.js.map +1 -1
- package/lib/app/internal/route.d.ts +1 -0
- package/lib/app/metadata/auth-identifier.d.ts +10 -0
- package/lib/app/metadata/auth-identifier.js +18 -0
- package/lib/app/metadata/auth-identifier.js.map +1 -0
- package/lib/app/metadata/auth-specification.d.ts +19 -0
- package/lib/app/metadata/auth-specification.js +20 -0
- package/lib/app/metadata/auth-specification.js.map +1 -0
- package/lib/app/metadata/carrier-app-metadata.d.ts +3 -1
- package/lib/app/metadata/carrier-app-metadata.js +3 -2
- package/lib/app/metadata/carrier-app-metadata.js.map +1 -1
- package/lib/app/metadata/index.d.ts +4 -1
- package/lib/app/metadata/index.js +4 -1
- package/lib/app/metadata/index.js.map +1 -1
- package/lib/app/metadata/monoauth.d.ts +102 -0
- package/lib/app/metadata/monoauth.js +82 -0
- package/lib/app/metadata/monoauth.js.map +1 -0
- package/lib/models/billing/billing-categories.d.ts +2 -0
- package/lib/models/billing/billing-categories.js +4 -1
- package/lib/models/billing/billing-categories.js.map +1 -1
- package/lib/models/billing/billing-line-item.d.ts +2 -0
- package/lib/models/billing/billing-line-item.js +12 -1
- package/lib/models/billing/billing-line-item.js.map +1 -1
- package/lib/models/currency.d.ts +2 -0
- package/lib/models/currency.js +7 -1
- package/lib/models/currency.js.map +1 -1
- package/lib/models/documents/document-type.d.ts +2 -0
- package/lib/models/documents/document-type.js +4 -1
- package/lib/models/documents/document-type.js.map +1 -1
- package/lib/models/documents/document.d.ts +2 -0
- package/lib/models/documents/document.js +10 -1
- package/lib/models/documents/document.js.map +1 -1
- package/lib/models/identifier.d.ts +2 -0
- package/lib/models/identifier.js +7 -1
- package/lib/models/identifier.js.map +1 -1
- package/lib/models/inbound-content-types.d.ts +7 -0
- package/lib/models/inbound-content-types.js +13 -0
- package/lib/models/inbound-content-types.js.map +1 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.js +1 -0
- package/lib/models/index.js.map +1 -1
- package/lib/models/labels/document-formats.d.ts +2 -0
- package/lib/models/labels/document-formats.js +4 -1
- package/lib/models/labels/document-formats.js.map +1 -1
- package/lib/models/labels/form-download.d.ts +2 -0
- package/lib/models/labels/form-download.js +6 -1
- 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 +6 -1
- 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 +10 -1
- package/lib/models/labels/label-package.js.map +1 -1
- package/lib/models/labels/void-response.d.ts +5 -0
- package/lib/models/labels/void-response.js +10 -1
- package/lib/models/labels/void-response.js.map +1 -1
- package/lib/models/manifests/manifest.d.ts +2 -0
- package/lib/models/manifests/manifest.js +10 -1
- package/lib/models/manifests/manifest.js.map +1 -1
- package/lib/models/pickup/pickup-confirmation.d.ts +2 -0
- package/lib/models/pickup/pickup-confirmation.js +10 -1
- package/lib/models/pickup/pickup-confirmation.js.map +1 -1
- package/lib/models/pickup/pickup-window.d.ts +2 -0
- package/lib/models/pickup/pickup-window.js +9 -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 +8 -1
- package/lib/models/pickup/shipment-identifier.js.map +1 -1
- package/lib/models/rates/rate.d.ts +2 -0
- package/lib/models/rates/rate.js +18 -1
- package/lib/models/rates/rate.js.map +1 -1
- package/lib/models/registration/credentials.d.ts +2 -0
- package/lib/models/registration/credentials.js +7 -1
- package/lib/models/registration/credentials.js.map +1 -1
- package/lib/models/resource-download.d.ts +2 -0
- package/lib/models/resource-download.js +7 -1
- package/lib/models/resource-download.js.map +1 -1
- package/lib/models/time-window.d.ts +2 -0
- package/lib/models/time-window.js +8 -1
- package/lib/models/time-window.js.map +1 -1
- package/lib/models/tracking/index.d.ts +1 -0
- package/lib/models/tracking/index.js +1 -0
- package/lib/models/tracking/index.js.map +1 -1
- package/lib/models/tracking/lat-long.d.ts +2 -0
- package/lib/models/tracking/lat-long.js +7 -1
- package/lib/models/tracking/lat-long.js.map +1 -1
- package/lib/models/tracking/service.d.ts +2 -0
- package/lib/models/tracking/service.js +7 -1
- package/lib/models/tracking/service.js.map +1 -1
- package/lib/models/tracking/standardized-status-codes.d.ts +2 -0
- package/lib/models/tracking/standardized-status-codes.js +4 -1
- package/lib/models/tracking/standardized-status-codes.js.map +1 -1
- package/lib/models/tracking/track-event.d.ts +2 -0
- package/lib/models/tracking/track-event.js +18 -1
- package/lib/models/tracking/track-event.js.map +1 -1
- package/lib/models/tracking/tracking-info.d.ts +2 -0
- package/lib/models/tracking/tracking-info.js +27 -1
- package/lib/models/tracking/tracking-info.js.map +1 -1
- package/lib/models/tracking/update-method.d.ts +9 -0
- package/lib/models/tracking/update-method.js +15 -0
- package/lib/models/tracking/update-method.js.map +1 -0
- package/lib/models/units/dimensions.d.ts +2 -0
- package/lib/models/units/dimensions.js +8 -1
- package/lib/models/units/dimensions.js.map +1 -1
- package/lib/requests/index.d.ts +2 -0
- package/lib/requests/index.js +2 -0
- package/lib/requests/index.js.map +1 -1
- package/lib/requests/normalize-tracking-data-request.d.ts +8 -0
- package/lib/requests/normalize-tracking-data-request.js +3 -0
- package/lib/requests/normalize-tracking-data-request.js.map +1 -0
- package/lib/requests/validate-inbound-data-request.d.ts +8 -0
- package/lib/requests/validate-inbound-data-request.js +3 -0
- package/lib/requests/validate-inbound-data-request.js.map +1 -0
- package/lib/responses/base-response.d.ts +2 -0
- package/lib/responses/base-response.js +6 -1
- package/lib/responses/base-response.js.map +1 -1
- package/lib/responses/cancel-notification-response.d.ts +2 -0
- package/lib/responses/cancel-notification-response.js +7 -1
- package/lib/responses/cancel-notification-response.js.map +1 -1
- package/lib/responses/cancel-pickup-response.d.ts +2 -0
- package/lib/responses/cancel-pickup-response.js +9 -1
- package/lib/responses/cancel-pickup-response.js.map +1 -1
- package/lib/responses/create-label-response.d.ts +2 -0
- package/lib/responses/create-label-response.js +19 -1
- package/lib/responses/create-label-response.js.map +1 -1
- package/lib/responses/create-manifest-response.d.ts +2 -0
- package/lib/responses/create-manifest-response.js +8 -1
- package/lib/responses/create-manifest-response.js.map +1 -1
- package/lib/responses/create-notification-response.d.ts +2 -0
- package/lib/responses/create-notification-response.js +6 -1
- package/lib/responses/create-notification-response.js.map +1 -1
- package/lib/responses/get-rates-response.d.ts +2 -0
- package/lib/responses/get-rates-response.js +7 -1
- package/lib/responses/get-rates-response.js.map +1 -1
- package/lib/responses/index.d.ts +2 -0
- package/lib/responses/index.js +2 -0
- package/lib/responses/index.js.map +1 -1
- package/lib/responses/normalize-tracking-data-response.d.ts +14 -0
- package/lib/responses/normalize-tracking-data-response.js +16 -0
- package/lib/responses/normalize-tracking-data-response.js.map +1 -0
- package/lib/responses/register-response.d.ts +2 -0
- package/lib/responses/register-response.js +8 -1
- package/lib/responses/register-response.js.map +1 -1
- package/lib/responses/schedule-pickup-response.d.ts +2 -0
- package/lib/responses/schedule-pickup-response.js +11 -1
- package/lib/responses/schedule-pickup-response.js.map +1 -1
- package/lib/responses/tracking-response.d.ts +1 -0
- package/lib/responses/tracking-response.js +5 -1
- package/lib/responses/tracking-response.js.map +1 -1
- package/lib/responses/validate-inbound-data-response.d.ts +9 -0
- package/lib/responses/validate-inbound-data-response.js +15 -0
- package/lib/responses/validate-inbound-data-response.js.map +1 -0
- package/lib/responses/void-labels-response.d.ts +2 -0
- package/lib/responses/void-labels-response.js +7 -1
- package/lib/responses/void-labels-response.js.map +1 -1
- package/package.json +2 -2
- package/spec.json +31 -1
- package/src/app/carrier-app-definition.ts +18 -0
- package/src/app/carrier-app.ts +108 -56
- package/src/app/constants.ts +14 -0
- package/src/app/internal/{carrier-app-specificaion.ts → carrier-app-specification.ts} +4 -1
- package/src/app/internal/{carrier-specificaion.ts → carrier-specification.ts} +0 -0
- package/src/app/internal/metadata.ts +8 -2
- package/src/app/internal/route.ts +1 -0
- package/src/app/metadata/auth-identifier.ts +17 -0
- package/src/app/metadata/auth-specification.ts +39 -0
- package/src/app/metadata/carrier-app-metadata.ts +9 -1
- package/src/app/metadata/index.ts +4 -1
- package/src/app/metadata/monoauth.ts +171 -0
- package/src/models/billing/billing-categories.ts +6 -0
- package/src/models/billing/billing-line-item.ts +14 -2
- package/src/models/currency.ts +7 -0
- package/src/models/documents/document-type.ts +6 -0
- package/src/models/documents/document.ts +11 -2
- package/src/models/identifier.ts +7 -0
- package/src/models/inbound-content-types.ts +10 -0
- package/src/models/index.ts +1 -0
- package/src/models/labels/document-formats.ts +5 -0
- package/src/models/labels/form-download.ts +6 -1
- package/src/models/labels/label-download.ts +6 -1
- package/src/models/labels/label-package.ts +9 -2
- package/src/models/labels/void-response.ts +11 -0
- package/src/models/manifests/manifest.ts +9 -1
- package/src/models/pickup/pickup-confirmation.ts +11 -2
- package/src/models/pickup/pickup-window.ts +8 -0
- package/src/models/pickup/shipment-identifier.ts +7 -1
- package/src/models/rates/rate.ts +20 -2
- package/src/models/registration/credentials.ts +7 -0
- package/src/models/resource-download.ts +7 -0
- package/src/models/time-window.ts +8 -0
- package/src/models/tracking/index.ts +1 -0
- package/src/models/tracking/lat-long.ts +7 -0
- package/src/models/tracking/service.ts +6 -0
- package/src/models/tracking/standardized-status-codes.ts +6 -0
- package/src/models/tracking/track-event.ts +16 -0
- package/src/models/tracking/tracking-info.ts +29 -4
- package/src/models/tracking/update-method.ts +13 -0
- package/src/models/units/dimensions.ts +7 -0
- package/src/requests/index.ts +2 -0
- package/src/requests/normalize-tracking-data-request.ts +9 -0
- package/src/requests/validate-inbound-data-request.ts +9 -0
- package/src/responses/base-response.ts +6 -0
- package/src/responses/cancel-notification-response.ts +7 -1
- package/src/responses/cancel-pickup-response.ts +9 -1
- package/src/responses/create-label-response.ts +25 -1
- package/src/responses/create-manifest-response.ts +8 -2
- package/src/responses/create-notification-response.ts +6 -1
- package/src/responses/get-rates-response.ts +7 -2
- package/src/responses/index.ts +2 -0
- package/src/responses/normalize-tracking-data-response.ts +24 -0
- package/src/responses/register-response.ts +6 -1
- package/src/responses/schedule-pickup-response.ts +18 -2
- package/src/responses/tracking-response.ts +6 -2
- package/src/responses/validate-inbound-data-response.ts +16 -0
- package/src/responses/void-labels-response.ts +7 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/app/internal/carrier-app-specificaion.js.map +0 -1
- package/lib/app/internal/carrier-specificaion.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pickup-window.js","sourceRoot":"","sources":["../../../src/models/pickup/pickup-window.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pickup-window.js","sourceRoot":"","sources":["../../../src/models/pickup/pickup-window.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,0CAA0C;AAC1C,MAAa,YAAY;CAKxB;AALD,oCAKC;AACY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC3C,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;IAC9C,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;IAC7C,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;CAC5C,CAAC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import Joi from 'joi';
|
|
1
2
|
import { Identifier } from '../identifier';
|
|
2
3
|
/** @description Identifier object for shiments */
|
|
3
4
|
export declare class ShipmentIdentifier {
|
|
4
5
|
tracking_number?: string;
|
|
5
6
|
alternate_identifiers?: Identifier[];
|
|
6
7
|
}
|
|
8
|
+
export declare const ShipmentIdentifierSchema: Joi.ObjectSchema<any>;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShipmentIdentifier = void 0;
|
|
3
|
+
exports.ShipmentIdentifierSchema = exports.ShipmentIdentifier = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
6
|
+
const identifier_1 = require("../identifier");
|
|
4
7
|
/** @description Identifier object for shiments */
|
|
5
8
|
class ShipmentIdentifier {
|
|
6
9
|
}
|
|
7
10
|
exports.ShipmentIdentifier = ShipmentIdentifier;
|
|
11
|
+
exports.ShipmentIdentifierSchema = joi_1.default.object({
|
|
12
|
+
tracking_number: joi_1.default.string().optional().empty(),
|
|
13
|
+
alternate_identifiers: joi_1.default.array().optional().items(identifier_1.IdentifierSchema),
|
|
14
|
+
});
|
|
8
15
|
//# sourceMappingURL=shipment-identifier.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipment-identifier.js","sourceRoot":"","sources":["../../../src/models/pickup/shipment-identifier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shipment-identifier.js","sourceRoot":"","sources":["../../../src/models/pickup/shipment-identifier.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,8CAA6D;AAE7D,kDAAkD;AAClD,MAAa,kBAAkB;CAG9B;AAHD,gDAGC;AAEY,QAAA,wBAAwB,GAAG,aAAG,CAAC,MAAM,CAAC;IACjD,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAChD,qBAAqB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,6BAAgB,CAAC;CACtE,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Joi from 'joi';
|
|
1
2
|
import { BillingLineItem } from '../billing/billing-line-item';
|
|
2
3
|
import { TimeWindow } from '../time-window';
|
|
3
4
|
/** @description Basic structure for a rate */
|
|
@@ -27,3 +28,4 @@ export declare class Rate {
|
|
|
27
28
|
*/
|
|
28
29
|
expiration_datetime?: string;
|
|
29
30
|
}
|
|
31
|
+
export declare const RateSchema: Joi.ObjectSchema<any>;
|
package/lib/models/rates/rate.js
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Rate = void 0;
|
|
3
|
+
exports.RateSchema = exports.Rate = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
6
|
+
const billing_line_item_1 = require("../billing/billing-line-item");
|
|
7
|
+
const time_window_1 = require("../time-window");
|
|
4
8
|
/** @description Basic structure for a rate */
|
|
5
9
|
class Rate {
|
|
6
10
|
}
|
|
7
11
|
exports.Rate = Rate;
|
|
12
|
+
exports.RateSchema = joi_1.default.object({
|
|
13
|
+
service_code: joi_1.default.string().optional().empty(),
|
|
14
|
+
ship_datetime: joi_1.default.string().optional().empty().isoDate(),
|
|
15
|
+
estimated_delivery_datetime: joi_1.default.string().optional().empty().isoDate(),
|
|
16
|
+
billing_line_items: joi_1.default.array().optional().items(billing_line_item_1.BillingLineItemSchema),
|
|
17
|
+
error_messages: joi_1.default.array().optional().items(joi_1.default.string()),
|
|
18
|
+
warning_messages: joi_1.default.array().optional().items(joi_1.default.string()),
|
|
19
|
+
negotiated_rate: joi_1.default.boolean().optional(),
|
|
20
|
+
carrier_pickup_window: time_window_1.TimeWindowSchema.optional(),
|
|
21
|
+
delivery_window: time_window_1.TimeWindowSchema.optional(),
|
|
22
|
+
carrier_rate_id: joi_1.default.string().optional().empty(),
|
|
23
|
+
expiration_datetime: joi_1.default.string().optional().empty().isoDate(),
|
|
24
|
+
});
|
|
8
25
|
//# sourceMappingURL=rate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rate.js","sourceRoot":"","sources":["../../../src/models/rates/rate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rate.js","sourceRoot":"","sources":["../../../src/models/rates/rate.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,oEAGsC;AACtC,gDAA8D;AAE9D,8CAA8C;AAC9C,MAAa,IAAI;CAyBhB;AAzBD,oBAyBC;AAEY,QAAA,UAAU,GAAG,aAAG,CAAC,MAAM,CAAC;IACnC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7C,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IACxD,2BAA2B,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IACtE,kBAAkB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,yCAAqB,CAAC;IACvE,cAAc,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC;IAC1D,gBAAgB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC;IAC5D,eAAe,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACzC,qBAAqB,EAAE,8BAAgB,CAAC,QAAQ,EAAE;IAClD,eAAe,EAAE,8BAAgB,CAAC,QAAQ,EAAE;IAC5C,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAChD,mBAAmB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;CAC/D,CAAC,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Credentials = void 0;
|
|
3
|
+
exports.CredentialsSchema = exports.Credentials = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
4
6
|
/** @description Basic structure for credentials */
|
|
5
7
|
class Credentials {
|
|
6
8
|
}
|
|
7
9
|
exports.Credentials = Credentials;
|
|
10
|
+
exports.CredentialsSchema = joi_1.default.object({
|
|
11
|
+
username: joi_1.default.string().required(),
|
|
12
|
+
password: joi_1.default.string().required(),
|
|
13
|
+
});
|
|
8
14
|
//# sourceMappingURL=credentials.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/models/registration/credentials.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/models/registration/credentials.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,mDAAmD;AACnD,MAAa,WAAW;CAGvB;AAHD,kCAGC;AAEY,QAAA,iBAAiB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResourceDownload = void 0;
|
|
3
|
+
exports.ResourceDownloadSchema = exports.ResourceDownload = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
4
6
|
/** @description Basic structure for a resource to download */
|
|
5
7
|
class ResourceDownload {
|
|
6
8
|
}
|
|
7
9
|
exports.ResourceDownload = ResourceDownload;
|
|
10
|
+
exports.ResourceDownloadSchema = joi_1.default.object({
|
|
11
|
+
href: joi_1.default.string().optional().empty(),
|
|
12
|
+
data: joi_1.default.string().optional().empty(),
|
|
13
|
+
});
|
|
8
14
|
//# sourceMappingURL=resource-download.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-download.js","sourceRoot":"","sources":["../../src/models/resource-download.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resource-download.js","sourceRoot":"","sources":["../../src/models/resource-download.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,8DAA8D;AAC9D,MAAa,gBAAgB;CAG5B;AAHD,4CAGC;AAEY,QAAA,sBAAsB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACrC,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Joi from 'joi';
|
|
1
2
|
/** @description Basic structure for defining a time window */
|
|
2
3
|
export declare class TimeWindow {
|
|
3
4
|
/** @description The local time zone represented in IANA. See https://www.iana.org/time-zones.
|
|
@@ -15,3 +16,4 @@ export declare class TimeWindow {
|
|
|
15
16
|
*/
|
|
16
17
|
end_window?: string;
|
|
17
18
|
}
|
|
19
|
+
export declare const TimeWindowSchema: Joi.ObjectSchema<any>;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TimeWindow = void 0;
|
|
3
|
+
exports.TimeWindowSchema = exports.TimeWindow = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
4
6
|
/** @description Basic structure for defining a time window */
|
|
5
7
|
class TimeWindow {
|
|
6
8
|
}
|
|
7
9
|
exports.TimeWindow = TimeWindow;
|
|
10
|
+
exports.TimeWindowSchema = joi_1.default.object({
|
|
11
|
+
time_zone_iana: joi_1.default.string().required(),
|
|
12
|
+
start_window: joi_1.default.string().required().isoDate(),
|
|
13
|
+
end_window: joi_1.default.string().optional().empty().isoDate(),
|
|
14
|
+
});
|
|
8
15
|
//# sourceMappingURL=time-window.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-window.js","sourceRoot":"","sources":["../../src/models/time-window.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"time-window.js","sourceRoot":"","sources":["../../src/models/time-window.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,8DAA8D;AAC9D,MAAa,UAAU;CAetB;AAfD,gCAeC;AAEY,QAAA,gBAAgB,GAAG,aAAG,CAAC,MAAM,CAAC;IACzC,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;IAC/C,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;CACtD,CAAC,CAAC"}
|
|
@@ -8,4 +8,5 @@ tslib_1.__exportStar(require("./track-event"), exports);
|
|
|
8
8
|
tslib_1.__exportStar(require("./tracking-attribute"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./tracking-identifier"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./tracking-info"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./update-method"), exports);
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/tracking/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,oDAA0B;AAC1B,sEAA4C;AAC5C,wDAA8B;AAC9B,+DAAqC;AACrC,gEAAsC;AACtC,0DAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/tracking/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,oDAA0B;AAC1B,sEAA4C;AAC5C,wDAA8B;AAC9B,+DAAqC;AACrC,gEAAsC;AACtC,0DAAgC;AAChC,0DAAgC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Joi from 'joi';
|
|
1
2
|
/** @description Latitude and longitude */
|
|
2
3
|
export declare class LatLong {
|
|
3
4
|
/** @description latitude */
|
|
@@ -5,3 +6,4 @@ export declare class LatLong {
|
|
|
5
6
|
/** @description longitude */
|
|
6
7
|
long: number;
|
|
7
8
|
}
|
|
9
|
+
export declare const LatLongSchema: Joi.ObjectSchema<any>;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LatLong = void 0;
|
|
3
|
+
exports.LatLongSchema = exports.LatLong = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
4
6
|
/** @description Latitude and longitude */
|
|
5
7
|
class LatLong {
|
|
6
8
|
}
|
|
7
9
|
exports.LatLong = LatLong;
|
|
10
|
+
exports.LatLongSchema = joi_1.default.object({
|
|
11
|
+
lat: joi_1.default.number().required(),
|
|
12
|
+
long: joi_1.default.number().required(),
|
|
13
|
+
});
|
|
8
14
|
//# sourceMappingURL=lat-long.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lat-long.js","sourceRoot":"","sources":["../../../src/models/tracking/lat-long.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lat-long.js","sourceRoot":"","sources":["../../../src/models/tracking/lat-long.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,0CAA0C;AAC1C,MAAa,OAAO;CAKnB;AALD,0BAKC;AAEY,QAAA,aAAa,GAAG,aAAG,CAAC,MAAM,CAAC;IACtC,GAAG,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Service = void 0;
|
|
3
|
+
exports.ServiceSchema = exports.Service = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
4
6
|
/** @description Basic structure for a tracking service */
|
|
5
7
|
class Service {
|
|
6
8
|
}
|
|
7
9
|
exports.Service = Service;
|
|
10
|
+
exports.ServiceSchema = joi_1.default.object({
|
|
11
|
+
code: joi_1.default.string().optional().empty(),
|
|
12
|
+
name: joi_1.default.string().optional().empty(),
|
|
13
|
+
});
|
|
8
14
|
//# sourceMappingURL=service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/models/tracking/service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/models/tracking/service.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,0DAA0D;AAC1D,MAAa,OAAO;CAGnB;AAHD,0BAGC;AACY,QAAA,aAAa,GAAG,aAAG,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACrC,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Joi from 'joi';
|
|
1
2
|
/** @description Status codes for tracking */
|
|
2
3
|
export declare enum StandardizedStatusCodes {
|
|
3
4
|
Unknown = "UN",
|
|
@@ -8,3 +9,4 @@ export declare enum StandardizedStatusCodes {
|
|
|
8
9
|
DeliveryAttempt = "AT",
|
|
9
10
|
NotYetInSystem = "NY"
|
|
10
11
|
}
|
|
12
|
+
export declare const StandardizedStatusCodesSchema: Joi.StringSchema;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StandardizedStatusCodes = void 0;
|
|
3
|
+
exports.StandardizedStatusCodesSchema = exports.StandardizedStatusCodes = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
4
6
|
/** @description Status codes for tracking */
|
|
5
7
|
var StandardizedStatusCodes;
|
|
6
8
|
(function (StandardizedStatusCodes) {
|
|
@@ -12,4 +14,5 @@ var StandardizedStatusCodes;
|
|
|
12
14
|
StandardizedStatusCodes["DeliveryAttempt"] = "AT";
|
|
13
15
|
StandardizedStatusCodes["NotYetInSystem"] = "NY";
|
|
14
16
|
})(StandardizedStatusCodes = exports.StandardizedStatusCodes || (exports.StandardizedStatusCodes = {}));
|
|
17
|
+
exports.StandardizedStatusCodesSchema = joi_1.default.string().valid(...Object.values(StandardizedStatusCodes));
|
|
15
18
|
//# sourceMappingURL=standardized-status-codes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standardized-status-codes.js","sourceRoot":"","sources":["../../../src/models/tracking/standardized-status-codes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"standardized-status-codes.js","sourceRoot":"","sources":["../../../src/models/tracking/standardized-status-codes.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,6CAA6C;AAC7C,IAAY,uBAQX;AARD,WAAY,uBAAuB;IACjC,yCAAc,CAAA;IACd,0CAAe,CAAA;IACf,2CAAgB,CAAA;IAChB,2CAAgB,CAAA;IAChB,2CAAgB,CAAA;IAChB,iDAAsB,CAAA;IACtB,gDAAqB,CAAA;AACvB,CAAC,EARW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAQlC;AAEY,QAAA,6BAA6B,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAC7D,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAC1C,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Joi from 'joi';
|
|
1
2
|
import { LatLong } from './lat-long';
|
|
2
3
|
import { StandardizedStatusCodes } from './standardized-status-codes';
|
|
3
4
|
/** @description Basic structure for tracking events */
|
|
@@ -18,3 +19,4 @@ export declare class TrackEvent {
|
|
|
18
19
|
geo?: LatLong;
|
|
19
20
|
status_code?: StandardizedStatusCodes;
|
|
20
21
|
}
|
|
22
|
+
export declare const TrackEventSchema: Joi.ObjectSchema<any>;
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TrackEvent = void 0;
|
|
3
|
+
exports.TrackEventSchema = exports.TrackEvent = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
6
|
+
const _1 = require(".");
|
|
4
7
|
/** @description Basic structure for tracking events */
|
|
5
8
|
class TrackEvent {
|
|
6
9
|
}
|
|
7
10
|
exports.TrackEvent = TrackEvent;
|
|
11
|
+
exports.TrackEventSchema = joi_1.default.object({
|
|
12
|
+
event_datetime: joi_1.default.string().optional().empty().isoDate(),
|
|
13
|
+
event_datetime_local: joi_1.default.string().optional().empty().isoDate(),
|
|
14
|
+
event_code: joi_1.default.string().optional().empty(),
|
|
15
|
+
description: joi_1.default.string().optional().empty(),
|
|
16
|
+
city: joi_1.default.string().optional().empty(),
|
|
17
|
+
state: joi_1.default.string().optional().empty(),
|
|
18
|
+
postal_code: joi_1.default.string().optional().empty(),
|
|
19
|
+
country: joi_1.default.string().optional().empty(),
|
|
20
|
+
company: joi_1.default.string().optional().empty(),
|
|
21
|
+
signer: joi_1.default.string().optional().empty(),
|
|
22
|
+
geo: _1.LatLongSchema.optional(),
|
|
23
|
+
status_code: _1.StandardizedStatusCodesSchema.optional(),
|
|
24
|
+
});
|
|
8
25
|
//# sourceMappingURL=track-event.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"track-event.js","sourceRoot":"","sources":["../../../src/models/tracking/track-event.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"track-event.js","sourceRoot":"","sources":["../../../src/models/tracking/track-event.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,wBAAiE;AAIjE,uDAAuD;AACvD,MAAa,UAAU;CAgBtB;AAhBD,gCAgBC;AACY,QAAA,gBAAgB,GAAG,aAAG,CAAC,MAAM,CAAC;IACzC,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IACzD,oBAAoB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IAC/D,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC3C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC5C,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACrC,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACtC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC5C,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACxC,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACxC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACvC,GAAG,EAAE,gBAAa,CAAC,QAAQ,EAAE;IAC7B,WAAW,EAAE,gCAA6B,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { StandardizedStatusCodes } from './standardized-status-codes';
|
|
|
2
2
|
import { Dimensions } from '../units/dimensions';
|
|
3
3
|
import { Service } from './service';
|
|
4
4
|
import { TrackEvent } from './track-event';
|
|
5
|
+
import Joi from 'joi';
|
|
5
6
|
/** @description Basic structure for tracking information */
|
|
6
7
|
export declare class TrackingInfo {
|
|
7
8
|
carrier_name?: string;
|
|
@@ -23,3 +24,4 @@ export declare class TrackingInfo {
|
|
|
23
24
|
shipping_problem_code?: string;
|
|
24
25
|
error_description?: string;
|
|
25
26
|
}
|
|
27
|
+
export declare const TrackingInfoSchema: Joi.ObjectSchema<any>;
|
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TrackingInfo = void 0;
|
|
3
|
+
exports.TrackingInfoSchema = exports.TrackingInfo = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const standardized_status_codes_1 = require("./standardized-status-codes");
|
|
6
|
+
const dimensions_1 = require("../units/dimensions");
|
|
7
|
+
const service_1 = require("./service");
|
|
8
|
+
const track_event_1 = require("./track-event");
|
|
9
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
4
10
|
/** @description Basic structure for tracking information */
|
|
5
11
|
class TrackingInfo {
|
|
6
12
|
}
|
|
7
13
|
exports.TrackingInfo = TrackingInfo;
|
|
14
|
+
exports.TrackingInfoSchema = joi_1.default.object({
|
|
15
|
+
carrier_name: joi_1.default.string().optional().empty(),
|
|
16
|
+
tracking_number: joi_1.default.string().optional().empty(),
|
|
17
|
+
standardized_status_code: standardized_status_codes_1.StandardizedStatusCodesSchema.required(),
|
|
18
|
+
carrier_status_code: joi_1.default.string().optional().empty(),
|
|
19
|
+
carrier_status_description: joi_1.default.string().optional().empty(),
|
|
20
|
+
shipped_datetime: joi_1.default.string().optional().empty().isoDate(),
|
|
21
|
+
estimated_delivery_datetime: joi_1.default.string().optional().empty(),
|
|
22
|
+
actual_delivery_datetime: joi_1.default.string().optional().empty().isoDate(),
|
|
23
|
+
shipping_problem_description: joi_1.default.string().optional().empty(),
|
|
24
|
+
weight: joi_1.default.number().optional().empty(),
|
|
25
|
+
dimensions: dimensions_1.DimensionsSchema.optional(),
|
|
26
|
+
service: service_1.ServiceSchema.optional(),
|
|
27
|
+
packaging: joi_1.default.string().optional().empty(),
|
|
28
|
+
package_count: joi_1.default.number().optional().empty(),
|
|
29
|
+
events: joi_1.default.array().optional().items(track_event_1.TrackEventSchema),
|
|
30
|
+
shipping_problem: joi_1.default.boolean().optional().empty(),
|
|
31
|
+
shipping_problem_code: joi_1.default.string().optional().empty(),
|
|
32
|
+
error_description: joi_1.default.string().optional().empty(),
|
|
33
|
+
});
|
|
8
34
|
//# sourceMappingURL=tracking-info.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracking-info.js","sourceRoot":"","sources":["../../../src/models/tracking/tracking-info.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tracking-info.js","sourceRoot":"","sources":["../../../src/models/tracking/tracking-info.ts"],"names":[],"mappings":";;;;AAAA,2EAGqC;AACrC,oDAAmE;AACnE,uCAAmD;AACnD,+CAA6D;AAC7D,sDAAsB;AAEtB,4DAA4D;AAC5D,MAAa,YAAY;CAmBxB;AAnBD,oCAmBC;AAEY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC3C,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7C,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAChD,wBAAwB,EAAE,yDAA6B,CAAC,QAAQ,EAAE;IAClE,mBAAmB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACpD,0BAA0B,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC3D,gBAAgB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IAC3D,2BAA2B,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC5D,wBAAwB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IACnE,4BAA4B,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7D,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACvC,UAAU,EAAE,6BAAgB,CAAC,QAAQ,EAAE;IACvC,OAAO,EAAE,uBAAa,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC1C,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC9C,MAAM,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,8BAAgB,CAAC;IACtD,gBAAgB,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAClD,qBAAqB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACtD,iBAAiB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CACnD,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Joi from 'joi';
|
|
2
|
+
/** @description Update method to use for the tracking information */
|
|
3
|
+
export declare enum UpdateMethods {
|
|
4
|
+
/** @description Append the new data to the existing data set */
|
|
5
|
+
Append = "append",
|
|
6
|
+
/** @description Replace the existing data set with the new data */
|
|
7
|
+
Replace = "replace"
|
|
8
|
+
}
|
|
9
|
+
export declare const UpdateMethodsSchema: Joi.StringSchema;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateMethodsSchema = exports.UpdateMethods = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
6
|
+
/** @description Update method to use for the tracking information */
|
|
7
|
+
var UpdateMethods;
|
|
8
|
+
(function (UpdateMethods) {
|
|
9
|
+
/** @description Append the new data to the existing data set */
|
|
10
|
+
UpdateMethods["Append"] = "append";
|
|
11
|
+
/** @description Replace the existing data set with the new data */
|
|
12
|
+
UpdateMethods["Replace"] = "replace";
|
|
13
|
+
})(UpdateMethods = exports.UpdateMethods || (exports.UpdateMethods = {}));
|
|
14
|
+
exports.UpdateMethodsSchema = joi_1.default.string().valid(...Object.values(UpdateMethods));
|
|
15
|
+
//# sourceMappingURL=update-method.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-method.js","sourceRoot":"","sources":["../../../src/models/tracking/update-method.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,qEAAqE;AACrE,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,gEAAgE;IAChE,kCAAiB,CAAA;IACjB,mEAAmE;IACnE,oCAAmB,CAAA;AACrB,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAEY,QAAA,mBAAmB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CACnD,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAChC,CAAC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Dimensions = void 0;
|
|
3
|
+
exports.DimensionsSchema = exports.Dimensions = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
4
6
|
/** @description Basic structure for dimensions */
|
|
5
7
|
class Dimensions {
|
|
6
8
|
}
|
|
7
9
|
exports.Dimensions = Dimensions;
|
|
10
|
+
exports.DimensionsSchema = joi_1.default.object({
|
|
11
|
+
length: joi_1.default.number().optional(),
|
|
12
|
+
width: joi_1.default.number().optional(),
|
|
13
|
+
height: joi_1.default.number().optional(),
|
|
14
|
+
});
|
|
8
15
|
//# sourceMappingURL=dimensions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimensions.js","sourceRoot":"","sources":["../../../src/models/units/dimensions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dimensions.js","sourceRoot":"","sources":["../../../src/models/units/dimensions.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,kDAAkD;AAClD,MAAa,UAAU;CAItB;AAJD,gCAIC;AACY,QAAA,gBAAgB,GAAG,aAAG,CAAC,MAAM,CAAC;IACzC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
|
package/lib/requests/index.d.ts
CHANGED
|
@@ -8,3 +8,5 @@ export * from './tracking-request';
|
|
|
8
8
|
export * from './void-labels-request';
|
|
9
9
|
export * from './create-notification-request';
|
|
10
10
|
export * from './cancel-notification-request';
|
|
11
|
+
export * from './validate-inbound-data-request';
|
|
12
|
+
export * from './normalize-tracking-data-request';
|
package/lib/requests/index.js
CHANGED
|
@@ -11,4 +11,6 @@ tslib_1.__exportStar(require("./tracking-request"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./void-labels-request"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./create-notification-request"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./cancel-notification-request"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./validate-inbound-data-request"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./normalize-tracking-data-request"), exports);
|
|
14
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;AAAA,kEAAwC;AACxC,iEAAuC;AACvC,oEAA0C;AAC1C,8DAAoC;AACpC,6DAAmC;AACnC,oEAA0C;AAC1C,6DAAmC;AACnC,gEAAsC;AACtC,wEAA8C;AAC9C,wEAA8C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;AAAA,kEAAwC;AACxC,iEAAuC;AACvC,oEAA0C;AAC1C,8DAAoC;AACpC,6DAAmC;AACnC,oEAA0C;AAC1C,6DAAmC;AACnC,gEAAsC;AACtC,wEAA8C;AAC9C,wEAA8C;AAC9C,0EAAgD;AAChD,4EAAkD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseRequest } from './base-request';
|
|
2
|
+
/** @description Basic structure for a request to normalize tracking data from inbound tracking data requests (e.g. webhooks) */
|
|
3
|
+
export interface NormalizeTrackingDataRequest extends BaseRequest {
|
|
4
|
+
/** @description The request's data, e.g. the body of the webhook http request */
|
|
5
|
+
data: string;
|
|
6
|
+
/** @description Headers sent with the inbound request if it was received via http */
|
|
7
|
+
headers: Record<string, string[]>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-tracking-data-request.js","sourceRoot":"","sources":["../../src/requests/normalize-tracking-data-request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseRequest } from './base-request';
|
|
2
|
+
/** @description Basic structure for a request to validate inbound data */
|
|
3
|
+
export interface ValidateInboundDataRequest extends BaseRequest {
|
|
4
|
+
/** @description The request's data, e.g. the body of the webhook http request */
|
|
5
|
+
data: string;
|
|
6
|
+
/** @description Headers sent with the inbound request if it was received via http */
|
|
7
|
+
headers: Record<string, string[]>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-inbound-data-request.js","sourceRoot":"","sources":["../../src/requests/validate-inbound-data-request.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseResponse = void 0;
|
|
3
|
+
exports.BaseResponseSchema = exports.BaseResponse = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
4
6
|
class BaseResponse {
|
|
5
7
|
}
|
|
6
8
|
exports.BaseResponse = BaseResponse;
|
|
9
|
+
exports.BaseResponseSchema = joi_1.default.object({
|
|
10
|
+
metadata: joi_1.default.object().pattern(/.*/, [joi_1.default.any()]).optional(),
|
|
11
|
+
});
|
|
7
12
|
//# sourceMappingURL=base-response.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-response.js","sourceRoot":"","sources":["../../src/responses/base-response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-response.js","sourceRoot":"","sources":["../../src/responses/base-response.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,MAAa,YAAY;CAExB;AAFD,oCAEC;AAEY,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC3C,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,aAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Joi from 'joi';
|
|
1
2
|
import { BaseResponse } from './base-response';
|
|
2
3
|
export declare class CancelNotificationResponse extends BaseResponse {
|
|
3
4
|
/** @description User facing text describing the cancellation process. May be left blank to present a default value */
|
|
@@ -5,3 +6,4 @@ export declare class CancelNotificationResponse extends BaseResponse {
|
|
|
5
6
|
/** @description A list of errors preventing this notification from being cancelled. If no errors are returned the void is considered successful. If any errors are returned the void is considered failed. */
|
|
6
7
|
errors?: string[];
|
|
7
8
|
}
|
|
9
|
+
export declare const CancelNotificationResponseSchema: Joi.ObjectSchema<any>;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CancelNotificationResponse = void 0;
|
|
3
|
+
exports.CancelNotificationResponseSchema = exports.CancelNotificationResponse = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
4
6
|
const base_response_1 = require("./base-response");
|
|
5
7
|
class CancelNotificationResponse extends base_response_1.BaseResponse {
|
|
6
8
|
}
|
|
7
9
|
exports.CancelNotificationResponse = CancelNotificationResponse;
|
|
10
|
+
exports.CancelNotificationResponseSchema = base_response_1.BaseResponseSchema.keys({
|
|
11
|
+
message: joi_1.default.string().optional().empty(),
|
|
12
|
+
errors: joi_1.default.array().optional().items(joi_1.default.string()),
|
|
13
|
+
});
|
|
8
14
|
//# sourceMappingURL=cancel-notification-response.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-notification-response.js","sourceRoot":"","sources":["../../src/responses/cancel-notification-response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-notification-response.js","sourceRoot":"","sources":["../../src/responses/cancel-notification-response.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,mDAAmE;AAEnE,MAAa,0BAA2B,SAAQ,4BAAY;CAK3D;AALD,gEAKC;AAEY,QAAA,gCAAgC,GAAG,kCAAkB,CAAC,IAAI,CAAC;IACtE,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACxC,MAAM,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC;CACnD,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Joi from 'joi';
|
|
1
2
|
import { BaseResponse } from './base-response';
|
|
2
3
|
/** @description Basic structure for a response to cancel pickup */
|
|
3
4
|
export declare class CancelPickupResponse extends BaseResponse {
|
|
@@ -8,3 +9,4 @@ export declare class CancelPickupResponse extends BaseResponse {
|
|
|
8
9
|
[key: string]: string;
|
|
9
10
|
};
|
|
10
11
|
}
|
|
12
|
+
export declare const CancelPickupResponseSchema: Joi.ObjectSchema<any>;
|