@chrt-inc/typescript-sdk 0.0.2 → 0.0.160
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/Client.d.ts +3 -3
- package/Client.js +3 -3
- package/api/resources/dev/client/Client.js +10 -10
- package/api/resources/directory/client/Client.js +2 -2
- package/api/resources/index.d.ts +2 -2
- package/api/resources/index.js +3 -3
- package/api/resources/mirror/client/Client.js +24 -24
- package/api/resources/oortConnections/client/Client.js +6 -6
- package/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/Client.d.ts +16 -16
- package/{dist/api/resources/oortCourierPayDriverRateSheets → api/resources/oortCourierPayDriverRate}/client/Client.js +19 -19
- package/api/resources/oortDrivers/client/Client.js +18 -18
- package/api/resources/oortMilestones/client/Client.js +10 -10
- package/api/resources/oortNotificationPreferences/client/Client.js +4 -4
- package/api/resources/oortOrders/client/Client.js +14 -14
- package/api/resources/oortOrgConnectionInfos/client/Client.js +12 -12
- package/api/resources/oortOrgProfiles/client/Client.js +8 -8
- package/api/resources/oortShipperUserInfo/client/Client.js +8 -8
- package/api/resources/oortTaskGroups/client/Client.js +16 -16
- package/api/resources/orgs/client/Client.js +14 -14
- package/api/resources/payments/client/Client.js +6 -6
- package/api/resources/root/client/Client.js +14 -14
- package/api/resources/users/client/Client.js +2 -2
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +3 -3
- package/dist/api/resources/dev/client/Client.js +10 -10
- package/dist/api/resources/directory/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +2 -2
- package/dist/api/resources/index.js +3 -3
- package/dist/api/resources/mirror/client/Client.js +24 -24
- package/dist/api/resources/oortConnections/client/Client.js +6 -6
- package/dist/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/Client.d.ts +16 -16
- package/{api/resources/oortCourierPayDriverRateSheets → dist/api/resources/oortCourierPayDriverRate}/client/Client.js +19 -19
- package/dist/api/resources/oortDrivers/client/Client.js +18 -18
- package/dist/api/resources/oortMilestones/client/Client.js +10 -10
- package/dist/api/resources/oortNotificationPreferences/client/Client.js +4 -4
- package/dist/api/resources/oortOrders/client/Client.js +14 -14
- package/dist/api/resources/oortOrgConnectionInfos/client/Client.js +12 -12
- package/dist/api/resources/oortOrgProfiles/client/Client.js +8 -8
- package/dist/api/resources/oortShipperUserInfo/client/Client.js +8 -8
- package/dist/api/resources/oortTaskGroups/client/Client.js +16 -16
- package/dist/api/resources/orgs/client/Client.js +14 -14
- package/dist/api/resources/payments/client/Client.js +6 -6
- package/dist/api/resources/root/client/Client.js +14 -14
- package/dist/api/resources/users/client/Client.js +2 -2
- package/dist/environments.d.ts +5 -2
- package/dist/environments.js +4 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +5 -2
- package/environments.js +4 -1
- package/package.json +1 -1
- package/reference.md +13 -13
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/index.d.ts +0 -0
- /package/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/index.js +0 -0
- /package/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +0 -0
- /package/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/requests/CourierPayDriverRateSheetClientCreate1.js +0 -0
- /package/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/requests/index.d.ts +0 -0
- /package/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/requests/index.js +0 -0
- /package/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/index.d.ts +0 -0
- /package/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/index.js +0 -0
- /package/dist/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/index.d.ts +0 -0
- /package/dist/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/index.js +0 -0
- /package/dist/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +0 -0
- /package/dist/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/requests/CourierPayDriverRateSheetClientCreate1.js +0 -0
- /package/dist/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/requests/index.d.ts +0 -0
- /package/dist/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/requests/index.js +0 -0
- /package/dist/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/index.d.ts +0 -0
- /package/dist/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/index.js +0 -0
package/Client.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { Mirror } from "./api/resources/mirror/client/Client";
|
|
|
8
8
|
import { Dev } from "./api/resources/dev/client/Client";
|
|
9
9
|
import { Directory } from "./api/resources/directory/client/Client";
|
|
10
10
|
import { OortConnections } from "./api/resources/oortConnections/client/Client";
|
|
11
|
-
import {
|
|
11
|
+
import { OortCourierPayDriverRate } from "./api/resources/oortCourierPayDriverRate/client/Client";
|
|
12
12
|
import { OortDrivers } from "./api/resources/oortDrivers/client/Client";
|
|
13
13
|
import { OortMilestones } from "./api/resources/oortMilestones/client/Client";
|
|
14
14
|
import { OortNotificationPreferences } from "./api/resources/oortNotificationPreferences/client/Client";
|
|
@@ -46,7 +46,7 @@ export declare class ChrtClient {
|
|
|
46
46
|
protected _dev: Dev | undefined;
|
|
47
47
|
protected _directory: Directory | undefined;
|
|
48
48
|
protected _oortConnections: OortConnections | undefined;
|
|
49
|
-
protected
|
|
49
|
+
protected _oortCourierPayDriverRate: OortCourierPayDriverRate | undefined;
|
|
50
50
|
protected _oortDrivers: OortDrivers | undefined;
|
|
51
51
|
protected _oortMilestones: OortMilestones | undefined;
|
|
52
52
|
protected _oortNotificationPreferences: OortNotificationPreferences | undefined;
|
|
@@ -64,7 +64,7 @@ export declare class ChrtClient {
|
|
|
64
64
|
get dev(): Dev;
|
|
65
65
|
get directory(): Directory;
|
|
66
66
|
get oortConnections(): OortConnections;
|
|
67
|
-
get
|
|
67
|
+
get oortCourierPayDriverRate(): OortCourierPayDriverRate;
|
|
68
68
|
get oortDrivers(): OortDrivers;
|
|
69
69
|
get oortMilestones(): OortMilestones;
|
|
70
70
|
get oortNotificationPreferences(): OortNotificationPreferences;
|
package/Client.js
CHANGED
|
@@ -9,7 +9,7 @@ const Client_2 = require("./api/resources/mirror/client/Client");
|
|
|
9
9
|
const Client_3 = require("./api/resources/dev/client/Client");
|
|
10
10
|
const Client_4 = require("./api/resources/directory/client/Client");
|
|
11
11
|
const Client_5 = require("./api/resources/oortConnections/client/Client");
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
12
|
+
const Client_6 = require("./api/resources/oortCourierPayDriverRate/client/Client");
|
|
13
13
|
const Client_7 = require("./api/resources/oortDrivers/client/Client");
|
|
14
14
|
const Client_8 = require("./api/resources/oortMilestones/client/Client");
|
|
15
15
|
const Client_9 = require("./api/resources/oortNotificationPreferences/client/Client");
|
|
@@ -45,9 +45,9 @@ class ChrtClient {
|
|
|
45
45
|
var _a;
|
|
46
46
|
return ((_a = this._oortConnections) !== null && _a !== void 0 ? _a : (this._oortConnections = new Client_5.OortConnections(this._options)));
|
|
47
47
|
}
|
|
48
|
-
get
|
|
48
|
+
get oortCourierPayDriverRate() {
|
|
49
49
|
var _a;
|
|
50
|
-
return ((_a = this.
|
|
50
|
+
return ((_a = this._oortCourierPayDriverRate) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverRate = new Client_6.OortCourierPayDriverRate(this._options)));
|
|
51
51
|
}
|
|
52
52
|
get oortDrivers() {
|
|
53
53
|
var _a;
|
|
@@ -68,9 +68,9 @@ class Dev {
|
|
|
68
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
var _a, _b, _c;
|
|
70
70
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
71
|
-
url: (0, url_join_1.default)((_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.
|
|
71
|
+
url: (0, url_join_1.default)((_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/decoded_jwt"),
|
|
72
72
|
method: "GET",
|
|
73
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
73
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
requestType: "json",
|
|
76
76
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -111,9 +111,9 @@ class Dev {
|
|
|
111
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
112
|
var _a, _b, _c;
|
|
113
113
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
114
|
-
url: (0, url_join_1.default)((_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.
|
|
114
|
+
url: (0, url_join_1.default)((_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/email"),
|
|
115
115
|
method: "GET",
|
|
116
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
116
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
requestType: "json",
|
|
119
119
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -154,9 +154,9 @@ class Dev {
|
|
|
154
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
155
155
|
var _a, _b, _c;
|
|
156
156
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
157
|
-
url: (0, url_join_1.default)((_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.
|
|
157
|
+
url: (0, url_join_1.default)((_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"),
|
|
158
158
|
method: "GET",
|
|
159
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
159
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
160
160
|
contentType: "application/json",
|
|
161
161
|
requestType: "json",
|
|
162
162
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -204,9 +204,9 @@ class Dev {
|
|
|
204
204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
205
205
|
var _a, _b, _c;
|
|
206
206
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
207
|
-
url: (0, url_join_1.default)((_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.
|
|
207
|
+
url: (0, url_join_1.default)((_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"),
|
|
208
208
|
method: "POST",
|
|
209
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
209
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
210
210
|
contentType: "application/json",
|
|
211
211
|
requestType: "json",
|
|
212
212
|
body: request,
|
|
@@ -253,9 +253,9 @@ class Dev {
|
|
|
253
253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
254
|
var _a, _b, _c;
|
|
255
255
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
256
|
-
url: (0, url_join_1.default)((_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.
|
|
256
|
+
url: (0, url_join_1.default)((_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/user_id"),
|
|
257
257
|
method: "GET",
|
|
258
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
258
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
259
259
|
contentType: "application/json",
|
|
260
260
|
requestType: "json",
|
|
261
261
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -73,9 +73,9 @@ class Directory {
|
|
|
73
73
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
74
|
var _a, _b, _c;
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
|
-
url: (0, url_join_1.default)((_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.
|
|
76
|
+
url: (0, url_join_1.default)((_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, "directory/shippers"),
|
|
77
77
|
method: "POST",
|
|
78
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
78
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
body: request,
|
package/api/resources/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * as mirror from "./mirror";
|
|
|
4
4
|
export * as dev from "./dev";
|
|
5
5
|
export * as directory from "./directory";
|
|
6
6
|
export * as oortConnections from "./oortConnections";
|
|
7
|
-
export * as
|
|
7
|
+
export * as oortCourierPayDriverRate from "./oortCourierPayDriverRate";
|
|
8
8
|
export * as oortDrivers from "./oortDrivers";
|
|
9
9
|
export * as oortMilestones from "./oortMilestones";
|
|
10
10
|
export * as oortNotificationPreferences from "./oortNotificationPreferences";
|
|
@@ -19,7 +19,7 @@ export * as users from "./users";
|
|
|
19
19
|
export * from "./dev/client/requests";
|
|
20
20
|
export * from "./directory/client/requests";
|
|
21
21
|
export * from "./oortConnections/client/requests";
|
|
22
|
-
export * from "./
|
|
22
|
+
export * from "./oortCourierPayDriverRate/client/requests";
|
|
23
23
|
export * from "./oortDrivers/client/requests";
|
|
24
24
|
export * from "./oortMilestones/client/requests";
|
|
25
25
|
export * from "./oortNotificationPreferences/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -36,14 +36,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.users = exports.payments = exports.orgs = exports.oortTaskGroups = exports.oortShipperUserInfo = exports.oortOrgProfiles = exports.oortOrgConnectionInfos = exports.oortOrders = exports.oortNotificationPreferences = exports.oortMilestones = exports.oortDrivers = exports.
|
|
39
|
+
exports.users = exports.payments = exports.orgs = exports.oortTaskGroups = exports.oortShipperUserInfo = exports.oortOrgProfiles = exports.oortOrgConnectionInfos = exports.oortOrders = exports.oortNotificationPreferences = exports.oortMilestones = exports.oortDrivers = exports.oortCourierPayDriverRate = exports.oortConnections = exports.directory = exports.dev = exports.mirror = exports.root = void 0;
|
|
40
40
|
exports.root = __importStar(require("./root"));
|
|
41
41
|
__exportStar(require("./root/types"), exports);
|
|
42
42
|
exports.mirror = __importStar(require("./mirror"));
|
|
43
43
|
exports.dev = __importStar(require("./dev"));
|
|
44
44
|
exports.directory = __importStar(require("./directory"));
|
|
45
45
|
exports.oortConnections = __importStar(require("./oortConnections"));
|
|
46
|
-
exports.
|
|
46
|
+
exports.oortCourierPayDriverRate = __importStar(require("./oortCourierPayDriverRate"));
|
|
47
47
|
exports.oortDrivers = __importStar(require("./oortDrivers"));
|
|
48
48
|
exports.oortMilestones = __importStar(require("./oortMilestones"));
|
|
49
49
|
exports.oortNotificationPreferences = __importStar(require("./oortNotificationPreferences"));
|
|
@@ -58,7 +58,7 @@ exports.users = __importStar(require("./users"));
|
|
|
58
58
|
__exportStar(require("./dev/client/requests"), exports);
|
|
59
59
|
__exportStar(require("./directory/client/requests"), exports);
|
|
60
60
|
__exportStar(require("./oortConnections/client/requests"), exports);
|
|
61
|
-
__exportStar(require("./
|
|
61
|
+
__exportStar(require("./oortCourierPayDriverRate/client/requests"), exports);
|
|
62
62
|
__exportStar(require("./oortDrivers/client/requests"), exports);
|
|
63
63
|
__exportStar(require("./oortMilestones/client/requests"), exports);
|
|
64
64
|
__exportStar(require("./oortNotificationPreferences/client/requests"), exports);
|
|
@@ -68,9 +68,9 @@ class Mirror {
|
|
|
68
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
var _a, _b, _c;
|
|
70
70
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
71
|
-
url: (0, url_join_1.default)((_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.
|
|
71
|
+
url: (0, url_join_1.default)((_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, "authd_mirror"),
|
|
72
72
|
method: "GET",
|
|
73
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
73
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
requestType: "json",
|
|
76
76
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -111,9 +111,9 @@ class Mirror {
|
|
|
111
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
112
|
var _a, _b, _c;
|
|
113
113
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
114
|
-
url: (0, url_join_1.default)((_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.
|
|
114
|
+
url: (0, url_join_1.default)((_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, "authd_mirror"),
|
|
115
115
|
method: "POST",
|
|
116
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
116
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
requestType: "json",
|
|
119
119
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -154,9 +154,9 @@ class Mirror {
|
|
|
154
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
155
155
|
var _a, _b, _c;
|
|
156
156
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
157
|
-
url: (0, url_join_1.default)((_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.
|
|
157
|
+
url: (0, url_join_1.default)((_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, "authd_mirror"),
|
|
158
158
|
method: "PUT",
|
|
159
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
159
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
160
160
|
contentType: "application/json",
|
|
161
161
|
requestType: "json",
|
|
162
162
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -197,9 +197,9 @@ class Mirror {
|
|
|
197
197
|
return __awaiter(this, void 0, void 0, function* () {
|
|
198
198
|
var _a, _b, _c;
|
|
199
199
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
200
|
-
url: (0, url_join_1.default)((_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.
|
|
200
|
+
url: (0, url_join_1.default)((_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, "authd_mirror"),
|
|
201
201
|
method: "DELETE",
|
|
202
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
202
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
203
203
|
contentType: "application/json",
|
|
204
204
|
requestType: "json",
|
|
205
205
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -240,9 +240,9 @@ class Mirror {
|
|
|
240
240
|
return __awaiter(this, void 0, void 0, function* () {
|
|
241
241
|
var _a, _b, _c;
|
|
242
242
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
243
|
-
url: (0, url_join_1.default)((_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.
|
|
243
|
+
url: (0, url_join_1.default)((_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, "authd_mirror"),
|
|
244
244
|
method: "PATCH",
|
|
245
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
245
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
246
246
|
contentType: "application/json",
|
|
247
247
|
requestType: "json",
|
|
248
248
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -283,9 +283,9 @@ class Mirror {
|
|
|
283
283
|
return __awaiter(this, void 0, void 0, function* () {
|
|
284
284
|
var _a, _b, _c;
|
|
285
285
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
286
|
-
url: (0, url_join_1.default)((_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.
|
|
286
|
+
url: (0, url_join_1.default)((_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, "mirror"),
|
|
287
287
|
method: "GET",
|
|
288
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
288
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
289
289
|
contentType: "application/json",
|
|
290
290
|
requestType: "json",
|
|
291
291
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -326,9 +326,9 @@ class Mirror {
|
|
|
326
326
|
return __awaiter(this, void 0, void 0, function* () {
|
|
327
327
|
var _a, _b, _c;
|
|
328
328
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
329
|
-
url: (0, url_join_1.default)((_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.
|
|
329
|
+
url: (0, url_join_1.default)((_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, "mirror"),
|
|
330
330
|
method: "POST",
|
|
331
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
331
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
332
332
|
contentType: "application/json",
|
|
333
333
|
requestType: "json",
|
|
334
334
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -369,9 +369,9 @@ class Mirror {
|
|
|
369
369
|
return __awaiter(this, void 0, void 0, function* () {
|
|
370
370
|
var _a, _b, _c;
|
|
371
371
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
372
|
-
url: (0, url_join_1.default)((_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.
|
|
372
|
+
url: (0, url_join_1.default)((_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, "mirror"),
|
|
373
373
|
method: "PUT",
|
|
374
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
374
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
375
375
|
contentType: "application/json",
|
|
376
376
|
requestType: "json",
|
|
377
377
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -412,9 +412,9 @@ class Mirror {
|
|
|
412
412
|
return __awaiter(this, void 0, void 0, function* () {
|
|
413
413
|
var _a, _b, _c;
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
|
-
url: (0, url_join_1.default)((_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.
|
|
415
|
+
url: (0, url_join_1.default)((_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, "mirror"),
|
|
416
416
|
method: "DELETE",
|
|
417
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
417
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
requestType: "json",
|
|
420
420
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -455,9 +455,9 @@ class Mirror {
|
|
|
455
455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
456
456
|
var _a, _b, _c;
|
|
457
457
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
458
|
-
url: (0, url_join_1.default)((_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.
|
|
458
|
+
url: (0, url_join_1.default)((_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, "mirror"),
|
|
459
459
|
method: "PATCH",
|
|
460
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
460
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
461
461
|
contentType: "application/json",
|
|
462
462
|
requestType: "json",
|
|
463
463
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -503,9 +503,9 @@ class Mirror {
|
|
|
503
503
|
return __awaiter(this, void 0, void 0, function* () {
|
|
504
504
|
var _a, _b, _c;
|
|
505
505
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
506
|
-
url: (0, url_join_1.default)((_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.
|
|
506
|
+
url: (0, url_join_1.default)((_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, "order_completed_email"),
|
|
507
507
|
method: "POST",
|
|
508
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
508
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
509
509
|
contentType: "application/json",
|
|
510
510
|
requestType: "json",
|
|
511
511
|
body: request,
|
|
@@ -557,9 +557,9 @@ class Mirror {
|
|
|
557
557
|
return __awaiter(this, void 0, void 0, function* () {
|
|
558
558
|
var _a, _b, _c;
|
|
559
559
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
560
|
-
url: (0, url_join_1.default)((_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.
|
|
560
|
+
url: (0, url_join_1.default)((_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, "order_in_progress_email"),
|
|
561
561
|
method: "POST",
|
|
562
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
562
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
563
563
|
contentType: "application/json",
|
|
564
564
|
requestType: "json",
|
|
565
565
|
body: request,
|
|
@@ -68,9 +68,9 @@ class OortConnections {
|
|
|
68
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
var _a, _b, _c;
|
|
70
70
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
71
|
-
url: (0, url_join_1.default)((_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.
|
|
71
|
+
url: (0, url_join_1.default)((_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, "oort/connections/connections_info_for_couriers"),
|
|
72
72
|
method: "GET",
|
|
73
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
73
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
requestType: "json",
|
|
76
76
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -111,9 +111,9 @@ class OortConnections {
|
|
|
111
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
112
|
var _a, _b, _c;
|
|
113
113
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
114
|
-
url: (0, url_join_1.default)((_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.
|
|
114
|
+
url: (0, url_join_1.default)((_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, "oort/connections/connections_info_for_shippers"),
|
|
115
115
|
method: "GET",
|
|
116
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
116
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
requestType: "json",
|
|
119
119
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -161,9 +161,9 @@ class OortConnections {
|
|
|
161
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
162
|
var _a, _b, _c;
|
|
163
163
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
164
|
-
url: (0, url_join_1.default)((_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.
|
|
164
|
+
url: (0, url_join_1.default)((_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, "oort/connections/create_connection_to_courier"),
|
|
165
165
|
method: "POST",
|
|
166
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.
|
|
166
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.160", "User-Agent": "@chrt-inc/typescript-sdk/0.0.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
requestType: "json",
|
|
169
169
|
body: request,
|
package/api/resources/{oortCourierPayDriverRateSheets → oortCourierPayDriverRate}/client/Client.d.ts
RENAMED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
6
|
import * as Chrt from "../../../index";
|
|
7
|
-
export declare namespace
|
|
7
|
+
export declare namespace OortCourierPayDriverRate {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
@@ -23,49 +23,49 @@ export declare namespace OortCourierPayDriverRateSheets {
|
|
|
23
23
|
headers?: Record<string, string>;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
export declare class
|
|
27
|
-
protected readonly _options:
|
|
28
|
-
constructor(_options?:
|
|
26
|
+
export declare class OortCourierPayDriverRate {
|
|
27
|
+
protected readonly _options: OortCourierPayDriverRate.Options;
|
|
28
|
+
constructor(_options?: OortCourierPayDriverRate.Options);
|
|
29
29
|
/**
|
|
30
30
|
* This is for getting a list of all rate sheets by courier org id from the JWT
|
|
31
31
|
*
|
|
32
|
-
* @param {
|
|
32
|
+
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
|
-
* await client.
|
|
35
|
+
* await client.oortCourierPayDriverRate.getRateSheetsByCourierOrgId()
|
|
36
36
|
*/
|
|
37
|
-
getRateSheetsByCourierOrgId(requestOptions?:
|
|
37
|
+
getRateSheetsByCourierOrgId(requestOptions?: OortCourierPayDriverRate.RequestOptions): Promise<Chrt.CourierPayDriverRateSheet1[]>;
|
|
38
38
|
/**
|
|
39
39
|
* Get a rate sheet by driver ID, courier org id from JWT
|
|
40
40
|
*
|
|
41
41
|
* @param {string} driverId
|
|
42
|
-
* @param {
|
|
42
|
+
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
43
|
*
|
|
44
44
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
|
-
* await client.
|
|
47
|
+
* await client.oortCourierPayDriverRate.getRateSheetByDriverId("driver_id")
|
|
48
48
|
*/
|
|
49
|
-
getRateSheetByDriverId(driverId: string, requestOptions?:
|
|
49
|
+
getRateSheetByDriverId(driverId: string, requestOptions?: OortCourierPayDriverRate.RequestOptions): Promise<Chrt.CourierPayDriverRateSheet1>;
|
|
50
50
|
/**
|
|
51
51
|
* This is for getting a list of all rate sheets by shipper org id from the JWT
|
|
52
52
|
*
|
|
53
|
-
* @param {
|
|
53
|
+
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* await client.
|
|
56
|
+
* await client.oortCourierPayDriverRate.getRateSheetsByShipperOrgId()
|
|
57
57
|
*/
|
|
58
|
-
getRateSheetsByShipperOrgId(requestOptions?:
|
|
58
|
+
getRateSheetsByShipperOrgId(requestOptions?: OortCourierPayDriverRate.RequestOptions): Promise<Chrt.CourierPayDriverRateSheet1[]>;
|
|
59
59
|
/**
|
|
60
60
|
* This is for creating a rate sheet
|
|
61
61
|
*
|
|
62
62
|
* @param {Chrt.CourierPayDriverRateSheetClientCreate1} request
|
|
63
|
-
* @param {
|
|
63
|
+
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
64
|
*
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.
|
|
68
|
+
* await client.oortCourierPayDriverRate.postCreateRateSheet({
|
|
69
69
|
* additional_mileage_rate_usd_per_mile: 1.1,
|
|
70
70
|
* after_hours: 1.1,
|
|
71
71
|
* base_mileage_distance_miles: 1.1,
|
|
@@ -83,6 +83,6 @@ export declare class OortCourierPayDriverRateSheets {
|
|
|
83
83
|
* weekend: 1.1
|
|
84
84
|
* })
|
|
85
85
|
*/
|
|
86
|
-
postCreateRateSheet(request: Chrt.CourierPayDriverRateSheetClientCreate1, requestOptions?:
|
|
86
|
+
postCreateRateSheet(request: Chrt.CourierPayDriverRateSheetClientCreate1, requestOptions?: OortCourierPayDriverRate.RequestOptions): Promise<string>;
|
|
87
87
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
88
88
|
}
|