@chrt-inc/typescript-sdk 1.254.0 → 1.259.2
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/README.md +13 -2
- package/dist/cjs/Client.d.ts +4 -2
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/connections/client/Client.js +10 -6
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +5 -3
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.js +20 -12
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.js +5 -3
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.js +5 -3
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +20 -12
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +30 -18
- package/dist/cjs/api/resources/dev/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/dev/client/Client.js +30 -18
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/drivers/client/Client.js +50 -30
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +10 -6
- package/dist/cjs/api/resources/milestones/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/milestones/client/Client.js +10 -6
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +5 -3
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +16 -10
- 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 +1 -1
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +10 -6
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +10 -6
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.js +25 -15
- package/dist/cjs/api/resources/orders/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orders/client/Client.js +25 -15
- package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orders/resources/full/client/Client.js +15 -9
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +15 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +15 -9
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +25 -15
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orgs/client/Client.js +40 -24
- package/dist/cjs/api/resources/payments/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/payments/client/Client.js +25 -15
- package/dist/cjs/api/resources/root/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/root/client/Client.js +25 -15
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +45 -27
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +25 -15
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.js +5 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +5 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.js +5 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +15 -9
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +35 -21
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +25 -15
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/taskGroups/client/Client.js +30 -18
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +10 -6
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +5 -3
- package/dist/cjs/api/resources/tracking/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +5 -4
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +5 -4
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +37 -28
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesGetRequest.d.ts +3 -4
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +5 -3
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +14 -2
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +96 -34
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +5 -4
- package/dist/cjs/api/resources/users/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/users/client/Client.js +5 -3
- package/dist/cjs/api/resources/utils/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/utils/client/Client.js +5 -4
- package/dist/cjs/api/resources/utils/client/requests/UtilsGetTimezoneRequest.d.ts +2 -6
- package/dist/cjs/api/types/Session1.d.ts +14 -0
- package/dist/cjs/api/types/Session1.js +5 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +4 -0
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/core/auth/AuthRequest.js +2 -0
- package/dist/cjs/core/auth/index.d.ts +2 -0
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.js +2 -2
- package/dist/cjs/core/fetcher/index.d.ts +5 -5
- package/dist/cjs/core/fetcher/index.js +5 -5
- package/dist/cjs/core/fetcher/requestWithRetries.js +44 -8
- package/dist/cjs/core/file/exports.d.ts +1 -0
- package/dist/cjs/core/file/exports.js +2 -0
- package/dist/cjs/core/file/file.d.ts +5 -0
- package/dist/cjs/core/file/file.js +203 -0
- package/dist/cjs/core/file/index.d.ts +2 -0
- package/dist/cjs/core/file/index.js +18 -0
- package/dist/cjs/core/file/types.d.ts +66 -0
- package/dist/cjs/core/file/types.js +2 -0
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/index.d.ts +1 -1
- package/dist/cjs/core/index.js +2 -2
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +4 -2
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/connections/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/connections/client/Client.mjs +10 -6
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +5 -3
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.mjs +20 -12
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.mjs +5 -3
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.mjs +5 -3
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +20 -12
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +30 -18
- package/dist/esm/api/resources/dev/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/dev/client/Client.mjs +30 -18
- package/dist/esm/api/resources/drivers/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/drivers/client/Client.mjs +50 -30
- package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +10 -6
- package/dist/esm/api/resources/milestones/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/milestones/client/Client.mjs +10 -6
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +5 -3
- package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +16 -10
- 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 +1 -1
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +10 -6
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +10 -6
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.mjs +25 -15
- package/dist/esm/api/resources/orders/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orders/client/Client.mjs +25 -15
- package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +15 -9
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +15 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +15 -9
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +25 -15
- package/dist/esm/api/resources/orgs/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orgs/client/Client.mjs +40 -24
- package/dist/esm/api/resources/payments/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/payments/client/Client.mjs +25 -15
- package/dist/esm/api/resources/root/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/root/client/Client.mjs +25 -15
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +45 -27
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +25 -15
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.mjs +5 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +5 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.mjs +5 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +15 -9
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +35 -21
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +25 -15
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +30 -18
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +10 -6
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +5 -3
- package/dist/esm/api/resources/tracking/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +5 -4
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +5 -4
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +37 -28
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesGetRequest.d.mts +3 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +5 -3
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +14 -2
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +96 -34
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +5 -4
- package/dist/esm/api/resources/users/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/users/client/Client.mjs +5 -3
- package/dist/esm/api/resources/utils/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/utils/client/Client.mjs +5 -4
- package/dist/esm/api/resources/utils/client/requests/UtilsGetTimezoneRequest.d.mts +2 -6
- package/dist/esm/api/types/Session1.d.mts +14 -0
- package/dist/esm/api/types/Session1.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +4 -0
- package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
- package/dist/esm/core/auth/AuthRequest.mjs +1 -0
- package/dist/esm/core/auth/index.d.mts +2 -0
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.mjs +2 -2
- package/dist/esm/core/fetcher/index.d.mts +5 -5
- package/dist/esm/core/fetcher/index.mjs +2 -2
- package/dist/esm/core/fetcher/requestWithRetries.mjs +44 -8
- package/dist/esm/core/file/exports.d.mts +1 -0
- package/dist/esm/core/file/exports.mjs +1 -0
- package/dist/esm/core/file/file.d.mts +5 -0
- package/dist/esm/core/file/file.mjs +167 -0
- package/dist/esm/core/file/index.d.mts +2 -0
- package/dist/esm/core/file/index.mjs +2 -0
- package/dist/esm/core/file/types.d.mts +66 -0
- package/dist/esm/core/file/types.mjs +1 -0
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/index.d.mts +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +120 -4
- package/dist/cjs/core/file.d.ts +0 -1
- package/dist/esm/core/file.d.mts +0 -1
- /package/dist/cjs/core/{file.js → auth/AuthProvider.js} +0 -0
- /package/dist/esm/core/{file.mjs → auth/AuthProvider.mjs} +0 -0
|
@@ -69,10 +69,12 @@ class Dev {
|
|
|
69
69
|
__getUserId(requestOptions) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
var _a, _b, _c, _d;
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
73
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
74
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/user_id"),
|
|
74
75
|
method: "GET",
|
|
75
|
-
headers:
|
|
76
|
+
headers: _headers,
|
|
77
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
76
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
77
79
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
78
80
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -118,10 +120,12 @@ class Dev {
|
|
|
118
120
|
__getDecodedJwt(requestOptions) {
|
|
119
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
122
|
var _a, _b, _c, _d;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
124
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
125
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/decoded_jwt"),
|
|
123
126
|
method: "GET",
|
|
124
|
-
headers:
|
|
127
|
+
headers: _headers,
|
|
128
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
125
129
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
126
130
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
127
131
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -167,10 +171,12 @@ class Dev {
|
|
|
167
171
|
__getEmail(requestOptions) {
|
|
168
172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
169
173
|
var _a, _b, _c, _d;
|
|
170
|
-
|
|
171
|
-
|
|
174
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
175
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
176
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/email"),
|
|
172
177
|
method: "GET",
|
|
173
|
-
headers:
|
|
178
|
+
headers: _headers,
|
|
179
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
174
180
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
175
181
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
176
182
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -216,10 +222,12 @@ class Dev {
|
|
|
216
222
|
__getTemplate(requestOptions) {
|
|
217
223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
218
224
|
var _a, _b, _c, _d;
|
|
219
|
-
|
|
220
|
-
|
|
225
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
226
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
227
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/template"),
|
|
221
228
|
method: "GET",
|
|
222
|
-
headers:
|
|
229
|
+
headers: _headers,
|
|
230
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
223
231
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
224
232
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
225
233
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -272,11 +280,13 @@ class Dev {
|
|
|
272
280
|
__createTemplate(request, requestOptions) {
|
|
273
281
|
return __awaiter(this, void 0, void 0, function* () {
|
|
274
282
|
var _a, _b, _c, _d;
|
|
275
|
-
|
|
276
|
-
|
|
283
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
284
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
285
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/template"),
|
|
277
286
|
method: "POST",
|
|
278
|
-
headers:
|
|
287
|
+
headers: _headers,
|
|
279
288
|
contentType: "application/json",
|
|
289
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
280
290
|
requestType: "json",
|
|
281
291
|
body: request,
|
|
282
292
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -329,10 +339,12 @@ class Dev {
|
|
|
329
339
|
__getGitInfo(requestOptions) {
|
|
330
340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
331
341
|
var _a, _b, _c, _d;
|
|
332
|
-
|
|
333
|
-
|
|
342
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
343
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
344
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/git_info"),
|
|
334
345
|
method: "GET",
|
|
335
|
-
headers:
|
|
346
|
+
headers: _headers,
|
|
347
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
336
348
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
337
349
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
338
350
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -11,7 +11,7 @@ export declare namespace Drivers {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
fetcher?: core.FetchFunction;
|
|
16
16
|
}
|
|
17
17
|
interface RequestOptions {
|
|
@@ -21,8 +21,10 @@ export declare namespace Drivers {
|
|
|
21
21
|
maxRetries?: number;
|
|
22
22
|
/** A hook to abort the request. */
|
|
23
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
24
26
|
/** Additional headers to include in the request. */
|
|
25
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
export declare class Drivers {
|
|
@@ -69,10 +69,12 @@ class Drivers {
|
|
|
69
69
|
__listOrgMembersAndDrivers(requestOptions) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
var _a, _b, _c, _d;
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
73
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
74
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/org_members_and_drivers/list"),
|
|
74
75
|
method: "GET",
|
|
75
|
-
headers:
|
|
76
|
+
headers: _headers,
|
|
77
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
76
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
77
79
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
78
80
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -118,10 +120,12 @@ class Drivers {
|
|
|
118
120
|
__list(requestOptions) {
|
|
119
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
122
|
var _a, _b, _c, _d;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
124
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
125
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/list"),
|
|
123
126
|
method: "GET",
|
|
124
|
-
headers:
|
|
127
|
+
headers: _headers,
|
|
128
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
125
129
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
126
130
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
127
131
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -175,11 +179,13 @@ class Drivers {
|
|
|
175
179
|
__create(request, requestOptions) {
|
|
176
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
177
181
|
var _a, _b, _c, _d;
|
|
178
|
-
|
|
179
|
-
|
|
182
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
183
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
184
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/create"),
|
|
180
185
|
method: "POST",
|
|
181
|
-
headers:
|
|
186
|
+
headers: _headers,
|
|
182
187
|
contentType: "application/json",
|
|
188
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
183
189
|
requestType: "json",
|
|
184
190
|
body: request,
|
|
185
191
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -232,10 +238,12 @@ class Drivers {
|
|
|
232
238
|
__get(requestOptions) {
|
|
233
239
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
240
|
var _a, _b, _c, _d;
|
|
235
|
-
|
|
236
|
-
|
|
241
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
242
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
243
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/by_jwt_user_id"),
|
|
237
244
|
method: "GET",
|
|
238
|
-
headers:
|
|
245
|
+
headers: _headers,
|
|
246
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
239
247
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
240
248
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
241
249
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -284,10 +292,12 @@ class Drivers {
|
|
|
284
292
|
__getByDriverId(driverId, requestOptions) {
|
|
285
293
|
return __awaiter(this, void 0, void 0, function* () {
|
|
286
294
|
var _a, _b, _c, _d;
|
|
287
|
-
|
|
288
|
-
|
|
295
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
296
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
297
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/drivers/${encodeURIComponent(driverId)}`),
|
|
289
298
|
method: "GET",
|
|
290
|
-
headers:
|
|
299
|
+
headers: _headers,
|
|
300
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
291
301
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
292
302
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
293
303
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -341,10 +351,12 @@ class Drivers {
|
|
|
341
351
|
__delete(driverId, requestOptions) {
|
|
342
352
|
return __awaiter(this, void 0, void 0, function* () {
|
|
343
353
|
var _a, _b, _c, _d;
|
|
344
|
-
|
|
345
|
-
|
|
354
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
355
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
356
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/drivers/${encodeURIComponent(driverId)}`),
|
|
346
357
|
method: "DELETE",
|
|
347
|
-
headers:
|
|
358
|
+
headers: _headers,
|
|
359
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
348
360
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
349
361
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
350
362
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -401,11 +413,13 @@ class Drivers {
|
|
|
401
413
|
__setActivation(request, requestOptions) {
|
|
402
414
|
return __awaiter(this, void 0, void 0, function* () {
|
|
403
415
|
var _a, _b, _c, _d;
|
|
404
|
-
|
|
405
|
-
|
|
416
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
417
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
418
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/set_activation"),
|
|
406
419
|
method: "POST",
|
|
407
|
-
headers:
|
|
420
|
+
headers: _headers,
|
|
408
421
|
contentType: "application/json",
|
|
422
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
409
423
|
requestType: "json",
|
|
410
424
|
body: request,
|
|
411
425
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -465,11 +479,13 @@ class Drivers {
|
|
|
465
479
|
__lastSeen(request, requestOptions) {
|
|
466
480
|
return __awaiter(this, void 0, void 0, function* () {
|
|
467
481
|
var _a, _b, _c, _d;
|
|
468
|
-
|
|
469
|
-
|
|
482
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
483
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
484
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/last_seen"),
|
|
470
485
|
method: "POST",
|
|
471
|
-
headers:
|
|
486
|
+
headers: _headers,
|
|
472
487
|
contentType: "application/json",
|
|
488
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
473
489
|
requestType: "json",
|
|
474
490
|
body: request,
|
|
475
491
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -522,10 +538,12 @@ class Drivers {
|
|
|
522
538
|
__lastSeenClear(requestOptions) {
|
|
523
539
|
return __awaiter(this, void 0, void 0, function* () {
|
|
524
540
|
var _a, _b, _c, _d;
|
|
525
|
-
|
|
526
|
-
|
|
541
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
542
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
543
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/last_seen/clear"),
|
|
527
544
|
method: "POST",
|
|
528
|
-
headers:
|
|
545
|
+
headers: _headers,
|
|
546
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
529
547
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
530
548
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
531
549
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -576,11 +594,13 @@ class Drivers {
|
|
|
576
594
|
__updateDriver(request, requestOptions) {
|
|
577
595
|
return __awaiter(this, void 0, void 0, function* () {
|
|
578
596
|
var _a, _b, _c, _d;
|
|
579
|
-
|
|
580
|
-
|
|
597
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
598
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
599
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/update"),
|
|
581
600
|
method: "PATCH",
|
|
582
|
-
headers:
|
|
601
|
+
headers: _headers,
|
|
583
602
|
contentType: "application/json",
|
|
603
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
584
604
|
requestType: "json",
|
|
585
605
|
body: request,
|
|
586
606
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -11,7 +11,7 @@ export declare namespace MilestoneNotifications {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
fetcher?: core.FetchFunction;
|
|
16
16
|
}
|
|
17
17
|
interface RequestOptions {
|
|
@@ -21,8 +21,10 @@ export declare namespace MilestoneNotifications {
|
|
|
21
21
|
maxRetries?: number;
|
|
22
22
|
/** A hook to abort the request. */
|
|
23
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
24
26
|
/** Additional headers to include in the request. */
|
|
25
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
export declare class MilestoneNotifications {
|
|
@@ -69,10 +69,12 @@ class MilestoneNotifications {
|
|
|
69
69
|
__getPreferences(requestOptions) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
var _a, _b, _c, _d;
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
73
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
74
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/milestone_notification_preferences/"),
|
|
74
75
|
method: "GET",
|
|
75
|
-
headers:
|
|
76
|
+
headers: _headers,
|
|
77
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
76
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
77
79
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
78
80
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -126,11 +128,13 @@ class MilestoneNotifications {
|
|
|
126
128
|
__upsertPreferences(request, requestOptions) {
|
|
127
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
130
|
var _a, _b, _c, _d;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
132
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
133
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/milestone_notification_preferences/upsert"),
|
|
131
134
|
method: "POST",
|
|
132
|
-
headers:
|
|
135
|
+
headers: _headers,
|
|
133
136
|
contentType: "application/json",
|
|
137
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
134
138
|
requestType: "json",
|
|
135
139
|
body: request,
|
|
136
140
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -13,7 +13,7 @@ export declare namespace Milestones {
|
|
|
13
13
|
baseUrl?: core.Supplier<string>;
|
|
14
14
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
15
15
|
/** Additional headers to include in requests. */
|
|
16
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
16
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
17
17
|
fetcher?: core.FetchFunction;
|
|
18
18
|
}
|
|
19
19
|
interface RequestOptions {
|
|
@@ -23,8 +23,10 @@ export declare namespace Milestones {
|
|
|
23
23
|
maxRetries?: number;
|
|
24
24
|
/** A hook to abort the request. */
|
|
25
25
|
abortSignal?: AbortSignal;
|
|
26
|
+
/** Additional query string parameters to include in the request. */
|
|
27
|
+
queryParams?: Record<string, unknown>;
|
|
26
28
|
/** Additional headers to include in the request. */
|
|
27
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
29
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
export declare class Milestones {
|
|
@@ -84,11 +84,13 @@ class Milestones {
|
|
|
84
84
|
__update(request, requestOptions) {
|
|
85
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
86
86
|
var _a, _b, _c, _d;
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
89
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/milestones/update"),
|
|
89
90
|
method: "POST",
|
|
90
|
-
headers:
|
|
91
|
+
headers: _headers,
|
|
91
92
|
contentType: "application/json",
|
|
93
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
92
94
|
requestType: "json",
|
|
93
95
|
body: request,
|
|
94
96
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -147,11 +149,13 @@ class Milestones {
|
|
|
147
149
|
__addToTask(request, requestOptions) {
|
|
148
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
149
151
|
var _a, _b, _c, _d;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
153
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
154
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/milestones/add_to_task"),
|
|
152
155
|
method: "POST",
|
|
153
|
-
headers:
|
|
156
|
+
headers: _headers,
|
|
154
157
|
contentType: "application/json",
|
|
158
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
155
159
|
requestType: "json",
|
|
156
160
|
body: request,
|
|
157
161
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -10,7 +10,7 @@ export declare namespace Blurhash {
|
|
|
10
10
|
baseUrl?: core.Supplier<string>;
|
|
11
11
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
12
12
|
/** Additional headers to include in requests. */
|
|
13
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
13
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
14
14
|
fetcher?: core.FetchFunction;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
@@ -20,8 +20,10 @@ export declare namespace Blurhash {
|
|
|
20
20
|
maxRetries?: number;
|
|
21
21
|
/** A hook to abort the request. */
|
|
22
22
|
abortSignal?: AbortSignal;
|
|
23
|
+
/** Additional query string parameters to include in the request. */
|
|
24
|
+
queryParams?: Record<string, unknown>;
|
|
23
25
|
/** Additional headers to include in the request. */
|
|
24
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
export declare class Blurhash {
|
|
@@ -72,10 +72,12 @@ class Blurhash {
|
|
|
72
72
|
__getByMetadataId(milestoneS3ObjectMetadataId, requestOptions) {
|
|
73
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
74
|
var _a, _b, _c, _d;
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
76
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
77
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/milestones/blurhash/${encodeURIComponent(milestoneS3ObjectMetadataId)}`),
|
|
77
78
|
method: "GET",
|
|
78
|
-
headers:
|
|
79
|
+
headers: _headers,
|
|
80
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
79
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
80
82
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
81
83
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -11,7 +11,7 @@ export declare namespace Images {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
fetcher?: core.FetchFunction;
|
|
16
16
|
}
|
|
17
17
|
interface RequestOptions {
|
|
@@ -21,8 +21,10 @@ export declare namespace Images {
|
|
|
21
21
|
maxRetries?: number;
|
|
22
22
|
/** A hook to abort the request. */
|
|
23
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
24
26
|
/** Additional headers to include in the request. */
|
|
25
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
export declare class Images {
|
|
@@ -38,6 +40,7 @@ export declare class Images {
|
|
|
38
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
39
41
|
*
|
|
40
42
|
* @example
|
|
43
|
+
* import { createReadStream } from "fs";
|
|
41
44
|
* await client.milestones.images.uploadByMilestoneId("milestone_id", {
|
|
42
45
|
* image: fs.createReadStream("/path/to/your/file")
|
|
43
46
|
* })
|
|
@@ -65,6 +65,7 @@ class Images {
|
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
+
* import { createReadStream } from "fs";
|
|
68
69
|
* await client.milestones.images.uploadByMilestoneId("milestone_id", {
|
|
69
70
|
* image: fs.createReadStream("/path/to/your/file")
|
|
70
71
|
* })
|
|
@@ -82,11 +83,12 @@ class Images {
|
|
|
82
83
|
const _request = yield core.newFormData();
|
|
83
84
|
yield _request.appendFile("image", request.image);
|
|
84
85
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
87
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
88
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/milestones/images/upload/${encodeURIComponent(milestoneId)}`),
|
|
87
89
|
method: "POST",
|
|
88
|
-
headers:
|
|
89
|
-
queryParameters: _queryParams,
|
|
90
|
+
headers: _headers,
|
|
91
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
90
92
|
requestType: "file",
|
|
91
93
|
duplex: _maybeEncodedRequest.duplex,
|
|
92
94
|
body: _maybeEncodedRequest.body,
|
|
@@ -143,10 +145,12 @@ class Images {
|
|
|
143
145
|
__deleteByMetadataId(milestoneS3ObjectMetadataId, requestOptions) {
|
|
144
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
147
|
var _a, _b, _c, _d;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
149
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
150
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/milestones/images/delete/${encodeURIComponent(milestoneS3ObjectMetadataId)}`),
|
|
148
151
|
method: "DELETE",
|
|
149
|
-
headers:
|
|
152
|
+
headers: _headers,
|
|
153
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
150
154
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
151
155
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
152
156
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -193,10 +197,12 @@ class Images {
|
|
|
193
197
|
__getByMetadataId(milestoneS3ObjectMetadataId, requestOptions) {
|
|
194
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
195
199
|
var _a, _b, _c, _d;
|
|
196
|
-
|
|
197
|
-
|
|
200
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
201
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
202
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/milestones/images/${encodeURIComponent(milestoneS3ObjectMetadataId)}`),
|
|
198
203
|
method: "GET",
|
|
199
|
-
headers:
|
|
204
|
+
headers: _headers,
|
|
205
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
200
206
|
responseType: "binary-response",
|
|
201
207
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
202
208
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -12,7 +12,7 @@ export declare namespace Notifications {
|
|
|
12
12
|
baseUrl?: core.Supplier<string>;
|
|
13
13
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
14
14
|
/** Additional headers to include in requests. */
|
|
15
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
16
16
|
fetcher?: core.FetchFunction;
|
|
17
17
|
}
|
|
18
18
|
}
|