@shipengine/connect-carrier-api 4.16.11 → 4.17.0-beta

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.
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const LimitIdentifierSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LimitIdentifierSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const limit_identifier_type_schema_1 = require("./limit-identifier-type-schema");
7
+ exports.LimitIdentifierSchema = joi_1.default.object({
8
+ type: limit_identifier_type_schema_1.LimitIdentifierTypeSchema.required(),
9
+ value: joi_1.default.string().required(),
10
+ });
11
+ //# sourceMappingURL=limit-identifier-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limit-identifier-schema.js","sourceRoot":"","sources":["../../src/models/limit-identifier-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,iFAA2E;AAE9D,QAAA,qBAAqB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,wDAAyB,CAAC,QAAQ,EAAE;IAC1C,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const LimitIdentifierTypeSchema: Joi.StringSchema;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LimitIdentifierTypeSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const limit_identifier_type_1 = require("./limit-identifier-type");
7
+ exports.LimitIdentifierTypeSchema = joi_1.default.string().valid(...Object.values(limit_identifier_type_1.LimitIdentifierType));
8
+ //# sourceMappingURL=limit-identifier-type-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limit-identifier-type-schema.js","sourceRoot":"","sources":["../../src/models/limit-identifier-type-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,mEAA8D;AAEjD,QAAA,yBAAyB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,2CAAmB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare enum LimitIdentifierType {
2
+ Track = "track"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LimitIdentifierType = void 0;
4
+ var LimitIdentifierType;
5
+ (function (LimitIdentifierType) {
6
+ LimitIdentifierType["Track"] = "track";
7
+ })(LimitIdentifierType || (exports.LimitIdentifierType = LimitIdentifierType = {}));
8
+ //# sourceMappingURL=limit-identifier-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limit-identifier-type.js","sourceRoot":"","sources":["../../src/models/limit-identifier-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;AACjB,CAAC,EAFW,mBAAmB,mCAAnB,mBAAmB,QAE9B"}
@@ -0,0 +1,5 @@
1
+ import { LimitIdentifierType } from './limit-identifier-type';
2
+ export declare class LimitIdentifier {
3
+ type: LimitIdentifierType;
4
+ value: string;
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LimitIdentifier = void 0;
4
+ class LimitIdentifier {
5
+ type;
6
+ value;
7
+ }
8
+ exports.LimitIdentifier = LimitIdentifier;
9
+ //# sourceMappingURL=limit-identifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limit-identifier.js","sourceRoot":"","sources":["../../src/models/limit-identifier.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAC1B,IAAI,CAAuB;IAC3B,KAAK,CAAU;CAChB;AAHD,0CAGC"}
@@ -14,6 +14,7 @@ const relay_point_details_schema_1 = require("../models/relay-points/relay-point
14
14
  const time_window_schema_1 = require("../models/time-window-schema");
15
15
  const paperless_details_schema_1 = require("../models/labels/paperless-details-schema");
16
16
  const pudo_location_schema_1 = require("../models/addresses/pudo-location-schema");
17
+ const limit_identifier_schema_1 = require("../models/limit-identifier-schema");
17
18
  exports.CreateLabelResponseSchema = base_response_schema_1.BaseResponseSchema.keys({
18
19
  transaction_id: joi_1.default.string().required(),
19
20
  label_download: label_download_schema_1.LabelDownloadSchema.optional(),
@@ -33,5 +34,6 @@ exports.CreateLabelResponseSchema = base_response_schema_1.BaseResponseSchema.ke
33
34
  relay_points: relay_point_details_schema_1.RelayPointDetailsSchema.optional(),
34
35
  dropoff_location: pudo_location_schema_1.PudoLocationSchema.optional(),
35
36
  pickup_location: pudo_location_schema_1.PudoLocationSchema.optional(),
37
+ limit_identifiers: joi_1.default.array().optional().items(limit_identifier_schema_1.LimitIdentifierSchema),
36
38
  });
37
39
  //# sourceMappingURL=create-label-response-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-label-response-schema.js","sourceRoot":"","sources":["../../src/responses/create-label-response-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,iEAA4D;AAC5D,yFAAmF;AACnF,yEAAqE;AACrE,mEAA+D;AAC/D,gFAA2E;AAC3E,kFAA6E;AAC7E,gFAA2E;AAC3E,kGAA4F;AAC5F,qEAAgE;AAChE,wFAAmF;AACnF,mFAA8E;AAEjE,QAAA,yBAAyB,GAAG,yCAAkB,CAAC,IAAI,CAAC;IAC/D,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,cAAc,EAAE,2CAAmB,CAAC,QAAQ,EAAE;IAC9C,aAAa,EAAE,yCAAkB,CAAC,QAAQ,EAAE;IAC5C,iBAAiB,EAAE,iDAAsB,CAAC,Q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AAQ,EAAE;IAC5C,YAAY,EAAE,oDAAuB,CAAC,QAAQ,EAAE;IAChD,gBAAgB,EAAE,yCAAkB,CAAC,QAAQ,EAAE;IAC/C,eAAe,EAAE,yCAAkB,CAAC,QAAQ,EAAE;IAC9C,iBAAiB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,+CAAqB,CAAC;CACvE,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { BaseResponse } from './base-response';
2
2
  import { LabelDownload, FormDownload, Document, BillingLineItem, LabelPackage, Identifier, TimeWindow, RelayPointDetails, PaperlessDetails, PudoLocation } from '../models';
3
3
  import { CarrierWeight } from '../models/units/carrier-weight';
4
+ import { LimitIdentifier } from '../models/limit-identifier';
4
5
  /** @description Basic structure for a response to create a label */
5
6
  export declare class CreateLabelResponse extends BaseResponse {
6
7
  transaction_id: string;
@@ -24,4 +25,5 @@ export declare class CreateLabelResponse extends BaseResponse {
24
25
  dropoff_location?: PudoLocation;
25
26
  pickup_location?: PudoLocation;
26
27
  carrier_weight?: CarrierWeight;
28
+ limit_identifiers?: LimitIdentifier[];
27
29
  }
@@ -25,6 +25,7 @@ class CreateLabelResponse extends base_response_1.BaseResponse {
25
25
  dropoff_location;
26
26
  pickup_location;
27
27
  carrier_weight;
28
+ limit_identifiers;
28
29
  }
29
30
  exports.CreateLabelResponse = CreateLabelResponse;
30
31
  //# sourceMappingURL=create-label-response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-label-response.js","sourceRoot":"","sources":["../../src/responses/create-label-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAe/C,oEAAoE;AACpE,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,cAAc,CAAU;IACxB,cAAc,CAAiB;IAC/B,aAAa,CAAgB;IAC7B,iBAAiB,CAAoB;IACrC,SAAS,CAAc;IACvB,QAAQ,CAAkB;IAC1B,kBAAkB,CAAqB;IACvC,eAAe,CAAU;IACzB,YAAY,CAAU;IACtB,SAAS,CAAW;IACpB,uBAAuB,CAAgB;IACvC,2BAA2B,CAAU;IACrC,yBAAyB,CAAU;IACnC,wIAAwI;IACxI,qBAAqB,CAAc;IACnC,0HAA0H;IAC1H,eAAe,CAAc;IAC7B,YAAY,CAAqB;IACjC,gBAAgB,CAAgB;IAChC,eAAe,CAAgB;IAC/B,cAAc,CAAiB;CAChC;AAtBD,kDAsBC"}
1
+ {"version":3,"file":"create-label-response.js","sourceRoot":"","sources":["../../src/responses/create-label-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAgB/C,oEAAoE;AACpE,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,cAAc,CAAU;IACxB,cAAc,CAAiB;IAC/B,aAAa,CAAgB;IAC7B,iBAAiB,CAAoB;IACrC,SAAS,CAAc;IACvB,QAAQ,CAAkB;IAC1B,kBAAkB,CAAqB;IACvC,eAAe,CAAU;IACzB,YAAY,CAAU;IACtB,SAAS,CAAW;IACpB,uBAAuB,CAAgB;IACvC,2BAA2B,CAAU;IACrC,yBAAyB,CAAU;IACnC,wIAAwI;IACxI,qBAAqB,CAAc;IACnC,0HAA0H;IAC1H,eAAe,CAAc;IAC7B,YAAY,CAAqB;IACjC,gBAAgB,CAAgB;IAChC,eAAe,CAAgB;IAC/B,cAAc,CAAiB;IAC/B,iBAAiB,CAAqB;CACvC;AAvBD,kDAuBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.16.11",
3
+ "version": "4.17.0-beta",
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.28.10"
6
+ "version": "1.29.0"
7
7
  },
8
8
  "paths": {
9
9
  "/Register": {
@@ -1819,6 +1819,14 @@
1819
1819
  "description": "Alternative identifiers associated with this shipment.",
1820
1820
  "nullable": true
1821
1821
  },
1822
+ "limit_identifiers": {
1823
+ "type": "array",
1824
+ "items": {
1825
+ "$ref": "#/components/schemas/LimitIdentifier"
1826
+ },
1827
+ "description": "An array that defines rate/usage limit identifiers applicable to specific functionalities within the integration. Each entry represents a unique limit configuration tied to a functionality (e.g., \"track,\" \"createLabel\").",
1828
+ "nullable": true
1829
+ },
1822
1830
  "estimated_delivery_datetime": {
1823
1831
  "type": "string",
1824
1832
  "description": "The estimated date and time for when the shipment will be delivered. Formatted per the\r\nhttps://tools.ietf.org/html/rfc3339 spec.",
@@ -3072,6 +3080,29 @@
3072
3080
  "additionalProperties": false,
3073
3081
  "description": "A key value pair, allowing custom properties to be stored."
3074
3082
  },
3083
+ "LimitIdentifier": {
3084
+ "required": [
3085
+ "type",
3086
+ "value"
3087
+ ],
3088
+ "type": "object",
3089
+ "properties": {
3090
+ "type": {
3091
+ "$ref": "#/components/schemas/LimitIdentifierType"
3092
+ },
3093
+ "value": {
3094
+ "type": "string",
3095
+ "description": "A unique identifier referencing the specific rate/usage limit configuration in the Rate Limiter."
3096
+ }
3097
+ }
3098
+ },
3099
+ "LimitIdentifierType": {
3100
+ "type": "string",
3101
+ "description": "The name of the functionality associated with this limit (e.g., \"track\").",
3102
+ "enum": [
3103
+ "track"
3104
+ ]
3105
+ },
3075
3106
  "ImportTrackingEventsRequest": {
3076
3107
  "required": [
3077
3108
  "transaction_id"
@@ -5838,4 +5869,4 @@
5838
5869
  "description": "Given inbound data, such as a webhook with tracking updates, return normalized information."
5839
5870
  }
5840
5871
  ]
5841
- }
5872
+ }
@@ -0,0 +1,7 @@
1
+ import Joi from 'joi';
2
+ import { LimitIdentifierTypeSchema } from './limit-identifier-type-schema';
3
+
4
+ export const LimitIdentifierSchema = Joi.object({
5
+ type: LimitIdentifierTypeSchema.required(),
6
+ value: Joi.string().required(),
7
+ });
@@ -0,0 +1,4 @@
1
+ import Joi from 'joi';
2
+ import { LimitIdentifierType } from './limit-identifier-type';
3
+
4
+ export const LimitIdentifierTypeSchema = Joi.string().valid(...Object.values(LimitIdentifierType));
@@ -0,0 +1,3 @@
1
+ export enum LimitIdentifierType {
2
+ Track = 'track',
3
+ }
@@ -0,0 +1,6 @@
1
+ import { LimitIdentifierType } from './limit-identifier-type';
2
+
3
+ export class LimitIdentifier {
4
+ type!: LimitIdentifierType;
5
+ value!: string;
6
+ }
@@ -10,6 +10,7 @@ import { RelayPointDetailsSchema } from '../models/relay-points/relay-point-deta
10
10
  import { TimeWindowSchema } from '../models/time-window-schema';
11
11
  import { PaperlessDetailsSchema } from '../models/labels/paperless-details-schema';
12
12
  import { PudoLocationSchema } from '../models/addresses/pudo-location-schema';
13
+ import { LimitIdentifierSchema } from '../models/limit-identifier-schema';
13
14
 
14
15
  export const CreateLabelResponseSchema = BaseResponseSchema.keys({
15
16
  transaction_id: Joi.string().required(),
@@ -30,4 +31,5 @@ export const CreateLabelResponseSchema = BaseResponseSchema.keys({
30
31
  relay_points: RelayPointDetailsSchema.optional(),
31
32
  dropoff_location: PudoLocationSchema.optional(),
32
33
  pickup_location: PudoLocationSchema.optional(),
34
+ limit_identifiers: Joi.array().optional().items(LimitIdentifierSchema),
33
35
  });
@@ -12,6 +12,7 @@ import {
12
12
  PudoLocation,
13
13
  } from '../models';
14
14
  import { CarrierWeight } from '../models/units/carrier-weight';
15
+ import { LimitIdentifier } from '../models/limit-identifier';
15
16
 
16
17
  /** @description Basic structure for a response to create a label */
17
18
  export class CreateLabelResponse extends BaseResponse {
@@ -36,4 +37,5 @@ export class CreateLabelResponse extends BaseResponse {
36
37
  dropoff_location?: PudoLocation;
37
38
  pickup_location?: PudoLocation;
38
39
  carrier_weight?: CarrierWeight;
40
+ limit_identifiers?: LimitIdentifier[];
39
41
  }