@chrt-inc/typescript-sdk 1.661.0 → 1.662.1
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/billingLedgerPeriods/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.js +1 -0
- package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.js +2 -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/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +1 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +2 -0
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +2 -0
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/listing/resources/listings/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/listing/resources/listings/client/Client.js +6 -0
- package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +77 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +315 -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/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/CasesListV1Request.d.ts +2 -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/operations/resources/departments/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +2 -1
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +2 -1
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/orgs/client/Client.js +2 -1
- package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +1 -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/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +1 -0
- package/dist/cjs/api/types/BillingLedger1.d.ts +1 -0
- package/dist/cjs/api/types/Caller.d.ts +4 -3
- package/dist/cjs/api/types/CallerCredentialTypeEnum.d.ts +2 -2
- package/dist/cjs/api/types/CallerCredentialTypeEnum.js +1 -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/InternalDelegationTokenReq.d.ts +9 -0
- package/dist/cjs/api/types/InternalDelegationTokenReq.js +5 -0
- package/dist/cjs/api/types/InternalDelegationTokenRes.d.ts +6 -0
- package/dist/cjs/api/types/InternalDelegationTokenRes.js +5 -0
- package/dist/cjs/api/types/OrgInfoResponse.d.ts +5 -5
- package/dist/cjs/api/types/OrgPrivateData1.d.ts +1 -0
- package/dist/cjs/api/types/OrgRoleEnum.d.ts +7 -13
- package/dist/cjs/api/types/OrgRoleEnum.js +2 -2
- package/dist/cjs/api/types/UserPrivateData1.d.ts +1 -0
- package/dist/cjs/api/types/WorkflowActorContext.d.ts +14 -0
- package/dist/cjs/api/types/WorkflowActorContext.js +5 -0
- package/dist/cjs/api/types/index.d.ts +4 -1
- package/dist/cjs/api/types/index.js +4 -1
- 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/billingLedgerPeriods/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.mjs +1 -0
- package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.mts +1 -0
- package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.mjs +2 -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/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.mts +1 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +1 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.mts +1 -0
- package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +2 -0
- package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +1 -0
- package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +1 -0
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +2 -0
- package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.mts +1 -0
- package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.mts +1 -0
- package/dist/esm/api/resources/listing/resources/listings/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/listing/resources/listings/client/Client.mjs +6 -0
- package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.mts +2 -0
- package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.mts +2 -0
- package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.mts +2 -0
- package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +77 -0
- package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +315 -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/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/CasesListV1Request.d.mts +2 -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/operations/resources/departments/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +2 -1
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +2 -1
- package/dist/esm/api/resources/orgs/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/orgs/client/Client.mjs +2 -1
- package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +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/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +1 -0
- package/dist/esm/api/types/BillingLedger1.d.mts +1 -0
- package/dist/esm/api/types/Caller.d.mts +4 -3
- package/dist/esm/api/types/CallerCredentialTypeEnum.d.mts +2 -2
- package/dist/esm/api/types/CallerCredentialTypeEnum.mjs +1 -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/InternalDelegationTokenReq.d.mts +9 -0
- package/dist/esm/api/types/InternalDelegationTokenReq.mjs +4 -0
- package/dist/esm/api/types/InternalDelegationTokenRes.d.mts +6 -0
- package/dist/esm/api/types/InternalDelegationTokenRes.mjs +4 -0
- package/dist/esm/api/types/OrgInfoResponse.d.mts +5 -5
- package/dist/esm/api/types/OrgPrivateData1.d.mts +1 -0
- package/dist/esm/api/types/OrgRoleEnum.d.mts +7 -13
- package/dist/esm/api/types/OrgRoleEnum.mjs +2 -2
- package/dist/esm/api/types/UserPrivateData1.d.mts +1 -0
- package/dist/esm/api/types/WorkflowActorContext.d.mts +14 -0
- package/dist/esm/api/types/WorkflowActorContext.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +4 -1
- package/dist/esm/api/types/index.mjs +4 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +694 -63
- package/dist/cjs/api/types/ClerkOrgData.d.ts +0 -12
- package/dist/esm/api/types/ClerkOrgData.d.mts +0 -12
- /package/dist/cjs/api/{types/ClerkOrgData.js → resources/operations/resources/cases/client/requests/CaseNeedsActionReq.js} +0 -0
- /package/dist/esm/api/{types/ClerkOrgData.mjs → resources/operations/resources/cases/client/requests/CaseNeedsActionReq.mjs} +0 -0
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);
|
|
@@ -43,7 +43,8 @@ export declare class Departments {
|
|
|
43
43
|
* sort_by: "created_at",
|
|
44
44
|
* sort_order: "asc",
|
|
45
45
|
* page: 1,
|
|
46
|
-
* page_size: 1
|
|
46
|
+
* page_size: 1,
|
|
47
|
+
* filter_department: ["automotive"]
|
|
47
48
|
* })
|
|
48
49
|
*/
|
|
49
50
|
listV1(request?: Chrt.operations.DepartmentsListV1Request, requestOptions?: Departments.RequestOptions): core.HttpResponsePromise<Chrt.DepartmentListRes>;
|
|
@@ -71,6 +71,7 @@ export declare class Orgs {
|
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
73
|
* await client.orgs.listMembersV1({
|
|
74
|
+
* filter_role: ["owner"],
|
|
74
75
|
* sort_by: "first_name",
|
|
75
76
|
* sort_order: "asc",
|
|
76
77
|
* page: 1,
|
|
@@ -81,7 +82,7 @@ export declare class Orgs {
|
|
|
81
82
|
listMembersV1(request?: Chrt.OrgsListMembersV1Request, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgMemberListRes>;
|
|
82
83
|
private __listMembersV1;
|
|
83
84
|
/**
|
|
84
|
-
* Single onboarding entry point. Sets `org_type` in
|
|
85
|
+
* Single onboarding entry point. Sets `org_type` in WorkOS JWT metadata (immutable once set) and idempotently creates `org_private_data` + `org_public_data` for the caller's organization. Optional `handle` and `company_name` populate the public doc on first call; later updates go through PATCH /orgs/org_public_data/v1. Returns True on success (including idempotent retries), 400 on org_type conflict or handle collision. | (SetupOrgReq) -> (bool)
|
|
85
86
|
*
|
|
86
87
|
* @param {Chrt.SetupOrgReq} request
|
|
87
88
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -151,6 +151,7 @@ class Orgs {
|
|
|
151
151
|
*
|
|
152
152
|
* @example
|
|
153
153
|
* await client.orgs.listMembersV1({
|
|
154
|
+
* filter_role: ["owner"],
|
|
154
155
|
* sort_by: "first_name",
|
|
155
156
|
* sort_order: "asc",
|
|
156
157
|
* page: 1,
|
|
@@ -232,7 +233,7 @@ class Orgs {
|
|
|
232
233
|
});
|
|
233
234
|
}
|
|
234
235
|
/**
|
|
235
|
-
* Single onboarding entry point. Sets `org_type` in
|
|
236
|
+
* Single onboarding entry point. Sets `org_type` in WorkOS JWT metadata (immutable once set) and idempotently creates `org_private_data` + `org_public_data` for the caller's organization. Optional `handle` and `company_name` populate the public doc on first call; later updates go through PATCH /orgs/org_public_data/v1. Returns True on success (including idempotent retries), 400 on org_type conflict or handle collision. | (SetupOrgReq) -> (bool)
|
|
236
237
|
*
|
|
237
238
|
* @param {Chrt.SetupOrgReq} request
|
|
238
239
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -85,7 +85,7 @@ export declare class OrgProfiles {
|
|
|
85
85
|
getByHandleV1(handle: string, requestOptions?: OrgProfiles.RequestOptions): core.HttpResponsePromise<Chrt.ProviderOrgProfile1>;
|
|
86
86
|
private __getByHandleV1;
|
|
87
87
|
/**
|
|
88
|
-
* Returns the organization avatar image URL from
|
|
88
|
+
* Returns the organization avatar image URL from WorkOS or a placeholder if not found. | () -> (str)
|
|
89
89
|
*
|
|
90
90
|
* @param {string} handle
|
|
91
91
|
* @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -295,7 +295,7 @@ class OrgProfiles {
|
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
/**
|
|
298
|
-
* Returns the organization avatar image URL from
|
|
298
|
+
* Returns the organization avatar image URL from WorkOS or a placeholder if not found. | () -> (str)
|
|
299
299
|
*
|
|
300
300
|
* @param {string} handle
|
|
301
301
|
* @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -64,6 +64,7 @@ export declare class Drivers {
|
|
|
64
64
|
* @example
|
|
65
65
|
* await client.shipping.drivers.listOrgMembersAndDriversV1({
|
|
66
66
|
* search: "search",
|
|
67
|
+
* filter_role: ["owner"],
|
|
67
68
|
* filter_available_according_to_driver: true,
|
|
68
69
|
* filter_available_according_to_operators: true,
|
|
69
70
|
* sort_by: "first_name",
|
|
@@ -187,6 +187,7 @@ class Drivers {
|
|
|
187
187
|
* @example
|
|
188
188
|
* await client.shipping.drivers.listOrgMembersAndDriversV1({
|
|
189
189
|
* search: "search",
|
|
190
|
+
* filter_role: ["owner"],
|
|
190
191
|
* filter_available_according_to_driver: true,
|
|
191
192
|
* filter_available_according_to_operators: true,
|
|
192
193
|
* sort_by: "first_name",
|
|
@@ -47,6 +47,8 @@ export declare class OrderSchedules {
|
|
|
47
47
|
* sort_order: "asc",
|
|
48
48
|
* page: 1,
|
|
49
49
|
* page_size: 1,
|
|
50
|
+
* filter_status: ["draft"],
|
|
51
|
+
* filter_orchestrator_schedule_status: ["not_created"],
|
|
50
52
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
51
53
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
52
54
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -74,6 +74,8 @@ class OrderSchedules {
|
|
|
74
74
|
* sort_order: "asc",
|
|
75
75
|
* page: 1,
|
|
76
76
|
* page_size: 1,
|
|
77
|
+
* filter_status: ["draft"],
|
|
78
|
+
* filter_orchestrator_schedule_status: ["not_created"],
|
|
77
79
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
78
80
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
79
81
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -9,6 +9,8 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
+
* filter_status: ["draft"],
|
|
13
|
+
* filter_orchestrator_schedule_status: ["not_created"],
|
|
12
14
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
13
15
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
14
16
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ export declare class Expanded {
|
|
|
73
73
|
* page: 1,
|
|
74
74
|
* page_size: 1,
|
|
75
75
|
* search: "search",
|
|
76
|
+
* filter_status: ["draft"],
|
|
76
77
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
77
78
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
78
79
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -109,6 +110,7 @@ export declare class Expanded {
|
|
|
109
110
|
* page: 1,
|
|
110
111
|
* page_size: 1,
|
|
111
112
|
* search: "search",
|
|
113
|
+
* filter_status: ["draft"],
|
|
112
114
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
113
115
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
114
116
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js
CHANGED
|
@@ -196,6 +196,7 @@ class Expanded {
|
|
|
196
196
|
* page: 1,
|
|
197
197
|
* page_size: 1,
|
|
198
198
|
* search: "search",
|
|
199
|
+
* filter_status: ["draft"],
|
|
199
200
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
200
201
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
201
202
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -354,6 +355,7 @@ class Expanded {
|
|
|
354
355
|
* page: 1,
|
|
355
356
|
* page_size: 1,
|
|
356
357
|
* search: "search",
|
|
358
|
+
* filter_status: ["draft"],
|
|
357
359
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
358
360
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
359
361
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -10,6 +10,7 @@ import * as Chrt from "../../../../../../../../index.js";
|
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
12
|
* search: "search",
|
|
13
|
+
* filter_status: ["draft"],
|
|
13
14
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
14
15
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
15
16
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -10,6 +10,7 @@ import * as Chrt from "../../../../../../../../index.js";
|
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
12
|
* search: "search",
|
|
13
|
+
* filter_status: ["draft"],
|
|
13
14
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
14
15
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
15
16
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -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
|
package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ export declare class Expanded {
|
|
|
101
101
|
* page: 1,
|
|
102
102
|
* page_size: 1,
|
|
103
103
|
* search: "search",
|
|
104
|
+
* filter_status: ["draft"],
|
|
104
105
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
105
106
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
106
107
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -138,6 +139,7 @@ export declare class Expanded {
|
|
|
138
139
|
* page: 1,
|
|
139
140
|
* page_size: 1,
|
|
140
141
|
* search: "search",
|
|
142
|
+
* filter_status: ["draft"],
|
|
141
143
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
142
144
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
143
145
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|