@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,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 line item S3 object. | authz_personas=[lig_org_operators, lig_driver] | () -> (LineItemS3ObjectMetadata1)
60
+ *
61
+ * @param {string} lineItemS3ObjectMetadataId
62
+ * @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Chrt.UnprocessableEntityError}
65
+ *
66
+ * @example
67
+ * await client.billing.lineItems.s3Objects.getS3ObjectMetadataV1("line_item_s3_object_metadata_id")
68
+ */
69
+ getS3ObjectMetadataV1(lineItemS3ObjectMetadataId, requestOptions) {
70
+ return core.HttpResponsePromise.fromPromise(this.__getS3ObjectMetadataV1(lineItemS3ObjectMetadataId, requestOptions));
71
+ }
72
+ __getS3ObjectMetadataV1(lineItemS3ObjectMetadataId, 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, `billing/line_items/s3_objects/s3_object_metadata/v1/${encodeURIComponent(lineItemS3ObjectMetadataId)}`),
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 /billing/line_items/s3_objects/s3_object_metadata/v1/{line_item_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 line item S3 object file from storage. | authz_personas=[lig_org_operators, lig_driver] | () -> (binary)
119
+ * @throws {@link Chrt.UnprocessableEntityError}
120
+ */
121
+ getV1(lineItemS3ObjectMetadataId, requestOptions) {
122
+ return core.HttpResponsePromise.fromPromise(this.__getV1(lineItemS3ObjectMetadataId, requestOptions));
123
+ }
124
+ __getV1(lineItemS3ObjectMetadataId, 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, `billing/line_items/s3_objects/v1/${encodeURIComponent(lineItemS3ObjectMetadataId)}`),
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 /billing/line_items/s3_objects/v1/{line_item_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 line item. Automatic blurhash generation for images. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
172
+ *
173
+ * @param {string} lineItemId
174
+ * @param {Chrt.billing.lineItems.BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost} 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.billing.lineItems.s3Objects.addV1("line_item_id", {
182
+ * file: fs.createReadStream("/path/to/your/file")
183
+ * })
184
+ */
185
+ addV1(lineItemId, request, requestOptions) {
186
+ return core.HttpResponsePromise.fromPromise(this.__addV1(lineItemId, request, requestOptions));
187
+ }
188
+ __addV1(lineItemId, 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, `billing/line_items/s3_objects/add/v1/${encodeURIComponent(lineItemId)}`),
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 /billing/line_items/s3_objects/add/v1/{line_item_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 line item. | authz_personas=[lig_org_operators, lig_driver] | () -> (bool)
241
+ *
242
+ * @param {string} lineItemS3ObjectMetadataId
243
+ * @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
244
+ *
245
+ * @throws {@link Chrt.UnprocessableEntityError}
246
+ *
247
+ * @example
248
+ * await client.billing.lineItems.s3Objects.deleteV1("line_item_s3_object_metadata_id")
249
+ */
250
+ deleteV1(lineItemS3ObjectMetadataId, requestOptions) {
251
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(lineItemS3ObjectMetadataId, requestOptions));
252
+ }
253
+ __deleteV1(lineItemS3ObjectMetadataId, 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, `billing/line_items/s3_objects/delete/v1/${encodeURIComponent(lineItemS3ObjectMetadataId)}`),
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 /billing/line_items/s3_objects/delete/v1/{line_item_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,2 @@
1
+ export {};
2
+ export * from "./requests/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("./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 BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost {
12
+ file: core.file.Uploadable.FileLike;
13
+ }
@@ -0,0 +1 @@
1
+ export { type BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost } from "./BodyLineItemsS3ObjectPostAddV1BillingLineItemsS3ObjectsAddV1LineItemIdPost.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);
@@ -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",
@@ -251,6 +251,7 @@ class Statements {
251
251
  * sort_order: "asc",
252
252
  * page: 1,
253
253
  * page_size: 1,
254
+ * filter_status: ["staged"],
254
255
  * filter_settlement_type: "stripe_connect",
255
256
  * filter_order_id: "filter_order_id",
256
257
  * filter_order_short_id: "filter_order_short_id",
@@ -401,6 +402,7 @@ class Statements {
401
402
  * sort_order: "asc",
402
403
  * page: 1,
403
404
  * page_size: 1,
405
+ * filter_status: ["staged"],
404
406
  * filter_settlement_type: "stripe_connect",
405
407
  * filter_order_id: "filter_order_id",
406
408
  * filter_order_short_id: "filter_order_short_id",
@@ -9,6 +9,7 @@ import * as Chrt from "../../../../../../index.js";
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.js";
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",
@@ -129,6 +129,7 @@ class BidThreads {
129
129
  * sort_order: "asc",
130
130
  * page: 1,
131
131
  * page_size: 1,
132
+ * filter_status: ["open"],
132
133
  * filter_listing_id: "filter_listing_id",
133
134
  * filter_bidder_provider_org_id: "filter_bidder_provider_org_id",
134
135
  * filter_bidder_driver_id: "filter_bidder_driver_id",
@@ -243,6 +244,7 @@ class BidThreads {
243
244
  * sort_order: "asc",
244
245
  * page: 1,
245
246
  * page_size: 1,
247
+ * filter_status: ["open"],
246
248
  * filter_listing_id: "filter_listing_id",
247
249
  * filter_bidder_provider_org_id: "filter_bidder_provider_org_id",
248
250
  * filter_bidder_driver_id: "filter_bidder_driver_id",
@@ -9,6 +9,7 @@ import * as Chrt from "../../../../../../index.js";
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.js";
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",
@@ -56,7 +56,7 @@ class Listings {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * 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)
59
+ * 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)
60
60
  *
61
61
  * @param {string} listingId
62
62
  * @param {Listings.RequestOptions} requestOptions - Request-specific configuration.
@@ -247,6 +247,8 @@ class Listings {
247
247
  * sort_order: "asc",
248
248
  * page: 1,
249
249
  * page_size: 1,
250
+ * filter_status: ["open"],
251
+ * filter_type: ["dispatch"],
250
252
  * filter_task_group_id: "filter_task_group_id",
251
253
  * filter_order_id: "filter_order_id",
252
254
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -363,7 +365,7 @@ class Listings {
363
365
  });
364
366
  }
365
367
  /**
366
- * 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)
368
+ * 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)
367
369
  *
368
370
  * @param {Chrt.listing.ListingsListForProviderBidderV1Request} request
369
371
  * @param {Listings.RequestOptions} requestOptions - Request-specific configuration.
@@ -376,6 +378,8 @@ class Listings {
376
378
  * sort_order: "asc",
377
379
  * page: 1,
378
380
  * page_size: 1,
381
+ * filter_status: ["open"],
382
+ * filter_type: ["dispatch"],
379
383
  * filter_task_group_id: "filter_task_group_id",
380
384
  * filter_order_id: "filter_order_id",
381
385
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -489,7 +493,7 @@ class Listings {
489
493
  });
490
494
  }
491
495
  /**
492
- * 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)
496
+ * 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)
493
497
  *
494
498
  * @param {Chrt.listing.ListingsListForDriverBidderV1Request} request
495
499
  * @param {Listings.RequestOptions} requestOptions - Request-specific configuration.
@@ -502,6 +506,8 @@ class Listings {
502
506
  * sort_order: "asc",
503
507
  * page: 1,
504
508
  * page_size: 1,
509
+ * filter_status: ["open"],
510
+ * filter_type: ["dispatch"],
505
511
  * filter_task_group_id: "filter_task_group_id",
506
512
  * filter_order_id: "filter_order_id",
507
513
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -10,6 +10,8 @@ import * as Chrt from "../../../../../../index.js";
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.js";
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.js";
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