@chrt-inc/typescript-sdk 1.662.0 → 1.675.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.js +2 -2
- package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.js +1 -1
- package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientUpdate1.d.ts +2 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +75 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +313 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseNeedsActionReq.d.ts +12 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseNeedsActionReq.js +5 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseStatusReq.d.ts +13 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseStatusReq.js +5 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/operations/resources/cases/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/cases/index.js +1 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/index.js +41 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/Client.d.ts +83 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/Client.js +308 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/index.js +17 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/requests/BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost.d.ts +13 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/requests/BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost.js +5 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +1 -1
- package/dist/cjs/api/types/BillingLedger1.d.ts +1 -0
- package/dist/cjs/api/types/CallerCredentialTypeEnum.d.ts +1 -2
- package/dist/cjs/api/types/CallerCredentialTypeEnum.js +0 -1
- package/dist/cjs/api/types/Case1.d.ts +4 -0
- package/dist/cjs/api/types/CaseMessage1.d.ts +1 -0
- package/dist/cjs/api/types/CaseS3ObjectMetadata1.d.ts +19 -0
- package/dist/cjs/api/types/CaseS3ObjectMetadata1.js +5 -0
- package/dist/cjs/api/types/OrgPrivateData1.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.mjs +1 -1
- package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientUpdate1.d.mts +2 -0
- package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +75 -0
- package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +313 -0
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseNeedsActionReq.d.mts +12 -0
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseNeedsActionReq.mjs +4 -0
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseStatusReq.d.mts +13 -0
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseStatusReq.mjs +4 -0
- package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/operations/resources/cases/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/cases/index.mjs +1 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/index.mjs +2 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/Client.d.mts +83 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/Client.mjs +271 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/index.d.mts +2 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/index.mjs +1 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/requests/BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost.d.mts +13 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/requests/BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost.mjs +4 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +1 -1
- package/dist/esm/api/types/BillingLedger1.d.mts +1 -0
- package/dist/esm/api/types/CallerCredentialTypeEnum.d.mts +1 -2
- package/dist/esm/api/types/CallerCredentialTypeEnum.mjs +0 -1
- package/dist/esm/api/types/Case1.d.mts +4 -0
- package/dist/esm/api/types/CaseMessage1.d.mts +1 -0
- package/dist/esm/api/types/CaseS3ObjectMetadata1.d.mts +19 -0
- package/dist/esm/api/types/CaseS3ObjectMetadata1.mjs +4 -0
- package/dist/esm/api/types/OrgPrivateData1.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +668 -61
package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/Client.d.ts
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.js";
|
|
7
|
+
export declare namespace S3Objects {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class S3Objects {
|
|
31
|
+
protected readonly _options: S3Objects.Options;
|
|
32
|
+
constructor(_options?: S3Objects.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves metadata for a case S3 object. | authz: min_org_role=operator | () -> (CaseS3ObjectMetadata1)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} caseS3ObjectMetadataId
|
|
37
|
+
* @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.operations.cases.s3Objects.getS3ObjectMetadataV1("case_s3_object_metadata_id")
|
|
43
|
+
*/
|
|
44
|
+
getS3ObjectMetadataV1(caseS3ObjectMetadataId: string, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<Chrt.CaseS3ObjectMetadata1>;
|
|
45
|
+
private __getS3ObjectMetadataV1;
|
|
46
|
+
/**
|
|
47
|
+
* Streams a case S3 object file from storage. | authz: min_org_role=operator | () -> (binary)
|
|
48
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
49
|
+
*/
|
|
50
|
+
getV1(caseS3ObjectMetadataId: string, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
51
|
+
private __getV1;
|
|
52
|
+
/**
|
|
53
|
+
* Uploads a file to a case. Automatic blurhash generation for images. | authz: min_org_role=operator | (UploadFile) -> (bool)
|
|
54
|
+
*
|
|
55
|
+
* @param {string} caseId
|
|
56
|
+
* @param {Chrt.operations.cases.BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost} request
|
|
57
|
+
* @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* import { createReadStream } from "fs";
|
|
63
|
+
* await client.operations.cases.s3Objects.addV1("case_id", {
|
|
64
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
65
|
+
* })
|
|
66
|
+
*/
|
|
67
|
+
addV1(caseId: string, request: Chrt.operations.cases.BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
68
|
+
private __addV1;
|
|
69
|
+
/**
|
|
70
|
+
* Deletes an S3 object metadata and the associated S3 object from a case. Only the uploader or an operator from the uploading org can delete. | () -> (bool)
|
|
71
|
+
*
|
|
72
|
+
* @param {string} caseS3ObjectMetadataId
|
|
73
|
+
* @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* await client.operations.cases.s3Objects.deleteV1("case_s3_object_metadata_id")
|
|
79
|
+
*/
|
|
80
|
+
deleteV1(caseS3ObjectMetadataId: string, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
81
|
+
private __deleteV1;
|
|
82
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
83
|
+
}
|
package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/Client.js
ADDED
|
@@ -0,0 +1,308 @@
|
|
|
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.S3Objects = 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 S3Objects {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves metadata for a case S3 object. | authz: min_org_role=operator | () -> (CaseS3ObjectMetadata1)
|
|
60
|
+
*
|
|
61
|
+
* @param {string} caseS3ObjectMetadataId
|
|
62
|
+
* @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.operations.cases.s3Objects.getS3ObjectMetadataV1("case_s3_object_metadata_id")
|
|
68
|
+
*/
|
|
69
|
+
getS3ObjectMetadataV1(caseS3ObjectMetadataId, requestOptions) {
|
|
70
|
+
return core.HttpResponsePromise.fromPromise(this.__getS3ObjectMetadataV1(caseS3ObjectMetadataId, requestOptions));
|
|
71
|
+
}
|
|
72
|
+
__getS3ObjectMetadataV1(caseS3ObjectMetadataId, requestOptions) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
var _a, _b, _c, _d;
|
|
75
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
76
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
77
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `operations/cases/s3_objects/s3_object_metadata/v1/${encodeURIComponent(caseS3ObjectMetadataId)}`),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: _headers,
|
|
80
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
81
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
82
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
|
+
});
|
|
85
|
+
if (_response.ok) {
|
|
86
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
87
|
+
}
|
|
88
|
+
if (_response.error.reason === "status-code") {
|
|
89
|
+
switch (_response.error.statusCode) {
|
|
90
|
+
case 422:
|
|
91
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
92
|
+
default:
|
|
93
|
+
throw new errors.ChrtError({
|
|
94
|
+
statusCode: _response.error.statusCode,
|
|
95
|
+
body: _response.error.body,
|
|
96
|
+
rawResponse: _response.rawResponse,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
switch (_response.error.reason) {
|
|
101
|
+
case "non-json":
|
|
102
|
+
throw new errors.ChrtError({
|
|
103
|
+
statusCode: _response.error.statusCode,
|
|
104
|
+
body: _response.error.rawBody,
|
|
105
|
+
rawResponse: _response.rawResponse,
|
|
106
|
+
});
|
|
107
|
+
case "timeout":
|
|
108
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/cases/s3_objects/s3_object_metadata/v1/{case_s3_object_metadata_id}.");
|
|
109
|
+
case "unknown":
|
|
110
|
+
throw new errors.ChrtError({
|
|
111
|
+
message: _response.error.errorMessage,
|
|
112
|
+
rawResponse: _response.rawResponse,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Streams a case S3 object file from storage. | authz: min_org_role=operator | () -> (binary)
|
|
119
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
120
|
+
*/
|
|
121
|
+
getV1(caseS3ObjectMetadataId, requestOptions) {
|
|
122
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(caseS3ObjectMetadataId, requestOptions));
|
|
123
|
+
}
|
|
124
|
+
__getV1(caseS3ObjectMetadataId, requestOptions) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
var _a, _b, _c, _d;
|
|
127
|
+
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);
|
|
128
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
129
|
+
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, `operations/cases/s3_objects/v1/${encodeURIComponent(caseS3ObjectMetadataId)}`),
|
|
130
|
+
method: "GET",
|
|
131
|
+
headers: _headers,
|
|
132
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
133
|
+
responseType: "binary-response",
|
|
134
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
135
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
136
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
137
|
+
});
|
|
138
|
+
if (_response.ok) {
|
|
139
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
140
|
+
}
|
|
141
|
+
if (_response.error.reason === "status-code") {
|
|
142
|
+
switch (_response.error.statusCode) {
|
|
143
|
+
case 422:
|
|
144
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
145
|
+
default:
|
|
146
|
+
throw new errors.ChrtError({
|
|
147
|
+
statusCode: _response.error.statusCode,
|
|
148
|
+
body: _response.error.body,
|
|
149
|
+
rawResponse: _response.rawResponse,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
switch (_response.error.reason) {
|
|
154
|
+
case "non-json":
|
|
155
|
+
throw new errors.ChrtError({
|
|
156
|
+
statusCode: _response.error.statusCode,
|
|
157
|
+
body: _response.error.rawBody,
|
|
158
|
+
rawResponse: _response.rawResponse,
|
|
159
|
+
});
|
|
160
|
+
case "timeout":
|
|
161
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/cases/s3_objects/v1/{case_s3_object_metadata_id}.");
|
|
162
|
+
case "unknown":
|
|
163
|
+
throw new errors.ChrtError({
|
|
164
|
+
message: _response.error.errorMessage,
|
|
165
|
+
rawResponse: _response.rawResponse,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Uploads a file to a case. Automatic blurhash generation for images. | authz: min_org_role=operator | (UploadFile) -> (bool)
|
|
172
|
+
*
|
|
173
|
+
* @param {string} caseId
|
|
174
|
+
* @param {Chrt.operations.cases.BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost} request
|
|
175
|
+
* @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
|
|
176
|
+
*
|
|
177
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* import { createReadStream } from "fs";
|
|
181
|
+
* await client.operations.cases.s3Objects.addV1("case_id", {
|
|
182
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
183
|
+
* })
|
|
184
|
+
*/
|
|
185
|
+
addV1(caseId, request, requestOptions) {
|
|
186
|
+
return core.HttpResponsePromise.fromPromise(this.__addV1(caseId, request, requestOptions));
|
|
187
|
+
}
|
|
188
|
+
__addV1(caseId, request, requestOptions) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
var _a, _b, _c, _d;
|
|
191
|
+
const _request = yield core.newFormData();
|
|
192
|
+
yield _request.appendFile("file", request.file);
|
|
193
|
+
const _maybeEncodedRequest = yield _request.getRequest();
|
|
194
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
195
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
196
|
+
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, `operations/cases/s3_objects/add/v1/${encodeURIComponent(caseId)}`),
|
|
197
|
+
method: "POST",
|
|
198
|
+
headers: _headers,
|
|
199
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
200
|
+
requestType: "file",
|
|
201
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
202
|
+
body: _maybeEncodedRequest.body,
|
|
203
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
204
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
205
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
206
|
+
});
|
|
207
|
+
if (_response.ok) {
|
|
208
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
209
|
+
}
|
|
210
|
+
if (_response.error.reason === "status-code") {
|
|
211
|
+
switch (_response.error.statusCode) {
|
|
212
|
+
case 422:
|
|
213
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
214
|
+
default:
|
|
215
|
+
throw new errors.ChrtError({
|
|
216
|
+
statusCode: _response.error.statusCode,
|
|
217
|
+
body: _response.error.body,
|
|
218
|
+
rawResponse: _response.rawResponse,
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
switch (_response.error.reason) {
|
|
223
|
+
case "non-json":
|
|
224
|
+
throw new errors.ChrtError({
|
|
225
|
+
statusCode: _response.error.statusCode,
|
|
226
|
+
body: _response.error.rawBody,
|
|
227
|
+
rawResponse: _response.rawResponse,
|
|
228
|
+
});
|
|
229
|
+
case "timeout":
|
|
230
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/s3_objects/add/v1/{case_id}.");
|
|
231
|
+
case "unknown":
|
|
232
|
+
throw new errors.ChrtError({
|
|
233
|
+
message: _response.error.errorMessage,
|
|
234
|
+
rawResponse: _response.rawResponse,
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Deletes an S3 object metadata and the associated S3 object from a case. Only the uploader or an operator from the uploading org can delete. | () -> (bool)
|
|
241
|
+
*
|
|
242
|
+
* @param {string} caseS3ObjectMetadataId
|
|
243
|
+
* @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
|
|
244
|
+
*
|
|
245
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
246
|
+
*
|
|
247
|
+
* @example
|
|
248
|
+
* await client.operations.cases.s3Objects.deleteV1("case_s3_object_metadata_id")
|
|
249
|
+
*/
|
|
250
|
+
deleteV1(caseS3ObjectMetadataId, requestOptions) {
|
|
251
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(caseS3ObjectMetadataId, requestOptions));
|
|
252
|
+
}
|
|
253
|
+
__deleteV1(caseS3ObjectMetadataId, requestOptions) {
|
|
254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
255
|
+
var _a, _b, _c, _d;
|
|
256
|
+
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);
|
|
257
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
258
|
+
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, `operations/cases/s3_objects/delete/v1/${encodeURIComponent(caseS3ObjectMetadataId)}`),
|
|
259
|
+
method: "DELETE",
|
|
260
|
+
headers: _headers,
|
|
261
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
262
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
263
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
264
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
265
|
+
});
|
|
266
|
+
if (_response.ok) {
|
|
267
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
268
|
+
}
|
|
269
|
+
if (_response.error.reason === "status-code") {
|
|
270
|
+
switch (_response.error.statusCode) {
|
|
271
|
+
case 422:
|
|
272
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
273
|
+
default:
|
|
274
|
+
throw new errors.ChrtError({
|
|
275
|
+
statusCode: _response.error.statusCode,
|
|
276
|
+
body: _response.error.body,
|
|
277
|
+
rawResponse: _response.rawResponse,
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
switch (_response.error.reason) {
|
|
282
|
+
case "non-json":
|
|
283
|
+
throw new errors.ChrtError({
|
|
284
|
+
statusCode: _response.error.statusCode,
|
|
285
|
+
body: _response.error.rawBody,
|
|
286
|
+
rawResponse: _response.rawResponse,
|
|
287
|
+
});
|
|
288
|
+
case "timeout":
|
|
289
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/cases/s3_objects/delete/v1/{case_s3_object_metadata_id}.");
|
|
290
|
+
case "unknown":
|
|
291
|
+
throw new errors.ChrtError({
|
|
292
|
+
message: _response.error.errorMessage,
|
|
293
|
+
rawResponse: _response.rawResponse,
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
_getAuthorizationHeader() {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
301
|
+
if (bearer != null) {
|
|
302
|
+
return `Bearer ${bearer}`;
|
|
303
|
+
}
|
|
304
|
+
return undefined;
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
exports.S3Objects = S3Objects;
|
|
@@ -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,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../../../../../../core/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost {
|
|
12
|
+
file: core.file.Uploadable.FileLike;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost } from "./BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost.js";
|
|
@@ -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);
|
|
@@ -329,7 +329,7 @@ export declare class TaskGroups {
|
|
|
329
329
|
detachLigFromProviderPayDriverV1(taskGroupId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
330
330
|
private __detachLigFromProviderPayDriverV1;
|
|
331
331
|
/**
|
|
332
|
-
* Preview the LineItem materialization that would result from applying a rate sheet to the SPP vector of the named TaskGroup. Returns the resolved rate sheet, materialized LineItems (NOT inserted), the pre-adjustment total, and the requested parties (shipper -> coordinator). Auto-resolves the rate sheet via RateSheetMapping1 for the requested shipper unless body.rate_sheet_id is provided. No DB writes — operator can iterate freely. To commit, call from_rate_sheet/create_for_shipper_pay_provider/v1 then attach_lig_to_shipper_pay_provider/v1. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[task_group_coordinator_operators] | (TaskGroupQuoteForShipperPayProviderClientReq) -> (TaskGroupQuoteResp)
|
|
332
|
+
* Preview the LineItem materialization that would result from applying a rate sheet to the SPP vector of the named TaskGroup. Returns the resolved rate sheet, materialized LineItems (NOT inserted), the pre-adjustment total, and the requested parties (shipper -> coordinator). Auto-resolves the rate sheet via RateSheetMapping1 for the requested shipper unless body.rate_sheet_id is provided. No DB writes — operator can iterate freely. To commit, call from_rate_sheet/create_for_shipper_pay_provider/v1 then attach_lig_to_shipper_pay_provider/v1. | authz: allowed_org_types=[provider, shipper], min_org_role=operator, authz_personas=[task_group_coordinator_operators, shipper_org_operators] | (TaskGroupQuoteForShipperPayProviderClientReq) -> (TaskGroupQuoteResp)
|
|
333
333
|
*
|
|
334
334
|
* @param {string} taskGroupId
|
|
335
335
|
* @param {Chrt.shipping.TaskGroupQuoteForShipperPayProviderClientReq} request
|
|
@@ -1313,7 +1313,7 @@ class TaskGroups {
|
|
|
1313
1313
|
});
|
|
1314
1314
|
}
|
|
1315
1315
|
/**
|
|
1316
|
-
* Preview the LineItem materialization that would result from applying a rate sheet to the SPP vector of the named TaskGroup. Returns the resolved rate sheet, materialized LineItems (NOT inserted), the pre-adjustment total, and the requested parties (shipper -> coordinator). Auto-resolves the rate sheet via RateSheetMapping1 for the requested shipper unless body.rate_sheet_id is provided. No DB writes — operator can iterate freely. To commit, call from_rate_sheet/create_for_shipper_pay_provider/v1 then attach_lig_to_shipper_pay_provider/v1. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[task_group_coordinator_operators] | (TaskGroupQuoteForShipperPayProviderClientReq) -> (TaskGroupQuoteResp)
|
|
1316
|
+
* Preview the LineItem materialization that would result from applying a rate sheet to the SPP vector of the named TaskGroup. Returns the resolved rate sheet, materialized LineItems (NOT inserted), the pre-adjustment total, and the requested parties (shipper -> coordinator). Auto-resolves the rate sheet via RateSheetMapping1 for the requested shipper unless body.rate_sheet_id is provided. No DB writes — operator can iterate freely. To commit, call from_rate_sheet/create_for_shipper_pay_provider/v1 then attach_lig_to_shipper_pay_provider/v1. | authz: allowed_org_types=[provider, shipper], min_org_role=operator, authz_personas=[task_group_coordinator_operators, shipper_org_operators] | (TaskGroupQuoteForShipperPayProviderClientReq) -> (TaskGroupQuoteResp)
|
|
1317
1317
|
*
|
|
1318
1318
|
* @param {string} taskGroupId
|
|
1319
1319
|
* @param {Chrt.shipping.TaskGroupQuoteForShipperPayProviderClientReq} request
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type CallerCredentialTypeEnum = "session_jwt" | "
|
|
4
|
+
export type CallerCredentialTypeEnum = "session_jwt" | "api_key" | "internal_delegation_jwt";
|
|
5
5
|
export declare const CallerCredentialTypeEnum: {
|
|
6
6
|
readonly SessionJwt: "session_jwt";
|
|
7
|
-
readonly M2MJwt: "m2m_jwt";
|
|
8
7
|
readonly ApiKey: "api_key";
|
|
9
8
|
readonly InternalDelegationJwt: "internal_delegation_jwt";
|
|
10
9
|
};
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CallerCredentialTypeEnum = void 0;
|
|
7
7
|
exports.CallerCredentialTypeEnum = {
|
|
8
8
|
SessionJwt: "session_jwt",
|
|
9
|
-
M2MJwt: "m2m_jwt",
|
|
10
9
|
ApiKey: "api_key",
|
|
11
10
|
InternalDelegationJwt: "internal_delegation_jwt",
|
|
12
11
|
};
|
|
@@ -5,8 +5,12 @@ import * as Chrt from "../index.js";
|
|
|
5
5
|
export interface Case1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
order_id: string;
|
|
8
|
+
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
9
|
+
order_ref?: string | null;
|
|
10
|
+
order_short_id?: string | null;
|
|
8
11
|
department_id?: string | null;
|
|
9
12
|
assigned_operator_user_ids?: string[];
|
|
13
|
+
case_s3_object_metadata_ids?: string[];
|
|
10
14
|
_id: string;
|
|
11
15
|
/** Must be a string starting with `org_` */
|
|
12
16
|
org_id: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface CaseS3ObjectMetadata1 {
|
|
5
|
+
schema_version: number;
|
|
6
|
+
_id: string;
|
|
7
|
+
case_id: string;
|
|
8
|
+
uploaded_at_timestamp: string;
|
|
9
|
+
/** Must be a string starting with `user_` */
|
|
10
|
+
uploaded_by_user_id: string;
|
|
11
|
+
/** Must be a string starting with `org_` */
|
|
12
|
+
uploaded_by_org_id: string;
|
|
13
|
+
s3_key_prefix?: "operations/case_s3_object_metadata";
|
|
14
|
+
blurhash?: string | null;
|
|
15
|
+
/** MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf') */
|
|
16
|
+
content_type?: string | null;
|
|
17
|
+
/** Original filename of the uploaded file */
|
|
18
|
+
filename?: string | null;
|
|
19
|
+
}
|
|
@@ -7,6 +7,7 @@ export interface OrgPrivateData1 {
|
|
|
7
7
|
org_type: Chrt.OrgTypeEnum;
|
|
8
8
|
/** Must be a string starting with `org_` */
|
|
9
9
|
org_id: string;
|
|
10
|
+
org_subscription?: boolean;
|
|
10
11
|
stripe_customer_id?: string | null;
|
|
11
12
|
stripe_connect_account_id?: string | null;
|
|
12
13
|
webhook_enabled?: boolean;
|
|
@@ -86,6 +86,7 @@ export * from "./CargojsonWeightUnit.js";
|
|
|
86
86
|
export * from "./Case1.js";
|
|
87
87
|
export * from "./CaseListRes.js";
|
|
88
88
|
export * from "./CaseMessage1.js";
|
|
89
|
+
export * from "./CaseS3ObjectMetadata1.js";
|
|
89
90
|
export * from "./CaseSortByEnum.js";
|
|
90
91
|
export * from "./CaseStatusEnum.js";
|
|
91
92
|
export * from "./ChampAirWaybill1.js";
|
|
@@ -102,6 +102,7 @@ __exportStar(require("./CargojsonWeightUnit.js"), exports);
|
|
|
102
102
|
__exportStar(require("./Case1.js"), exports);
|
|
103
103
|
__exportStar(require("./CaseListRes.js"), exports);
|
|
104
104
|
__exportStar(require("./CaseMessage1.js"), exports);
|
|
105
|
+
__exportStar(require("./CaseS3ObjectMetadata1.js"), exports);
|
|
105
106
|
__exportStar(require("./CaseSortByEnum.js"), exports);
|
|
106
107
|
__exportStar(require("./CaseStatusEnum.js"), exports);
|
|
107
108
|
__exportStar(require("./ChampAirWaybill1.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.675.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -20,8 +20,8 @@ export class ChrtClient {
|
|
|
20
20
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
21
21
|
"X-Fern-Language": "JavaScript",
|
|
22
22
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
23
|
-
"X-Fern-SDK-Version": "1.
|
|
24
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
23
|
+
"X-Fern-SDK-Version": "1.675.0",
|
|
24
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.675.0",
|
|
25
25
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
26
26
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
27
27
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -80,7 +80,7 @@ export declare class BillingLedgers {
|
|
|
80
80
|
createV1(request: Chrt.billing.BillingLedgerClientCreate1, requestOptions?: BillingLedgers.RequestOptions): core.HttpResponsePromise<string>;
|
|
81
81
|
private __createV1;
|
|
82
82
|
/**
|
|
83
|
-
* Updates a billing ledger's `comments`. Cycle and rate are per-period values supplied at `billing_ledger_periods/open/v1` time; the ledger does not carry them. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_owner_operators] | (BillingLedgerClientUpdate1) -> (bool)
|
|
83
|
+
* Updates a billing ledger's `name` and `comments`. Cycle and rate are per-period values supplied at `billing_ledger_periods/open/v1` time; the ledger does not carry them. | authz: allowed_org_types=[provider], min_org_role=operator, authz_personas=[billing_ledger_owner_operators] | (BillingLedgerClientUpdate1) -> (bool)
|
|
84
84
|
*
|
|
85
85
|
* @param {string} id
|
|
86
86
|
* @param {Chrt.billing.BillingLedgerClientUpdate1} request
|