@shipengine/connect-carrier-api 4.25.0 → 4.26.1

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 (95) hide show
  1. package/lib/app/carrier-app-definition.d.ts +7 -9
  2. package/lib/app/constants.d.ts +1 -1
  3. package/lib/app/constants.js +1 -1
  4. package/lib/app/constants.js.map +1 -1
  5. package/lib/app/create-endpoint-mapping.js +1 -1
  6. package/lib/app/create-endpoint-mapping.js.map +1 -1
  7. package/lib/models/addresses/pudo-location-schema.js +10 -0
  8. package/lib/models/addresses/pudo-location-schema.js.map +1 -1
  9. package/lib/models/documents/index.d.ts +1 -0
  10. package/lib/models/documents/index.js +1 -0
  11. package/lib/models/documents/index.js.map +1 -1
  12. package/lib/models/documents/uploads/document-upload-format-schema.d.ts +2 -0
  13. package/lib/models/documents/uploads/document-upload-format-schema.js +8 -0
  14. package/lib/models/documents/uploads/document-upload-format-schema.js.map +1 -0
  15. package/lib/models/documents/uploads/document-upload-format.d.ts +5 -0
  16. package/lib/models/documents/uploads/document-upload-format.js +10 -0
  17. package/lib/models/documents/uploads/document-upload-format.js.map +1 -0
  18. package/lib/models/documents/uploads/document-upload-type-schema.d.ts +2 -0
  19. package/lib/models/documents/uploads/document-upload-type-schema.js +8 -0
  20. package/lib/models/documents/uploads/document-upload-type-schema.js.map +1 -0
  21. package/lib/models/documents/uploads/document-upload-type.d.ts +35 -0
  22. package/lib/models/documents/uploads/document-upload-type.js +40 -0
  23. package/lib/models/documents/uploads/document-upload-type.js.map +1 -0
  24. package/lib/models/documents/uploads/index.d.ts +4 -0
  25. package/lib/models/documents/uploads/index.js +8 -0
  26. package/lib/models/documents/uploads/index.js.map +1 -0
  27. package/lib/models/index.d.ts +0 -1
  28. package/lib/models/index.js +0 -1
  29. package/lib/models/index.js.map +1 -1
  30. package/lib/requests/index.d.ts +1 -1
  31. package/lib/requests/index.js +1 -1
  32. package/lib/requests/index.js.map +1 -1
  33. package/lib/requests/upload-document-request.d.ts +21 -0
  34. package/lib/requests/upload-document-request.js +25 -0
  35. package/lib/requests/upload-document-request.js.map +1 -0
  36. package/lib/responses/index.d.ts +2 -4
  37. package/lib/responses/index.js +2 -4
  38. package/lib/responses/index.js.map +1 -1
  39. package/lib/responses/upload-document-response-schema.d.ts +2 -0
  40. package/lib/responses/upload-document-response-schema.js +10 -0
  41. package/lib/responses/upload-document-response-schema.js.map +1 -0
  42. package/lib/responses/upload-document-response.d.ts +8 -0
  43. package/lib/responses/upload-document-response.js +13 -0
  44. package/lib/responses/upload-document-response.js.map +1 -0
  45. package/package.json +1 -1
  46. package/spec.json +105 -115
  47. package/src/app/carrier-app-definition.ts +9 -9
  48. package/src/app/constants.ts +1 -1
  49. package/src/app/create-endpoint-mapping.ts +1 -1
  50. package/src/models/addresses/pudo-location-schema.ts +10 -0
  51. package/src/models/documents/index.ts +1 -0
  52. package/src/models/documents/uploads/document-upload-format-schema.ts +6 -0
  53. package/src/models/documents/uploads/document-upload-format.ts +5 -0
  54. package/src/models/documents/uploads/document-upload-type-schema.ts +4 -0
  55. package/src/models/documents/uploads/document-upload-type.ts +35 -0
  56. package/src/models/documents/uploads/index.ts +4 -0
  57. package/src/models/index.ts +0 -1
  58. package/src/requests/index.ts +1 -1
  59. package/src/requests/upload-document-request.ts +22 -0
  60. package/src/responses/index.ts +2 -4
  61. package/src/responses/upload-document-response-schema.ts +6 -0
  62. package/src/responses/upload-document-response.ts +9 -0
  63. package/tsconfig.tsbuildinfo +1 -1
  64. package/lib/models/seller-documents/index.d.ts +0 -2
  65. package/lib/models/seller-documents/index.js +0 -6
  66. package/lib/models/seller-documents/index.js.map +0 -1
  67. package/lib/models/seller-documents/seller-document.d.ts +0 -9
  68. package/lib/models/seller-documents/seller-document.js +0 -14
  69. package/lib/models/seller-documents/seller-document.js.map +0 -1
  70. package/lib/models/seller-documents/seller-documents-schema.d.ts +0 -5
  71. package/lib/models/seller-documents/seller-documents-schema.js +0 -17
  72. package/lib/models/seller-documents/seller-documents-schema.js.map +0 -1
  73. package/lib/requests/upload-documents-request.d.ts +0 -29
  74. package/lib/requests/upload-documents-request.js +0 -33
  75. package/lib/requests/upload-documents-request.js.map +0 -1
  76. package/lib/responses/seller-document-result.d.ts +0 -9
  77. package/lib/responses/seller-document-result.js +0 -14
  78. package/lib/responses/seller-document-result.js.map +0 -1
  79. package/lib/responses/upload-document-result-schema.d.ts +0 -2
  80. package/lib/responses/upload-document-result-schema.js +0 -12
  81. package/lib/responses/upload-document-result-schema.js.map +0 -1
  82. package/lib/responses/upload-documents-response-schema.d.ts +0 -2
  83. package/lib/responses/upload-documents-response-schema.js +0 -11
  84. package/lib/responses/upload-documents-response-schema.js.map +0 -1
  85. package/lib/responses/upload-documents-response.d.ts +0 -8
  86. package/lib/responses/upload-documents-response.js +0 -12
  87. package/lib/responses/upload-documents-response.js.map +0 -1
  88. package/src/models/seller-documents/index.ts +0 -2
  89. package/src/models/seller-documents/seller-document.ts +0 -12
  90. package/src/models/seller-documents/seller-documents-schema.ts +0 -13
  91. package/src/requests/upload-documents-request.ts +0 -38
  92. package/src/responses/seller-document-result.ts +0 -9
  93. package/src/responses/upload-document-result-schema.ts +0 -8
  94. package/src/responses/upload-documents-response-schema.ts +0 -7
  95. package/src/responses/upload-documents-response.ts +0 -9
