@chrt-inc/typescript-sdk 0.0.183 → 0.0.186-b
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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +6 -5
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +12 -39
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupCreateRequest.d.ts → CreateLineItemGroupReq.d.ts} +7 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/PreviewLineItemGroupReq.d.ts +27 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +6 -6
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +19 -19
- package/dist/cjs/api/resources/dev/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/dev/client/Client.js +47 -47
- package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +1 -1
- package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +1 -1
- package/dist/cjs/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.ts +5 -5
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +2 -2
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +1 -1
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/client/Client.js +3 -3
- package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.js +13 -13
- package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/index.js +3 -3
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +10 -10
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +4 -4
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +2 -2
- package/dist/cjs/api/resources/payments/client/Client.d.ts +41 -0
- package/dist/cjs/api/resources/payments/client/Client.js +174 -0
- package/dist/cjs/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.ts +12 -0
- package/dist/cjs/api/resources/payments/client/requests/CreateDirectChargeReq.d.ts +17 -0
- package/dist/cjs/api/resources/payments/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +11 -11
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +1 -1
- package/dist/cjs/api/types/Cargo1.d.ts +5 -5
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +5 -5
- package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +6 -6
- package/dist/{esm/api/types/BaseModel.d.mts → cjs/api/types/CreateConnectAccountLinkRes.d.ts} +2 -1
- package/dist/cjs/api/types/CreateConnectAccountRes.d.ts +6 -0
- package/dist/cjs/api/types/CreateDirectChargeRes.d.ts +8 -0
- package/dist/cjs/api/types/CreateDirectChargeRes.js +5 -0
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +16 -16
- package/dist/cjs/api/types/Driver1.d.ts +10 -10
- package/dist/cjs/api/types/Expense1.d.ts +2 -2
- package/dist/cjs/api/types/LineItem1.d.ts +1 -1
- package/dist/cjs/api/types/LocationFeature.d.ts +17 -0
- package/dist/cjs/api/types/LocationFeature.js +5 -0
- package/dist/cjs/api/types/{FeatureInputGeometry.d.ts → LocationFeatureInputGeometry.d.ts} +2 -2
- package/dist/cjs/api/types/LocationFeatureInputGeometry.js +5 -0
- package/dist/cjs/api/types/{FeatureOutputGeometry.d.ts → LocationFeatureOutputGeometry.d.ts} +2 -2
- package/dist/cjs/api/types/LocationFeatureOutputGeometry.js +5 -0
- package/dist/cjs/api/types/LocationProperties.d.ts +11 -0
- package/dist/cjs/api/types/LocationProperties.js +5 -0
- package/dist/cjs/api/types/Milestone1.d.ts +10 -10
- package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/Order1.d.ts +8 -8
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +3 -3
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPublicData2.d.ts +1 -1
- package/dist/cjs/api/types/PayablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +14 -14
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +14 -14
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +6 -6
- package/dist/cjs/api/types/Task1.d.ts +12 -12
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +7 -7
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +4 -4
- package/dist/cjs/api/types/TaskGroup1.d.ts +7 -7
- package/dist/cjs/api/types/UserPublicData6.d.ts +4 -3
- package/dist/cjs/api/types/index.d.ts +7 -4
- package/dist/cjs/api/types/index.js +7 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +6 -5
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +12 -39
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupPreviewRequest.d.mts → CreateLineItemGroupReq.d.mts} +7 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/PreviewLineItemGroupReq.d.mts +27 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +6 -6
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +19 -19
- package/dist/esm/api/resources/dev/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/dev/client/Client.mjs +47 -47
- package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +1 -1
- package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +1 -1
- package/dist/esm/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.mts +5 -5
- package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
- package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +2 -2
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +1 -1
- package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts +1 -1
- package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/notifications/client/Client.mjs +3 -3
- package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/Client.mjs +11 -11
- package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/index.mjs +2 -2
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +10 -10
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +4 -4
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts +3 -3
- package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +2 -2
- package/dist/esm/api/resources/payments/client/Client.d.mts +41 -0
- package/dist/esm/api/resources/payments/client/Client.mjs +174 -0
- package/dist/esm/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.mts +12 -0
- package/dist/esm/api/resources/payments/client/requests/CreateDirectChargeReq.d.mts +17 -0
- package/dist/esm/api/resources/payments/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +11 -11
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +1 -1
- package/dist/esm/api/types/Cargo1.d.mts +5 -5
- package/dist/esm/api/types/CargoClientCreate1.d.mts +5 -5
- package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +6 -6
- package/dist/{cjs/api/types/BaseModel.d.ts → esm/api/types/CreateConnectAccountLinkRes.d.mts} +2 -1
- package/dist/esm/api/types/CreateConnectAccountRes.d.mts +6 -0
- package/dist/esm/api/types/CreateDirectChargeRes.d.mts +8 -0
- package/dist/esm/api/types/CreateDirectChargeRes.mjs +4 -0
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +16 -16
- package/dist/esm/api/types/Driver1.d.mts +10 -10
- package/dist/esm/api/types/Expense1.d.mts +2 -2
- package/dist/esm/api/types/LineItem1.d.mts +1 -1
- package/dist/esm/api/types/LocationFeature.d.mts +17 -0
- package/dist/esm/api/types/LocationFeature.mjs +4 -0
- package/dist/esm/api/types/{FeatureInputGeometry.d.mts → LocationFeatureInputGeometry.d.mts} +2 -2
- package/dist/esm/api/types/LocationFeatureInputGeometry.mjs +4 -0
- package/dist/esm/api/types/{FeatureOutputGeometry.d.mts → LocationFeatureOutputGeometry.d.mts} +2 -2
- package/dist/esm/api/types/LocationFeatureOutputGeometry.mjs +4 -0
- package/dist/esm/api/types/LocationProperties.d.mts +11 -0
- package/dist/esm/api/types/LocationProperties.mjs +4 -0
- package/dist/esm/api/types/Milestone1.d.mts +10 -10
- package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/Order1.d.mts +8 -8
- package/dist/esm/api/types/OrgMemberDetails.d.mts +3 -3
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPublicData2.d.mts +1 -1
- package/dist/esm/api/types/PayablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +14 -14
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +14 -14
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/StripeConnectInvoice1.d.mts +6 -6
- package/dist/esm/api/types/Task1.d.mts +12 -12
- package/dist/esm/api/types/TaskClientCreate1.d.mts +7 -7
- package/dist/esm/api/types/TaskCreateBundle.d.mts +4 -4
- package/dist/esm/api/types/TaskGroup1.d.mts +7 -7
- package/dist/esm/api/types/UserPublicData6.d.mts +4 -3
- package/dist/esm/api/types/index.d.mts +7 -4
- package/dist/esm/api/types/index.mjs +7 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +217 -30
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.ts +0 -18
- package/dist/cjs/api/types/Feature.d.ts +0 -18
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.mts +0 -18
- package/dist/esm/api/types/Feature.d.mts +0 -18
- /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupCreateRequest.js → CreateLineItemGroupReq.js} +0 -0
- /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupPreviewRequest.js → PreviewLineItemGroupReq.js} +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/index.js +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/CourierNotificationPreferencesClientCreate1.js +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courierPreferences → courier}/index.js +0 -0
- /package/dist/cjs/api/{types/BaseModel.js → resources/payments/client/requests/CreateConnectAccountLinkReq.js} +0 -0
- /package/dist/cjs/api/{types/Feature.js → resources/payments/client/requests/CreateDirectChargeReq.js} +0 -0
- /package/dist/cjs/api/types/{FeatureInputGeometry.js → CreateConnectAccountLinkRes.js} +0 -0
- /package/dist/cjs/api/types/{FeatureOutputGeometry.js → CreateConnectAccountRes.js} +0 -0
- /package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupCreateRequest.mjs → CreateLineItemGroupReq.mjs} +0 -0
- /package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/{CourierPayDriverLineItemGroupPreviewRequest.mjs → PreviewLineItemGroupReq.mjs} +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/CourierNotificationPreferencesClientCreate1.mjs +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/index.d.mts +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courierPreferences → courier}/index.mjs +0 -0
- /package/dist/esm/api/{types/BaseModel.mjs → resources/payments/client/requests/CreateConnectAccountLinkReq.mjs} +0 -0
- /package/dist/esm/api/{types/Feature.mjs → resources/payments/client/requests/CreateDirectChargeReq.mjs} +0 -0
- /package/dist/esm/api/types/{FeatureInputGeometry.mjs → CreateConnectAccountLinkRes.mjs} +0 -0
- /package/dist/esm/api/types/{FeatureOutputGeometry.mjs → CreateConnectAccountRes.mjs} +0 -0
|
@@ -167,21 +167,21 @@ export class Dev {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* Development template endpoint that returns the authenticated user's ID for testing.
|
|
171
171
|
*
|
|
172
172
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
173
|
*
|
|
174
174
|
* @example
|
|
175
|
-
* await client.dev.
|
|
175
|
+
* await client.dev.getTemplate()
|
|
176
176
|
*/
|
|
177
|
-
|
|
178
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
177
|
+
getTemplate(requestOptions) {
|
|
178
|
+
return core.HttpResponsePromise.fromPromise(this.__getTemplate(requestOptions));
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
__getTemplate(requestOptions) {
|
|
181
181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
182
182
|
var _a, _b, _c, _d;
|
|
183
183
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
184
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/
|
|
184
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/template"),
|
|
185
185
|
method: "GET",
|
|
186
186
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
187
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -206,7 +206,7 @@ export class Dev {
|
|
|
206
206
|
rawResponse: _response.rawResponse,
|
|
207
207
|
});
|
|
208
208
|
case "timeout":
|
|
209
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/
|
|
209
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/template.");
|
|
210
210
|
case "unknown":
|
|
211
211
|
throw new errors.ChrtError({
|
|
212
212
|
message: _response.error.errorMessage,
|
|
@@ -216,23 +216,33 @@ export class Dev {
|
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
/**
|
|
219
|
-
* Development template endpoint that
|
|
219
|
+
* Development template endpoint that demonstrates transaction handling and request mirroring.
|
|
220
220
|
*
|
|
221
|
+
* @param {Chrt.TemplateReq} request
|
|
221
222
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
222
223
|
*
|
|
224
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
225
|
+
*
|
|
223
226
|
* @example
|
|
224
|
-
* await client.dev.
|
|
227
|
+
* await client.dev.createTemplate({
|
|
228
|
+
* message: "message",
|
|
229
|
+
* number: 1,
|
|
230
|
+
* timestamp: "2024-01-15T09:30:00Z"
|
|
231
|
+
* })
|
|
225
232
|
*/
|
|
226
|
-
|
|
227
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
233
|
+
createTemplate(request, requestOptions) {
|
|
234
|
+
return core.HttpResponsePromise.fromPromise(this.__createTemplate(request, requestOptions));
|
|
228
235
|
}
|
|
229
|
-
|
|
236
|
+
__createTemplate(request, requestOptions) {
|
|
230
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
231
238
|
var _a, _b, _c, _d;
|
|
232
239
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
233
240
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/template"),
|
|
234
|
-
method: "
|
|
241
|
+
method: "POST",
|
|
235
242
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
243
|
+
contentType: "application/json",
|
|
244
|
+
requestType: "json",
|
|
245
|
+
body: request,
|
|
236
246
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
237
247
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
238
248
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -241,11 +251,16 @@ export class Dev {
|
|
|
241
251
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
242
252
|
}
|
|
243
253
|
if (_response.error.reason === "status-code") {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
254
|
+
switch (_response.error.statusCode) {
|
|
255
|
+
case 422:
|
|
256
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
257
|
+
default:
|
|
258
|
+
throw new errors.ChrtError({
|
|
259
|
+
statusCode: _response.error.statusCode,
|
|
260
|
+
body: _response.error.body,
|
|
261
|
+
rawResponse: _response.rawResponse,
|
|
262
|
+
});
|
|
263
|
+
}
|
|
249
264
|
}
|
|
250
265
|
switch (_response.error.reason) {
|
|
251
266
|
case "non-json":
|
|
@@ -255,7 +270,7 @@ export class Dev {
|
|
|
255
270
|
rawResponse: _response.rawResponse,
|
|
256
271
|
});
|
|
257
272
|
case "timeout":
|
|
258
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
273
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/template.");
|
|
259
274
|
case "unknown":
|
|
260
275
|
throw new errors.ChrtError({
|
|
261
276
|
message: _response.error.errorMessage,
|
|
@@ -265,33 +280,23 @@ export class Dev {
|
|
|
265
280
|
});
|
|
266
281
|
}
|
|
267
282
|
/**
|
|
268
|
-
*
|
|
283
|
+
* Returns the current GitHub PR number and commit hash for the deployment.
|
|
269
284
|
*
|
|
270
|
-
* @param {Chrt.TemplateReq} request
|
|
271
285
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
272
286
|
*
|
|
273
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
274
|
-
*
|
|
275
287
|
* @example
|
|
276
|
-
* await client.dev.
|
|
277
|
-
* message: "message",
|
|
278
|
-
* number: 1,
|
|
279
|
-
* timestamp: "2024-01-15T09:30:00Z"
|
|
280
|
-
* })
|
|
288
|
+
* await client.dev.getGitInfo()
|
|
281
289
|
*/
|
|
282
|
-
|
|
283
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
290
|
+
getGitInfo(requestOptions) {
|
|
291
|
+
return core.HttpResponsePromise.fromPromise(this.__getGitInfo(requestOptions));
|
|
284
292
|
}
|
|
285
|
-
|
|
293
|
+
__getGitInfo(requestOptions) {
|
|
286
294
|
return __awaiter(this, void 0, void 0, function* () {
|
|
287
295
|
var _a, _b, _c, _d;
|
|
288
296
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
289
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/
|
|
290
|
-
method: "
|
|
297
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/git_info"),
|
|
298
|
+
method: "GET",
|
|
291
299
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
292
|
-
contentType: "application/json",
|
|
293
|
-
requestType: "json",
|
|
294
|
-
body: request,
|
|
295
300
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
296
301
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
297
302
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -300,16 +305,11 @@ export class Dev {
|
|
|
300
305
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
301
306
|
}
|
|
302
307
|
if (_response.error.reason === "status-code") {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
statusCode: _response.error.statusCode,
|
|
309
|
-
body: _response.error.body,
|
|
310
|
-
rawResponse: _response.rawResponse,
|
|
311
|
-
});
|
|
312
|
-
}
|
|
308
|
+
throw new errors.ChrtError({
|
|
309
|
+
statusCode: _response.error.statusCode,
|
|
310
|
+
body: _response.error.body,
|
|
311
|
+
rawResponse: _response.rawResponse,
|
|
312
|
+
});
|
|
313
313
|
}
|
|
314
314
|
switch (_response.error.reason) {
|
|
315
315
|
case "non-json":
|
|
@@ -319,7 +319,7 @@ export class Dev {
|
|
|
319
319
|
rawResponse: _response.rawResponse,
|
|
320
320
|
});
|
|
321
321
|
case "timeout":
|
|
322
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
322
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/git_info.");
|
|
323
323
|
case "unknown":
|
|
324
324
|
throw new errors.ChrtError({
|
|
325
325
|
message: _response.error.errorMessage,
|
|
@@ -10,9 +10,9 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
10
10
|
*/
|
|
11
11
|
export interface UpdateDriverDetailsReq {
|
|
12
12
|
driver_object_id: string;
|
|
13
|
-
email_address_primary?: string;
|
|
14
|
-
email_address_secondary?: string;
|
|
15
|
-
phone_number_primary?: string;
|
|
16
|
-
phone_number_secondary?: string;
|
|
17
|
-
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
13
|
+
email_address_primary?: string | null;
|
|
14
|
+
email_address_secondary?: string | null;
|
|
15
|
+
phone_number_primary?: string | null;
|
|
16
|
+
phone_number_secondary?: string | null;
|
|
17
|
+
vehicle_types?: Chrt.VehicleTypeEnum[] | null;
|
|
18
18
|
}
|
|
@@ -40,7 +40,7 @@ export class Images {
|
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
var _a, _b, _c, _d;
|
|
42
42
|
const _queryParams = {};
|
|
43
|
-
if (request.comments
|
|
43
|
+
if (request.comments !== undefined) {
|
|
44
44
|
_queryParams["comments"] = request.comments;
|
|
45
45
|
}
|
|
46
46
|
const _request = yield core.newFormData();
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../core/index.mjs";
|
|
6
6
|
import { Shipper } from "../resources/shipper/client/Client.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { Courier } from "../resources/courier/client/Client.mjs";
|
|
8
8
|
export declare namespace Notifications {
|
|
9
9
|
interface Options {
|
|
10
10
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -19,8 +19,8 @@ export declare namespace Notifications {
|
|
|
19
19
|
export declare class Notifications {
|
|
20
20
|
protected readonly _options: Notifications.Options;
|
|
21
21
|
protected _shipper: Shipper | undefined;
|
|
22
|
-
protected
|
|
22
|
+
protected _courier: Courier | undefined;
|
|
23
23
|
constructor(_options?: Notifications.Options);
|
|
24
24
|
get shipper(): Shipper;
|
|
25
|
-
get
|
|
25
|
+
get courier(): Courier;
|
|
26
26
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import { Shipper } from "../resources/shipper/client/Client.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { Courier } from "../resources/courier/client/Client.mjs";
|
|
6
6
|
export class Notifications {
|
|
7
7
|
constructor(_options = {}) {
|
|
8
8
|
this._options = _options;
|
|
@@ -11,8 +11,8 @@ export class Notifications {
|
|
|
11
11
|
var _a;
|
|
12
12
|
return ((_a = this._shipper) !== null && _a !== void 0 ? _a : (this._shipper = new Shipper(this._options)));
|
|
13
13
|
}
|
|
14
|
-
get
|
|
14
|
+
get courier() {
|
|
15
15
|
var _a;
|
|
16
|
-
return ((_a = this.
|
|
16
|
+
return ((_a = this._courier) !== null && _a !== void 0 ? _a : (this._courier = new Courier(this._options)));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../../../core/index.mjs";
|
|
6
6
|
import * as Chrt from "../../../../../index.mjs";
|
|
7
|
-
export declare namespace
|
|
7
|
+
export declare namespace Courier {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
@@ -25,33 +25,33 @@ export declare namespace CourierPreferences {
|
|
|
25
25
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
export declare class
|
|
29
|
-
protected readonly _options:
|
|
30
|
-
constructor(_options?:
|
|
28
|
+
export declare class Courier {
|
|
29
|
+
protected readonly _options: Courier.Options;
|
|
30
|
+
constructor(_options?: Courier.Options);
|
|
31
31
|
/**
|
|
32
32
|
* Retrieves notification preferences for the authenticated courier organization.
|
|
33
33
|
*
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.notifications.
|
|
37
|
+
* await client.notifications.courier.getPreferences()
|
|
38
38
|
*/
|
|
39
|
-
|
|
40
|
-
private
|
|
39
|
+
getPreferences(requestOptions?: Courier.RequestOptions): core.HttpResponsePromise<Chrt.CourierNotificationPreferences1>;
|
|
40
|
+
private __getPreferences;
|
|
41
41
|
/**
|
|
42
42
|
* Creates or updates notification preferences for the authenticated courier organization.
|
|
43
43
|
*
|
|
44
44
|
* @param {Chrt.notifications.CourierNotificationPreferencesClientCreate1} request
|
|
45
|
-
* @param {
|
|
45
|
+
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
|
-
* await client.notifications.
|
|
50
|
+
* await client.notifications.courier.upsertPreferences({
|
|
51
51
|
* schema_version: 1
|
|
52
52
|
* })
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
private
|
|
54
|
+
upsertPreferences(request: Chrt.notifications.CourierNotificationPreferencesClientCreate1, requestOptions?: Courier.RequestOptions): core.HttpResponsePromise<string>;
|
|
55
|
+
private __upsertPreferences;
|
|
56
56
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
57
57
|
}
|
|
@@ -15,22 +15,22 @@ import * as core from "../../../../../../core/index.mjs";
|
|
|
15
15
|
import * as Chrt from "../../../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
18
|
-
export class
|
|
18
|
+
export class Courier {
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Retrieves notification preferences for the authenticated courier organization.
|
|
24
24
|
*
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
-
* await client.notifications.
|
|
28
|
+
* await client.notifications.courier.getPreferences()
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
30
|
+
getPreferences(requestOptions) {
|
|
31
|
+
return core.HttpResponsePromise.fromPromise(this.__getPreferences(requestOptions));
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
__getPreferences(requestOptions) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
36
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -72,19 +72,19 @@ export class CourierPreferences {
|
|
|
72
72
|
* Creates or updates notification preferences for the authenticated courier organization.
|
|
73
73
|
*
|
|
74
74
|
* @param {Chrt.notifications.CourierNotificationPreferencesClientCreate1} request
|
|
75
|
-
* @param {
|
|
75
|
+
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
|
-
* await client.notifications.
|
|
80
|
+
* await client.notifications.courier.upsertPreferences({
|
|
81
81
|
* schema_version: 1
|
|
82
82
|
* })
|
|
83
83
|
*/
|
|
84
|
-
|
|
85
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
84
|
+
upsertPreferences(request, requestOptions) {
|
|
85
|
+
return core.HttpResponsePromise.fromPromise(this.__upsertPreferences(request, requestOptions));
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
__upsertPreferences(request, requestOptions) {
|
|
88
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
89
|
var _a, _b, _c, _d;
|
|
90
90
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * as shipper from "./shipper/index.mjs";
|
|
2
|
-
export * as
|
|
2
|
+
export * as courier from "./courier/index.mjs";
|
|
3
3
|
export * from "./shipper/client/requests/index.mjs";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./courier/client/requests/index.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * as shipper from "./shipper/index.mjs";
|
|
2
|
-
export * as
|
|
2
|
+
export * as courier from "./courier/index.mjs";
|
|
3
3
|
export * from "./shipper/client/requests/index.mjs";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./courier/client/requests/index.mjs";
|
|
@@ -11,15 +11,15 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface OffChrtShipperOrgConnectionInfoClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
|
-
industry?: string;
|
|
15
|
-
street_address?: Chrt.
|
|
16
|
-
contact_first_name?: string;
|
|
17
|
-
contact_last_name?: string;
|
|
18
|
-
phone_number_primary?: string;
|
|
19
|
-
phone_number_secondary?: string;
|
|
14
|
+
industry?: string | null;
|
|
15
|
+
street_address?: Chrt.LocationFeature | null;
|
|
16
|
+
contact_first_name?: string | null;
|
|
17
|
+
contact_last_name?: string | null;
|
|
18
|
+
phone_number_primary?: string | null;
|
|
19
|
+
phone_number_secondary?: string | null;
|
|
20
20
|
email_address_primary: string;
|
|
21
|
-
email_address_secondary?: string;
|
|
22
|
-
job_title?: string;
|
|
23
|
-
notes?: string;
|
|
24
|
-
company_name?: string;
|
|
21
|
+
email_address_secondary?: string | null;
|
|
22
|
+
job_title?: string | null;
|
|
23
|
+
notes?: string | null;
|
|
24
|
+
company_name?: string | null;
|
|
25
25
|
}
|
|
@@ -7,14 +7,14 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface OffChrtShipperOrgConnectionInfoClientUpdate1 {
|
|
10
|
-
industry?: string;
|
|
11
|
-
street_address?: Chrt.
|
|
12
|
-
contact_first_name?: string;
|
|
13
|
-
contact_last_name?: string;
|
|
14
|
-
phone_number_primary?: string;
|
|
15
|
-
phone_number_secondary?: string;
|
|
16
|
-
email_address_primary?: string;
|
|
17
|
-
email_address_secondary?: string;
|
|
18
|
-
job_title?: string;
|
|
19
|
-
notes?: string;
|
|
10
|
+
industry?: string | null;
|
|
11
|
+
street_address?: Chrt.LocationFeature | null;
|
|
12
|
+
contact_first_name?: string | null;
|
|
13
|
+
contact_last_name?: string | null;
|
|
14
|
+
phone_number_primary?: string | null;
|
|
15
|
+
phone_number_secondary?: string | null;
|
|
16
|
+
email_address_primary?: string | null;
|
|
17
|
+
email_address_secondary?: string | null;
|
|
18
|
+
job_title?: string | null;
|
|
19
|
+
notes?: string | null;
|
|
20
20
|
}
|
|
@@ -35,11 +35,11 @@ export interface CreateOrderReq {
|
|
|
35
35
|
order_dispatch_type: Chrt.OrderDispatchTypeEnum;
|
|
36
36
|
transport_type: Chrt.TransportTypeEnum;
|
|
37
37
|
/** Optionally used when a courier places a DTC order or chrt places a DTC/FF order */
|
|
38
|
-
shipper_org_id?: string;
|
|
38
|
+
shipper_org_id?: string | null;
|
|
39
39
|
/** Must be a string starting with `user_` */
|
|
40
|
-
shipper_user_id?: string;
|
|
40
|
+
shipper_user_id?: string | null;
|
|
41
41
|
/** Used for off-platform shipper orders. Mutually exclusive with shipper_org_id. */
|
|
42
|
-
off_chrt_shipper_org_connection_info_id?: string;
|
|
42
|
+
off_chrt_shipper_org_connection_info_id?: string | null;
|
|
43
43
|
/** For DTC orders placed by shippers or chrt, this field is required. */
|
|
44
|
-
courier_org_id?: string;
|
|
44
|
+
courier_org_id?: string | null;
|
|
45
45
|
}
|
|
@@ -11,14 +11,14 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface CourierOrgConnectionInfoClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
|
-
industry?: string;
|
|
15
|
-
street_address?: Chrt.
|
|
16
|
-
contact_first_name?: string;
|
|
17
|
-
contact_last_name?: string;
|
|
18
|
-
phone_number_primary?: string;
|
|
19
|
-
phone_number_secondary?: string;
|
|
14
|
+
industry?: string | null;
|
|
15
|
+
street_address?: Chrt.LocationFeature | null;
|
|
16
|
+
contact_first_name?: string | null;
|
|
17
|
+
contact_last_name?: string | null;
|
|
18
|
+
phone_number_primary?: string | null;
|
|
19
|
+
phone_number_secondary?: string | null;
|
|
20
20
|
email_address_primary: string;
|
|
21
|
-
email_address_secondary?: string;
|
|
22
|
-
job_title?: string;
|
|
23
|
-
notes?: string;
|
|
21
|
+
email_address_secondary?: string | null;
|
|
22
|
+
job_title?: string | null;
|
|
23
|
+
notes?: string | null;
|
|
24
24
|
}
|
|
@@ -7,14 +7,14 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface CourierOrgConnectionInfoClientUpdate1 {
|
|
10
|
-
industry?: string;
|
|
11
|
-
street_address?: Chrt.
|
|
12
|
-
contact_first_name?: string;
|
|
13
|
-
contact_last_name?: string;
|
|
14
|
-
phone_number_primary?: string;
|
|
15
|
-
phone_number_secondary?: string;
|
|
16
|
-
email_address_primary?: string;
|
|
17
|
-
email_address_secondary?: string;
|
|
18
|
-
job_title?: string;
|
|
19
|
-
notes?: string;
|
|
10
|
+
industry?: string | null;
|
|
11
|
+
street_address?: Chrt.LocationFeature | null;
|
|
12
|
+
contact_first_name?: string | null;
|
|
13
|
+
contact_last_name?: string | null;
|
|
14
|
+
phone_number_primary?: string | null;
|
|
15
|
+
phone_number_secondary?: string | null;
|
|
16
|
+
email_address_primary?: string | null;
|
|
17
|
+
email_address_secondary?: string | null;
|
|
18
|
+
job_title?: string | null;
|
|
19
|
+
notes?: string | null;
|
|
20
20
|
}
|
|
@@ -11,14 +11,14 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface ShipperOrgConnectionInfoClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
|
-
industry?: string;
|
|
15
|
-
street_address?: Chrt.
|
|
16
|
-
contact_first_name?: string;
|
|
17
|
-
contact_last_name?: string;
|
|
18
|
-
phone_number_primary?: string;
|
|
19
|
-
phone_number_secondary?: string;
|
|
14
|
+
industry?: string | null;
|
|
15
|
+
street_address?: Chrt.LocationFeature | null;
|
|
16
|
+
contact_first_name?: string | null;
|
|
17
|
+
contact_last_name?: string | null;
|
|
18
|
+
phone_number_primary?: string | null;
|
|
19
|
+
phone_number_secondary?: string | null;
|
|
20
20
|
email_address_primary: string;
|
|
21
|
-
email_address_secondary?: string;
|
|
22
|
-
job_title?: string;
|
|
23
|
-
notes?: string;
|
|
21
|
+
email_address_secondary?: string | null;
|
|
22
|
+
job_title?: string | null;
|
|
23
|
+
notes?: string | null;
|
|
24
24
|
}
|
|
@@ -7,14 +7,14 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface ShipperOrgConnectionInfoClientUpdate1 {
|
|
10
|
-
industry?: string;
|
|
11
|
-
street_address?: Chrt.
|
|
12
|
-
contact_first_name?: string;
|
|
13
|
-
contact_last_name?: string;
|
|
14
|
-
phone_number_primary?: string;
|
|
15
|
-
phone_number_secondary?: string;
|
|
16
|
-
email_address_primary?: string;
|
|
17
|
-
email_address_secondary?: string;
|
|
18
|
-
job_title?: string;
|
|
19
|
-
notes?: string;
|
|
10
|
+
industry?: string | null;
|
|
11
|
+
street_address?: Chrt.LocationFeature | null;
|
|
12
|
+
contact_first_name?: string | null;
|
|
13
|
+
contact_last_name?: string | null;
|
|
14
|
+
phone_number_primary?: string | null;
|
|
15
|
+
phone_number_secondary?: string | null;
|
|
16
|
+
email_address_primary?: string | null;
|
|
17
|
+
email_address_secondary?: string | null;
|
|
18
|
+
job_title?: string | null;
|
|
19
|
+
notes?: string | null;
|
|
20
20
|
}
|
package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface CourierOrgProfileClientUpdate3 {
|
|
9
|
-
description?: string;
|
|
10
|
-
email_address_primary?: string;
|
|
11
|
-
phone_number_primary?: string;
|
|
9
|
+
description?: string | null;
|
|
10
|
+
email_address_primary?: string | null;
|
|
11
|
+
phone_number_primary?: string | null;
|
|
12
12
|
}
|