@shipengine/connect-carrier-api 4.17.4 → 4.18.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 (87) hide show
  1. package/lib/app/carrier-app-definition.d.ts +7 -0
  2. package/lib/app/constants.d.ts +2 -1
  3. package/lib/app/constants.js +1 -0
  4. package/lib/app/constants.js.map +1 -1
  5. package/lib/app/create-endpoint-mapping.js +1 -0
  6. package/lib/app/create-endpoint-mapping.js.map +1 -1
  7. package/lib/app/metadata/shipping-option.d.ts +2 -1
  8. package/lib/app/metadata/shipping-option.js +1 -0
  9. package/lib/app/metadata/shipping-option.js.map +1 -1
  10. package/lib/models/advanced-options.d.ts +2 -0
  11. package/lib/models/advanced-options.js +2 -0
  12. package/lib/models/advanced-options.js.map +1 -1
  13. package/lib/models/index.d.ts +1 -0
  14. package/lib/models/index.js +1 -0
  15. package/lib/models/index.js.map +1 -1
  16. package/lib/models/limit-identifier-schema.d.ts +2 -0
  17. package/lib/models/limit-identifier-schema.js +11 -0
  18. package/lib/models/limit-identifier-schema.js.map +1 -0
  19. package/lib/models/limit-identifier-type-schema.d.ts +2 -0
  20. package/lib/models/limit-identifier-type-schema.js +8 -0
  21. package/lib/models/limit-identifier-type-schema.js.map +1 -0
  22. package/lib/models/limit-identifier-type.d.ts +3 -0
  23. package/lib/models/limit-identifier-type.js +8 -0
  24. package/lib/models/limit-identifier-type.js.map +1 -0
  25. package/lib/models/limit-identifier.d.ts +5 -0
  26. package/lib/models/limit-identifier.js +9 -0
  27. package/lib/models/limit-identifier.js.map +1 -0
  28. package/lib/models/seller-documents/index.d.ts +2 -0
  29. package/lib/models/seller-documents/index.js +6 -0
  30. package/lib/models/seller-documents/index.js.map +1 -0
  31. package/lib/models/seller-documents/seller-document.d.ts +9 -0
  32. package/lib/models/seller-documents/seller-document.js +14 -0
  33. package/lib/models/seller-documents/seller-document.js.map +1 -0
  34. package/lib/models/seller-documents/seller-documents-schema.d.ts +5 -0
  35. package/lib/models/seller-documents/seller-documents-schema.js +17 -0
  36. package/lib/models/seller-documents/seller-documents-schema.js.map +1 -0
  37. package/lib/requests/index.d.ts +1 -0
  38. package/lib/requests/index.js +1 -0
  39. package/lib/requests/index.js.map +1 -1
  40. package/lib/requests/upload-documents-request.d.ts +29 -0
  41. package/lib/requests/upload-documents-request.js +33 -0
  42. package/lib/requests/upload-documents-request.js.map +1 -0
  43. package/lib/responses/create-label-response-schema.js +2 -0
  44. package/lib/responses/create-label-response-schema.js.map +1 -1
  45. package/lib/responses/create-label-response.d.ts +2 -0
  46. package/lib/responses/create-label-response.js +1 -0
  47. package/lib/responses/create-label-response.js.map +1 -1
  48. package/lib/responses/index.d.ts +4 -0
  49. package/lib/responses/index.js +4 -0
  50. package/lib/responses/index.js.map +1 -1
  51. package/lib/responses/seller-document-result.d.ts +9 -0
  52. package/lib/responses/seller-document-result.js +14 -0
  53. package/lib/responses/seller-document-result.js.map +1 -0
  54. package/lib/responses/upload-document-result-schema.d.ts +2 -0
  55. package/lib/responses/upload-document-result-schema.js +12 -0
  56. package/lib/responses/upload-document-result-schema.js.map +1 -0
  57. package/lib/responses/upload-documents-response-schema.d.ts +2 -0
  58. package/lib/responses/upload-documents-response-schema.js +11 -0
  59. package/lib/responses/upload-documents-response-schema.js.map +1 -0
  60. package/lib/responses/upload-documents-response.d.ts +8 -0
  61. package/lib/responses/upload-documents-response.js +12 -0
  62. package/lib/responses/upload-documents-response.js.map +1 -0
  63. package/package.json +1 -1
  64. package/spec.json +211 -10
  65. package/src/app/carrier-app-definition.ts +9 -0
  66. package/src/app/constants.ts +1 -0
  67. package/src/app/create-endpoint-mapping.ts +1 -0
  68. package/src/app/metadata/shipping-option.ts +1 -0
  69. package/src/models/advanced-options.ts +2 -0
  70. package/src/models/index.ts +1 -0
  71. package/src/models/limit-identifier-schema.ts +7 -0
  72. package/src/models/limit-identifier-type-schema.ts +4 -0
  73. package/src/models/limit-identifier-type.ts +3 -0
  74. package/src/models/limit-identifier.ts +6 -0
  75. package/src/models/seller-documents/index.ts +2 -0
  76. package/src/models/seller-documents/seller-document.ts +12 -0
  77. package/src/models/seller-documents/seller-documents-schema.ts +13 -0
  78. package/src/requests/index.ts +1 -0
  79. package/src/requests/upload-documents-request.ts +38 -0
  80. package/src/responses/create-label-response-schema.ts +2 -0
  81. package/src/responses/create-label-response.ts +2 -0
  82. package/src/responses/index.ts +4 -0
  83. package/src/responses/seller-document-result.ts +9 -0
  84. package/src/responses/upload-document-result-schema.ts +8 -0
  85. package/src/responses/upload-documents-response-schema.ts +7 -0
  86. package/src/responses/upload-documents-response.ts +9 -0
  87. package/tsconfig.tsbuildinfo +1 -1