@@ -1,21 +1,14 @@
1
1
  import { ImportedTrackingEvent } from '../models';
2
2
  import type { Request } from 'express';
3
- import { RegisterRequest, CreateLabelRequest, VoidLabelsRequest, CreateManifestRequest, GetManifestRequest, SchedulePickupRequest, CancelPickupRequest, GetRatesRequest, TrackingRequest, CancelNotificationRequest, CreateNotificationRequest, ValidateInboundDataRequest, NormalizeTrackingDataRequest, GetRelayPointsRequest, GetServicePointsRequest, GetServicePointRequest, ImportTrackingEventsRequest, UpdateSettingsRequest, ListPickupsRequest, StartTrackingRequest } from '../requests';
4
- import { RegisterResponse, CreateLabelResponse, VoidLabelsResponse, CreateManifestResponse, SchedulePickupResponse, CancelPickupResponse, GetRatesResponse, TrackingResponse, CancelNotificationResponse, CreateNotificationResponse, ValidateInboundDataResponse, NormalizeTrackingDataResponse, GetRelayPointsResponse, GetServicePointsResponse, GetServicePointResponse, UpdateSettingsResponse, ListPickupsResponse, StartTrackingResponse } from '../responses';
3
+ import { RegisterRequest, CreateLabelRequest, VoidLabelsRequest, CreateManifestRequest, GetManifestRequest, SchedulePickupRequest, CancelPickupRequest, GetRatesRequest, TrackingRequest, CancelNotificationRequest, CreateNotificationRequest, ValidateInboundDataRequest, NormalizeTrackingDataRequest, GetRelayPointsRequest, GetServicePointsRequest, GetServicePointRequest, ImportTrackingEventsRequest, UpdateSettingsRequest, ListPickupsRequest, StartTrackingRequest, UploadDocumentRequest } from '../requests';
4
+ import { RegisterResponse, CreateLabelResponse, VoidLabelsResponse, CreateManifestResponse, SchedulePickupResponse, CancelPickupResponse, GetRatesResponse, TrackingResponse, CancelNotificationResponse, CreateNotificationResponse, ValidateInboundDataResponse, NormalizeTrackingDataResponse, GetRelayPointsResponse, GetServicePointsResponse, GetServicePointResponse, UpdateSettingsResponse, ListPickupsResponse, StartTrackingResponse, UploadDocumentResponse } 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';
9
7
  /**
10
8
  * @description This defines a connect carrier app
11
9
  */
