@shipengine/connect-carrier-api 4.13.0 → 4.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/lib/app/metadata/carrier-attributes.d.ts +2 -1
  2. package/lib/app/metadata/carrier-attributes.js +1 -0
  3. package/lib/app/metadata/carrier-attributes.js.map +1 -1
  4. package/lib/app/metadata/enums.d.ts +2 -1
  5. package/lib/app/metadata/enums.js +1 -0
  6. package/lib/app/metadata/enums.js.map +1 -1
  7. package/lib/models/tracking/proof-of-delivery-format-schema.d.ts +2 -0
  8. package/lib/models/tracking/proof-of-delivery-format-schema.js +8 -0
  9. package/lib/models/tracking/proof-of-delivery-format-schema.js.map +1 -0
  10. package/lib/models/tracking/proof-of-delivery-format.d.ts +4 -0
  11. package/lib/models/tracking/proof-of-delivery-format.js +9 -0
  12. package/lib/models/tracking/proof-of-delivery-format.js.map +1 -0
  13. package/lib/models/tracking/proof-of-delivery-schema.d.ts +2 -0
  14. package/lib/models/tracking/proof-of-delivery-schema.js +11 -0
  15. package/lib/models/tracking/proof-of-delivery-schema.js.map +1 -0
  16. package/lib/models/tracking/proof-of-delivery.d.ts +8 -0
  17. package/lib/models/tracking/proof-of-delivery.js +12 -0
  18. package/lib/models/tracking/proof-of-delivery.js.map +1 -0
  19. package/lib/models/tracking/track-event-schema.js +2 -0
  20. package/lib/models/tracking/track-event-schema.js.map +1 -1
  21. package/lib/models/tracking/track-event.d.ts +3 -0
  22. package/lib/models/tracking/track-event.js +2 -0
  23. package/lib/models/tracking/track-event.js.map +1 -1
  24. package/package.json +1 -1
  25. package/spec.json +31 -1
  26. package/src/app/metadata/carrier-attributes.ts +1 -0
  27. package/src/app/metadata/enums.ts +1 -0
  28. package/src/models/tracking/proof-of-delivery-format-schema.ts +6 -0
  29. package/src/models/tracking/proof-of-delivery-format.ts +4 -0
  30. package/src/models/tracking/proof-of-delivery-schema.ts +7 -0
  31. package/src/models/tracking/proof-of-delivery.ts +9 -0
  32. package/src/models/tracking/track-event-schema.ts +2 -0
  33. package/src/models/tracking/track-event.ts +3 -0
  34. package/tsconfig.tsbuildinfo +1 -1
@@ -5,6 +5,7 @@ export declare enum CarrierAttributeEnum {
5
5
  Consolidator = "Consolidator",
6
6
  Regional = "Regional",
7
7
  RequiresInboundWebhook = "RequiresInboundWebhook",
8
- DetailedStatuses = "DetailedStatuses"
8
+ DetailedStatuses = "DetailedStatuses",
9
+ ProofOfDelivery = "ProofOfDelivery"
9
10
  }
10
11
  export declare const CarrierAttributeEnumSchema: Joi.StringSchema;
@@ -11,6 +11,7 @@ var CarrierAttributeEnum;
11
11
  CarrierAttributeEnum["Regional"] = "Regional";
12
12
  CarrierAttributeEnum["RequiresInboundWebhook"] = "RequiresInboundWebhook";
13
13
  CarrierAttributeEnum["DetailedStatuses"] = "DetailedStatuses";
14
+ CarrierAttributeEnum["ProofOfDelivery"] = "ProofOfDelivery";
14
15
  })(CarrierAttributeEnum || (exports.CarrierAttributeEnum = CarrierAttributeEnum = {}));
15
16
  exports.CarrierAttributeEnumSchema = joi_1.default.string().valid(...Object.values(CarrierAttributeEnum));
16
17
  //# sourceMappingURL=carrier-attributes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"carrier-attributes.js","sourceRoot":"","sources":["../../../src/app/metadata/carrier-attributes.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,2DAAmC,CAAA;IACnC,6DAAqC,CAAA;IACrC,qDAA6B,CAAA;IAC7B,6CAAqB,CAAA;IACrB,yEAAiD,CAAA;IACjD,6DAAqC,CAAA;AACvC,CAAC,EAPW,oBAAoB,oCAApB,oBAAoB,QAO/B;AAEY,QAAA,0BAA0B,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAC1D,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CACvC,CAAC"}
