@shipengine/connect-carrier-api 4.20.0 → 4.21.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.
@@ -13,7 +13,8 @@ export declare enum ConfirmationTypeEnum {
13
13
  Signature = "Signature",
14
14
  AdultSignature = "AdultSignature",
15
15
  DirectSignature = "DirectSignature",
16
- DeliveryCode = "DeliveryCode"
16
+ DeliveryCode = "DeliveryCode",
17
+ AgeVerification16Plus = "AgeVerification16Plus"
17
18
  }
18
19
  export declare const ConfirmationTypeEnumSchema: Joi.StringSchema;
19
20
  export declare const ConfirmationTypeSchema: Joi.ObjectSchema<any>;
@@ -10,6 +10,7 @@ exports.ConfirmationDictionarySchema = joi_1.default.object({
10
10
  AdultSignature: joi_1.default.string().optional(),
11
11
  DirectSignature: joi_1.default.string().optional(),
12
12
  DeliveryCode: joi_1.default.string().optional(),
13
+ AgeVerification16Plus: joi_1.default.string().optional(),
13
14
  });
14
15
  var ConfirmationTypeEnum;
15
16
  (function (ConfirmationTypeEnum) {
@@ -19,6 +20,7 @@ var ConfirmationTypeEnum;
19
20
  ConfirmationTypeEnum["AdultSignature"] = "AdultSignature";
20
21
  ConfirmationTypeEnum["DirectSignature"] = "DirectSignature";
21
22
  ConfirmationTypeEnum["DeliveryCode"] = "DeliveryCode";
23
+ ConfirmationTypeEnum["AgeVerification16Plus"] = "AgeVerification16Plus";
22
24
  })(ConfirmationTypeEnum || (exports.ConfirmationTypeEnum = ConfirmationTypeEnum = {}));
23
25
  exports.ConfirmationTypeEnumSchema = joi_1.default.string().valid(...Object.values(ConfirmationTypeEnum));
