@chrt-inc/typescript-sdk 1.647.0 → 1.652.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/README.md +8 -8
- 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 +1 -0
- package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.js +1 -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/rateSheetMappings/client/Client.d.ts +19 -0
- package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/Client.js +79 -0
- package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListRateSheetIdsByCounterpartyV1Request.d.ts +18 -0
- package/dist/cjs/api/resources/billing/resources/rateSheetMappings/client/requests/index.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/billing/resources/stripe/client/Client.d.ts +7 -6
- package/dist/cjs/api/resources/billing/resources/stripe/client/Client.js +11 -10
- package/dist/cjs/api/resources/billing/resources/stripe/client/requests/CreateCheckoutSessionReq.d.ts +4 -3
- 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 +2 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +2 -0
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +2 -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 +6 -5
- package/dist/cjs/api/resources/orgs/client/Client.js +9 -8
- package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/{resources/publicData/client/requests/CreateOrgPublicDataReq.d.ts → client/requests/SetupOrgReq.d.ts} +6 -2
- package/dist/cjs/api/resources/orgs/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.d.ts +0 -13
- package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.js +0 -62
- package/dist/cjs/api/resources/orgs/resources/publicData/client/requests/index.d.ts +0 -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/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/CreateCustomerPortalSessionRes.d.ts +6 -0
- package/dist/cjs/api/types/OrgPrivateData1.d.ts +1 -0
- package/dist/cjs/api/types/UserPrivateData1.d.ts +0 -1
- package/dist/cjs/api/types/index.d.ts +1 -2
- package/dist/cjs/api/types/index.js +1 -2
- 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 +1 -0
- package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.mjs +1 -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/rateSheetMappings/client/Client.d.mts +19 -0
- package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/Client.mjs +79 -0
- package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListRateSheetIdsByCounterpartyV1Request.d.mts +18 -0
- package/dist/esm/api/resources/billing/resources/rateSheetMappings/client/requests/index.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/billing/resources/stripe/client/Client.d.mts +7 -6
- package/dist/esm/api/resources/billing/resources/stripe/client/Client.mjs +11 -10
- package/dist/esm/api/resources/billing/resources/stripe/client/requests/CreateCheckoutSessionReq.d.mts +4 -3
- 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 +2 -0
- package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +2 -0
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +2 -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 +6 -5
- package/dist/esm/api/resources/orgs/client/Client.mjs +9 -8
- package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +1 -0
- package/dist/esm/api/resources/orgs/{resources/publicData/client/requests/CreateOrgPublicDataReq.d.mts → client/requests/SetupOrgReq.d.mts} +6 -2
- package/dist/esm/api/resources/orgs/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/publicData/client/Client.d.mts +0 -13
- package/dist/esm/api/resources/orgs/resources/publicData/client/Client.mjs +0 -62
- package/dist/esm/api/resources/orgs/resources/publicData/client/requests/index.d.mts +0 -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/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/CreateCustomerPortalSessionRes.d.mts +6 -0
- package/dist/esm/api/types/OrgPrivateData1.d.mts +1 -0
- package/dist/esm/api/types/UserPrivateData1.d.mts +0 -1
- package/dist/esm/api/types/index.d.mts +1 -2
- package/dist/esm/api/types/index.mjs +1 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +110 -72
- package/dist/cjs/api/resources/orgs/client/requests/SetOrgTypeReq.d.ts +0 -13
- package/dist/cjs/api/types/CreateOrgPublicDataRes.d.ts +0 -7
- package/dist/cjs/api/types/PriceNameEnum.d.ts +0 -9
- package/dist/cjs/api/types/PriceNameEnum.js +0 -11
- package/dist/esm/api/resources/orgs/client/requests/SetOrgTypeReq.d.mts +0 -13
- package/dist/esm/api/types/CreateOrgPublicDataRes.d.mts +0 -7
- package/dist/esm/api/types/PriceNameEnum.d.mts +0 -9
- package/dist/esm/api/types/PriceNameEnum.mjs +0 -8
- /package/dist/cjs/api/resources/{orgs/client/requests/SetOrgTypeReq.js → billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListRateSheetIdsByCounterpartyV1Request.js} +0 -0
- /package/dist/cjs/api/resources/orgs/{resources/publicData/client/requests/CreateOrgPublicDataReq.js → client/requests/SetupOrgReq.js} +0 -0
- /package/dist/cjs/api/types/{CreateOrgPublicDataRes.js → CreateCustomerPortalSessionRes.js} +0 -0
- /package/dist/esm/api/resources/{orgs/client/requests/SetOrgTypeReq.mjs → billing/resources/rateSheetMappings/client/requests/RateSheetMappingsListRateSheetIdsByCounterpartyV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/orgs/{resources/publicData/client/requests/CreateOrgPublicDataReq.mjs → client/requests/SetupOrgReq.mjs} +0 -0
- /package/dist/esm/api/types/{CreateOrgPublicDataRes.mjs → CreateCustomerPortalSessionRes.mjs} +0 -0
package/reference.md
CHANGED
|
@@ -86,6 +86,7 @@ Lists all members of the caller's organization with their roles and details. Sup
|
|
|
86
86
|
|
|
87
87
|
```typescript
|
|
88
88
|
await client.orgs.listMembersV1({
|
|
89
|
+
filter_role: ["owner"],
|
|
89
90
|
sort_by: "first_name",
|
|
90
91
|
sort_order: "asc",
|
|
91
92
|
page: 1,
|
|
@@ -126,7 +127,7 @@ await client.orgs.listMembersV1({
|
|
|
126
127
|
</dl>
|
|
127
128
|
</details>
|
|
128
129
|
|
|
129
|
-
<details><summary><code>client.orgs.<a href="/src/api/resources/orgs/client/Client.ts">
|
|
130
|
+
<details><summary><code>client.orgs.<a href="/src/api/resources/orgs/client/Client.ts">setupOrgV1</a>({ ...params }) -> boolean</code></summary>
|
|
130
131
|
<dl>
|
|
131
132
|
<dd>
|
|
132
133
|
|
|
@@ -138,7 +139,7 @@ await client.orgs.listMembersV1({
|
|
|
138
139
|
<dl>
|
|
139
140
|
<dd>
|
|
140
141
|
|
|
141
|
-
Sets
|
|
142
|
+
Single onboarding entry point. Sets `org_type` in Clerk's JWT public 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)
|
|
142
143
|
|
|
143
144
|
</dd>
|
|
144
145
|
</dl>
|
|
@@ -154,7 +155,7 @@ Sets the org_type in Clerk's JWT public metadata. Returns True if already set an
|
|
|
154
155
|
<dd>
|
|
155
156
|
|
|
156
157
|
```typescript
|
|
157
|
-
await client.orgs.
|
|
158
|
+
await client.orgs.setupOrgV1({
|
|
158
159
|
org_type: "provider",
|
|
159
160
|
});
|
|
160
161
|
```
|
|
@@ -172,7 +173,7 @@ await client.orgs.setOrgTypeV1({
|
|
|
172
173
|
<dl>
|
|
173
174
|
<dd>
|
|
174
175
|
|
|
175
|
-
**request:** `Chrt.
|
|
176
|
+
**request:** `Chrt.SetupOrgReq`
|
|
176
177
|
|
|
177
178
|
</dd>
|
|
178
179
|
</dl>
|
|
@@ -480,6 +481,7 @@ await client.billing.billingLedgers.listV1({
|
|
|
480
481
|
sort_order: "asc",
|
|
481
482
|
page: 1,
|
|
482
483
|
page_size: 1,
|
|
484
|
+
filter_status: ["active"],
|
|
483
485
|
filter_task_group_type: "chrt_ground_provider",
|
|
484
486
|
filter_payment_origin_org_id: "filter_payment_origin_org_id",
|
|
485
487
|
filter_payment_destination_org_id: "filter_payment_destination_org_id",
|
|
@@ -817,6 +819,7 @@ await client.billing.billingLedgerPeriods.listV1({
|
|
|
817
819
|
page_size: 1,
|
|
818
820
|
filter_billing_ledger_id: "filter_billing_ledger_id",
|
|
819
821
|
filter_owned_by_org_id: "filter_owned_by_org_id",
|
|
822
|
+
filter_status: ["open"],
|
|
820
823
|
filter_statement_id: "filter_statement_id",
|
|
821
824
|
filter_attached_to_statement: true,
|
|
822
825
|
filter_period_end_at_timestamp_before: "2024-01-15T09:30:00Z",
|
|
@@ -1161,6 +1164,7 @@ await client.billing.lineItemGroups.listV1({
|
|
|
1161
1164
|
sort_order: "asc",
|
|
1162
1165
|
page: 1,
|
|
1163
1166
|
page_size: 1,
|
|
1167
|
+
filter_status: ["staged"],
|
|
1164
1168
|
filter_task_group_id: "filter_task_group_id",
|
|
1165
1169
|
filter_order_id: "filter_order_id",
|
|
1166
1170
|
filter_order_short_id: "filter_order_short_id",
|
|
@@ -3529,6 +3533,82 @@ await client.billing.rateSheetMappings.listV1({
|
|
|
3529
3533
|
</dl>
|
|
3530
3534
|
</details>
|
|
3531
3535
|
|
|
3536
|
+
<details><summary><code>client.billing.rateSheetMappings.<a href="/src/api/resources/billing/resources/rateSheetMappings/client/Client.ts">listRateSheetIdsByCounterpartyV1</a>(tgType, { ...params }) -> string[]</code></summary>
|
|
3537
|
+
<dl>
|
|
3538
|
+
<dd>
|
|
3539
|
+
|
|
3540
|
+
#### 📝 Description
|
|
3541
|
+
|
|
3542
|
+
<dl>
|
|
3543
|
+
<dd>
|
|
3544
|
+
|
|
3545
|
+
<dl>
|
|
3546
|
+
<dd>
|
|
3547
|
+
|
|
3548
|
+
Lists rate sheet IDs mapped to a counterparty for the requested task group type. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[PydanticObjectId])
|
|
3549
|
+
|
|
3550
|
+
</dd>
|
|
3551
|
+
</dl>
|
|
3552
|
+
</dd>
|
|
3553
|
+
</dl>
|
|
3554
|
+
|
|
3555
|
+
#### 🔌 Usage
|
|
3556
|
+
|
|
3557
|
+
<dl>
|
|
3558
|
+
<dd>
|
|
3559
|
+
|
|
3560
|
+
<dl>
|
|
3561
|
+
<dd>
|
|
3562
|
+
|
|
3563
|
+
```typescript
|
|
3564
|
+
await client.billing.rateSheetMappings.listRateSheetIdsByCounterpartyV1("chrt_ground_provider", {
|
|
3565
|
+
counterparty_org_id: "counterparty_org_id",
|
|
3566
|
+
counterparty_driver_id: "counterparty_driver_id",
|
|
3567
|
+
counterparty_off_chrt_provider_org_id: "counterparty_off_chrt_provider_org_id",
|
|
3568
|
+
counterparty_off_chrt_shipper_org_id: "counterparty_off_chrt_shipper_org_id",
|
|
3569
|
+
});
|
|
3570
|
+
```
|
|
3571
|
+
|
|
3572
|
+
</dd>
|
|
3573
|
+
</dl>
|
|
3574
|
+
</dd>
|
|
3575
|
+
</dl>
|
|
3576
|
+
|
|
3577
|
+
#### ⚙️ Parameters
|
|
3578
|
+
|
|
3579
|
+
<dl>
|
|
3580
|
+
<dd>
|
|
3581
|
+
|
|
3582
|
+
<dl>
|
|
3583
|
+
<dd>
|
|
3584
|
+
|
|
3585
|
+
**tgType:** `Chrt.TaskGroupTypeEnum1`
|
|
3586
|
+
|
|
3587
|
+
</dd>
|
|
3588
|
+
</dl>
|
|
3589
|
+
|
|
3590
|
+
<dl>
|
|
3591
|
+
<dd>
|
|
3592
|
+
|
|
3593
|
+
**request:** `Chrt.billing.RateSheetMappingsListRateSheetIdsByCounterpartyV1Request`
|
|
3594
|
+
|
|
3595
|
+
</dd>
|
|
3596
|
+
</dl>
|
|
3597
|
+
|
|
3598
|
+
<dl>
|
|
3599
|
+
<dd>
|
|
3600
|
+
|
|
3601
|
+
**requestOptions:** `RateSheetMappings.RequestOptions`
|
|
3602
|
+
|
|
3603
|
+
</dd>
|
|
3604
|
+
</dl>
|
|
3605
|
+
</dd>
|
|
3606
|
+
</dl>
|
|
3607
|
+
|
|
3608
|
+
</dd>
|
|
3609
|
+
</dl>
|
|
3610
|
+
</details>
|
|
3611
|
+
|
|
3532
3612
|
<details><summary><code>client.billing.rateSheetMappings.<a href="/src/api/resources/billing/resources/rateSheetMappings/client/Client.ts">createV1</a>({ ...params }) -> string</code></summary>
|
|
3533
3613
|
<dl>
|
|
3534
3614
|
<dd>
|
|
@@ -4120,6 +4200,7 @@ await client.billing.statements.listV1({
|
|
|
4120
4200
|
sort_order: "asc",
|
|
4121
4201
|
page: 1,
|
|
4122
4202
|
page_size: 1,
|
|
4203
|
+
filter_status: ["staged"],
|
|
4123
4204
|
filter_settlement_type: "stripe_connect",
|
|
4124
4205
|
filter_order_id: "filter_order_id",
|
|
4125
4206
|
filter_order_short_id: "filter_order_short_id",
|
|
@@ -4204,6 +4285,7 @@ await client.billing.statements.expandedListV1({
|
|
|
4204
4285
|
sort_order: "asc",
|
|
4205
4286
|
page: 1,
|
|
4206
4287
|
page_size: 1,
|
|
4288
|
+
filter_status: ["staged"],
|
|
4207
4289
|
filter_settlement_type: "stripe_connect",
|
|
4208
4290
|
filter_order_id: "filter_order_id",
|
|
4209
4291
|
filter_order_short_id: "filter_order_short_id",
|
|
@@ -5132,7 +5214,7 @@ await client.billing.statements.deleteV1("statement_id");
|
|
|
5132
5214
|
<dl>
|
|
5133
5215
|
<dd>
|
|
5134
5216
|
|
|
5135
|
-
Creates a Stripe checkout session for a subscription
|
|
5217
|
+
Creates a Stripe checkout session for a subscription against the Stripe product+price chosen by the frontend. Stripe rejects unknown/archived/mode-mismatched price IDs. Returns 409 `use_create_customer_portal_session` if the org already has an active subscription in Stripe (source of truth -- bypasses any JWT staleness). FE should route those users to POST /billing/create-customer-portal-session/v1 to manage. authz: allowed_org_types=[provider] (shippers cannot subscribe -- they are never gated, paying would be a no-op), min_org_role=administrator (committing the company to recurring charges is a finance decision, not an operator one). | (CreateCheckoutSessionReq) -> (CreateCheckoutSessionRes)
|
|
5136
5218
|
|
|
5137
5219
|
</dd>
|
|
5138
5220
|
</dl>
|
|
@@ -5149,7 +5231,8 @@ Creates a Stripe checkout session for a subscription with pricing based on the s
|
|
|
5149
5231
|
|
|
5150
5232
|
```typescript
|
|
5151
5233
|
await client.billing.stripe.createCheckoutSessionV1({
|
|
5152
|
-
|
|
5234
|
+
product_id: "product_id",
|
|
5235
|
+
price_id: "price_id",
|
|
5153
5236
|
});
|
|
5154
5237
|
```
|
|
5155
5238
|
|
|
@@ -5185,7 +5268,7 @@ await client.billing.stripe.createCheckoutSessionV1({
|
|
|
5185
5268
|
</dl>
|
|
5186
5269
|
</details>
|
|
5187
5270
|
|
|
5188
|
-
<details><summary><code>client.billing.stripe.<a href="/src/api/resources/billing/resources/stripe/client/Client.ts">
|
|
5271
|
+
<details><summary><code>client.billing.stripe.<a href="/src/api/resources/billing/resources/stripe/client/Client.ts">createCustomerPortalSessionV1</a>() -> Chrt.CreateCustomerPortalSessionRes</code></summary>
|
|
5189
5272
|
<dl>
|
|
5190
5273
|
<dd>
|
|
5191
5274
|
|
|
@@ -5197,7 +5280,7 @@ await client.billing.stripe.createCheckoutSessionV1({
|
|
|
5197
5280
|
<dl>
|
|
5198
5281
|
<dd>
|
|
5199
5282
|
|
|
5200
|
-
|
|
5283
|
+
Creates a Stripe customer-portal session so the org's admin can self-serve update card / view invoices / cancel subscription. authz: allowed_org_types=[provider], min_org_role=administrator (same gate as create-checkout-session — cancelling/updating-card has the same financial weight as subscribing). Returns 404 `use_create_checkout_session` if the org has no Stripe customer. POST /billing/create-checkout-session/v1 first. | (no body) -> (CreateCustomerPortalSessionRes)
|
|
5201
5284
|
|
|
5202
5285
|
</dd>
|
|
5203
5286
|
</dl>
|
|
@@ -5213,7 +5296,7 @@ Synchronizes subscription data from Stripe to the authentication service for the
|
|
|
5213
5296
|
<dd>
|
|
5214
5297
|
|
|
5215
5298
|
```typescript
|
|
5216
|
-
await client.billing.stripe.
|
|
5299
|
+
await client.billing.stripe.createCustomerPortalSessionV1();
|
|
5217
5300
|
```
|
|
5218
5301
|
|
|
5219
5302
|
</dd>
|
|
@@ -6575,6 +6658,8 @@ await client.listing.listings.listByOrgV1({
|
|
|
6575
6658
|
sort_order: "asc",
|
|
6576
6659
|
page: 1,
|
|
6577
6660
|
page_size: 1,
|
|
6661
|
+
filter_status: ["open"],
|
|
6662
|
+
filter_type: ["dispatch"],
|
|
6578
6663
|
filter_task_group_id: "filter_task_group_id",
|
|
6579
6664
|
filter_order_id: "filter_order_id",
|
|
6580
6665
|
filter_created_by_org_id: "filter_created_by_org_id",
|
|
@@ -6651,6 +6736,8 @@ await client.listing.listings.listForProviderBidderV1({
|
|
|
6651
6736
|
sort_order: "asc",
|
|
6652
6737
|
page: 1,
|
|
6653
6738
|
page_size: 1,
|
|
6739
|
+
filter_status: ["open"],
|
|
6740
|
+
filter_type: ["dispatch"],
|
|
6654
6741
|
filter_task_group_id: "filter_task_group_id",
|
|
6655
6742
|
filter_order_id: "filter_order_id",
|
|
6656
6743
|
filter_created_by_org_id: "filter_created_by_org_id",
|
|
@@ -6727,6 +6814,8 @@ await client.listing.listings.listForDriverBidderV1({
|
|
|
6727
6814
|
sort_order: "asc",
|
|
6728
6815
|
page: 1,
|
|
6729
6816
|
page_size: 1,
|
|
6817
|
+
filter_status: ["open"],
|
|
6818
|
+
filter_type: ["dispatch"],
|
|
6730
6819
|
filter_task_group_id: "filter_task_group_id",
|
|
6731
6820
|
filter_order_id: "filter_order_id",
|
|
6732
6821
|
filter_created_by_org_id: "filter_created_by_org_id",
|
|
@@ -8320,6 +8409,7 @@ await client.listing.bidThreads.listForListingV1("listing_id", {
|
|
|
8320
8409
|
sort_order: "asc",
|
|
8321
8410
|
page: 1,
|
|
8322
8411
|
page_size: 1,
|
|
8412
|
+
filter_status: ["open"],
|
|
8323
8413
|
filter_listing_id: "filter_listing_id",
|
|
8324
8414
|
filter_bidder_provider_org_id: "filter_bidder_provider_org_id",
|
|
8325
8415
|
filter_bidder_driver_id: "filter_bidder_driver_id",
|
|
@@ -8403,6 +8493,7 @@ await client.listing.bidThreads.listForBidderV1({
|
|
|
8403
8493
|
sort_order: "asc",
|
|
8404
8494
|
page: 1,
|
|
8405
8495
|
page_size: 1,
|
|
8496
|
+
filter_status: ["open"],
|
|
8406
8497
|
filter_listing_id: "filter_listing_id",
|
|
8407
8498
|
filter_bidder_provider_org_id: "filter_bidder_provider_org_id",
|
|
8408
8499
|
filter_bidder_driver_id: "filter_bidder_driver_id",
|
|
@@ -10391,6 +10482,8 @@ await client.operations.cases.listV1({
|
|
|
10391
10482
|
sort_order: "asc",
|
|
10392
10483
|
page: 1,
|
|
10393
10484
|
page_size: 1,
|
|
10485
|
+
filter_status: ["open"],
|
|
10486
|
+
filter_department_id: ["filter_department_id"],
|
|
10394
10487
|
filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
|
|
10395
10488
|
filter_needs_action: true,
|
|
10396
10489
|
filter_unassigned: true,
|
|
@@ -10880,6 +10973,7 @@ await client.operations.departments.listV1({
|
|
|
10880
10973
|
sort_order: "asc",
|
|
10881
10974
|
page: 1,
|
|
10882
10975
|
page_size: 1,
|
|
10976
|
+
filter_department: ["automotive"],
|
|
10883
10977
|
});
|
|
10884
10978
|
```
|
|
10885
10979
|
|
|
@@ -12885,69 +12979,6 @@ await client.orgs.publicData.getV1();
|
|
|
12885
12979
|
</dl>
|
|
12886
12980
|
</details>
|
|
12887
12981
|
|
|
12888
|
-
<details><summary><code>client.orgs.publicData.<a href="/src/api/resources/orgs/resources/publicData/client/Client.ts">createV1</a>({ ...params }) -> Chrt.CreateOrgPublicDataRes</code></summary>
|
|
12889
|
-
<dl>
|
|
12890
|
-
<dd>
|
|
12891
|
-
|
|
12892
|
-
#### 📝 Description
|
|
12893
|
-
|
|
12894
|
-
<dl>
|
|
12895
|
-
<dd>
|
|
12896
|
-
|
|
12897
|
-
<dl>
|
|
12898
|
-
<dd>
|
|
12899
|
-
|
|
12900
|
-
Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
|
|
12901
|
-
|
|
12902
|
-
</dd>
|
|
12903
|
-
</dl>
|
|
12904
|
-
</dd>
|
|
12905
|
-
</dl>
|
|
12906
|
-
|
|
12907
|
-
#### 🔌 Usage
|
|
12908
|
-
|
|
12909
|
-
<dl>
|
|
12910
|
-
<dd>
|
|
12911
|
-
|
|
12912
|
-
<dl>
|
|
12913
|
-
<dd>
|
|
12914
|
-
|
|
12915
|
-
```typescript
|
|
12916
|
-
await client.orgs.publicData.createV1();
|
|
12917
|
-
```
|
|
12918
|
-
|
|
12919
|
-
</dd>
|
|
12920
|
-
</dl>
|
|
12921
|
-
</dd>
|
|
12922
|
-
</dl>
|
|
12923
|
-
|
|
12924
|
-
#### ⚙️ Parameters
|
|
12925
|
-
|
|
12926
|
-
<dl>
|
|
12927
|
-
<dd>
|
|
12928
|
-
|
|
12929
|
-
<dl>
|
|
12930
|
-
<dd>
|
|
12931
|
-
|
|
12932
|
-
**request:** `Chrt.orgs.CreateOrgPublicDataReq`
|
|
12933
|
-
|
|
12934
|
-
</dd>
|
|
12935
|
-
</dl>
|
|
12936
|
-
|
|
12937
|
-
<dl>
|
|
12938
|
-
<dd>
|
|
12939
|
-
|
|
12940
|
-
**requestOptions:** `PublicData.RequestOptions`
|
|
12941
|
-
|
|
12942
|
-
</dd>
|
|
12943
|
-
</dl>
|
|
12944
|
-
</dd>
|
|
12945
|
-
</dl>
|
|
12946
|
-
|
|
12947
|
-
</dd>
|
|
12948
|
-
</dl>
|
|
12949
|
-
</details>
|
|
12950
|
-
|
|
12951
12982
|
<details><summary><code>client.orgs.publicData.<a href="/src/api/resources/orgs/resources/publicData/client/Client.ts">updateV1</a>({ ...params }) -> boolean</code></summary>
|
|
12952
12983
|
<dl>
|
|
12953
12984
|
<dd>
|
|
@@ -13714,6 +13745,7 @@ Lists all organization members paired with their driver information if they are
|
|
|
13714
13745
|
```typescript
|
|
13715
13746
|
await client.shipping.drivers.listOrgMembersAndDriversV1({
|
|
13716
13747
|
search: "search",
|
|
13748
|
+
filter_role: ["owner"],
|
|
13717
13749
|
filter_available_according_to_driver: true,
|
|
13718
13750
|
filter_available_according_to_operators: true,
|
|
13719
13751
|
sort_by: "first_name",
|
|
@@ -15130,6 +15162,8 @@ await client.shipping.orderSchedules.listV1({
|
|
|
15130
15162
|
sort_order: "asc",
|
|
15131
15163
|
page: 1,
|
|
15132
15164
|
page_size: 1,
|
|
15165
|
+
filter_status: ["draft"],
|
|
15166
|
+
filter_orchestrator_schedule_status: ["not_created"],
|
|
15133
15167
|
filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
15134
15168
|
filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
15135
15169
|
filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -19271,6 +19305,7 @@ await client.shipping.orders.expanded.listForCoordinatorOperatorsV1({
|
|
|
19271
19305
|
page: 1,
|
|
19272
19306
|
page_size: 1,
|
|
19273
19307
|
search: "search",
|
|
19308
|
+
filter_status: ["draft"],
|
|
19274
19309
|
filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
19275
19310
|
filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
19276
19311
|
filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -19357,6 +19392,7 @@ await client.shipping.orders.expanded.listForShipperOperatorsV1({
|
|
|
19357
19392
|
page: 1,
|
|
19358
19393
|
page_size: 1,
|
|
19359
19394
|
search: "search",
|
|
19395
|
+
filter_status: ["draft"],
|
|
19360
19396
|
filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
19361
19397
|
filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
19362
19398
|
filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -20450,6 +20486,7 @@ await client.shipping.taskGroups.expanded.listForExecutorOperatorsV1({
|
|
|
20450
20486
|
page: 1,
|
|
20451
20487
|
page_size: 1,
|
|
20452
20488
|
search: "search",
|
|
20489
|
+
filter_status: ["draft"],
|
|
20453
20490
|
filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
20454
20491
|
filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20455
20492
|
filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -20537,6 +20574,7 @@ await client.shipping.taskGroups.expanded.listForDriverForExecutorV1({
|
|
|
20537
20574
|
page: 1,
|
|
20538
20575
|
page_size: 1,
|
|
20539
20576
|
search: "search",
|
|
20577
|
+
filter_status: ["draft"],
|
|
20540
20578
|
filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
20541
20579
|
filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20542
20580
|
filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../../../../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* org_type: "provider"
|
|
9
|
-
* }
|
|
10
|
-
*/
|
|
11
|
-
export interface SetOrgTypeReq {
|
|
12
|
-
org_type: Chrt.OrgTypeEnum;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type PriceNameEnum = "courier_ops_100_usd_per_month" | "courier_ops_500_usd_per_month" | "courier_ops_2500_usd_per_month";
|
|
5
|
-
export declare const PriceNameEnum: {
|
|
6
|
-
readonly CourierOps100UsdPerMonth: "courier_ops_100_usd_per_month";
|
|
7
|
-
readonly CourierOps500UsdPerMonth: "courier_ops_500_usd_per_month";
|
|
8
|
-
readonly CourierOps2500UsdPerMonth: "courier_ops_2500_usd_per_month";
|
|
9
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PriceNameEnum = void 0;
|
|
7
|
-
exports.PriceNameEnum = {
|
|
8
|
-
CourierOps100UsdPerMonth: "courier_ops_100_usd_per_month",
|
|
9
|
-
CourierOps500UsdPerMonth: "courier_ops_500_usd_per_month",
|
|
10
|
-
CourierOps2500UsdPerMonth: "courier_ops_2500_usd_per_month",
|
|
11
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../../../../index.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* org_type: "provider"
|
|
9
|
-
* }
|
|
10
|
-
*/
|
|
11
|
-
export interface SetOrgTypeReq {
|
|
12
|
-
org_type: Chrt.OrgTypeEnum;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type PriceNameEnum = "courier_ops_100_usd_per_month" | "courier_ops_500_usd_per_month" | "courier_ops_2500_usd_per_month";
|
|
5
|
-
export declare const PriceNameEnum: {
|
|
6
|
-
readonly CourierOps100UsdPerMonth: "courier_ops_100_usd_per_month";
|
|
7
|
-
readonly CourierOps500UsdPerMonth: "courier_ops_500_usd_per_month";
|
|
8
|
-
readonly CourierOps2500UsdPerMonth: "courier_ops_2500_usd_per_month";
|
|
9
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export const PriceNameEnum = {
|
|
5
|
-
CourierOps100UsdPerMonth: "courier_ops_100_usd_per_month",
|
|
6
|
-
CourierOps500UsdPerMonth: "courier_ops_500_usd_per_month",
|
|
7
|
-
CourierOps2500UsdPerMonth: "courier_ops_2500_usd_per_month",
|
|
8
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/esm/api/types/{CreateOrgPublicDataRes.mjs → CreateCustomerPortalSessionRes.mjs}
RENAMED
|
File without changes
|