@chrt-inc/typescript-sdk 1.654.0 → 1.659.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.
Files changed (188) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/billing/client/Client.js +5 -0
  4. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.ts +1 -0
  5. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.js +1 -0
  6. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.ts +1 -0
  7. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.d.ts +1 -0
  8. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.js +1 -0
  9. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.ts +1 -0
  10. package/dist/cjs/api/resources/billing/resources/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/billing/resources/index.js +2 -1
  12. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +14 -0
  13. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +60 -0
  14. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.ts +1 -0
  15. package/dist/cjs/api/resources/billing/resources/lineItems/client/Client.d.ts +23 -0
  16. package/dist/cjs/api/resources/billing/resources/lineItems/client/Client.js +17 -0
  17. package/dist/cjs/api/resources/billing/resources/lineItems/client/index.d.ts +1 -0
  18. package/dist/cjs/api/resources/billing/resources/lineItems/client/index.js +2 -0
  19. package/dist/cjs/api/resources/billing/resources/lineItems/index.d.ts +2 -0
  20. package/dist/cjs/api/resources/billing/resources/lineItems/index.js +18 -0
  21. package/dist/cjs/api/resources/billing/resources/lineItems/resources/index.d.ts +2 -0
  22. package/dist/cjs/api/resources/billing/resources/lineItems/resources/index.js +41 -0
  23. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/Client.d.ts +83 -0
  24. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/Client.js +308 -0
  25. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/index.d.ts +2 -0
  26. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/index.js +17 -0
  27. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost.d.ts +13 -0
  28. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/index.js +2 -0
  30. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/billing/resources/lineItems/resources/s3Objects/index.js +17 -0
  32. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +2 -0
  33. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +2 -0
  34. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +1 -0
  35. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +1 -0
  36. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +2 -0
  37. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +2 -0
  38. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.ts +1 -0
  39. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.ts +1 -0
  40. package/dist/cjs/api/resources/listing/resources/listings/client/Client.d.ts +10 -4
  41. package/dist/cjs/api/resources/listing/resources/listings/client/Client.js +9 -3
  42. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.ts +2 -0
  43. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.ts +2 -0
  44. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.ts +2 -0
  45. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +2 -0
  46. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +2 -0
  47. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +2 -0
  48. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +2 -1
  49. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +2 -1
  50. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +2 -1
  51. package/dist/cjs/api/resources/orgs/client/Client.d.ts +1 -0
  52. package/dist/cjs/api/resources/orgs/client/Client.js +1 -0
  53. package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +1 -0
  54. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +1 -0
  55. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +1 -0
  56. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +1 -0
  57. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.d.ts +2 -0
  58. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +2 -0
  59. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +2 -0
  60. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -0
  61. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +2 -0
  62. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +1 -0
  63. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +1 -0
  64. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +14 -12
  65. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +17 -15
  66. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayDriverClientReq.d.ts +13 -0
  67. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayDriverClientReq.js +5 -0
  68. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayProviderClientReq.d.ts +13 -0
  69. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayProviderClientReq.js +5 -0
  70. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForShipperPayProviderClientReq.d.ts +13 -0
  71. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForShipperPayProviderClientReq.js +5 -0
  72. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/index.d.ts +3 -0
  73. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +2 -0
  74. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +2 -0
  75. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +1 -0
  76. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +1 -0
  77. package/dist/cjs/api/types/LineItemGroupLineItemsRes.d.ts +11 -0
  78. package/dist/cjs/api/types/LineItemGroupLineItemsRes.js +5 -0
  79. package/dist/cjs/api/types/LineItemS3ObjectMetadata1.d.ts +19 -0
  80. package/dist/cjs/api/types/LineItemS3ObjectMetadata1.js +5 -0
  81. package/dist/cjs/api/types/ListingForBidder1.d.ts +8 -0
  82. package/dist/cjs/api/types/ListingForBidder1.js +5 -0
  83. package/dist/cjs/api/types/ListingForBidderListRes.d.ts +1 -1
  84. package/dist/cjs/api/types/ListingTaskForBidder1.d.ts +12 -0
  85. package/dist/cjs/api/types/ListingTaskForBidder1.js +5 -0
  86. package/dist/cjs/api/types/ListingTaskGroupForBidder1.d.ts +8 -0
  87. package/dist/cjs/api/types/ListingTaskGroupForBidder1.js +5 -0
  88. package/dist/cjs/api/types/index.d.ts +5 -1
  89. package/dist/cjs/api/types/index.js +5 -1
  90. package/dist/cjs/version.d.ts +1 -1
  91. package/dist/cjs/version.js +1 -1
  92. package/dist/esm/Client.mjs +2 -2
  93. package/dist/esm/api/resources/billing/client/Client.d.mts +3 -0
  94. package/dist/esm/api/resources/billing/client/Client.mjs +5 -0
  95. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.mts +1 -0
  96. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.mjs +1 -0
  97. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.mts +1 -0
  98. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.d.mts +1 -0
  99. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.mjs +1 -0
  100. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.mts +1 -0
  101. package/dist/esm/api/resources/billing/resources/index.d.mts +1 -0
  102. package/dist/esm/api/resources/billing/resources/index.mjs +1 -0
  103. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +14 -0
  104. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +60 -0
  105. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.mts +1 -0
  106. package/dist/esm/api/resources/billing/resources/lineItems/client/Client.d.mts +23 -0
  107. package/dist/esm/api/resources/billing/resources/lineItems/client/Client.mjs +13 -0
  108. package/dist/esm/api/resources/billing/resources/lineItems/client/index.d.mts +1 -0
  109. package/dist/esm/api/resources/billing/resources/lineItems/client/index.mjs +1 -0
  110. package/dist/esm/api/resources/billing/resources/lineItems/index.d.mts +2 -0
  111. package/dist/esm/api/resources/billing/resources/lineItems/index.mjs +2 -0
  112. package/dist/esm/api/resources/billing/resources/lineItems/resources/index.d.mts +2 -0
  113. package/dist/esm/api/resources/billing/resources/lineItems/resources/index.mjs +2 -0
  114. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/Client.d.mts +83 -0
  115. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/Client.mjs +271 -0
  116. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/index.d.mts +2 -0
  117. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/index.mjs +1 -0
  118. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost.d.mts +13 -0
  119. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/index.d.mts +1 -0
  120. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/client/requests/index.mjs +1 -0
  121. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/index.d.mts +1 -0
  122. package/dist/esm/api/resources/billing/resources/lineItems/resources/s3Objects/index.mjs +1 -0
  123. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +2 -0
  124. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +2 -0
  125. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +1 -0
  126. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +1 -0
  127. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +2 -0
  128. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +2 -0
  129. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.mts +1 -0
  130. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.mts +1 -0
  131. package/dist/esm/api/resources/listing/resources/listings/client/Client.d.mts +10 -4
  132. package/dist/esm/api/resources/listing/resources/listings/client/Client.mjs +9 -3
  133. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.mts +2 -0
  134. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.mts +2 -0
  135. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.mts +2 -0
  136. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +2 -0
  137. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +2 -0
  138. package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +2 -0
  139. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +2 -1
  140. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +2 -1
  141. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +2 -1
  142. package/dist/esm/api/resources/orgs/client/Client.d.mts +1 -0
  143. package/dist/esm/api/resources/orgs/client/Client.mjs +1 -0
  144. package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +1 -0
  145. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +1 -0
  146. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +1 -0
  147. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +1 -0
  148. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.d.mts +2 -0
  149. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +2 -0
  150. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +2 -0
  151. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -0
  152. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +2 -0
  153. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +1 -0
  154. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +1 -0
  155. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +14 -12
  156. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +17 -15
  157. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayDriverClientReq.d.mts +13 -0
  158. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayDriverClientReq.mjs +4 -0
  159. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayProviderClientReq.d.mts +13 -0
  160. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForProviderPayProviderClientReq.mjs +4 -0
  161. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForShipperPayProviderClientReq.d.mts +13 -0
  162. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupQuoteForShipperPayProviderClientReq.mjs +4 -0
  163. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/index.d.mts +3 -0
  164. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +2 -0
  165. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +2 -0
  166. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +1 -0
  167. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +1 -0
  168. package/dist/esm/api/types/LineItemGroupLineItemsRes.d.mts +11 -0
  169. package/dist/esm/api/types/LineItemGroupLineItemsRes.mjs +4 -0
  170. package/dist/esm/api/types/LineItemS3ObjectMetadata1.d.mts +19 -0
  171. package/dist/esm/api/types/LineItemS3ObjectMetadata1.mjs +4 -0
  172. package/dist/esm/api/types/ListingForBidder1.d.mts +8 -0
  173. package/dist/esm/api/types/ListingForBidder1.mjs +4 -0
  174. package/dist/esm/api/types/ListingForBidderListRes.d.mts +1 -1
  175. package/dist/esm/api/types/ListingTaskForBidder1.d.mts +12 -0
  176. package/dist/esm/api/types/ListingTaskForBidder1.mjs +4 -0
  177. package/dist/esm/api/types/ListingTaskGroupForBidder1.d.mts +8 -0
  178. package/dist/esm/api/types/ListingTaskGroupForBidder1.mjs +4 -0
  179. package/dist/esm/api/types/index.d.mts +5 -1
  180. package/dist/esm/api/types/index.mjs +5 -1
  181. package/dist/esm/version.d.mts +1 -1
  182. package/dist/esm/version.mjs +1 -1
  183. package/package.json +1 -1
  184. package/reference.md +366 -13
  185. package/dist/cjs/api/types/TaskGroupQuoteClientReq.d.ts +0 -6
  186. package/dist/esm/api/types/TaskGroupQuoteClientReq.d.mts +0 -6
  187. /package/dist/cjs/api/{types/TaskGroupQuoteClientReq.js → resources/billing/resources/lineItems/resources/s3Objects/client/requests/BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost.js} +0 -0
  188. /package/dist/esm/api/{types/TaskGroupQuoteClientReq.mjs → resources/billing/resources/lineItems/resources/s3Objects/client/requests/BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost.mjs} +0 -0