12
10
  export interface CarrierAppDefinition {
13
11
  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>;
19
12
  /**
20
13
  * @description This method is used to register an account
21
14
  * @param request The information needed to register or initialize a connection with the shipping provider
@@ -123,6 +116,11 @@ export interface CarrierAppDefinition {
123
116
  * @param request Data needed by the provider to start tracking shipments
124
117
  */
125
118
  StartTracking?: (request: StartTrackingRequest) => StartTrackingResponse | Promise<StartTrackingResponse>;
119
+ /**
120
+ * @description This method is used to upload a document to carrier
121
+ * @param request Data needed by the provider to upload a document
122
+ */
123
+ UploadDocument?: (request: UploadDocumentRequest) => UploadDocumentResponse | Promise<UploadDocumentResponse>;
126
124
  /**
127
125
  * @description A collection of additional routes that can be used to extend the functionality of the app.
128
126
  * Extension methods are not automatically called by the ShipEngine platform, and require working with Auctane developers to implement.
@@ -19,5 +19,5 @@ export declare enum ApiEndpoints {
19
19
  UpdateSettings = "/UpdateSettings",
20
20
  ListPickups = "/ListPickups",
21
21
  StartTracking = "/StartTracking",
22
- UploadDocuments = "/UploadDocuments"
22
+ UploadDocument = "/UploadDocument"
23
23
  }
@@ -23,6 +23,6 @@ var ApiEndpoints;
23
23
  ApiEndpoints["UpdateSettings"] = "/UpdateSettings";
24
24
  ApiEndpoints["ListPickups"] = "/ListPickups";
25
25
  ApiEndpoints["StartTracking"] = "/StartTracking";
26
- ApiEndpoints["UploadDocuments"] = "/UploadDocuments";
26
+ ApiEndpoints["UploadDocument"] = "/UploadDocument";
27
27
  })(ApiEndpoints || (exports.ApiEndpoints = ApiEndpoints = {}));
28
28
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
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"}
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,kDAAkC,CAAA;AACpC,CAAC,EAtBW,YAAY,4BAAZ,YAAY,QAsBvB"}
@@ -9,7 +9,6 @@ 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],
13
12
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.CreateManifest, definition.CreateManifest],
14
13
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.GetManifest, definition.GetManifest],
15
14
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.CreateNotification, definition.CreateNotification],
@@ -27,6 +26,7 @@ const createEndpointMapping = (definition) => [
27
26
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.UpdateSettings, definition.UpdateSettings],
28
27
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.ListPickups, definition.ListPickups],
29
28
  [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.StartTracking, definition.StartTracking],
29
+ [connect_runtime_1.Method.POST, constants_1.ApiEndpoints.UploadDocument, definition.UploadDocument],
30
30
  ...(0, connect_runtime_1.mapExtensions)(definition.Extensions),
31
31
  ];
32
32
  exports.createEndpointMapping = createEndpointMapping;
@@ -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,wBAAY,CAAC,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC;IACjE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC;IAC/D,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,eAAe,EAAE,UAAU,CAAC,eAAe,CAAC;IACvE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC;IAC/D,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,kBAAkB,EAAE,UAAU,CAAC,kBAAkB,CAAC;IAC7E,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,CAAC;IACnF,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,mBAAmB,EAAE,UAAU,CAAC,mBAAmB,CAAC;IAC/E,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAC7D,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACzE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,eAAe,EAAE,UAAU,CAAC,eAAe,CAAC;IACvE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,oBAAoB,EAAE,UAAU,CAAC,oBAAoB,CAAC;IACjF,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,WAAW,EAAE,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"}
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,wBAAY,CAAC,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC;IACjE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC;IAC/D,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC;IAC/D,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,kBAAkB,EAAE,UAAU,CAAC,kBAAkB,CAAC;IAC7E,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,CAAC;IACnF,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,mBAAmB,EAAE,UAAU,CAAC,mBAAmB,CAAC;IAC/E,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAC7D,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACzE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,eAAe,EAAE,UAAU,CAAC,eAAe,CAAC;IACvE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,oBAAoB,EAAE,UAAU,CAAC,oBAAoB,CAAC;IACjF,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC;IAC/D,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,aAAa,EAAE,UAAU,CAAC,aAAa,CAAC;IACnE,CAAC,wBAAM,CAAC,IAAI,EAAE,wBAAY,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;IACrE,GAAG,IAAA,+BAAa,EAAC,UAAU,CAAC,UAAU,CAAC;CACxC,CAAC;AA3BW,QAAA,qBAAqB,yBA2BhC"}
@@ -7,5 +7,15 @@ const address_base_schema_1 = require("./address-base-schema");
7
7
  exports.PudoLocationSchema = address_base_schema_1.AddressBaseSchema.keys({
8
8
  carrier_code: joi_1.default.string().optional(),
9
9
  location_id: joi_1.default.string().optional(),
10
+ postal_code: joi_1.default.string().when('location_id', {
11
+ is: joi_1.default.exist(),
12
+ then: joi_1.default.optional().allow(''),
13
+ otherwise: joi_1.default.required(),
14
+ }),
15
+ country_code: joi_1.default.string().when('location_id', {
16
+ is: joi_1.default.exist(),
17
+ then: joi_1.default.optional().allow(''),
18
+ otherwise: joi_1.default.required(),
19
+ }),
10
20
  });
11
21
  //# sourceMappingURL=pudo-location-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pudo-location-schema.js","sourceRoot":"","sources":["../../../src/models/addresses/pudo-location-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,+DAA0D;AAE7C,QAAA,kBAAkB,GAAG,uCAAiB,CAAC,IAAI,CAAC;IACvD,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
1
+ {"version":3,"file":"pudo-location-schema.js","sourceRoot":"","sources":["../../../src/models/addresses/pudo-location-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,+DAA0D;AAE7C,QAAA,kBAAkB,GAAG,uCAAiB,CAAC,IAAI,CAAC;IACvD,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE;QAC5C,EAAE,EAAE,aAAG,CAAC,KAAK,EAAE;QACf,IAAI,EAAE,aAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9B,SAAS,EAAE,aAAG,CAAC,QAAQ,EAAE;KAC1B,CAAC;IACF,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE;QAC7C,EAAE,EAAE,aAAG,CAAC,KAAK,EAAE;QACf,IAAI,EAAE,aAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9B,SAAS,EAAE,aAAG,CAAC,QAAQ,EAAE;KAC1B,CAAC;CACH,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './document';
2
2
  export * from './document-type';
3
3
  export * from './document-type-schema';
4
+ export * from './uploads';
@@ -4,4 +4,5 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./document"), exports);
5
5
  tslib_1.__exportStar(require("./document-type"), exports);
6
6
  tslib_1.__exportStar(require("./document-type-schema"), exports);
7
+ tslib_1.__exportStar(require("./uploads"), exports);
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/documents/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,0DAAgC;AAChC,iEAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/documents/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,0DAAgC;AAChC,iEAAuC;AACvC,oDAA0B"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const DocumentUploadFormatSchema: Joi.StringSchema;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentUploadFormatSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const document_upload_format_1 = require("./document-upload-format");
7
+ exports.DocumentUploadFormatSchema = joi_1.default.string().valid(...Object.values(document_upload_format_1.DocumentUploadFormat));
8
+ //# sourceMappingURL=document-upload-format-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-upload-format-schema.js","sourceRoot":"","sources":["../../../../src/models/documents/uploads/document-upload-format-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,qEAAgE;AAEnD,QAAA,0BAA0B,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAC1D,GAAG,MAAM,CAAC,MAAM,CAAC,6CAAoB,CAAC,CACvC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /** @description Accepted document upload formats */
2
+ export declare enum DocumentUploadFormat {
3
+ Pdf = "PDF",
4
+ Png = "PNG"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentUploadFormat = void 0;
4
+ /** @description Accepted document upload formats */
5
+ var DocumentUploadFormat;
6
+ (function (DocumentUploadFormat) {
7
+ DocumentUploadFormat["Pdf"] = "PDF";
8
+ DocumentUploadFormat["Png"] = "PNG";
9
+ })(DocumentUploadFormat || (exports.DocumentUploadFormat = DocumentUploadFormat = {}));
10
+ //# sourceMappingURL=document-upload-format.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-upload-format.js","sourceRoot":"","sources":["../../../../src/models/documents/uploads/document-upload-format.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,mCAAW,CAAA;IACX,mCAAW,CAAA;AACb,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const DocumentUploadTypeSchema: Joi.StringSchema;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentUploadTypeSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const document_upload_type_1 = require("./document-upload-type");
7
+ exports.DocumentUploadTypeSchema = joi_1.default.string().valid(...Object.values(document_upload_type_1.DocumentUploadType));
8
+ //# sourceMappingURL=document-upload-type-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-upload-type-schema.js","sourceRoot":"","sources":["../../../../src/models/documents/uploads/document-upload-type-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,iEAA4D;AAE/C,QAAA,wBAAwB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,yCAAkB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,35 @@
1
+ /** @description Types of uploaded documents */
2
+ export declare enum DocumentUploadType {
3
+ /** @description A legal document issued by the seller (exporter) to the buyer (importer) in an international transaction and serves as a contract and a proof of sale between the buyer and seller */
4
+ CommercialInvoice = "commercial_invoice",
5
+ /** @description A certificate of origin */
6
+ CertificateOfOrigin = "certificate_of_origin",
7
+ /** @description A USMCA commercial invoice certification of origin */
8
+ UsmcaCommercialInvoiceCertificationOfOrigin = "usmca_commercial_invoice_certification_of_origin",
9
+ /** @description A USMCA Certification of origin */
10
+ UsmcaCertificationOfOrigin = "usmca_certification_of_origin",
11
+ /** @description A pro forma invoice */
12
+ ProFormaInvoice = "pro_forma_invoice",
13
+ /** @description Other document type */
14
+ Other = "other",
15
+ /** @description An authorization form */
16
+ AuthorizationForm = "authorization_form",
17
+ /** @description An export accompanying document */
18
+ ExportAccompanyingDocument = "export_accompanying_document",
19
+ /** @description An export license */
20
+ ExportLicense = "export_license",
21
+ /** @description An import permit */
22
+ ImportPermit = "import_permit",
23
+ /** @description A one-time NAFTA certificate */
24
+ OneTimeNafta = "one_time_nafta",
25
+ /** @description A power of attorney document */
26
+ PowerOfAttorney = "power_of_attorney",
27
+ /** @description A packing list */
28
+ PackingList = "packing_list",
29
+ /** @description A SED (Shipper's Export Declaration) document */
30
+ SedDocument = "sed_document",
31
+ /** @description A shipper's letter of instruction */
32
+ ShippersLetterOfInstruction = "shippers_letter_of_instruction",
33
+ /** @description A declaration document */
34
+ Declaration = "declaration"
35
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentUploadType = void 0;
4
+ /** @description Types of uploaded documents */
5
+ var DocumentUploadType;
6
+ (function (DocumentUploadType) {
7
+ /** @description A legal document issued by the seller (exporter) to the buyer (importer) in an international transaction and serves as a contract and a proof of sale between the buyer and seller */
8
+ DocumentUploadType["CommercialInvoice"] = "commercial_invoice";
9
+ /** @description A certificate of origin */
10
+ DocumentUploadType["CertificateOfOrigin"] = "certificate_of_origin";
11
+ /** @description A USMCA commercial invoice certification of origin */
12
+ DocumentUploadType["UsmcaCommercialInvoiceCertificationOfOrigin"] = "usmca_commercial_invoice_certification_of_origin";
13
+ /** @description A USMCA Certification of origin */
14
+ DocumentUploadType["UsmcaCertificationOfOrigin"] = "usmca_certification_of_origin";
15
+ /** @description A pro forma invoice */
16
+ DocumentUploadType["ProFormaInvoice"] = "pro_forma_invoice";
17
+ /** @description Other document type */
18
+ DocumentUploadType["Other"] = "other";
19
+ /** @description An authorization form */
20
+ DocumentUploadType["AuthorizationForm"] = "authorization_form";
21
+ /** @description An export accompanying document */
22
+ DocumentUploadType["ExportAccompanyingDocument"] = "export_accompanying_document";
23
+ /** @description An export license */
24
+ DocumentUploadType["ExportLicense"] = "export_license";
25
+ /** @description An import permit */
26
+ DocumentUploadType["ImportPermit"] = "import_permit";
27
+ /** @description A one-time NAFTA certificate */
28
+ DocumentUploadType["OneTimeNafta"] = "one_time_nafta";
29
+ /** @description A power of attorney document */
30
+ DocumentUploadType["PowerOfAttorney"] = "power_of_attorney";
31
+ /** @description A packing list */
32
+ DocumentUploadType["PackingList"] = "packing_list";
33
+ /** @description A SED (Shipper's Export Declaration) document */
34
+ DocumentUploadType["SedDocument"] = "sed_document";
35
+ /** @description A shipper's letter of instruction */
36
+ DocumentUploadType["ShippersLetterOfInstruction"] = "shippers_letter_of_instruction";
37
+ /** @description A declaration document */
38
+ DocumentUploadType["Declaration"] = "declaration";
39
+ })(DocumentUploadType || (exports.DocumentUploadType = DocumentUploadType = {}));
40
+ //# sourceMappingURL=document-upload-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-upload-type.js","sourceRoot":"","sources":["../../../../src/models/documents/uploads/document-upload-type.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,IAAY,kBAiCX;AAjCD,WAAY,kBAAkB;IAC5B,sMAAsM;IACtM,8DAAwC,CAAA;IACxC,2CAA2C;IAC3C,mEAA6C,CAAA;IAC7C,sEAAsE;IACtE,sHAAgG,CAAA;IAChG,mDAAmD;IACnD,kFAA4D,CAAA;IAC5D,uCAAuC;IACvC,2DAAqC,CAAA;IACrC,uCAAuC;IACvC,qCAAe,CAAA;IACf,yCAAyC;IACzC,8DAAwC,CAAA;IACxC,mDAAmD;IACnD,iFAA2D,CAAA;IAC3D,qCAAqC;IACrC,sDAAgC,CAAA;IAChC,oCAAoC;IACpC,oDAA8B,CAAA;IAC9B,gDAAgD;IAChD,qDAA+B,CAAA;IAC/B,gDAAgD;IAChD,2DAAqC,CAAA;IACrC,kCAAkC;IAClC,kDAA4B,CAAA;IAC5B,iEAAiE;IACjE,kDAA4B,CAAA;IAC5B,qDAAqD;IACrD,oFAA8D,CAAA;IAC9D,0CAA0C;IAC1C,iDAA2B,CAAA;AAC7B,CAAC,EAjCW,kBAAkB,kCAAlB,kBAAkB,QAiC7B"}
@@ -0,0 +1,4 @@
1
+ export * from './document-upload-format';
2
+ export * from './document-upload-format-schema';
3
+ export * from './document-upload-type';
4
+ export * from './document-upload-type-schema';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./document-upload-format"), exports);
5
+ tslib_1.__exportStar(require("./document-upload-format-schema"), exports);
6
+ tslib_1.__exportStar(require("./document-upload-type"), exports);
7
+ tslib_1.__exportStar(require("./document-upload-type-schema"), exports);
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/documents/uploads/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,0EAAgD;AAChD,iEAAuC;AACvC,wEAA8C"}
@@ -33,7 +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';
37
36
  export * from './bill-to';
38
37
  export * from './labels/paperless-details';
39
38
  export * from './native-rating-details';
@@ -36,7 +36,6 @@ 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);
40
39
  tslib_1.__exportStar(require("./bill-to"), exports);
41
40
  tslib_1.__exportStar(require("./labels/paperless-details"), exports);
42
41
  tslib_1.__exportStar(require("./native-rating-details"), exports);
@@ -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,6DAAmC;AACnC,oDAA0B;AAC1B,qEAA2C;AAC3C,kEAAwC"}
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;AAC3C,kEAAwC"}
@@ -19,4 +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
+ export * from './upload-document-request';
@@ -22,5 +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
+ tslib_1.__exportStar(require("./upload-document-request"), exports);
26
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;AAChD,qEAA2C"}
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,oEAA0C"}
@@ -0,0 +1,21 @@
1
+ import { BaseRequest } from './base-request';
2
+ import { Identifier, DocumentUploadFormat, DocumentUploadType } from '../models';
3
+ /**
4
+ * A request to upload a document for a shipment.
5
+ */
6
+ export declare class UploadDocumentRequest extends BaseRequest {
7
+ /** @description The document id */
8
+ document_id: string;
9
+ /** @description The document upload type */
10
+ document_type: DocumentUploadType;
11
+ /** @description The document upload format */
12
+ document_format: DocumentUploadFormat;
13
+ /** @description The file name */
14
+ file_name: string;
15
+ /** @description The file URL */
16
+ file_url: string;
17
+ /** @description The carrier tracking number for this shipment */
18
+ tracking_number: string;
19
+ /** @description Non-tracking alternative ids associated with this shipment */
20
+ alternative_identifiers?: Identifier[];
21
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadDocumentRequest = void 0;
4
+ const base_request_1 = require("./base-request");
5
+ /**
6
+ * A request to upload a document for a shipment.
7
+ */
8
+ class UploadDocumentRequest extends base_request_1.BaseRequest {
9
+ /** @description The document id */
10
+ document_id;
11
+ /** @description The document upload type */
12
+ document_type;
13
+ /** @description The document upload format */
14
+ document_format;
15
+ /** @description The file name */
16
+ file_name;
17
+ /** @description The file URL */
18
+ file_url;
19
+ /** @description The carrier tracking number for this shipment */
20
+ tracking_number;
21
+ /** @description Non-tracking alternative ids associated with this shipment */
22
+ alternative_identifiers;
23
+ }
24
+ exports.UploadDocumentRequest = UploadDocumentRequest;
25
+ //# sourceMappingURL=upload-document-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-document-request.js","sourceRoot":"","sources":["../../src/requests/upload-document-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAG7C;;GAEG;AACH,MAAa,qBAAsB,SAAQ,0BAAW;IACpD,mCAAmC;IACnC,WAAW,CAAU;IACrB,4CAA4C;IAC5C,aAAa,CAAsB;IACnC,8CAA8C;IAC9C,eAAe,CAAwB;IACvC,iCAAiC;IACjC,SAAS,CAAU;IACnB,gCAAgC;IAChC,QAAQ,CAAU;IAClB,iEAAiE;IACjE,eAAe,CAAU;IACzB,8EAA8E;IAC9E,uBAAuB,CAAgB;CACxC;AAfD,sDAeC"}
@@ -35,7 +35,5 @@ 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
+ export * from './upload-document-response';
39
+ export * from './upload-document-response-schema';
@@ -38,8 +38,6 @@ 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
+ tslib_1.__exportStar(require("./upload-document-response"), exports);
42
+ tslib_1.__exportStar(require("./upload-document-response-schema"), exports);
45
43
  //# 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;AACjD,mEAAyC;AACzC,0EAAgD;AAChD,6EAAmD;AACnD,sEAA4C"}
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,qEAA2C;AAC3C,4EAAkD"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const UploadDocumentResponseSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadDocumentResponseSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const base_response_schema_1 = require("./base-response-schema");
7
+ exports.UploadDocumentResponseSchema = base_response_schema_1.BaseResponseSchema.keys({
8
+ carrier_document_id: joi_1.default.string().optional().empty(''),
9
+ });
10
+ //# sourceMappingURL=upload-document-response-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-document-response-schema.js","sourceRoot":"","sources":["../../src/responses/upload-document-response-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,iEAA4D;AAE/C,QAAA,4BAA4B,GAAG,yCAAkB,CAAC,IAAI,CAAC;IAClE,mBAAmB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACvD,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { BaseResponse } from './base-response';
2
+ /**
3
+ * Response for uploading a document to a carrier.
4
+ */
5
+ export declare class UploadDocumentResponse extends BaseResponse {
6
+ /** @description The carrier document ID */
7
+ carrier_document_id?: string;
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadDocumentResponse = void 0;
4
+ const base_response_1 = require("./base-response");
5
+ /**
6
+ * Response for uploading a document to a carrier.
7
+ */
8
+ class UploadDocumentResponse extends base_response_1.BaseResponse {
9
+ /** @description The carrier document ID */
10
+ carrier_document_id;
11
+ }
12
+ exports.UploadDocumentResponse = UploadDocumentResponse;
13
+ //# sourceMappingURL=upload-document-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-document-response.js","sourceRoot":"","sources":["../../src/responses/upload-document-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAE/C;;GAEG;AACH,MAAa,sBAAuB,SAAQ,4BAAY;IACtD,2CAA2C;IAC3C,mBAAmB,CAAU;CAC9B;AAHD,wDAGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.25.0",
3
+ "version": "4.26.1",
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",