@@ -4,11 +4,18 @@ import { RegisterRequest, CreateLabelRequest, VoidLabelsRequest, CreateManifestR
4
4
  import { RegisterResponse, CreateLabelResponse, VoidLabelsResponse, CreateManifestResponse, SchedulePickupResponse, CancelPickupResponse, GetRatesResponse, TrackingResponse, CancelNotificationResponse, CreateNotificationResponse, ValidateInboundDataResponse, NormalizeTrackingDataResponse, GetRelayPointsResponse, GetServicePointsResponse, GetServicePointResponse, UpdateSettingsResponse, ListPickupsResponse, StartTrackingResponse } from '../responses';
5
5
  import { CarrierAppMetadata } from './metadata/carrier-app-metadata';
6
6
  import { RequestResponseInfo, Handler } from '@shipengine/connect-runtime';
7
+ import { UploadDocumentsRequest } from '../requests/upload-documents-request';
8
+ import { UploadDocumentsResponse } from '../responses/upload-documents-response';
7
9
  /**
8
10
  * @description This defines a connect carrier app
9
11
  */
10
12
  export interface CarrierAppDefinition {
11
13
  Metadata: CarrierAppMetadata;
14
+ /**
15
+ * @description This method is used to upload documents to carrier
16
+ * @param request Data needed by the provider to upload documents
17
+ */
18
+ UploadDocuments?: (request: UploadDocumentsRequest) => UploadDocumentsResponse | Promise<UploadDocumentsResponse>;
12
19
  /**
13
20
  * @description This method is used to register an account
14
21
  * @param request The information needed to register or initialize a connection with the shipping provider
@@ -18,5 +18,6 @@ export declare enum ApiEndpoints {
18
18
  ImportTrackingEvents = "/ImportTrackingEvents",
19
19
  UpdateSettings = "/UpdateSettings",
20
20
  ListPickups = "/ListPickups",
21
- StartTracking = "/StartTracking"
21
+ StartTracking = "/StartTracking",
22
+ UploadDocuments = "/UploadDocuments"
22
23
  }
@@ -23,5 +23,6 @@ var ApiEndpoints;
23
23
  ApiEndpoints["UpdateSettings"] = "/UpdateSettings";
24
24
  ApiEndpoints["ListPickups"] = "/ListPickups";
25
25
  ApiEndpoints["StartTracking"] = "/StartTracking";
26
+ ApiEndpoints["UploadDocuments"] = "/UploadDocuments";
26
27
  })(ApiEndpoints || (exports.ApiEndpoints = ApiEndpoints = {}));
27
28
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAqBX;AArBD,WAAY,YAAY;IACtB,sCAAsB,CAAA;IACtB,4CAA4B,CAAA;IAC5B,0CAA0B,CAAA;IAC1B,sCAAsB,CAAA;IACtB,kDAAkC,CAAA;IAClC,4CAA4B,CAAA;IAC5B,kDAAkC,CAAA;IAClC,8CAA8B,CAAA;IAC9B,gCAAgB,CAAA;IAChB,0DAA0C,CAAA;IAC1C,0DAA0C,CAAA;IAC1C,4DAA4C,CAAA;IAC5C,gEAAgD,CAAA;IAChD,kDAAkC,CAAA;IAClC,sDAAsC,CAAA;IACtC,oDAAoC,CAAA;IACpC,8DAA8C,CAAA;IAC9C,kDAAkC,CAAA;IAClC,4CAA4B,CAAA;IAC5B,gDAAgC,CAAA;AAClC,CAAC,EArBW,YAAY,4BAAZ,YAAY,QAqBvB"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAsBX;AAtBD,WAAY,YAAY;IACtB,sCAAsB,CAAA;IACtB,4CAA4B,CAAA;IAC5B,0CAA0B,CAAA;IAC1B,sCAAsB,CAAA;IACtB,kDAAkC,CAAA;IAClC,4CAA4B,CAAA;IAC5B,kDAAkC,CAAA;IAClC,8CAA8B,CAAA;IAC9B,gCAAgB,CAAA;IAChB,0DAA0C,CAAA;IAC1C,0DAA0C,CAAA;IAC1C,4DAA4C,CAAA;IAC5C,gEAAgD,CAAA;IAChD,kDAAkC,CAAA;IAClC,sDAAsC,CAAA;IACtC,oDAAoC,CAAA;IACpC,8DAA8C,CAAA;IAC9C,kDAAkC,CAAA;IAClC,4CAA4B,CAAA;IAC5B,gDAAgC,CAAA;IAChC,oDAAoC,CAAA;AACtC,CAAC,EAtBW,YAAY,4BAAZ,YAAY,QAsBvB"}
@@ -9,6 +9,7 @@ const createEndpointMapping = (definition) => [
9
9
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.CancelNotification, definition.CancelNotification],
10
10
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.CancelPickup, definition.CancelPickup],
11
11
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.CreateLabel, definition.CreateLabel],
12
+ [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.UploadDocuments, definition.UploadDocuments],
12
13
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.CreateManifest, definition.CreateManifest],
13
14
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.GetManifest, definition.GetManifest],
14
15
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.CreateNotification, definition.CreateNotification],
@@ -1 +1 @@
1
- {"version":3,"file":"create-endpoint-mapping.js","sourceRoot":"","sources":["../../src/app/create-endpoint-mapping.ts"],"names":[],"mappings":";;;AAAA,iEAA6E;AAC7E,2CAA2C;AAGpC,MAAM,qBAAqB,GAAG,CACnC,UAAgC,EACS,EAAE,CAAC;IAC5C,iFAAiF;IACjF,yFAAyF;IACzF,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,kBAAkB,EAAE,UAAU,CAAC,kBAAkB,CAAC;IAC7E,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAA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,UAAU,CAAC,WAAW,CAAC;IAC/D,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,aAAa,EAAE,UAAU,CAAC,aAAa,CAAC;IACnE,GAAG,IAAA,+BAAa,EAAC,UAAU,CAAC,UAAU,CAAC;CACxC,CAAC;AA3BW,QAAA,qBAAqB,yBA2BhC"}
@@ -40,6 +40,7 @@ export declare enum ShippingOptionEnum {
40
40
  ThirdPartyConsignee = "third-party-consignee",
41
41
  CarrierInsurance = "carrier-insurance",
42
42
  WindsorFrameworkMovementIndicator = "windsor-framework-movement-indicator",
43
- WindsorFrameworkNotAtRisk = "windsor-framework-not-at-risk"
43
+ WindsorFrameworkNotAtRisk = "windsor-framework-not-at-risk",
44
+ EnableDocumentUpload = "enable-document-upload"
44
45
  }
45
46
  export declare const ShippingOptionDictionarySchema: Joi.ObjectSchema<any>;
@@ -37,6 +37,7 @@ var ShippingOptionEnum;
37
37
  ShippingOptionEnum["CarrierInsurance"] = "carrier-insurance";
38
38
  ShippingOptionEnum["WindsorFrameworkMovementIndicator"] = "windsor-framework-movement-indicator";
39
39
  ShippingOptionEnum["WindsorFrameworkNotAtRisk"] = "windsor-framework-not-at-risk";
40
+ ShippingOptionEnum["EnableDocumentUpload"] = "enable-document-upload";
40
41
  })(ShippingOptionEnum || (exports.ShippingOptionEnum = ShippingOptionEnum = {}));
41
42
  exports.ShippingOptionDictionarySchema = joi_1.default.object(Object.values(ShippingOptionEnum).reduce((accumulator, option) => {
42
43
  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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erous-good/transport-mean-types';
9
9
  /** @description Basic structure for shipping options */
10
10
  export declare class AdvancedOptions {
11
+ /** @description Whether the user will upload documents */
12
+ enable_document_upload?: boolean;
11
13
  /** @description Whether the shipment contains alcohol */
12
14
  contains_alcohol?: boolean;
13
15
  /** @description Whether the shipment does not require postage */
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdvancedOptions = void 0;
4
4
  /** @description Basic structure for shipping options */
5
5
  class AdvancedOptions {
6
+ /** @description Whether the user will upload documents */
7
+ enable_document_upload;
6
8
  /** @description Whether the shipment contains alcohol */
7
9
  contains_alcohol;
8
10
  /** @description Whether the shipment does not require postage */
@@ -1 +1 @@
1
- {"version":3,"file":"advanced-options.js","sourceRoot":"","sources":["../../src/models/advanced-options.ts"],"names":[],"mappings":";;;AASA,wDAAwD;AACxD,MAAa,eAAe;IAC1B,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;AAvCD,0CAuCC"}
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"}
@@ -33,5 +33,6 @@ export * from './time-window-schema';
33
33
  export * from './time-window';
34
34
  export * from './tracking';
35
35
  export * from './units';
36
+ export * from './seller-documents';
36
37
  export * from './bill-to';
37
38
  export * from './labels/paperless-details';
@@ -36,6 +36,7 @@ tslib_1.__exportStar(require("./time-window-schema"), exports);
36
36
  tslib_1.__exportStar(require("./time-window"), exports);
37
37
  tslib_1.__exportStar(require("./tracking"), exports);
38
38
  tslib_1.__exportStar(require("./units"), exports);
39
+ tslib_1.__exportStar(require("./seller-documents"), exports);
39
40
  tslib_1.__exportStar(require("./bill-to"), exports);
40
41
  tslib_1.__exportStar(require("./labels/paperless-details"), exports);
41
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,6DAAmC;AACnC,0DAAgC;AAChC,6DAAmC;AACnC,gEAAsC;AACtC,oDAA0B;AAC1B,+DAAqC;AACrC,4DAAkC;AAClC,qDAA2B;AAC3B,oDAA0B;AAC1B,kEAAwC;AACxC,2DAAiC;AACjC,sDAA4B;AAC5B,mDAAyB;AACzB,8DAAoC;AACpC,8DAAoC;AACpC,uDAA6B;AAC7B,yEAA+C;AAC/C,kEAAwC;AACxC,gEAAsC;AACtC,mDAAyB;AACzB,sDAA4B;AAC5B,0DAAgC;AAChC,oDAA0B;AAC1B,mDAAyB;AACzB,kDAAwB;AACxB,yDAA+B;AAC/B,yDAA+B;AAC/B,qEAA2C;AAC3C,8DAAoC;AACpC,kDAAwB;AACxB,+DAAqC;AACrC,wDAA8B;AAC9B,qDAA2B;AAC3B,kDAAwB;AACxB,oDAA0B;AAC1B,qEAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,6DAAmC;AACnC,0DAAgC;AAChC,6DAAmC;AACnC,gEAAsC;AACtC,oDAA0B;AAC1B,+DAAqC;AACrC,4DAAkC;AAClC,qDAA2B;AAC3B,oDAA0B;AAC1B,kEAAwC;AACxC,2DAAiC;AACjC,sDAA4B;AAC5B,mDAAyB;AACzB,8DAAoC;AACpC,8DAAoC;AACpC,uDAA6B;AAC7B,yEAA+C;AAC/C,kEAAwC;AACxC,gEAAsC;AACtC,mDAAyB;AACzB,sDAA4B;AAC5B,0DAAgC;AAChC,oDAA0B;AAC1B,mDAAyB;AACzB,kDAAwB;AACxB,yDAA+B;AAC/B,yDAA+B;AAC/B,qEAA2C;AAC3C,8DAAoC;AACpC,kDAAwB;AACxB,+DAAqC;AACrC,wDAA8B;AAC9B,qDAA2B;AAC3B,kDAAwB;AACxB,6DAAmC;AACnC,oDAA0B;AAC1B,qEAA2C"}
@@ -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"}
@@ -0,0 +1,2 @@
1
+ export * from './seller-document';
2
+ export * from './seller-documents-schema';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./seller-document"), exports);
5
+ tslib_1.__exportStar(require("./seller-documents-schema"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/seller-documents/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,oEAA0C"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Represents a document in the upload request.
3
+ */
4
+ export declare class SellerDocument {
5
+ document_upload_id: string;
6
+ type: string;
7
+ name: string;
8
+ content: string;
9
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SellerDocument = void 0;
4
+ /**
5
+ * Represents a document in the upload request.
6
+ */
7
+ class SellerDocument {
8
+ document_upload_id;
9
+ type;
10
+ name;
11
+ content;
12
+ }
13
+ exports.SellerDocument = SellerDocument;
14
+ //# sourceMappingURL=seller-document.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seller-document.js","sourceRoot":"","sources":["../../../src/models/seller-documents/seller-document.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,MAAa,cAAc;IACzB,kBAAkB,CAAU;IAC5B,IAAI,CAAU;IACd,IAAI,CAAU;IACd,OAAO,CAAU;CAClB;AALD,wCAKC"}
@@ -0,0 +1,5 @@
1
+ import Joi from 'joi';
2
+ /**
3
+ * Joi validation schema for SellerDocument
4
+ */
5
+ export declare const SellerDocumentSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SellerDocumentSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ /**
7
+ * Joi validation schema for SellerDocument
8
+ */
9
+ exports.SellerDocumentSchema = joi_1.default.object({
10
+ document_upload_id: joi_1.default.string().required().empty(''),
11
+ type: joi_1.default.string().required().empty(''),
12
+ name: joi_1.default.string().required().empty(''),
13
+ content: joi_1.default.string().required().empty(''),
14
+ ship_from: joi_1.default.object().required(),
15
+ ship_to: joi_1.default.object().required(),
16
+ });
17
+ //# sourceMappingURL=seller-documents-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seller-documents-schema.js","sourceRoot":"","sources":["../../../src/models/seller-documents/seller-documents-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB;;GAEG;AACU,QAAA,oBAAoB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC7C,kBAAkB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACrD,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACvC,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACvC,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAC1C,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"}
@@ -19,3 +19,4 @@ export * from './void-labels-request';
19
19
  export * from './update-settings-request';
20
20
  export * from './start-tracking-request';
21
21
  export * from './start-tracking-request-schema';
22
+ export * from './upload-documents-request';
@@ -22,4 +22,5 @@ tslib_1.__exportStar(require("./void-labels-request"), exports);
22
22
  tslib_1.__exportStar(require("./update-settings-request"), exports);
23
23
  tslib_1.__exportStar(require("./start-tracking-request"), exports);
24
24
  tslib_1.__exportStar(require("./start-tracking-request-schema"), exports);
25
+ tslib_1.__exportStar(require("./upload-documents-request"), exports);
25
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;AAAA,wEAA8C;AAC9C,kEAAwC;AACxC,iEAAuC;AACvC,oEAA0C;AAC1C,wEAA8C;AAC9C,iEAAuC;AACvC,8DAAoC;AACpC,qEAA2C;AAC3C,sEAA4C;AAC5C,uEAA6C;AAC7C,2EAAiD;AACjD,4EAAkD;AAClD,6DAAmC;AACnC,oEAA0C;AAC1C,iEAAuC;AACvC,6DAAmC;AACnC,0EAAgD;AAChD,gEAAsC;AACtC,oEAA0C;AAC1C,mEAAyC;AACzC,0EAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;AAAA,wEAA8C;AAC9C,kEAAwC;AACxC,iEAAuC;AACvC,oEAA0C;AAC1C,wEAA8C;AAC9C,iEAAuC;AACvC,8DAAoC;AACpC,qEAA2C;AAC3C,sEAA4C;AAC5C,uEAA6C;AAC7C,2EAAiD;AACjD,4EAAkD;AAClD,6DAAmC;AACnC,oEAA0C;AAC1C,iEAAuC;AACvC,6DAAmC;AACnC,0EAAgD;AAChD,gEAAsC;AACtC,oEAA0C;AAC1C,mEAAyC;AACzC,0EAAgD;AAChD,qEAA2C"}
@@ -0,0 +1,29 @@
1
+ import { BaseRequest } from './base-request';
2
+ import { AdvancedOptions, Identifier, PudoLocation, SellerDocument, ShipFrom, ShippedPackage, ShipTo } from '../models';
3
+ /**
4
+ * A request to upload documents for a shipment.
5
+ */
6
+ export declare class UploadDocumentsRequest extends BaseRequest {
7
+ /** @description The list of documents to be uploaded */
8
+ documents: SellerDocument[];
9
+ /** @description The carrier tracking number for this shipment */
10
+ tracking_number: string;
11
+ /** @description The shipment sender's address. It may or may not have been validated. */
12
+ ship_from?: ShipFrom;
13
+ /** @description The address that a shipment will be delivered to */
14
+ ship_to?: ShipTo;
15
+ /** @description Non-tracking alternative ids associated with this shipment */
16
+ alternative_identifiers?: Identifier[];
17
+ /** @description The service code used for this shipment */
18
+ service_code?: string;
19
+ /** @description The list of packages associated with this shipment */
20
+ packages?: ShippedPackage[];
21
+ /** @description Advanced shipping options (Contains Alcohol, Non Machinable, etc) */
22
+ advanced_options?: AdvancedOptions;
23
+ /** @description Add pick-up location detail*/
24
+ pickup_location?: PudoLocation;
25
+ /** @description Add drop-off location detail*/
26
+ dropoff_location?: PudoLocation;
27
+ /** @description User specified free form string to identify shipment in their own system */
28
+ reference?: string;
29
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadDocumentsRequest = void 0;
4
+ const base_request_1 = require("./base-request");
5
+ /**
6
+ * A request to upload documents for a shipment.
7
+ */
8
+ class UploadDocumentsRequest extends base_request_1.BaseRequest {
9
+ /** @description The list of documents to be uploaded */
10
+ documents;
11
+ /** @description The carrier tracking number for this shipment */
12
+ tracking_number;
13
+ /** @description The shipment sender's address. It may or may not have been validated. */
14
+ ship_from;
15
+ /** @description The address that a shipment will be delivered to */
16
+ ship_to;
17
+ /** @description Non-tracking alternative ids associated with this shipment */
18
+ alternative_identifiers;
19
+ /** @description The service code used for this shipment */
20
+ service_code;
21
+ /** @description The list of packages associated with this shipment */
22
+ packages;
23
+ /** @description Advanced shipping options (Contains Alcohol, Non Machinable, etc) */
24
+ advanced_options;
25
+ /** @description Add pick-up location detail*/
26
+ pickup_location;
27
+ /** @description Add drop-off location detail*/
28
+ dropoff_location;
29
+ /** @description User specified free form string to identify shipment in their own system */
30
+ reference;
31
+ }
32
+ exports.UploadDocumentsRequest = UploadDocumentsRequest;
33
+ //# sourceMappingURL=upload-documents-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-documents-request.js","sourceRoot":"","sources":["../../src/requests/upload-documents-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAW7C;;GAEG;AACH,MAAa,sBAAuB,SAAQ,0BAAW;IACrD,wDAAwD;IACxD,SAAS,CAAoB;IAC7B,iEAAiE;IACjE,eAAe,CAAU;IACzB,0FAA0F;IAC1F,SAAS,CAAY;IACrB,oEAAoE;IACpE,OAAO,CAAU;IACjB,8EAA8E;IAC9E,uBAAuB,CAAgB;IACvC,2DAA2D;IAC3D,YAAY,CAAU;IACtB,sEAAsE;IACtE,QAAQ,CAAoB;IAC5B,qFAAqF;IACrF,gBAAgB,CAAmB;IACnC,8CAA8C;IAC9C,eAAe,CAAgB;IAC/B,+CAA+C;IAC/C,gBAAgB,CAAgB;IAChC,4FAA4F;IAC5F,SAAS,CAAU;CACpB;AAvBD,wDAuBC"}
@@ -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;AAC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C,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnC,uBAAuB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,oCAAgB,CAAC;IACvE,2BAA2B,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IACtE,yBAAyB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC1D,qBAAqB,EAAE,qCAAgB,CAAC,QAAQ,EAAE;IAClD,eAAe,EAAE,qCAAgB,CAAC,QAAQ,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"}
@@ -35,3 +35,7 @@ export * from './update-settings-response-schema';
35
35
  export * from './update-settings-response';
36
36
  export * from './start-tracking-response';
37
37
  export * from './start-tracking-response-schema';
38
+ export * from './seller-document-result';
39
+ export * from './upload-document-result-schema';
40
+ export * from './upload-documents-response-schema';
41
+ export * from './upload-documents-response';
@@ -38,4 +38,8 @@ tslib_1.__exportStar(require("./update-settings-response-schema"), exports);
38
38
  tslib_1.__exportStar(require("./update-settings-response"), exports);
39
39
  tslib_1.__exportStar(require("./start-tracking-response"), exports);
40
40
  tslib_1.__exportStar(require("./start-tracking-response-schema"), exports);
41
+ tslib_1.__exportStar(require("./seller-document-result"), exports);
42
+ tslib_1.__exportStar(require("./upload-document-result-schema"), exports);
43
+ tslib_1.__exportStar(require("./upload-documents-response-schema"), exports);
44
+ tslib_1.__exportStar(require("./upload-documents-response"), exports);
41
45
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/responses/index.ts"],"names":[],"mappings":";;;AAAA,gFAAsD;AACtD,yEAA+C;AAC/C,0EAAgD;AAChD,mEAAyC;AACzC,yEAA+C;AAC/C,kEAAwC;AACxC,4EAAkD;AAClD,qEAA2C;AAC3C,gFAAsD;AACtD,yEAA+C;AAC/C,2DAAiC;AACjC,sEAA4C;AAC5C,+DAAqC;AACrC,6EAAmD;AACnD,sEAA4C;AAC5C,8EAAoD;AACpD,uEAA6C;AAC7C,+EAAqD;AACrD,wEAA8C;AAC9C,oFAA0D;AAC1D,6EAAmD;AACnD,qEAA2C;AAC3C,8DAAoC;AACpC,4EAAkD;AAClD,qEAA2C;AAC3C,yEAA+C;AAC/C,kEAAwC;AACxC,qEAA2C;AAC3C,8DAAoC;AACpC,kFAAwD;AACxD,2EAAiD;AACjD,wEAA8C;AAC9C,iEAAuC;AACvC,4EAAkD;AAClD,qEAA2C;AAC3C,oEAA0C;AAC1C,2EAAiD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/responses/index.ts"],"names":[],"mappings":";;;AAAA,gFAAsD;AACtD,yEAA+C;AAC/C,0EAAgD;AAChD,mEAAyC;AACzC,yEAA+C;AAC/C,kEAAwC;AACxC,4EAAkD;AAClD,qEAA2C;AAC3C,gFAAsD;AACtD,yEAA+C;AAC/C,2DAAiC;AACjC,sEAA4C;AAC5C,+DAAqC;AACrC,6EAAmD;AACnD,sEAA4C;AAC5C,8EAAoD;AACpD,uEAA6C;AAC7C,+EAAqD;AACrD,wEAA8C;AAC9C,oFAA0D;AAC1D,6EAAmD;AACnD,qEAA2C;AAC3C,8DAAoC;AACpC,4EAAkD;AAClD,qEAA2C;AAC3C,yEAA+C;AAC/C,kEAAwC;AACxC,qEAA2C;AAC3C,8DAAoC;AACpC,kFAAwD;AACxD,2EAAiD;AACjD,wEAA8C;AAC9C,iEAAuC;AACvC,4EAAkD;AAClD,qEAA2C;AAC3C,oEAA0C;AAC1C,2EAAiD;AACjD,mEAAyC;AACzC,0EAAgD;AAChD,6EAAmD;AACnD,sEAA4C"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Represents the result of uploading a document to the carrier.
3
+ */
4
+ export declare class SellerDocumentResult {
5
+ document_upload_id: string;
6
+ carrier_document_id?: string;
7
+ uploaded_to_carrier_at?: Date;
8
+ errors?: string[];
9
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SellerDocumentResult = void 0;
4
+ /**
5
+ * Represents the result of uploading a document to the carrier.
6
+ */
7
+ class SellerDocumentResult {
8
+ document_upload_id;
9
+ carrier_document_id;
10
+ uploaded_to_carrier_at;
11
+ errors;
12
+ }
13
+ exports.SellerDocumentResult = SellerDocumentResult;
14
+ //# sourceMappingURL=seller-document-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seller-document-result.js","sourceRoot":"","sources":["../../src/responses/seller-document-result.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,oBAAoB;IAC/B,kBAAkB,CAAU;IAC5B,mBAAmB,CAAU;IAC7B,sBAAsB,CAAQ;IAC9B,MAAM,CAAY;CACnB;AALD,oDAKC"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const UploadDocumentResultSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadDocumentResultSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ exports.UploadDocumentResultSchema = joi_1.default.object({
7
+ document_upload_id: joi_1.default.string().required().empty(''),
8
+ carrier_document_id: joi_1.default.string().optional().empty(''),
9
+ uploaded_to_carrier_at: joi_1.default.string().optional().isoDate(),
10
+ errors: joi_1.default.array().items(joi_1.default.string()).optional(),
11
+ });
12
+ //# sourceMappingURL=upload-document-result-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-document-result-schema.js","sourceRoot":"","sources":["../../src/responses/upload-document-result-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAET,QAAA,0BAA0B,GAAG,aAAG,CAAC,MAAM,CAAC;IACnD,kBAAkB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACrD,mBAAmB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACtD,sBAAsB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;IACzD,MAAM,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const UploadDocumentsResponseSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadDocumentsResponseSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const upload_document_result_schema_1 = require("./upload-document-result-schema");
7
+ exports.UploadDocumentsResponseSchema = joi_1.default.object({
8
+ metadata: joi_1.default.object().pattern(/.*/, [joi_1.default.any()]).required(),
9
+ documents: joi_1.default.array().required().min(1).items(upload_document_result_schema_1.UploadDocumentResultSchema),
10
+ });
11
+ //# sourceMappingURL=upload-documents-response-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-documents-response-schema.js","sourceRoot":"","sources":["../../src/responses/upload-documents-response-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,mFAA6E;AAEhE,QAAA,6BAA6B,GAAG,aAAG,CAAC,MAAM,CAAC;IACtD,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,aAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5D,SAAS,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,0DAA0B,CAAC;CAC3E,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { BaseResponse } from './base-response';
2
+ import { SellerDocumentResult } from './seller-document-result';
3
+ /**
4
+ * Response for uploading documents to a carrier.
5
+ */
6
+ export declare class UploadDocumentsResponse extends BaseResponse {
7
+ documents?: SellerDocumentResult[];
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadDocumentsResponse = void 0;
4
+ const base_response_1 = require("./base-response");
5
+ /**
6
+ * Response for uploading documents to a carrier.
7
+ */
8
+ class UploadDocumentsResponse extends base_response_1.BaseResponse {
9
+ documents;
10
+ }
11
+ exports.UploadDocumentsResponse = UploadDocumentsResponse;
12
+ //# sourceMappingURL=upload-documents-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-documents-response.js","sourceRoot":"","sources":["../../src/responses/upload-documents-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAG/C;;GAEG;AACH,MAAa,uBAAwB,SAAQ,4BAAY;IACvD,SAAS,CAA0B;CACpC;AAFD,0DAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.17.4",
3
+ "version": "4.18.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",