@@ -0,0 +1,271 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../../../errors/index.mjs";
18
+ export class S3Objects {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Retrieves metadata for a line item S3 object. | authz_personas=[lig_org_operators, lig_driver] | () -> (LineItemS3ObjectMetadata1)
24
+ *
25
+ * @param {string} lineItemS3ObjectMetadataId
26
+ * @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.billing.lineItems.s3Objects.getS3ObjectMetadataV1("line_item_s3_object_metadata_id")
32
+ */
33
+ getS3ObjectMetadataV1(lineItemS3ObjectMetadataId, requestOptions) {
34
+ return core.HttpResponsePromise.fromPromise(this.__getS3ObjectMetadataV1(lineItemS3ObjectMetadataId, requestOptions));
35
+ }
36
+ __getS3ObjectMetadataV1(lineItemS3ObjectMetadataId, requestOptions) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ var _a, _b, _c, _d;
39
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
40
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
41
+ 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, `billing/line_items/s3_objects/s3_object_metadata/v1/${encodeURIComponent(lineItemS3ObjectMetadataId)}`),
42
+ method: "GET",
43
+ headers: _headers,
44
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
45
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
46
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
47
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
48
+ });
49
+ if (_response.ok) {
50
+ return { data: _response.body, rawResponse: _response.rawResponse };
51
+ }
52
+ if (_response.error.reason === "status-code") {
53
+ switch (_response.error.statusCode) {
54
+ case 422:
55
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
56
+ default:
57
+ throw new errors.ChrtError({
58
+ statusCode: _response.error.statusCode,
59
+ body: _response.error.body,
60
+ rawResponse: _response.rawResponse,
61
+ });
62
+ }
63
+ }
64
+ switch (_response.error.reason) {
65
+ case "non-json":
66
+ throw new errors.ChrtError({
67
+ statusCode: _response.error.statusCode,
68
+ body: _response.error.rawBody,
69
+ rawResponse: _response.rawResponse,
70
+ });
71
+ case "timeout":
72
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing/line_items/s3_objects/s3_object_metadata/v1/{line_item_s3_object_metadata_id}.");
73
+ case "unknown":
74
+ throw new errors.ChrtError({
75
+ message: _response.error.errorMessage,
76
+ rawResponse: _response.rawResponse,
77
+ });
78
+ }
79
+ });
80
+ }
81
+ /**
82
+ * Streams a line item S3 object file from storage. | authz_personas=[lig_org_operators, lig_driver] | () -> (binary)
83
+ * @throws {@link Chrt.UnprocessableEntityError}
84
+ */
85
+ getV1(lineItemS3ObjectMetadataId, requestOptions) {
86
+ return core.HttpResponsePromise.fromPromise(this.__getV1(lineItemS3ObjectMetadataId, requestOptions));
87
+ }
88
+ __getV1(lineItemS3ObjectMetadataId, requestOptions) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ var _a, _b, _c, _d;
91
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
92
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
93
+ 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, `billing/line_items/s3_objects/v1/${encodeURIComponent(lineItemS3ObjectMetadataId)}`),
94
+ method: "GET",
95
+ headers: _headers,
96
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
97
+ responseType: "binary-response",
98
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
99
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
100
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
101
+ });
102
+ if (_response.ok) {
103
+ return { data: _response.body, rawResponse: _response.rawResponse };
104
+ }
105
+ if (_response.error.reason === "status-code") {
106
+ switch (_response.error.statusCode) {
107
+ case 422:
108
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
109
+ default:
110
+ throw new errors.ChrtError({
111
+ statusCode: _response.error.statusCode,
112
+ body: _response.error.body,
113
+ rawResponse: _response.rawResponse,
114
+ });
115
+ }
116
+ }
117
+ switch (_response.error.reason) {
118
+ case "non-json":
119
+ throw new errors.ChrtError({
120
+ statusCode: _response.error.statusCode,
121
+ body: _response.error.rawBody,
122
+ rawResponse: _response.rawResponse,
123
+ });
124
+ case "timeout":
125
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing/line_items/s3_objects/v1/{line_item_s3_object_metadata_id}.");
126
+ case "unknown":
127
+ throw new errors.ChrtError({
128
+ message: _response.error.errorMessage,
129
+ rawResponse: _response.rawResponse,
130
+ });
131
+ }
132
+ });
133
+ }
134
+ /**
135
+ * Uploads a file to a line item. Automatic blurhash generation for images. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
136
+ *
137
+ * @param {string} lineItemId
138
+ * @param {Chrt.billing.lineItems.BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost} request
139
+ * @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
140
+ *
141
+ * @throws {@link Chrt.UnprocessableEntityError}
142
+ *
143
+ * @example
144
+ * import { createReadStream } from "fs";
145
+ * await client.billing.lineItems.s3Objects.addV1("line_item_id", {
146
+ * file: fs.createReadStream("/path/to/your/file")
147
+ * })
148
+ */
149
+ addV1(lineItemId, request, requestOptions) {
150
+ return core.HttpResponsePromise.fromPromise(this.__addV1(lineItemId, request, requestOptions));
151
+ }
152
+ __addV1(lineItemId, request, requestOptions) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ var _a, _b, _c, _d;
155
+ const _request = yield core.newFormData();
156
+ yield _request.appendFile("file", request.file);
157
+ const _maybeEncodedRequest = yield _request.getRequest();
158
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
159
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
160
+ 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, `billing/line_items/s3_objects/add/v1/${encodeURIComponent(lineItemId)}`),
161
+ method: "POST",
162
+ headers: _headers,
163
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
164
+ requestType: "file",
165
+ duplex: _maybeEncodedRequest.duplex,
166
+ body: _maybeEncodedRequest.body,
167
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
168
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
169
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
170
+ });
171
+ if (_response.ok) {
172
+ return { data: _response.body, rawResponse: _response.rawResponse };
173
+ }
174
+ if (_response.error.reason === "status-code") {
175
+ switch (_response.error.statusCode) {
176
+ case 422:
177
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
178
+ default:
179
+ throw new errors.ChrtError({
180
+ statusCode: _response.error.statusCode,
181
+ body: _response.error.body,
182
+ rawResponse: _response.rawResponse,
183
+ });
184
+ }
185
+ }
186
+ switch (_response.error.reason) {
187
+ case "non-json":
188
+ throw new errors.ChrtError({
189
+ statusCode: _response.error.statusCode,
190
+ body: _response.error.rawBody,
191
+ rawResponse: _response.rawResponse,
192
+ });
193
+ case "timeout":
194
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_items/s3_objects/add/v1/{line_item_id}.");
195
+ case "unknown":
196
+ throw new errors.ChrtError({
197
+ message: _response.error.errorMessage,
198
+ rawResponse: _response.rawResponse,
199
+ });
200
+ }
201
+ });
202
+ }
203
+ /**
204
+ * Deletes an S3 object metadata and the associated S3 object from a line item. | authz_personas=[lig_org_operators, lig_driver] | () -> (bool)
205
+ *
206
+ * @param {string} lineItemS3ObjectMetadataId
207
+ * @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
208
+ *
209
+ * @throws {@link Chrt.UnprocessableEntityError}
210
+ *
211
+ * @example
212
+ * await client.billing.lineItems.s3Objects.deleteV1("line_item_s3_object_metadata_id")
213
+ */
214
+ deleteV1(lineItemS3ObjectMetadataId, requestOptions) {
215
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(lineItemS3ObjectMetadataId, requestOptions));
216
+ }
217
+ __deleteV1(lineItemS3ObjectMetadataId, requestOptions) {
218
+ return __awaiter(this, void 0, void 0, function* () {
219
+ var _a, _b, _c, _d;
220
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
221
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
222
+ 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, `billing/line_items/s3_objects/delete/v1/${encodeURIComponent(lineItemS3ObjectMetadataId)}`),
223
+ method: "DELETE",
224
+ headers: _headers,
225
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
226
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
227
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
228
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
229
+ });
230
+ if (_response.ok) {
231
+ return { data: _response.body, rawResponse: _response.rawResponse };
232
+ }
233
+ if (_response.error.reason === "status-code") {
234
+ switch (_response.error.statusCode) {
235
+ case 422:
236
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
237
+ default:
238
+ throw new errors.ChrtError({
239
+ statusCode: _response.error.statusCode,
240
+ body: _response.error.body,
241
+ rawResponse: _response.rawResponse,
242
+ });
243
+ }
244
+ }
245
+ switch (_response.error.reason) {
246
+ case "non-json":
247
+ throw new errors.ChrtError({
248
+ statusCode: _response.error.statusCode,
249
+ body: _response.error.rawBody,
250
+ rawResponse: _response.rawResponse,
251
+ });
252
+ case "timeout":
253
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /billing/line_items/s3_objects/delete/v1/{line_item_s3_object_metadata_id}.");
254
+ case "unknown":
255
+ throw new errors.ChrtError({
256
+ message: _response.error.errorMessage,
257
+ rawResponse: _response.rawResponse,
258
+ });
259
+ }
260
+ });
261
+ }
262
+ _getAuthorizationHeader() {
263
+ return __awaiter(this, void 0, void 0, function* () {
264
+ const bearer = yield core.Supplier.get(this._options.token);
265
+ if (bearer != null) {
266
+ return `Bearer ${bearer}`;
267
+ }
268
+ return undefined;
269
+ });
270
+ }
271
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -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.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * file: fs.createReadStream("/path/to/your/file")
9
+ * }
10
+ */
11
+ export interface BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost {
12
+ file: core.file.Uploadable.FileLike;
13
+ }
@@ -0,0 +1 @@
1
+ export { type BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost } from "./BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -85,6 +85,7 @@ export declare class Statements {
85
85
  * sort_order: "asc",
