@chrt-inc/typescript-sdk 1.309.0 → 1.311.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.d.ts +3 -3
- package/dist/cjs/Client.js +5 -5
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/connections/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/connections/client/Client.js +63 -0
- package/dist/cjs/api/resources/connections/index.d.ts +1 -0
- package/dist/cjs/api/resources/connections/index.js +1 -0
- package/dist/cjs/api/resources/connections/types/ConnectionsGetByHandleV1Response.d.ts +5 -0
- package/dist/cjs/api/resources/connections/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/connections/types/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +3 -2
- package/dist/cjs/api/resources/index.js +4 -3
- package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/Client.d.ts +7 -4
- package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/Client.js +8 -3
- package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/Client.d.ts +17 -7
- package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/Client.js +62 -11
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +63 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.js +195 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.ts +24 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.ts +20 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.js +3 -1
- package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/Client.js +11 -11
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/index.js +17 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.js +5 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/index.js +17 -0
- package/dist/cjs/api/types/ForwarderCourierConnection1.d.ts +13 -0
- package/dist/cjs/api/types/ForwarderCourierConnection1.js +5 -0
- package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +13 -0
- package/dist/cjs/api/types/ShipperCourierConnection1.js +5 -0
- package/dist/cjs/api/types/ShipperForwarderConnection1.d.ts +13 -0
- package/dist/cjs/api/types/ShipperForwarderConnection1.js +5 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -3
- package/dist/esm/Client.mjs +5 -5
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/connections/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/connections/client/Client.mjs +63 -0
- package/dist/esm/api/resources/connections/index.d.mts +1 -0
- package/dist/esm/api/resources/connections/index.mjs +1 -0
- package/dist/esm/api/resources/connections/types/ConnectionsGetByHandleV1Response.d.mts +5 -0
- package/dist/esm/api/resources/connections/types/index.d.mts +1 -0
- package/dist/esm/api/resources/connections/types/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -2
- package/dist/esm/api/resources/index.mjs +3 -2
- package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/Client.d.mts +7 -4
- package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/Client.mjs +6 -1
- package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/Client.d.mts +17 -7
- package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/Client.mjs +62 -11
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +63 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +158 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.mts +24 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.mts +20 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.mjs +2 -0
- package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/Client.mjs +11 -11
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/index.mjs +1 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.mjs +4 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/index.d.mts +1 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/index.mjs +1 -0
- package/dist/esm/api/types/ForwarderCourierConnection1.d.mts +13 -0
- package/dist/esm/api/types/ForwarderCourierConnection1.mjs +4 -0
- package/dist/esm/api/types/ShipperCourierConnection1.d.mts +13 -0
- package/dist/esm/api/types/ShipperCourierConnection1.mjs +4 -0
- package/dist/esm/api/types/ShipperForwarderConnection1.d.mts +13 -0
- package/dist/esm/api/types/ShipperForwarderConnection1.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +267 -18
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.js → connections/types/ConnectionsGetByHandleV1Response.js} +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.js +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.js +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.js → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.js → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.js +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.js → orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.js +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/index.d.ts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.mjs → connections/types/ConnectionsGetByHandleV1Response.mjs} +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.mjs +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.mts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.mjs → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.mts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.mjs → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.d.mts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.mjs +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.mjs → orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.mjs +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.mts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.mts +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/index.d.mts +0 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Forwarder = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
51
|
+
const Chrt = __importStar(require("../../../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
|
+
class Forwarder {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Creates forwarder organization connection information. Fails if already exists. | (ForwarderOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
|
|
60
|
+
*
|
|
61
|
+
* @param {Chrt.orgInfoForConnections.ForwarderOrgInfoForConnectionsClientCreate1} request
|
|
62
|
+
* @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.orgInfoForConnections.forwarder.createV1({
|
|
68
|
+
* schema_version: 1,
|
|
69
|
+
* email_address_primary: "email_address_primary"
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
createV1(request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
74
|
+
}
|
|
75
|
+
__createV1(request, requestOptions) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c, _d;
|
|
78
|
+
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);
|
|
79
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
80
|
+
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, "connections/org_info_for_connections/forwarder/create/v1"),
|
|
81
|
+
method: "POST",
|
|
82
|
+
headers: _headers,
|
|
83
|
+
contentType: "application/json",
|
|
84
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
85
|
+
requestType: "json",
|
|
86
|
+
body: request,
|
|
87
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
88
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
89
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
90
|
+
});
|
|
91
|
+
if (_response.ok) {
|
|
92
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
93
|
+
}
|
|
94
|
+
if (_response.error.reason === "status-code") {
|
|
95
|
+
switch (_response.error.statusCode) {
|
|
96
|
+
case 422:
|
|
97
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
98
|
+
default:
|
|
99
|
+
throw new errors.ChrtError({
|
|
100
|
+
statusCode: _response.error.statusCode,
|
|
101
|
+
body: _response.error.body,
|
|
102
|
+
rawResponse: _response.rawResponse,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
switch (_response.error.reason) {
|
|
107
|
+
case "non-json":
|
|
108
|
+
throw new errors.ChrtError({
|
|
109
|
+
statusCode: _response.error.statusCode,
|
|
110
|
+
body: _response.error.rawBody,
|
|
111
|
+
rawResponse: _response.rawResponse,
|
|
112
|
+
});
|
|
113
|
+
case "timeout":
|
|
114
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /connections/org_info_for_connections/forwarder/create/v1.");
|
|
115
|
+
case "unknown":
|
|
116
|
+
throw new errors.ChrtError({
|
|
117
|
+
message: _response.error.errorMessage,
|
|
118
|
+
rawResponse: _response.rawResponse,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Updates existing forwarder organization connection information. | (ForwarderOrgInfoForConnectionsClientUpdate1) -> (bool)
|
|
125
|
+
*
|
|
126
|
+
* @param {Chrt.orgInfoForConnections.ForwarderOrgInfoForConnectionsClientUpdate1} request
|
|
127
|
+
* @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* await client.orgInfoForConnections.forwarder.updateV1()
|
|
133
|
+
*/
|
|
134
|
+
updateV1(request = {}, requestOptions) {
|
|
135
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(request, requestOptions));
|
|
136
|
+
}
|
|
137
|
+
__updateV1() {
|
|
138
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
139
|
+
var _a, _b, _c, _d;
|
|
140
|
+
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);
|
|
141
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
142
|
+
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, "connections/org_info_for_connections/forwarder/update/v1"),
|
|
143
|
+
method: "PATCH",
|
|
144
|
+
headers: _headers,
|
|
145
|
+
contentType: "application/json",
|
|
146
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
147
|
+
requestType: "json",
|
|
148
|
+
body: request,
|
|
149
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
150
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
151
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
152
|
+
});
|
|
153
|
+
if (_response.ok) {
|
|
154
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
155
|
+
}
|
|
156
|
+
if (_response.error.reason === "status-code") {
|
|
157
|
+
switch (_response.error.statusCode) {
|
|
158
|
+
case 422:
|
|
159
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
160
|
+
default:
|
|
161
|
+
throw new errors.ChrtError({
|
|
162
|
+
statusCode: _response.error.statusCode,
|
|
163
|
+
body: _response.error.body,
|
|
164
|
+
rawResponse: _response.rawResponse,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
switch (_response.error.reason) {
|
|
169
|
+
case "non-json":
|
|
170
|
+
throw new errors.ChrtError({
|
|
171
|
+
statusCode: _response.error.statusCode,
|
|
172
|
+
body: _response.error.rawBody,
|
|
173
|
+
rawResponse: _response.rawResponse,
|
|
174
|
+
});
|
|
175
|
+
case "timeout":
|
|
176
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /connections/org_info_for_connections/forwarder/update/v1.");
|
|
177
|
+
case "unknown":
|
|
178
|
+
throw new errors.ChrtError({
|
|
179
|
+
message: _response.error.errorMessage,
|
|
180
|
+
rawResponse: _response.rawResponse,
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
_getAuthorizationHeader() {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
188
|
+
if (bearer != null) {
|
|
189
|
+
return `Bearer ${bearer}`;
|
|
190
|
+
}
|
|
191
|
+
return undefined;
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
exports.Forwarder = Forwarder;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* schema_version: 1,
|
|
9
|
+
* email_address_primary: "email_address_primary"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface ForwarderOrgInfoForConnectionsClientCreate1 {
|
|
13
|
+
schema_version: number;
|
|
14
|
+
industry?: string | null;
|
|
15
|
+
street_address?: Chrt.LocationFeature | null;
|
|
16
|
+
contact_first_name?: string | null;
|
|
17
|
+
contact_last_name?: string | null;
|
|
18
|
+
phone_number_primary?: string | null;
|
|
19
|
+
phone_number_secondary?: string | null;
|
|
20
|
+
email_address_primary: string;
|
|
21
|
+
email_address_secondary?: string | null;
|
|
22
|
+
job_title?: string | null;
|
|
23
|
+
notes?: string | null;
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface ForwarderOrgInfoForConnectionsClientUpdate1 {
|
|
10
|
+
industry?: string | null;
|
|
11
|
+
street_address?: Chrt.LocationFeature | null;
|
|
12
|
+
contact_first_name?: string | null;
|
|
13
|
+
contact_last_name?: string | null;
|
|
14
|
+
phone_number_primary?: string | null;
|
|
15
|
+
phone_number_secondary?: string | null;
|
|
16
|
+
email_address_primary?: string | null;
|
|
17
|
+
email_address_secondary?: string | null;
|
|
18
|
+
job_title?: string | null;
|
|
19
|
+
notes?: string | null;
|
|
20
|
+
}
|
package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.d.ts
RENAMED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * as shipper from "./shipper/index.js";
|
|
2
2
|
export * as courier from "./courier/index.js";
|
|
3
|
+
export * as forwarder from "./forwarder/index.js";
|
|
3
4
|
export * from "./shipper/client/requests/index.js";
|
|
4
5
|
export * from "./courier/client/requests/index.js";
|
|
6
|
+
export * from "./forwarder/client/requests/index.js";
|
package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.js
RENAMED
|
@@ -36,8 +36,10 @@ 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.courier = exports.shipper = void 0;
|
|
39
|
+
exports.forwarder = exports.courier = exports.shipper = void 0;
|
|
40
40
|
exports.shipper = __importStar(require("./shipper/index.js"));
|
|
41
41
|
exports.courier = __importStar(require("./courier/index.js"));
|
|
42
|
+
exports.forwarder = __importStar(require("./forwarder/index.js"));
|
|
42
43
|
__exportStar(require("./shipper/client/requests/index.js"), exports);
|
|
43
44
|
__exportStar(require("./courier/client/requests/index.js"), exports);
|
|
45
|
+
__exportStar(require("./forwarder/client/requests/index.js"), exports);
|
|
@@ -36,38 +36,38 @@ export declare class Shipper {
|
|
|
36
36
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.
|
|
39
|
+
* await client.orgInfoForConnections.shipper.getV1()
|
|
40
40
|
*/
|
|
41
41
|
getV1(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperOrgInfoForConnections1>;
|
|
42
42
|
private __getV1;
|
|
43
43
|
/**
|
|
44
44
|
* Creates shipper organization connection information. Fails if already exists. | (ShipperOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
|
|
45
45
|
*
|
|
46
|
-
* @param {Chrt.
|
|
46
|
+
* @param {Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientCreate1} request
|
|
47
47
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
48
|
*
|
|
49
49
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
|
-
* await client.
|
|
52
|
+
* await client.orgInfoForConnections.shipper.createV1({
|
|
53
53
|
* schema_version: 1,
|
|
54
54
|
* email_address_primary: "email_address_primary"
|
|
55
55
|
* })
|
|
56
56
|
*/
|
|
57
|
-
createV1(request: Chrt.
|
|
57
|
+
createV1(request: Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientCreate1, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<string>;
|
|
58
58
|
private __createV1;
|
|
59
59
|
/**
|
|
60
60
|
* Updates existing shipper organization connection information. | (ShipperOrgInfoForConnectionsClientUpdate1) -> (bool)
|
|
61
61
|
*
|
|
62
|
-
* @param {Chrt.
|
|
62
|
+
* @param {Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientUpdate1} request
|
|
63
63
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
64
|
*
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.
|
|
68
|
+
* await client.orgInfoForConnections.shipper.updateV1()
|
|
69
69
|
*/
|
|
70
|
-
updateV1(request?: Chrt.
|
|
70
|
+
updateV1(request?: Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientUpdate1, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
71
71
|
private __updateV1;
|
|
72
72
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
73
73
|
}
|
|
@@ -61,7 +61,7 @@ class Shipper {
|
|
|
61
61
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.
|
|
64
|
+
* await client.orgInfoForConnections.shipper.getV1()
|
|
65
65
|
*/
|
|
66
66
|
getV1(requestOptions) {
|
|
67
67
|
return core.HttpResponsePromise.fromPromise(this.__getV1(requestOptions));
|
|
@@ -71,7 +71,7 @@ class Shipper {
|
|
|
71
71
|
var _a, _b, _c, _d;
|
|
72
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
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, "connections/
|
|
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, "connections/org_info_for_connections/shipper/v1"),
|
|
75
75
|
method: "GET",
|
|
76
76
|
headers: _headers,
|
|
77
77
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -97,7 +97,7 @@ class Shipper {
|
|
|
97
97
|
rawResponse: _response.rawResponse,
|
|
98
98
|
});
|
|
99
99
|
case "timeout":
|
|
100
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /connections/
|
|
100
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /connections/org_info_for_connections/shipper/v1.");
|
|
101
101
|
case "unknown":
|
|
102
102
|
throw new errors.ChrtError({
|
|
103
103
|
message: _response.error.errorMessage,
|
|
@@ -109,13 +109,13 @@ class Shipper {
|
|
|
109
109
|
/**
|
|
110
110
|
* Creates shipper organization connection information. Fails if already exists. | (ShipperOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
|
|
111
111
|
*
|
|
112
|
-
* @param {Chrt.
|
|
112
|
+
* @param {Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientCreate1} request
|
|
113
113
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
114
114
|
*
|
|
115
115
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
116
116
|
*
|
|
117
117
|
* @example
|
|
118
|
-
* await client.
|
|
118
|
+
* await client.orgInfoForConnections.shipper.createV1({
|
|
119
119
|
* schema_version: 1,
|
|
120
120
|
* email_address_primary: "email_address_primary"
|
|
121
121
|
* })
|
|
@@ -128,7 +128,7 @@ class Shipper {
|
|
|
128
128
|
var _a, _b, _c, _d;
|
|
129
129
|
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);
|
|
130
130
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
131
|
-
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, "connections/
|
|
131
|
+
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, "connections/org_info_for_connections/shipper/create/v1"),
|
|
132
132
|
method: "POST",
|
|
133
133
|
headers: _headers,
|
|
134
134
|
contentType: "application/json",
|
|
@@ -162,7 +162,7 @@ class Shipper {
|
|
|
162
162
|
rawResponse: _response.rawResponse,
|
|
163
163
|
});
|
|
164
164
|
case "timeout":
|
|
165
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /connections/
|
|
165
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /connections/org_info_for_connections/shipper/create/v1.");
|
|
166
166
|
case "unknown":
|
|
167
167
|
throw new errors.ChrtError({
|
|
168
168
|
message: _response.error.errorMessage,
|
|
@@ -174,13 +174,13 @@ class Shipper {
|
|
|
174
174
|
/**
|
|
175
175
|
* Updates existing shipper organization connection information. | (ShipperOrgInfoForConnectionsClientUpdate1) -> (bool)
|
|
176
176
|
*
|
|
177
|
-
* @param {Chrt.
|
|
177
|
+
* @param {Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientUpdate1} request
|
|
178
178
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
179
179
|
*
|
|
180
180
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
181
181
|
*
|
|
182
182
|
* @example
|
|
183
|
-
* await client.
|
|
183
|
+
* await client.orgInfoForConnections.shipper.updateV1()
|
|
184
184
|
*/
|
|
185
185
|
updateV1(request = {}, requestOptions) {
|
|
186
186
|
return core.HttpResponsePromise.fromPromise(this.__updateV1(request, requestOptions));
|
|
@@ -190,7 +190,7 @@ class Shipper {
|
|
|
190
190
|
var _a, _b, _c, _d;
|
|
191
191
|
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);
|
|
192
192
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
193
|
-
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, "connections/
|
|
193
|
+
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, "connections/org_info_for_connections/shipper/update/v1"),
|
|
194
194
|
method: "PATCH",
|
|
195
195
|
headers: _headers,
|
|
196
196
|
contentType: "application/json",
|
|
@@ -224,7 +224,7 @@ class Shipper {
|
|
|
224
224
|
rawResponse: _response.rawResponse,
|
|
225
225
|
});
|
|
226
226
|
case "timeout":
|
|
227
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /connections/
|
|
227
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /connections/org_info_for_connections/shipper/update/v1.");
|
|
228
228
|
case "unknown":
|
|
229
229
|
throw new errors.ChrtError({
|
|
230
230
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ForwarderCourierConnection1 {
|
|
5
|
+
schema_version: number;
|
|
6
|
+
/** Must be a string starting with `org_` */
|
|
7
|
+
forwarder_org_id: string;
|
|
8
|
+
/** Must be a string starting with `org_` */
|
|
9
|
+
courier_org_id: string;
|
|
10
|
+
connected?: boolean;
|
|
11
|
+
forwarder_customer_id_for_courier_stripe_connect_account?: string | null;
|
|
12
|
+
_id: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ShipperCourierConnection1 {
|
|
5
|
+
schema_version: number;
|
|
6
|
+
/** Must be a string starting with `org_` */
|
|
7
|
+
shipper_org_id: string;
|
|
8
|
+
/** Must be a string starting with `org_` */
|
|
9
|
+
courier_org_id: string;
|
|
10
|
+
connected?: boolean;
|
|
11
|
+
shipper_customer_id_for_courier_stripe_connect_account?: string | null;
|
|
12
|
+
_id: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ShipperForwarderConnection1 {
|
|
5
|
+
schema_version: number;
|
|
6
|
+
/** Must be a string starting with `org_` */
|
|
7
|
+
shipper_org_id: string;
|
|
8
|
+
/** Must be a string starting with `org_` */
|
|
9
|
+
forwarder_org_id: string;
|
|
10
|
+
connected?: boolean;
|
|
11
|
+
shipper_customer_id_for_forwarder_stripe_connect_account?: string | null;
|
|
12
|
+
_id: string;
|
|
13
|
+
}
|
|
@@ -31,6 +31,7 @@ export * from "./DriverStatusEnum.js";
|
|
|
31
31
|
export * from "./DriverUpdateRes.js";
|
|
32
32
|
export * from "./FlightTaskActionEnum1.js";
|
|
33
33
|
export * from "./ForwarderConnectionRes.js";
|
|
34
|
+
export * from "./ForwarderCourierConnection1.js";
|
|
34
35
|
export * from "./ForwarderOrgInfoForConnections1.js";
|
|
35
36
|
export * from "./ForwarderOrgProfile1.js";
|
|
36
37
|
export * from "./GenerateInvoiceRes.js";
|
|
@@ -86,6 +87,8 @@ export * from "./SessionByDeviceMarkOutliersResponse1.js";
|
|
|
86
87
|
export * from "./ShipperConnectionRes.js";
|
|
87
88
|
export * from "./ShipperContact1.js";
|
|
88
89
|
export * from "./ShipperContactClientCreate1.js";
|
|
90
|
+
export * from "./ShipperCourierConnection1.js";
|
|
91
|
+
export * from "./ShipperForwarderConnection1.js";
|
|
89
92
|
export * from "./ShipperNotificationEventEnum.js";
|
|
90
93
|
export * from "./ShipperNotificationPreferences1.js";
|
|
91
94
|
export * from "./ShipperOrgInfoForConnections1.js";
|
|
@@ -47,6 +47,7 @@ __exportStar(require("./DriverStatusEnum.js"), exports);
|
|
|
47
47
|
__exportStar(require("./DriverUpdateRes.js"), exports);
|
|
48
48
|
__exportStar(require("./FlightTaskActionEnum1.js"), exports);
|
|
49
49
|
__exportStar(require("./ForwarderConnectionRes.js"), exports);
|
|
50
|
+
__exportStar(require("./ForwarderCourierConnection1.js"), exports);
|
|
50
51
|
__exportStar(require("./ForwarderOrgInfoForConnections1.js"), exports);
|
|
51
52
|
__exportStar(require("./ForwarderOrgProfile1.js"), exports);
|
|
52
53
|
__exportStar(require("./GenerateInvoiceRes.js"), exports);
|
|
@@ -102,6 +103,8 @@ __exportStar(require("./SessionByDeviceMarkOutliersResponse1.js"), exports);
|
|
|
102
103
|
__exportStar(require("./ShipperConnectionRes.js"), exports);
|
|
103
104
|
__exportStar(require("./ShipperContact1.js"), exports);
|
|
104
105
|
__exportStar(require("./ShipperContactClientCreate1.js"), exports);
|
|
106
|
+
__exportStar(require("./ShipperCourierConnection1.js"), exports);
|
|
107
|
+
__exportStar(require("./ShipperForwarderConnection1.js"), exports);
|
|
105
108
|
__exportStar(require("./ShipperNotificationEventEnum.js"), exports);
|
|
106
109
|
__exportStar(require("./ShipperNotificationPreferences1.js"), exports);
|
|
107
110
|
__exportStar(require("./ShipperOrgInfoForConnections1.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.311.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -28,7 +28,7 @@ import { Root } from "./api/resources/root/client/Client.mjs";
|
|
|
28
28
|
import { Users } from "./api/resources/users/client/Client.mjs";
|
|
29
29
|
import { Utils } from "./api/resources/utils/client/Client.mjs";
|
|
30
30
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
31
|
-
import {
|
|
31
|
+
import { OrgInfoForConnections } from "./api/resources/orgInfoForConnections/client/Client.mjs";
|
|
32
32
|
import { Tracking } from "./api/resources/tracking/client/Client.mjs";
|
|
33
33
|
export declare namespace ChrtClient {
|
|
34
34
|
interface Options {
|
|
@@ -80,7 +80,7 @@ export declare class ChrtClient {
|
|
|
80
80
|
protected _users: Users | undefined;
|
|
81
81
|
protected _utils: Utils | undefined;
|
|
82
82
|
protected _notifications: Notifications | undefined;
|
|
83
|
-
protected
|
|
83
|
+
protected _orgInfoForConnections: OrgInfoForConnections | undefined;
|
|
84
84
|
protected _tracking: Tracking | undefined;
|
|
85
85
|
constructor(_options?: ChrtClient.Options);
|
|
86
86
|
get payments(): Payments;
|
|
@@ -108,6 +108,6 @@ export declare class ChrtClient {
|
|
|
108
108
|
get users(): Users;
|
|
109
109
|
get utils(): Utils;
|
|
110
110
|
get notifications(): Notifications;
|
|
111
|
-
get
|
|
111
|
+
get orgInfoForConnections(): OrgInfoForConnections;
|
|
112
112
|
get tracking(): Tracking;
|
|
113
113
|
}
|