1
+ {"version":3,"file":"carrier-attributes.js","sourceRoot":"","sources":["../../../src/app/metadata/carrier-attributes.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,2DAAmC,CAAA;IACnC,6DAAqC,CAAA;IACrC,qDAA6B,CAAA;IAC7B,6CAAqB,CAAA;IACrB,yEAAiD,CAAA;IACjD,6DAAqC,CAAA;IACrC,2DAAmC,CAAA;AACrC,CAAC,EARW,oBAAoB,oCAApB,oBAAoB,QAQ/B;AAEY,QAAA,0BAA0B,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAC1D,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CACvC,CAAC"}
@@ -4,7 +4,8 @@ export declare enum CarrierAttribute {
4
4
  Consolidator = "Consolidator",
5
5
  Regional = "Regional",
6
6
  RequiresInboundWebhook = "RequiresInboundWebhook",
7
- DetailedStatuses = "DetailedStatuses"
7
+ DetailedStatuses = "DetailedStatuses",
8
+ ProofOfDelivery = "ProofOfDelivery"
8
9
  }
9
10
  export declare enum ShippingServiceAttribute {
10
11
  Returns = "Returns",
@@ -9,6 +9,7 @@ var CarrierAttribute;
9
9
  CarrierAttribute["Regional"] = "Regional";
10
10
  CarrierAttribute["RequiresInboundWebhook"] = "RequiresInboundWebhook";
11
11
  CarrierAttribute["DetailedStatuses"] = "DetailedStatuses";
12
+ CarrierAttribute["ProofOfDelivery"] = "ProofOfDelivery";
12
13
  })(CarrierAttribute || (exports.CarrierAttribute = CarrierAttribute = {}));
13
14
  var ShippingServiceAttribute;