86
86
  * page: 1,
87
87
  * page_size: 1,
88
+ * filter_status: ["staged"],
88
89
  * filter_settlement_type: "stripe_connect",
89
90
  * filter_order_id: "filter_order_id",
90
91
  * filter_order_short_id: "filter_order_short_id",
@@ -119,6 +120,7 @@ export declare class Statements {
119
120
  * sort_order: "asc",
120
121
  * page: 1,
121
122
  * page_size: 1,
123
+ * filter_status: ["staged"],
122
124
  * filter_settlement_type: "stripe_connect",
123
125
  * filter_order_id: "filter_order_id",
124
126
  * filter_order_short_id: "filter_order_short_id",
@@ -215,6 +215,7 @@ export class Statements {
215
215
  * sort_order: "asc",
216
216
  * page: 1,
217
217
  * page_size: 1,
218
+ * filter_status: ["staged"],
218
219
  * filter_settlement_type: "stripe_connect",
219
220
  * filter_order_id: "filter_order_id",
220
221
  * filter_order_short_id: "filter_order_short_id",
@@ -365,6 +366,7 @@ export class Statements {
365
366
  * sort_order: "asc",
366
367
  * page: 1,
367
368
  * page_size: 1,
369
+ * filter_status: ["staged"],
368
370
  * filter_settlement_type: "stripe_connect",
369
371
  * filter_order_id: "filter_order_id",
370
372
  * filter_order_short_id: "filter_order_short_id",
@@ -9,6 +9,7 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * filter_status: ["staged"],
12
13
  * filter_settlement_type: "stripe_connect",
13
14
  * filter_order_id: "filter_order_id",
14
15
  * filter_order_short_id: "filter_order_short_id",
@@ -9,6 +9,7 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * filter_status: ["staged"],
12
13
  * filter_settlement_type: "stripe_connect",
13
14
  * filter_order_id: "filter_order_id",
14
15
  * filter_order_short_id: "filter_order_short_id",
@@ -58,6 +58,7 @@ export declare class BidThreads {
58
58
  * sort_order: "asc",
59
59
  * page: 1,
60
60
  * page_size: 1,
61
+ * filter_status: ["open"],
61
62
  * filter_listing_id: "filter_listing_id",
62
63
  * filter_bidder_provider_org_id: "filter_bidder_provider_org_id",
63
64
  * filter_bidder_driver_id: "filter_bidder_driver_id",
@@ -83,6 +84,7 @@ export declare class BidThreads {
83
84
  * sort_order: "asc",
84
85
  * page: 1,
85
86
  * page_size: 1,
87
+ * filter_status: ["open"],
86
88
  * filter_listing_id: "filter_listing_id",
87
89
  * filter_bidder_provider_org_id: "filter_bidder_provider_org_id",
88
90
  * filter_bidder_driver_id: "filter_bidder_driver_id",
@@ -93,6 +93,7 @@ export class BidThreads {
93
93
  * sort_order: "asc",
94
94
  * page: 1,
95
95
  * page_size: 1,
96
+ * filter_status: ["open"],
96
97
  * filter_listing_id: "filter_listing_id",
97
98
  * filter_bidder_provider_org_id: "filter_bidder_provider_org_id",
98
99
  * filter_bidder_driver_id: "filter_bidder_driver_id",
@@ -207,6 +208,7 @@ export class BidThreads {
207
208
  * sort_order: "asc",
208
209
  * page: 1,
209
210
  * page_size: 1,
211
+ * filter_status: ["open"],
210
212
  * filter_listing_id: "filter_listing_id",
211
213
  * filter_bidder_provider_org_id: "filter_bidder_provider_org_id",
212
214
  * filter_bidder_driver_id: "filter_bidder_driver_id",
@@ -9,6 +9,7 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * filter_status: ["open"],
12
13
  * filter_listing_id: "filter_listing_id",
13
14
  * filter_bidder_provider_org_id: "filter_bidder_provider_org_id",
14
15
  * filter_bidder_driver_id: "filter_bidder_driver_id",
@@ -9,6 +9,7 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * filter_status: ["open"],
12
13
  * filter_listing_id: "filter_listing_id",
13
14
  * filter_bidder_provider_org_id: "filter_bidder_provider_org_id",
14
15
  * filter_bidder_driver_id: "filter_bidder_driver_id",
@@ -31,7 +31,7 @@ export declare class Listings {
31
31
  protected readonly _options: Listings.Options;
32
32
  constructor(_options?: Listings.Options);
33
33
  /**
34
- * Fetches a listing by id in the bidder-facing shape (no `internal_notes`). Visible to the lister and to snapshot participants (as bidder — provider org or driver). Listers wanting the full record call `by_id_for_lister/v1`. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingLimitedForBidder1)
34
+ * Fetches a listing by id in the bidder-facing shape with tasks and mileage. Visible to the lister and to snapshot participants (as bidder — provider org or driver). Listers wanting the full record call `by_id_for_lister/v1`. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidder1)
35
35
  *
36
36
  * @param {string} listingId
37
37
  * @param {Listings.RequestOptions} requestOptions - Request-specific configuration.
@@ -41,7 +41,7 @@ export declare class Listings {
41
41
  * @example
42
42
  * await client.listing.listings.byIdV1("listing_id")
43
43
  */
44
- byIdV1(listingId: string, requestOptions?: Listings.RequestOptions): core.HttpResponsePromise<Chrt.ListingLimitedForBidder1>;
44
+ byIdV1(listingId: string, requestOptions?: Listings.RequestOptions): core.HttpResponsePromise<Chrt.ListingForBidder1>;
45
45
  private __byIdV1;
46
46
  /**
47
47
  * Fetches the full listing record (including `internal_notes`). Restricted to the lister org — bidders use `by_id/v1`. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Listing1)
@@ -84,6 +84,8 @@ export declare class Listings {
84
84
  * sort_order: "asc",
85
85
  * page: 1,
86
86
  * page_size: 1,
87
+ * filter_status: ["open"],
88
+ * filter_type: ["dispatch"],
87
89
  * filter_task_group_id: "filter_task_group_id",
88
90
  * filter_order_id: "filter_order_id",
89
91
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -97,7 +99,7 @@ export declare class Listings {
97
99
  listByOrgV1(request?: Chrt.listing.ListingsListByOrgV1Request, requestOptions?: Listings.RequestOptions): core.HttpResponsePromise<Chrt.ListingListRes>;
98
100
  private __listByOrgV1;
99
101
  /**
100
- * Lists PROVIDERS-audience listings where the caller's org is a snapshot participant. Provider-side bidder view with filtering, sorting, and pagination. Returns the bidder shape (no `internal_notes`). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingForBidderListRes)
102
+ * Lists PROVIDERS-audience listings where the caller's org is a snapshot participant. Provider-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (no `internal_notes`). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingForBidderListRes)
101
103
  *
102
104
  * @param {Chrt.listing.ListingsListForProviderBidderV1Request} request
103
105
  * @param {Listings.RequestOptions} requestOptions - Request-specific configuration.
@@ -110,6 +112,8 @@ export declare class Listings {
110
112
  * sort_order: "asc",
111
113
  * page: 1,
112
114
  * page_size: 1,
115
+ * filter_status: ["open"],
116
+ * filter_type: ["dispatch"],
113
117
  * filter_task_group_id: "filter_task_group_id",
114
118
  * filter_order_id: "filter_order_id",
115
119
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -123,7 +127,7 @@ export declare class Listings {
123
127
  listForProviderBidderV1(request?: Chrt.listing.ListingsListForProviderBidderV1Request, requestOptions?: Listings.RequestOptions): core.HttpResponsePromise<Chrt.ListingForBidderListRes>;
124
128
  private __listForProviderBidderV1;
125
129
  /**
126
- * Lists DRIVERS-audience listings where the caller (resolved to a Driver of their org) is a snapshot participant. Driver-side bidder view with filtering, sorting, and pagination. Returns the bidder shape (no `internal_notes`). | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidderListRes)
130
+ * Lists DRIVERS-audience listings where the caller (resolved to a Driver of their org) is a snapshot participant. Driver-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (no `internal_notes`). | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidderListRes)
127
131
  *
128
132
  * @param {Chrt.listing.ListingsListForDriverBidderV1Request} request
129
133
  * @param {Listings.RequestOptions} requestOptions - Request-specific configuration.
@@ -136,6 +140,8 @@ export declare class Listings {
136
140
  * sort_order: "asc",
137
141
  * page: 1,
138
142
  * page_size: 1,
143
+ * filter_status: ["open"],
144
+ * filter_type: ["dispatch"],
139
145
  * filter_task_group_id: "filter_task_group_id",
140
146
  * filter_order_id: "filter_order_id",
141
147
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -20,7 +20,7 @@ export class Listings {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Fetches a listing by id in the bidder-facing shape (no `internal_notes`). Visible to the lister and to snapshot participants (as bidder — provider org or driver). Listers wanting the full record call `by_id_for_lister/v1`. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingLimitedForBidder1)
23
+ * Fetches a listing by id in the bidder-facing shape with tasks and mileage. Visible to the lister and to snapshot participants (as bidder — provider org or driver). Listers wanting the full record call `by_id_for_lister/v1`. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidder1)
24
24
  *
25
25
  * @param {string} listingId
26
26
  * @param {Listings.RequestOptions} requestOptions - Request-specific configuration.
@@ -211,6 +211,8 @@ export class Listings {
211
211
  * sort_order: "asc",
212
212
  * page: 1,
213
213
  * page_size: 1,
214
+ * filter_status: ["open"],
215
+ * filter_type: ["dispatch"],
214
216
  * filter_task_group_id: "filter_task_group_id",
215
217
  * filter_order_id: "filter_order_id",
216
218
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -327,7 +329,7 @@ export class Listings {
327
329
  });
328
330
  }
329
331
  /**
330
- * Lists PROVIDERS-audience listings where the caller's org is a snapshot participant. Provider-side bidder view with filtering, sorting, and pagination. Returns the bidder shape (no `internal_notes`). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingForBidderListRes)
332
+ * Lists PROVIDERS-audience listings where the caller's org is a snapshot participant. Provider-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (no `internal_notes`). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingForBidderListRes)
331
333
  *
332
334
  * @param {Chrt.listing.ListingsListForProviderBidderV1Request} request
333
335
  * @param {Listings.RequestOptions} requestOptions - Request-specific configuration.
@@ -340,6 +342,8 @@ export class Listings {
340
342
  * sort_order: "asc",
341
343
  * page: 1,
342
344
  * page_size: 1,
345
+ * filter_status: ["open"],
346
+ * filter_type: ["dispatch"],
343
347
  * filter_task_group_id: "filter_task_group_id",
344
348
  * filter_order_id: "filter_order_id",
345
349
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -453,7 +457,7 @@ export class Listings {
453
457
  });
454
458
  }
455
459
  /**
456
- * Lists DRIVERS-audience listings where the caller (resolved to a Driver of their org) is a snapshot participant. Driver-side bidder view with filtering, sorting, and pagination. Returns the bidder shape (no `internal_notes`). | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidderListRes)
460
+ * Lists DRIVERS-audience listings where the caller (resolved to a Driver of their org) is a snapshot participant. Driver-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (no `internal_notes`). | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidderListRes)
457
461
  *
458
462
  * @param {Chrt.listing.ListingsListForDriverBidderV1Request} request
459
463
  * @param {Listings.RequestOptions} requestOptions - Request-specific configuration.
@@ -466,6 +470,8 @@ export class Listings {
466
470
  * sort_order: "asc",
467
471
  * page: 1,
468
472
  * page_size: 1,
473
+ * filter_status: ["open"],
474
+ * filter_type: ["dispatch"],
469
475
  * filter_task_group_id: "filter_task_group_id",
470
476
  * filter_order_id: "filter_order_id",
471
477
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -10,6 +10,8 @@ import * as Chrt from "../../../../../../index.mjs";
10
10
  * sort_order: "asc",
11
11
  * page: 1,
12
12
  * page_size: 1,
13
+ * filter_status: ["open"],
14
+ * filter_type: ["dispatch"],
13
15
  * filter_task_group_id: "filter_task_group_id",
14
16
  * filter_order_id: "filter_order_id",
15
17
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -9,6 +9,8 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * filter_status: ["open"],
13
+ * filter_type: ["dispatch"],
12
14
  * filter_task_group_id: "filter_task_group_id",
13
15
  * filter_order_id: "filter_order_id",
14
16
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -9,6 +9,8 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * filter_status: ["open"],
13
+ * filter_type: ["dispatch"],
12
14
  * filter_task_group_id: "filter_task_group_id",
13
15
  * filter_order_id: "filter_order_id",
14
16
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -44,6 +44,8 @@ export declare class Cases {
44
44
  * sort_order: "asc",
45
45
  * page: 1,
46
46
  * page_size: 1,
47
+ * filter_status: ["open"],
48
+ * filter_department_id: ["filter_department_id"],
47
49
  * filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
48
50
  * filter_needs_action: true,
49
51
  * filter_unassigned: true
@@ -33,6 +33,8 @@ export class Cases {
33
33
  * sort_order: "asc",
34
34
  * page: 1,
35
35
  * page_size: 1,
36
+ * filter_status: ["open"],
37
+ * filter_department_id: ["filter_department_id"],
36
38
  * filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
37
39
  * filter_needs_action: true,
38
40
  * filter_unassigned: true
@@ -9,6 +9,8 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * filter_status: ["open"],
13
+ * filter_department_id: ["filter_department_id"],
12
14
  * filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
13
15
  * filter_needs_action: true,
14
16
  * filter_unassigned: true
@@ -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>;
@@ -32,7 +32,8 @@ export class Departments {
32
32
  * sort_by: "created_at",
33
33
  * sort_order: "asc",
34
34
  * page: 1,
35
- * page_size: 1
35
+ * page_size: 1,
36
+ * filter_department: ["automotive"]
36
37
  * })
37
38
  */
38
39
  listV1(request = {}, requestOptions) {
@@ -8,7 +8,8 @@ import * as Chrt from "../../../../../../index.mjs";
8
8
  * sort_by: "created_at",
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
- * page_size: 1
11
+ * page_size: 1,
12
+ * filter_department: ["automotive"]
12
13
  * }
13
14
  */
14
15
  export interface DepartmentsListV1Request {
@@ -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,