24
26
  exports.ConfirmationTypeSchema = joi_1.default.object({
@@ -1 +1 @@
1
- {"version":3,"file":"confirmation-type.js","sourceRoot":"","sources":["../../../src/app/metadata/confirmation-type.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAWT,QAAA,4BAA4B,GAAG,aAAG,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,aAAG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,CAAC,QAAQ,EAAE;IAClC,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,qBAAqB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEH,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,6CAAqB,CAAA;IACrB,+CAAuB,CAAA;IACvB,yDAAiC,CAAA;IACjC,2DAAmC,CAAA;IACnC,qDAA6B,CAAA;IAC7B,uEAA+C,CAAA;AACjD,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;AAEW,QAAA,sBAAsB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACrC,IAAI,EAAE,kCAA0B,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC"}
@@ -41,6 +41,8 @@ export declare enum ShippingOptionEnum {
41
41
  CarrierInsurance = "carrier-insurance",
42
42
  WindsorFrameworkMovementIndicator = "windsor-framework-movement-indicator",
43
43
  WindsorFrameworkNotAtRisk = "windsor-framework-not-at-risk",
44
- EnableDocumentUpload = "enable-document-upload"
44
+ EnableDocumentUpload = "enable-document-upload",
45
+ DeliveryAsAddressed = "delivery-as-addressed",
46
+ ReturnAfterFirstAttempt = "return-after-first-attempt"
45
47
  }
46
48
  export declare const ShippingOptionDictionarySchema: Joi.ObjectSchema<any>;
@@ -38,6 +38,8 @@ var ShippingOptionEnum;
38
38
  ShippingOptionEnum["WindsorFrameworkMovementIndicator"] = "windsor-framework-movement-indicator";
39
39
  ShippingOptionEnum["WindsorFrameworkNotAtRisk"] = "windsor-framework-not-at-risk";
40
40
  ShippingOptionEnum["EnableDocumentUpload"] = "enable-document-upload";
41
+ ShippingOptionEnum["DeliveryAsAddressed"] = "delivery-as-addressed";
42
+ ShippingOptionEnum["ReturnAfterFirstAttempt"] = "return-after-first-attempt";
41
43
  })(ShippingOptionEnum || (exports.ShippingOptionEnum = ShippingOptionEnum = {}));
42
44
  exports.ShippingOptionDictionarySchema = joi_1.default.object(Object.values(ShippingOptionEnum).reduce((accumulator, option) => {
43
45
  accumulator[option] = exports.ShippingOptionDescriptionSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"shipping-option.js","sourceRoot":"","sources":["../../../src/app/metadata/shipping-option.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAYT,QAAA,+BAA+B,GAAG,aAAG,CAAC,MAAM,CAAC;IACxD,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACrC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;CAC9C,CAAC,CAAC,QAAQ,EAAE,CAAC;AAEd,IAAY,kBA8BX;AA9BD,WAAY,kBAAkB;IAC5B,iDAA2B,CAAA;IAC3B,gDAA0B,CAAA;IAC1B,qDAA+B,CAAA;IAC/B,8DAAwC,CAAA;IACxC,+DAAyC,CAAA;IACzC,8DAAwC,CAAA;IACxC,wDAAkC,CAAA;IAClC,0DAAoC,CAAA;IACpC,+DAAyC,CAAA;IACzC,wCAAkB,CAAA;IAClB,8DAAwC,CAAA;IACxC,oDAA8B,CAAA;IAC9B,uDAAiC,CAAA;IACjC,iEAA2C,CAAA;IAC3C,oDAA8B,CAAA;IAC9B,sDAAgC,CAAA;IAChC,4DAAsC,CAAA;I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,uDAAiC,CAAA;IACjC,iEAA2C,CAAA;IAC3C,oDAA8B,CAAA;IAC9B,sDAAgC,CAAA;IAChC,4DAAsC,CAAA;IACtC,4DAAsC,CAAA;IACtC,wEAAkD,CAAA;IAClD,6CAAuB,CAAA;IACvB,4DAAsC,CAAA;IACtC,8DAAwC,CAAA;IACxC,0DAAoC,CAAA;IACpC,0DAAoC,CAAA;IACpC,mEAA6C,CAAA;IAC7C,4DAAsC,CAAA;IACtC,gGAA0E,CAAA;IAC1E,iFAA2D,CAAA;IAC3D,qEAA+C,CAAA;IAC/C,mEAA6C,CAAA;IAC7C,4EAAsD,CAAA;AACxD,CAAC,EAhCW,kBAAkB,kCAAlB,kBAAkB,QAgC7B;AAEY,QAAA,8BAA8B,GAAG,aAAG,CAAC,MAAM,CACtD,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,WAAgB,EAAE,MAAM,EAAE,EAAE;IACpE,WAAW,CAAC,MAAM,CAAC,GAAG,uCAA+B,CAAC;IACtD,OAAO,WAAW,CAAC;AACrB,CAAC,EAAE,EAAE,CAAC,CACP,CAAC"}
@@ -47,5 +47,9 @@ export declare class AdvancedOptions {
47
47
  /** @description Transportation means through which the dangerous goods are transported */
48
48
  transport_mean?: TransportMeanTypes;
49
49
  /** @description Indicates whether the recipient should be notified of events related to the shipment. */
50
+ delivery_as_addressed?: boolean;
51
+ /** @description Instructs the carrier to deliver the package only to the exact address provided. */
52
+ return_after_first_attempt?: boolean;
53
+ /** @description Ensures the shipment is immediately flagged for return to the sender if the initial delivery attempt fails. */
50
54
  [key: string]: any;
51
55
  }
@@ -41,6 +41,10 @@ class AdvancedOptions {
41
41
  regulation_level;
42
42
  /** @description Transportation means through which the dangerous goods are transported */
43
43
  transport_mean;
44
+ /** @description Indicates whether the recipient should be notified of events related to the shipment. */
45
+ delivery_as_addressed;
46
+ /** @description Instructs the carrier to deliver the package only to the exact address provided. */
47
+ return_after_first_attempt;
44
48
  }
45
49
  exports.AdvancedOptions = AdvancedOptions;
46
50
  //# sourceMappingURL=advanced-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"advanced-options.js","sourceRoot":"","sources":["../../src/models/advanced-options.ts"],"names":[],"mappings":";;;AASA,wDAAwD;AACxD,MAAa,eAAe;IAC1B,0DAA0D;IAC1D,sBAAsB,CAAW;IACjC,yDAAyD;IACzD,gBAAgB,CAAW;IAC3B,iEAAiE;IACjE,UAAU,CAAW;IACrB,oEAAoE;IACpE,cAAc,CAAW;IACzB,8EAA8E;IAC9E,qBAAqB,CAAW;IAChC,6DAA6D;IAC7D,iBAAiB,CAAW;IAC5B,iGAAiG;IACjG,GAAG,CAAY;IACf,wFAAwF;IACxF,mBAAmB,CAAW;IAC9B,iGAAiG;IACjG,mBAAmB,CAAqB;IACxC,8IAA8I;IAC9I,mBAAmB,CAAW;IAC9B,iFAAiF;IACjF,eAAe,CAAW;IAC1B,2DAA2D;IAC3D,uBAAuB,CAAyB;IAChD,+HAA+H;IAC/H,gBAAgB,CAAW;IAC3B,qDAAqD;IACrD,kBAAkB,CAAW;IAC7B,qDAAqD;IACrD,yBAAyB,CAA2B;IACpD,+GAA+G;IAC/G,aAAa,CAAsB;IACnC,oHAAoH;IACpH,SAAS,CAAa;IACtB,wEAAwE;IACxE,gBAAgB,CAAwB;IACxC,0FAA0F;IAC1F,cAAc,CAAsB;CAGrC;AAzCD,0CAyCC"}
1
+ {"version":3,"file":"advanced-options.js","sourceRoot":"","sources":["../../src/models/advanced-options.ts"],"names":[],"mappings":";;;AASA,wDAAwD;AACxD,MAAa,eAAe;IAC1B,0DAA0D;IAC1D,sBAAsB,CAAW;IACjC,yDAAyD;IACzD,gBAAgB,CAAW;IAC3B,iEAAiE;IACjE,UAAU,CAAW;IACrB,oEAAoE;IACpE,cAAc,CAAW;IACzB,8EAA8E;IAC9E,qBAAqB,CAAW;IAChC,6DAA6D;IAC7D,iBAAiB,CAAW;IAC5B,iGAAiG;IACjG,GAAG,CAAY;IACf,wFAAwF;IACxF,mBAAmB,CAAW;IAC9B,iGAAiG;IACjG,mBAAmB,CAAqB;IACxC,8IAA8I;IAC9I,mBAAmB,CAAW;IAC9B,iFAAiF;IACjF,eAAe,CAAW;IAC1B,2DAA2D;IAC3D,uBAAuB,CAAyB;IAChD,+HAA+H;IAC/H,gBAAgB,CAAW;IAC3B,qDAAqD;IACrD,kBAAkB,CAAW;IAC7B,qDAAqD;IACrD,yBAAyB,CAA2B;IACpD,+GAA+G;IAC/G,aAAa,CAAsB;IACnC,oHAAoH;IACpH,SAAS,CAAa;IACtB,wEAAwE;IACxE,gBAAgB,CAAwB;IACxC,0FAA0F;IAC1F,cAAc,CAAsB;IACpC,yGAAyG;IACzG,qBAAqB,CAAW;IAChC,oGAAoG;IACpG,0BAA0B,CAAW;CAGtC;AA7CD,0CA6CC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.20.0",
3
+ "version": "4.21.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.34.0"
6
+ "version": "1.35.0"
7
7
  },
8
8
  "paths": {
9
9
  "/Register": {
@@ -931,6 +931,14 @@
931
931
  "enable_document_upload": {
932
932
  "type": "boolean",
933
933
  "description": "Indicates whether document upload is enabled for the shipment."
934
+ },
935
+ "delivery_as_addressed": {
936
+ "type": "boolean",
937
+ "description": "Instructs the carrier to deliver the package only to the exact address provided."
938
+ },
939
+ "return_after_first_attempt": {
940
+ "type": "boolean",
941
+ "description": "Ensures the shipment is immediately flagged for return to the sender if the initial delivery attempt fails."
934
942
  }
935
943
  },
936
944
  "additionalProperties": { },
@@ -1353,7 +1361,8 @@
1353
1361
  "Signature",
1354
1362
  "AdultSignature",
1355
1363
  "DirectSignature",
1356
- "DeliveryCode"
1364
+ "DeliveryCode",
1365
+ "AgeVerification16Plus"
1357
1366
  ],
1358
1367
  "type": "string"
1359
1368
  },
@@ -5997,4 +6006,4 @@
5997
6006
  "description": "Given inbound data, such as a webhook with tracking updates, return normalized information."
5998
6007
  }
5999
6008
  ]
6000
- }
6009
+ }
@@ -16,6 +16,7 @@ export const ConfirmationDictionarySchema = Joi.object({
16
16
  AdultSignature: Joi.string().optional(),
17
17
  DirectSignature: Joi.string().optional(),
18
18
  DeliveryCode: Joi.string().optional(),
19
+ AgeVerification16Plus: Joi.string().optional(),
19
20
  });