14
15
  (function (ShippingServiceAttribute) {
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/app/metadata/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,uDAAmC,CAAA;IACnC,yDAAqC,CAAA;IACrC,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;IACrB,qEAAiD,C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gBAAgB,QAG3B"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const ProofOfDeliveryFormatSchema: Joi.StringSchema;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProofOfDeliveryFormatSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const proof_of_delivery_format_1 = require("./proof-of-delivery-format");
7
+ exports.ProofOfDeliveryFormatSchema = joi_1.default.string().valid(...Object.values(proof_of_delivery_format_1.ProofOfDeliveryFormat));
8
+ //# sourceMappingURL=proof-of-delivery-format-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proof-of-delivery-format-schema.js","sourceRoot":"","sources":["../../../src/models/tracking/proof-of-delivery-format-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,yEAAmE;AAEtD,QAAA,2BAA2B,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAC3D,GAAG,MAAM,CAAC,MAAM,CAAC,gDAAqB,CAAC,CACxC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare enum ProofOfDeliveryFormat {
2
+ Pdf = "PDF",
3
+ Png = "PNG"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProofOfDeliveryFormat = void 0;
4
+ var ProofOfDeliveryFormat;
5
+ (function (ProofOfDeliveryFormat) {
6
+ ProofOfDeliveryFormat["Pdf"] = "PDF";
7
+ ProofOfDeliveryFormat["Png"] = "PNG";
8
+ })(ProofOfDeliveryFormat || (exports.ProofOfDeliveryFormat = ProofOfDeliveryFormat = {}));
9
+ //# sourceMappingURL=proof-of-delivery-format.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proof-of-delivery-format.js","sourceRoot":"","sources":["../../../src/models/tracking/proof-of-delivery-format.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,oCAAW,CAAA;IACX,oCAAW,CAAA;AACb,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const ProofOfDeliverySchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProofOfDeliverySchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const proof_of_delivery_format_schema_1 = require("./proof-of-delivery-format-schema");
7
+ exports.ProofOfDeliverySchema = joi_1.default.object({
8
+ data: joi_1.default.string().required(),
9
+ format: proof_of_delivery_format_schema_1.ProofOfDeliveryFormatSchema.required(),
10
+ });
11
+ //# sourceMappingURL=proof-of-delivery-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proof-of-delivery-schema.js","sourceRoot":"","sources":["../../../src/models/tracking/proof-of-delivery-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,uFAAgF;AAEnE,QAAA,qBAAqB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,6DAA2B,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ProofOfDeliveryFormat } from './proof-of-delivery-format';
2
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
3
+ export declare class ProofOfDelivery {
4
+ /** @description Base64 encoded data for the proof of delivery. */
5
+ data: string;
6
+ /** @description The format the document is in.\r\nPdf - PDF\r\nPng - PNG */
7
+ format: ProofOfDeliveryFormat;
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProofOfDelivery = void 0;
4
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
5
+ class ProofOfDelivery {
6
+ /** @description Base64 encoded data for the proof of delivery. */
7
+ data;
8
+ /** @description The format the document is in.\r\nPdf - PDF\r\nPng - PNG */
9
+ format;
10
+ }
11
+ exports.ProofOfDelivery = ProofOfDelivery;
12
+ //# sourceMappingURL=proof-of-delivery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proof-of-delivery.js","sourceRoot":"","sources":["../../../src/models/tracking/proof-of-delivery.ts"],"names":[],"mappings":";;;AAEA,iRAAiR;AACjR,MAAa,eAAe;IAC1B,kEAAkE;IAClE,IAAI,CAAU;IACd,4EAA4E;IAC5E,MAAM,CAAyB;CAChC;AALD,0CAKC"}
@@ -6,11 +6,13 @@ const joi_1 = tslib_1.__importDefault(require("joi"));
6
6
  const lat_long_schema_1 = require("./lat-long-schema");
7
7
  const standardized_status_codes_schema_1 = require("./standardized-status-codes-schema");
8
8
  const standardized_status_detail_codes_schema_1 = require("./standardized-status-detail-codes-schema");
9
+ const proof_of_delivery_schema_1 = require("./proof-of-delivery-schema");
9
10
  exports.TrackEventSchema = joi_1.default.object({
10
11
  event_datetime: joi_1.default.string().optional().empty().isoDate(),
11
12
  event_datetime_local: joi_1.default.string().optional().empty().isoDate(),
12
13
  event_code: joi_1.default.string().optional().empty(),
13
14
  carrier_detail_code: joi_1.default.string().optional().empty(),
15
+ proof_of_delivery: proof_of_delivery_schema_1.ProofOfDeliverySchema.optional(),
14
16
  description: joi_1.default.string().optional().empty(),
15
17
  city: joi_1.default.string().optional().empty(),
16
18
  state: joi_1.default.string().optional().empty(),
@@ -1 +1 @@
1
- {"version":3,"file":"track-event-schema.js","sourceRoot":"","sources":["../../../src/models/tracking/track-event-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAC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AAmC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { LatLong } from './lat-long';
2
2
  import { StandardizedStatusCodes } from './standardized-status-codes';
3
3
  import { StandardizedStatusDetailCodes } from './standardized-status-detail-codes';
4
+ import { ProofOfDelivery } from './proof-of-delivery';
4
5
  /** @description Basic structure for tracking events */
5
6
  export declare class TrackEvent {
6
7
  /** @description When this tracking event occurred. Formatted per https://tools.ietf.org/html/rfc3339. Must be in UTC. */
@@ -11,6 +12,8 @@ export declare class TrackEvent {
11
12
  event_code?: string;
12
13
  /** @description Optional field for the carrier's specific event code when `event_code` is populated with a generic event code. */
13
14
  carrier_detail_code?: string;
15
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
16
+ proof_of_delivery?: ProofOfDelivery;
14
17
  /** @description Description of the package status at this event */
15
18
  description?: string;
16
19
  /** @description City or Locality for this event */
@@ -11,6 +11,8 @@ class TrackEvent {
11
11
  event_code;
12
12
  /** @description Optional field for the carrier's specific event code when `event_code` is populated with a generic event code. */
13
13
  carrier_detail_code;
14
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
15
+ proof_of_delivery;
14
16
  /** @description Description of the package status at this event */
15
17
  description;
16
18
  /** @description City or Locality for this event */
@@ -1 +1 @@
1
- {"version":3,"file":"track-event.js","sourceRoot":"","sources":["../../../src/models/tracking/track-event.ts"],"names":[],"mappings":";;;AAIA,uDAAuD;AACvD,MAAa,UAAU;IACrB,yHAAyH;IACzH,cAAc,CAAU;IACxB,sIAAsI;IACtI,oBAAoB,CAAU;IAC9B,iQAAiQ;IACjQ,UAAU,CAAU;IACpB,kIAAkI;IAClI,mBAAmB,CAAU;IAC7B,mEAAmE;IACnE,WAAW,CAAU;IACrB,mDAAmD;IACnD,IAAI,CAAU;IACd,qCAAqC;IACrC,KAAK,CAAU;IACf,sCAAsC;IACtC,WAAW,CAAU;IACrB,0CAA0C;IAC1C,OAAO,CAAU;IACjB,sEAAsE;IACtE,OAAO,CAAU;IACjB,8EAA8E;IAC9E,MAAM,CAAU;IAChB,yCAAyC;IACzC,GAAG,CAAW;IACd,iNAAiN;IACjN,WAAW,CAA2B;IACtC,+FAA+F;IAC/F,kBAAkB,CAAiC;CACpD;AA7BD,gCA6BC"}
1
+ {"version":3,"file":"track-event.js","sourceRoot":"","sources":["../../../src/models/tracking/track-event.ts"],"names":[],"mappings":";;;AAKA,uDAAuD;AACvD,MAAa,UAAU;IACrB,yHAAyH;IACzH,cAAc,CAAU;IACxB,sIAAsI;IACtI,oBAAoB,CAAU;IAC9B,iQAAiQ;IACjQ,UAAU,CAAU;IACpB,kIAAkI;IAClI,mBAAmB,CAAU;IAC7B,iRAAiR;IACjR,iBAAiB,CAAmB;IACpC,mEAAmE;IACnE,WAAW,CAAU;IACrB,mDAAmD;IACnD,IAAI,CAAU;IACd,qCAAqC;IACrC,KAAK,CAAU;IACf,sCAAsC;IACtC,WAAW,CAAU;IACrB,0CAA0C;IAC1C,OAAO,CAAU;IACjB,sEAAsE;IACtE,OAAO,CAAU;IACjB,8EAA8E;IAC9E,MAAM,CAAU;IAChB,yCAAyC;IACzC,GAAG,CAAW;IACd,iNAAiN;IACjN,WAAW,CAA2B;IACtC,+FAA+F;IAC/F,kBAAkB,CAAiC;CACpD;AA/BD,gCA+BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.13.0",
3
+ "version": "4.14.0",
4
4
  "description": "This is the typescript/javascript definitions for carrier api",
5
5
  "homepage": "https://connect.shipengine.com",
6
6
  "main": "./lib/index.js",
package/spec.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Shipping API",
5
5
  "description": "This API specification describes the canonical ShipEngine Shipping API connector module.",
6
- "version": "1.26.0"
6
+ "version": "1.27.0"
7
7
  },
8
8
  "paths": {
9
9
  "/Register": {
@@ -4356,6 +4356,33 @@
4356
4356
  "type": "string",
4357
4357
  "description": "This represents the ShipEngine supported detail codes for a shipment."
4358
4358
  },
4359
+ "ProofOfDelivery": {
4360
+ "required": [
4361
+ "data",
4362
+ "format"
4363
+ ],
4364
+ "type": "object",
4365
+ "properties": {
4366
+ "data": {
4367
+ "type": "string",
4368
+ "description": "Base64 encoded data for the proof of delivery.",
4369
+ "nullable": true
4370
+ },
4371
+ "format": {
4372
+ "$ref": "#/components/schemas/ProofOfDeliveryFormat"
4373
+ }
4374
+ },
4375
+ "additionalProperties": false,
4376
+ "description": "An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc."
4377
+ },
4378
+ "ProofOfDeliveryFormat": {
4379
+ "enum": [
4380
+ "PDF",
4381
+ "PNG"
4382
+ ],
4383
+ "type": "string",
4384
+ "description": "The format the document is in.\r\nPdf - PDF\r\nPng - PNG"
4385
+ },
4359
4386
  "TaxDetails": {
4360
4387
  "type": "object",
4361
4388
  "properties": {
@@ -4542,6 +4569,9 @@
4542
4569
  },
4543
4570
  "status_detail_code": {
4544
4571
  "$ref": "#/components/schemas/StandardizedStatusDetailCodes"
4572
+ },
4573
+ "proof_of_delivery": {
4574
+ "$ref": "#/components/schemas/ProofOfDelivery"
4545
4575
  }
4546
4576
  },
4547
4577
  "additionalProperties": false,
@@ -7,6 +7,7 @@ export enum CarrierAttributeEnum {
7
7
  Regional = 'Regional',
8
8
  RequiresInboundWebhook = 'RequiresInboundWebhook',
9
9
  DetailedStatuses = 'DetailedStatuses',
10
+ ProofOfDelivery = 'ProofOfDelivery',
10
11
  }
11
12
 
12
13
  export const CarrierAttributeEnumSchema = Joi.string().valid(
@@ -5,6 +5,7 @@ export enum CarrierAttribute {
5
5
  Regional = 'Regional',
6
6
  RequiresInboundWebhook = 'RequiresInboundWebhook',
7
7
  DetailedStatuses = 'DetailedStatuses',
8
+ ProofOfDelivery = 'ProofOfDelivery',
8
9
  }
9
10
 
10
11
  export enum ShippingServiceAttribute {
@@ -0,0 +1,6 @@
1
+ import Joi from 'joi';
2
+ import { ProofOfDeliveryFormat } from './proof-of-delivery-format';
3
+
4
+ export const ProofOfDeliveryFormatSchema = Joi.string().valid(
5
+ ...Object.values(ProofOfDeliveryFormat),
6
+ );
@@ -0,0 +1,4 @@
1
+ export enum ProofOfDeliveryFormat {
2
+ Pdf = 'PDF',
3
+ Png = 'PNG',
4
+ }
@@ -0,0 +1,7 @@
1
+ import Joi from 'joi';
2
+ import { ProofOfDeliveryFormatSchema } from './proof-of-delivery-format-schema';
3
+
4
+ export const ProofOfDeliverySchema = Joi.object({
5
+ data: Joi.string().required(),
6
+ format: ProofOfDeliveryFormatSchema.required(),
7
+ });
@@ -0,0 +1,9 @@
1
+ import { ProofOfDeliveryFormat } from './proof-of-delivery-format';
2
+
3
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
4
+ export class ProofOfDelivery {
5
+ /** @description Base64 encoded data for the proof of delivery. */
6
+ data!: string;
7
+ /** @description The format the document is in.\r\nPdf - PDF\r\nPng - PNG */
8
+ format!: ProofOfDeliveryFormat;
9
+ }
@@ -2,12 +2,14 @@ import Joi from 'joi';
2
2
  import { LatLongSchema } from './lat-long-schema';
3
3
  import { StandardizedStatusCodesSchema } from './standardized-status-codes-schema';
4
4
  import { StandardizedStatusDetailCodesSchema } from './standardized-status-detail-codes-schema';
5
+ import { ProofOfDeliverySchema } from './proof-of-delivery-schema';
5
6
 
6
7
  export const TrackEventSchema = Joi.object({
7
8
  event_datetime: Joi.string().optional().empty().isoDate(),
8
9
  event_datetime_local: Joi.string().optional().empty().isoDate(),
9
10
  event_code: Joi.string().optional().empty(),
10
11
  carrier_detail_code: Joi.string().optional().empty(),
12
+ proof_of_delivery: ProofOfDeliverySchema.optional(),
11
13
  description: Joi.string().optional().empty(),
12
14
  city: Joi.string().optional().empty(),
13
15
  state: Joi.string().optional().empty(),
@@ -1,6 +1,7 @@
1
1
  import { LatLong } from './lat-long';
2
2
  import { StandardizedStatusCodes } from './standardized-status-codes';
3
3
  import { StandardizedStatusDetailCodes } from './standardized-status-detail-codes';
4
+ import { ProofOfDelivery } from './proof-of-delivery';
4
5
 
5
6
  /** @description Basic structure for tracking events */
6
7
  export class TrackEvent {
@@ -12,6 +13,8 @@ export class TrackEvent {
12
13
  event_code?: string;
13
14
  /** @description Optional field for the carrier's specific event code when `event_code` is populated with a generic event code. */
14
15
  carrier_detail_code?: string;
16
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
17
+ proof_of_delivery?: ProofOfDelivery;
15
18
  /** @description Description of the package status at this event */
16
19
  description?: string;
17
20
  /** @description City or Locality for this event */