20
21
 
21
22
  export enum ConfirmationTypeEnum {
@@ -25,6 +26,7 @@ export enum ConfirmationTypeEnum {
25
26
  AdultSignature = 'AdultSignature',
26
27
  DirectSignature = 'DirectSignature',
27
28
  DeliveryCode = 'DeliveryCode',
29
+ AgeVerification16Plus = 'AgeVerification16Plus',
28
30
  }
29
31
 
30
32
  export const ConfirmationTypeEnumSchema = Joi.string().valid(
@@ -45,6 +45,8 @@ export enum ShippingOptionEnum {
45
45
  WindsorFrameworkMovementIndicator = 'windsor-framework-movement-indicator',
46
46
  WindsorFrameworkNotAtRisk = 'windsor-framework-not-at-risk',
47
47
  EnableDocumentUpload = 'enable-document-upload',
48
+ DeliveryAsAddressed = 'delivery-as-addressed',
49
+ ReturnAfterFirstAttempt = 'return-after-first-attempt',
48
50
  }
49
51
 
50
52
  export const ShippingOptionDictionarySchema = Joi.object(
@@ -48,5 +48,9 @@ export class AdvancedOptions {
48
48
  /** @description Transportation means through which the dangerous goods are transported */
49
49
  transport_mean?: TransportMeanTypes;
50
50
  /** @description Indicates whether the recipient should be notified of events related to the shipment. */
51
+ delivery_as_addressed?: boolean;
52
+ /** @description Instructs the carrier to deliver the package only to the exact address provided. */
53
+ return_after_first_attempt?: boolean;
54
+ /** @description Ensures the shipment is immediately flagged for return to the sender if the initial delivery attempt fails. */
51
55
  [key: string]: any;
52
56
  }