@chrt-inc/typescript-sdk 1.880.0 → 1.885.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 (228) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.ts +0 -1
  3. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.ts +0 -1
  4. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +2 -2
  5. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +2 -2
  6. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +25 -9
  7. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +80 -12
  8. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.d.ts +14 -0
  9. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.d.ts → OperationsTasksSetDeadlineTimestampsReq1.d.ts} +4 -4
  10. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +2 -1
  11. package/dist/cjs/api/resources/orgs/client/Client.d.ts +6 -6
  12. package/dist/cjs/api/resources/orgs/client/Client.js +14 -14
  13. package/dist/cjs/api/resources/orgs/resources/accounts/client/Client.d.ts +97 -0
  14. package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → accounts}/client/Client.js +57 -100
  15. package/dist/{esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.d.mts → cjs/api/resources/orgs/resources/accounts/client/requests/AccountClientCreate1.d.ts} +4 -2
  16. package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.ts → accounts/client/requests/AccountClientUpdate1.d.ts} +1 -3
  17. package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.ts +27 -0
  18. package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/index.d.ts +3 -0
  19. package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +112 -0
  20. package/dist/cjs/api/resources/orgs/resources/{directoryEntries → contacts}/client/Client.js +55 -51
  21. package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.d.ts → contacts/client/requests/ContactClientCreate1.d.ts} +5 -4
  22. package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.ts → contacts/client/requests/ContactClientUpdate1.d.ts} +1 -1
  23. package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntriesListV1Request.d.ts → contacts/client/requests/ContactsListV1Request.d.ts} +9 -6
  24. package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/index.d.ts +3 -0
  25. package/dist/cjs/api/resources/orgs/resources/index.d.ts +4 -4
  26. package/dist/cjs/api/resources/orgs/resources/index.js +5 -5
  27. package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.d.ts +1 -1
  28. package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.js +1 -1
  29. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +1 -1
  30. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +4 -4
  31. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +2 -1
  32. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +2 -1
  33. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +3 -3
  34. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +28 -0
  35. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +120 -0
  36. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -0
  37. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -0
  38. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +20 -4
  39. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +3 -0
  40. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +3 -0
  41. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
  42. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +3 -0
  43. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +1 -1
  44. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +1 -1
  45. package/dist/{esm/api/types/OffChrtVendor1.d.mts → cjs/api/types/Account1.d.ts} +4 -2
  46. package/dist/cjs/api/types/{OffChrtVendorListRes.d.ts → AccountListRes.d.ts} +2 -2
  47. package/dist/cjs/api/types/AccountSortByEnum.d.ts +4 -0
  48. package/dist/cjs/api/types/{DirectoryEntry1.d.ts → Contact1.d.ts} +6 -7
  49. package/dist/cjs/api/types/{DirectoryEntryListRes.d.ts → ContactListRes.d.ts} +2 -2
  50. package/dist/cjs/api/types/ContactSortByEnum.d.ts +4 -0
  51. package/dist/cjs/api/types/CreateOffChrtOrgRes.d.ts +1 -1
  52. package/dist/cjs/api/types/LineItemGroup1.d.ts +0 -1
  53. package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +1 -1
  54. package/dist/cjs/api/types/NotificationIntentAdHocClientCreate1.d.ts +1 -1
  55. package/dist/cjs/api/types/{OperationsTaskDeadlineUpdate1.d.ts → OperationsTaskDeadlineTimestampUpdate1.d.ts} +2 -2
  56. package/dist/cjs/api/types/OperationsTaskDeadlineTimestampUpdate1.js +5 -0
  57. package/dist/cjs/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.d.ts +7 -0
  58. package/dist/cjs/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.js +5 -0
  59. package/dist/cjs/api/types/Order1.d.ts +1 -0
  60. package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -1
  61. package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
  62. package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +1 -0
  63. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -0
  64. package/dist/cjs/api/types/OrderTemplate1.d.ts +2 -1
  65. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +2 -1
  66. package/dist/cjs/api/types/OrderTemplateExpanded1.d.ts +1 -1
  67. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +3 -2
  68. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +2 -1
  69. package/dist/cjs/api/types/OrderTemplateReferencesExpanded1.d.ts +1 -1
  70. package/dist/cjs/api/types/OrderTemplateResolvabilityRes.d.ts +2 -1
  71. package/dist/cjs/api/types/OrgTypeEnum.d.ts +2 -1
  72. package/dist/cjs/api/types/OrgTypeEnum.js +1 -0
  73. package/dist/cjs/api/types/Statement1.d.ts +0 -1
  74. package/dist/cjs/api/types/Task1.d.ts +1 -1
  75. package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
  76. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -1
  77. package/dist/cjs/api/types/TaskExpanded.d.ts +1 -1
  78. package/dist/cjs/api/types/TaskGroupExpanded.d.ts +2 -0
  79. package/dist/cjs/api/types/index.d.ts +8 -7
  80. package/dist/cjs/api/types/index.js +8 -7
  81. package/dist/cjs/version.d.ts +1 -1
  82. package/dist/cjs/version.js +1 -1
  83. package/dist/esm/Client.mjs +2 -2
  84. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.mts +0 -1
  85. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.mts +0 -1
  86. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +2 -2
  87. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +2 -2
  88. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +25 -9
  89. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +80 -12
  90. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.d.mts +14 -0
  91. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.d.mts → OperationsTasksSetDeadlineTimestampsReq1.d.mts} +4 -4
  92. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +2 -1
  93. package/dist/esm/api/resources/orgs/client/Client.d.mts +6 -6
  94. package/dist/esm/api/resources/orgs/client/Client.mjs +8 -8
  95. package/dist/esm/api/resources/orgs/resources/accounts/client/Client.d.mts +97 -0
  96. package/dist/esm/api/resources/orgs/resources/{offChrtVendor → accounts}/client/Client.mjs +55 -98
  97. package/dist/{cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.d.ts → esm/api/resources/orgs/resources/accounts/client/requests/AccountClientCreate1.d.mts} +4 -2
  98. package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.mts → accounts/client/requests/AccountClientUpdate1.d.mts} +1 -3
  99. package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.mts +27 -0
  100. package/dist/esm/api/resources/orgs/resources/accounts/client/requests/index.d.mts +3 -0
  101. package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +112 -0
  102. package/dist/esm/api/resources/orgs/resources/{directoryEntries → contacts}/client/Client.mjs +53 -49
  103. package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.d.mts → contacts/client/requests/ContactClientCreate1.d.mts} +5 -4
  104. package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.mts → contacts/client/requests/ContactClientUpdate1.d.mts} +1 -1
  105. package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntriesListV1Request.d.mts → contacts/client/requests/ContactsListV1Request.d.mts} +9 -6
  106. package/dist/esm/api/resources/orgs/resources/contacts/client/requests/index.d.mts +3 -0
  107. package/dist/esm/api/resources/orgs/resources/index.d.mts +4 -4
  108. package/dist/esm/api/resources/orgs/resources/index.mjs +4 -4
  109. package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.d.mts +1 -1
  110. package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.mjs +1 -1
  111. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +1 -1
  112. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +4 -4
  113. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +2 -1
  114. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +2 -1
  115. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +3 -3
  116. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +28 -0
  117. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +120 -0
  118. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -0
  119. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -0
  120. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +20 -4
  121. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +3 -0
  122. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +3 -0
  123. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
  124. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +3 -0
  125. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +1 -1
  126. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +1 -1
  127. package/dist/{cjs/api/types/OffChrtVendor1.d.ts → esm/api/types/Account1.d.mts} +4 -2
  128. package/dist/esm/api/types/{OffChrtVendorListRes.d.mts → AccountListRes.d.mts} +2 -2
  129. package/dist/esm/api/types/AccountSortByEnum.d.mts +4 -0
  130. package/dist/esm/api/types/{DirectoryEntry1.d.mts → Contact1.d.mts} +6 -7
  131. package/dist/esm/api/types/{DirectoryEntryListRes.d.mts → ContactListRes.d.mts} +2 -2
  132. package/dist/esm/api/types/ContactSortByEnum.d.mts +4 -0
  133. package/dist/esm/api/types/CreateOffChrtOrgRes.d.mts +1 -1
  134. package/dist/esm/api/types/LineItemGroup1.d.mts +0 -1
  135. package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +1 -1
  136. package/dist/esm/api/types/NotificationIntentAdHocClientCreate1.d.mts +1 -1
  137. package/dist/esm/api/types/{OperationsTaskDeadlineUpdate1.d.mts → OperationsTaskDeadlineTimestampUpdate1.d.mts} +2 -2
  138. package/dist/esm/api/types/OperationsTaskDeadlineTimestampUpdate1.mjs +4 -0
  139. package/dist/esm/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.d.mts +7 -0
  140. package/dist/esm/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.mjs +4 -0
  141. package/dist/esm/api/types/Order1.d.mts +1 -0
  142. package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -1
  143. package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
  144. package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +1 -0
  145. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -0
  146. package/dist/esm/api/types/OrderTemplate1.d.mts +2 -1
  147. package/dist/esm/api/types/OrderTemplateCore1.d.mts +2 -1
  148. package/dist/esm/api/types/OrderTemplateExpanded1.d.mts +1 -1
  149. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +3 -2
  150. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +2 -1
  151. package/dist/esm/api/types/OrderTemplateReferencesExpanded1.d.mts +1 -1
  152. package/dist/esm/api/types/OrderTemplateResolvabilityRes.d.mts +2 -1
  153. package/dist/esm/api/types/OrgTypeEnum.d.mts +2 -1
  154. package/dist/esm/api/types/OrgTypeEnum.mjs +1 -0
  155. package/dist/esm/api/types/Statement1.d.mts +0 -1
  156. package/dist/esm/api/types/Task1.d.mts +1 -1
  157. package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
  158. package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -1
  159. package/dist/esm/api/types/TaskExpanded.d.mts +1 -1
  160. package/dist/esm/api/types/TaskGroupExpanded.d.mts +2 -0
  161. package/dist/esm/api/types/index.d.mts +8 -7
  162. package/dist/esm/api/types/index.mjs +8 -7
  163. package/dist/esm/version.d.mts +1 -1
  164. package/dist/esm/version.mjs +1 -1
  165. package/package.json +1 -1
  166. package/reference.md +441 -287
  167. package/dist/cjs/api/resources/orgs/resources/directoryEntries/client/Client.d.ts +0 -111
  168. package/dist/cjs/api/resources/orgs/resources/directoryEntries/client/requests/index.d.ts +0 -3
  169. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/Client.d.ts +0 -106
  170. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.ts +0 -14
  171. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.ts +0 -3
  172. package/dist/cjs/api/types/DirectoryEntrySortByEnum.d.ts +0 -4
  173. package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.ts +0 -7
  174. package/dist/esm/api/resources/orgs/resources/directoryEntries/client/Client.d.mts +0 -111
  175. package/dist/esm/api/resources/orgs/resources/directoryEntries/client/requests/index.d.mts +0 -3
  176. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/Client.d.mts +0 -106
  177. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.mts +0 -14
  178. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.mts +0 -3
  179. package/dist/esm/api/types/DirectoryEntrySortByEnum.d.mts +0 -4
  180. package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.mts +0 -7
  181. /package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.js → OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.js} +0 -0
  182. /package/dist/cjs/api/resources/{orgs/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.js → operations/resources/operationsTasks/client/requests/OperationsTasksSetDeadlineTimestampsReq1.js} +0 -0
  183. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.d.ts +0 -0
  184. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.js +0 -0
  185. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.js → accounts/client/requests/AccountClientCreate1.js} +0 -0
  186. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.js → accounts/client/requests/AccountClientUpdate1.js} +0 -0
  187. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientCreate1.js → accounts/client/requests/AccountsListV1Request.js} +0 -0
  188. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/client/requests/index.js +0 -0
  189. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/index.d.ts +0 -0
  190. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/index.js +0 -0
  191. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.d.ts +0 -0
  192. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.js +0 -0
  193. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.js → contacts/client/requests/ContactClientCreate1.js} +0 -0
  194. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorListV1Request.js → contacts/client/requests/ContactClientUpdate1.js} +0 -0
  195. /package/dist/cjs/api/{types/DirectoryEntry1.js → resources/orgs/resources/contacts/client/requests/ContactsListV1Request.js} +0 -0
  196. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/client/requests/index.js +0 -0
  197. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/index.d.ts +0 -0
  198. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/index.js +0 -0
  199. /package/dist/cjs/api/types/{DirectoryEntryListRes.js → Account1.js} +0 -0
  200. /package/dist/cjs/api/types/{DirectoryEntrySortByEnum.js → AccountListRes.js} +0 -0
  201. /package/dist/cjs/api/types/{OffChrtVendor1.js → AccountSortByEnum.js} +0 -0
  202. /package/dist/cjs/api/types/{OffChrtVendorListRes.js → Contact1.js} +0 -0
  203. /package/dist/cjs/api/types/{OperationsTaskDeadlineUpdate1.js → ContactListRes.js} +0 -0
  204. /package/dist/cjs/api/types/{OperationsTasksBulkUpdateDeadlinesRes1.js → ContactSortByEnum.js} +0 -0
  205. /package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.mjs → OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.mjs} +0 -0
  206. /package/dist/esm/api/resources/{orgs/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksSetDeadlineTimestampsReq1.mjs} +0 -0
  207. /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.d.mts +0 -0
  208. /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.mjs +0 -0
  209. /package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.mjs → accounts/client/requests/AccountClientCreate1.mjs} +0 -0
  210. /package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.mjs → accounts/client/requests/AccountClientUpdate1.mjs} +0 -0
  211. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientCreate1.mjs → accounts/client/requests/AccountsListV1Request.mjs} +0 -0
  212. /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/client/requests/index.mjs +0 -0
  213. /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/index.d.mts +0 -0
  214. /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/index.mjs +0 -0
  215. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.d.mts +0 -0
  216. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.mjs +0 -0
  217. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.mjs → contacts/client/requests/ContactClientCreate1.mjs} +0 -0
  218. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorListV1Request.mjs → contacts/client/requests/ContactClientUpdate1.mjs} +0 -0
  219. /package/dist/esm/api/{types/DirectoryEntry1.mjs → resources/orgs/resources/contacts/client/requests/ContactsListV1Request.mjs} +0 -0
  220. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/client/requests/index.mjs +0 -0
  221. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/index.d.mts +0 -0
  222. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/index.mjs +0 -0
  223. /package/dist/esm/api/types/{DirectoryEntryListRes.mjs → Account1.mjs} +0 -0
  224. /package/dist/esm/api/types/{DirectoryEntrySortByEnum.mjs → AccountListRes.mjs} +0 -0
  225. /package/dist/esm/api/types/{OffChrtVendor1.mjs → AccountSortByEnum.mjs} +0 -0
  226. /package/dist/esm/api/types/{OffChrtVendorListRes.mjs → Contact1.mjs} +0 -0
  227. /package/dist/esm/api/types/{OperationsTaskDeadlineUpdate1.mjs → ContactListRes.mjs} +0 -0
  228. /package/dist/esm/api/types/{OperationsTasksBulkUpdateDeadlinesRes1.mjs → ContactSortByEnum.mjs} +0 -0
@@ -15,17 +15,21 @@ import * as core from "../../../../core/index.mjs";
15
15
  import * as Chrt from "../../../index.mjs";
16
16
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
17
17
  import * as errors from "../../../../errors/index.mjs";
18
+ import { Accounts } from "../resources/accounts/client/Client.mjs";
18
19
  import { ComplianceDocuments } from "../resources/complianceDocuments/client/Client.mjs";
19
20
  import { Connections } from "../resources/connections/client/Client.mjs";
20
- import { DirectoryEntries } from "../resources/directoryEntries/client/Client.mjs";
21
+ import { Contacts } from "../resources/contacts/client/Client.mjs";
21
22
  import { OffChrtOrgData } from "../resources/offChrtOrgData/client/Client.mjs";
22
- import { OffChrtVendor } from "../resources/offChrtVendor/client/Client.mjs";
23
23
  import { PrivateData } from "../resources/privateData/client/Client.mjs";
24
24
  import { PublicData } from "../resources/publicData/client/Client.mjs";
25
25
  export class Orgs {
26
26
  constructor(_options = {}) {
27
27
  this._options = _options;
28
28
  }
29
+ get accounts() {
30
+ var _a;
31
+ return ((_a = this._accounts) !== null && _a !== void 0 ? _a : (this._accounts = new Accounts(this._options)));
32
+ }
29
33
  get complianceDocuments() {
30
34
  var _a;
31
35
  return ((_a = this._complianceDocuments) !== null && _a !== void 0 ? _a : (this._complianceDocuments = new ComplianceDocuments(this._options)));
@@ -34,18 +38,14 @@ export class Orgs {
34
38
  var _a;
35
39
  return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Connections(this._options)));
36
40
  }
37
- get directoryEntries() {
41
+ get contacts() {
38
42
  var _a;
39
- return ((_a = this._directoryEntries) !== null && _a !== void 0 ? _a : (this._directoryEntries = new DirectoryEntries(this._options)));
43
+ return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Contacts(this._options)));
40
44
  }
41
45
  get offChrtOrgData() {
42
46
  var _a;
43
47
  return ((_a = this._offChrtOrgData) !== null && _a !== void 0 ? _a : (this._offChrtOrgData = new OffChrtOrgData(this._options)));
44
48
  }
45
- get offChrtVendor() {
46
- var _a;
47
- return ((_a = this._offChrtVendor) !== null && _a !== void 0 ? _a : (this._offChrtVendor = new OffChrtVendor(this._options)));
48
- }
49
49
  get privateData() {
50
50
  var _a;
51
51
  return ((_a = this._privateData) !== null && _a !== void 0 ? _a : (this._privateData = new PrivateData(this._options)));
@@ -0,0 +1,97 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../index.mjs";
7
+ export declare namespace Accounts {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class Accounts {
31
+ protected readonly _options: Accounts.Options;
32
+ constructor(_options?: Accounts.Options);
33
+ /**
34
+ * Creates a coordinator-private account for a connected on- or off-CHRT shipper. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientCreate1) -> (PydanticObjectId)
35
+ *
36
+ * @param {Chrt.orgs.AccountClientCreate1} request
37
+ * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.orgs.accounts.createV1({
43
+ * name: "name",
44
+ * schema_version: 1
45
+ * })
46
+ */
47
+ createV1(request: Chrt.orgs.AccountClientCreate1, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<string>;
48
+ private __createV1;
49
+ /**
50
+ * Lists coordinator-created shipper accounts with association filters, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
51
+ *
52
+ * @param {Chrt.orgs.AccountsListV1Request} request
53
+ * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @throws {@link Chrt.UnprocessableEntityError}
56
+ *
57
+ * @example
58
+ * await client.orgs.accounts.listV1({
59
+ * filter_org_id: "filter_org_id",
60
+ * filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
61
+ * sort_by: "name",
62
+ * sort_order: "asc",
63
+ * page: 1,
64
+ * page_size: 1
65
+ * })
66
+ */
67
+ listV1(request?: Chrt.orgs.AccountsListV1Request, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Chrt.AccountListRes>;
68
+ private __listV1;
69
+ /**
70
+ * Updates the name of a coordinator-created shipper account. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientUpdate1) -> (bool)
71
+ *
72
+ * @param {string} accountId
73
+ * @param {Chrt.orgs.AccountClientUpdate1} request
74
+ * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
75
+ *
76
+ * @throws {@link Chrt.UnprocessableEntityError}
77
+ *
78
+ * @example
79
+ * await client.orgs.accounts.updateV1("account_id")
80
+ */
81
+ updateV1(accountId: string, request?: Chrt.orgs.AccountClientUpdate1, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<boolean>;
82
+ private __updateV1;
83
+ /**
84
+ * Retrieves a coordinator-created shipper account. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Account1)
85
+ *
86
+ * @param {string} accountId
87
+ * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @throws {@link Chrt.UnprocessableEntityError}
90
+ *
91
+ * @example
92
+ * await client.orgs.accounts.getV1("account_id")
93
+ */
94
+ getV1(accountId: string, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Chrt.Account1>;
95
+ private __getV1;
96
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
97
+ }
@@ -15,20 +15,20 @@ import * as core from "../../../../../../core/index.mjs";
15
15
  import * as Chrt from "../../../../../index.mjs";
16
16
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
17
  import * as errors from "../../../../../../errors/index.mjs";
18
- export class OffChrtVendor {
18
+ export class Accounts {
19
19
  constructor(_options = {}) {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Creates an off-platform vendor shell owned by the caller's org. Used as an off-CHRT billing payment destination (e.g. an airline). | (OffChrtVendorClientCreate1) -> (PydanticObjectId)
23
+ * Creates a coordinator-private account for a connected on- or off-CHRT shipper. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientCreate1) -> (PydanticObjectId)
24
24
  *
25
- * @param {Chrt.orgs.OffChrtVendorClientCreate1} request
26
- * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
25
+ * @param {Chrt.orgs.AccountClientCreate1} request
26
+ * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
27
27
  *
28
28
  * @throws {@link Chrt.UnprocessableEntityError}
29
29
  *
30
30
  * @example
31
- * await client.orgs.offChrtVendor.createV1({
31
+ * await client.orgs.accounts.createV1({
32
32
  * name: "name",
33
33
  * schema_version: 1
34
34
  * })
@@ -41,7 +41,7 @@ export class OffChrtVendor {
41
41
  var _a, _b, _c, _d;
42
42
  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);
43
43
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
44
- 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, "orgs/off_chrt_vendor/create/v1"),
44
+ 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, "orgs/accounts/create/v1"),
45
45
  method: "POST",
46
46
  headers: _headers,
47
47
  contentType: "application/json",
@@ -75,7 +75,7 @@ export class OffChrtVendor {
75
75
  rawResponse: _response.rawResponse,
76
76
  });
77
77
  case "timeout":
78
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/off_chrt_vendor/create/v1.");
78
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/accounts/create/v1.");
79
79
  case "unknown":
80
80
  throw new errors.ChrtError({
81
81
  message: _response.error.errorMessage,
@@ -85,15 +85,19 @@ export class OffChrtVendor {
85
85
  });
86
86
  }
87
87
  /**
88
- * Lists all off-chrt vendors created by the caller's organization. Pagination only no search/filter. | () -> (OffChrtVendorListRes)
88
+ * Lists coordinator-created shipper accounts with association filters, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
89
89
  *
90
- * @param {Chrt.orgs.OffChrtVendorListV1Request} request
91
- * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
90
+ * @param {Chrt.orgs.AccountsListV1Request} request
91
+ * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
92
92
  *
93
93
  * @throws {@link Chrt.UnprocessableEntityError}
94
94
  *
95
95
  * @example
96
- * await client.orgs.offChrtVendor.listV1({
96
+ * await client.orgs.accounts.listV1({
97
+ * filter_org_id: "filter_org_id",
98
+ * filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
99
+ * sort_by: "name",
100
+ * sort_order: "asc",
97
101
  * page: 1,
98
102
  * page_size: 1
99
103
  * })
@@ -104,8 +108,20 @@ export class OffChrtVendor {
104
108
  __listV1() {
105
109
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
106
110
  var _a, _b, _c, _d, _e, _f;
107
- const { page, page_size: pageSize } = request;
111
+ const { filter_org_id: filterOrgId, filter_off_chrt_org_data_id: filterOffChrtOrgDataId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
108
112
  const _queryParams = {};
113
+ if (filterOrgId !== undefined) {
114
+ _queryParams["filter_org_id"] = filterOrgId;
115
+ }
116
+ if (filterOffChrtOrgDataId !== undefined) {
117
+ _queryParams["filter_off_chrt_org_data_id"] = filterOffChrtOrgDataId;
118
+ }
119
+ if (sortBy !== undefined) {
120
+ _queryParams["sort_by"] = sortBy;
121
+ }
122
+ if (sortOrder !== undefined) {
123
+ _queryParams["sort_order"] = sortOrder;
124
+ }
109
125
  if (page !== undefined) {
110
126
  _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
111
127
  }
@@ -114,7 +130,7 @@ export class OffChrtVendor {
114
130
  }
115
131
  let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
116
132
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
117
- url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "orgs/off_chrt_vendor/list/v1"),
133
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "orgs/accounts/list/v1"),
118
134
  method: "GET",
119
135
  headers: _headers,
120
136
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -145,7 +161,7 @@ export class OffChrtVendor {
145
161
  rawResponse: _response.rawResponse,
146
162
  });
147
163
  case "timeout":
148
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/off_chrt_vendor/list/v1.");
164
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/accounts/list/v1.");
149
165
  case "unknown":
150
166
  throw new errors.ChrtError({
151
167
  message: _response.error.errorMessage,
@@ -155,28 +171,32 @@ export class OffChrtVendor {
155
171
  });
156
172
  }
157
173
  /**
158
- * Retrieves a specific off-chrt vendor by ID. Scoped to the caller's org. | () -> (OffChrtVendor1)
174
+ * Updates the name of a coordinator-created shipper account. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientUpdate1) -> (bool)
159
175
  *
160
- * @param {string} id
161
- * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
176
+ * @param {string} accountId
177
+ * @param {Chrt.orgs.AccountClientUpdate1} request
178
+ * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
162
179
  *
163
180
  * @throws {@link Chrt.UnprocessableEntityError}
164
181
  *
165
182
  * @example
166
- * await client.orgs.offChrtVendor.getByIdV1("id")
183
+ * await client.orgs.accounts.updateV1("account_id")
167
184
  */
168
- getByIdV1(id, requestOptions) {
169
- return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
185
+ updateV1(accountId, request = {}, requestOptions) {
186
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(accountId, request, requestOptions));
170
187
  }
171
- __getByIdV1(id, requestOptions) {
172
- return __awaiter(this, void 0, void 0, function* () {
188
+ __updateV1(accountId_1) {
189
+ return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
173
190
  var _a, _b, _c, _d;
174
191
  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);
175
192
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
176
- 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, `orgs/off_chrt_vendor/v1/${encodeURIComponent(id)}`),
177
- method: "GET",
193
+ 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, `orgs/accounts/update/v1/${encodeURIComponent(accountId)}`),
194
+ method: "PATCH",
178
195
  headers: _headers,
196
+ contentType: "application/json",
179
197
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
198
+ requestType: "json",
199
+ body: request,
180
200
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
181
201
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
182
202
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -204,7 +224,7 @@ export class OffChrtVendor {
204
224
  rawResponse: _response.rawResponse,
205
225
  });
206
226
  case "timeout":
207
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/off_chrt_vendor/v1/{id}.");
227
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/accounts/update/v1/{account_id}.");
208
228
  case "unknown":
209
229
  throw new errors.ChrtError({
210
230
  message: _response.error.errorMessage,
@@ -214,91 +234,28 @@ export class OffChrtVendor {
214
234
  });
215
235
  }
216
236
  /**
217
- * Deletes an off-chrt vendor owned by the caller's organization. Existing LineItemGroups / Statements keep their snapshotted destination id; deletion does not cascade. | () -> (bool)
237
+ * Retrieves a coordinator-created shipper account. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Account1)
218
238
  *
219
- * @param {string} id
220
- * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
239
+ * @param {string} accountId
240
+ * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
221
241
  *
222
242
  * @throws {@link Chrt.UnprocessableEntityError}
223
243
  *
224
244
  * @example
225
- * await client.orgs.offChrtVendor.deleteByIdV1("id")
245
+ * await client.orgs.accounts.getV1("account_id")
226
246
  */
227
- deleteByIdV1(id, requestOptions) {
228
- return core.HttpResponsePromise.fromPromise(this.__deleteByIdV1(id, requestOptions));
247
+ getV1(accountId, requestOptions) {
248
+ return core.HttpResponsePromise.fromPromise(this.__getV1(accountId, requestOptions));
229
249
  }
230
- __deleteByIdV1(id, requestOptions) {
250
+ __getV1(accountId, requestOptions) {
231
251
  return __awaiter(this, void 0, void 0, function* () {
232
252
  var _a, _b, _c, _d;
233
253
  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);
234
254
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
235
- 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, `orgs/off_chrt_vendor/v1/${encodeURIComponent(id)}`),
236
- method: "DELETE",
237
- headers: _headers,
238
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
239
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
240
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
241
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
242
- });
243
- if (_response.ok) {
244
- return { data: _response.body, rawResponse: _response.rawResponse };
245
- }
246
- if (_response.error.reason === "status-code") {
247
- switch (_response.error.statusCode) {
248
- case 422:
249
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
250
- default:
251
- throw new errors.ChrtError({
252
- statusCode: _response.error.statusCode,
253
- body: _response.error.body,
254
- rawResponse: _response.rawResponse,
255
- });
256
- }
257
- }
258
- switch (_response.error.reason) {
259
- case "non-json":
260
- throw new errors.ChrtError({
261
- statusCode: _response.error.statusCode,
262
- body: _response.error.rawBody,
263
- rawResponse: _response.rawResponse,
264
- });
265
- case "timeout":
266
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /orgs/off_chrt_vendor/v1/{id}.");
267
- case "unknown":
268
- throw new errors.ChrtError({
269
- message: _response.error.errorMessage,
270
- rawResponse: _response.rawResponse,
271
- });
272
- }
273
- });
274
- }
275
- /**
276
- * Updates an existing off-chrt vendor owned by the caller's organization. | (OffChrtVendorClientUpdate1) -> (bool)
277
- *
278
- * @param {string} id
279
- * @param {Chrt.orgs.OffChrtVendorClientUpdate1} request
280
- * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
281
- *
282
- * @throws {@link Chrt.UnprocessableEntityError}
283
- *
284
- * @example
285
- * await client.orgs.offChrtVendor.updateByIdV1("id")
286
- */
287
- updateByIdV1(id, request = {}, requestOptions) {
288
- return core.HttpResponsePromise.fromPromise(this.__updateByIdV1(id, request, requestOptions));
289
- }
290
- __updateByIdV1(id_1) {
291
- return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
292
- var _a, _b, _c, _d;
293
- 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);
294
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
295
- 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, `orgs/off_chrt_vendor/v1/${encodeURIComponent(id)}`),
296
- method: "PATCH",
255
+ 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, `orgs/accounts/v1/${encodeURIComponent(accountId)}`),
256
+ method: "GET",
297
257
  headers: _headers,
298
- contentType: "application/json",
299
258
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
300
- requestType: "json",
301
- body: request,
302
259
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
303
260
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
304
261
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -326,7 +283,7 @@ export class OffChrtVendor {
326
283
  rawResponse: _response.rawResponse,
327
284
  });
328
285
  case "timeout":
329
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/off_chrt_vendor/v1/{id}.");
286
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/accounts/v1/{account_id}.");
330
287
  case "unknown":
331
288
  throw new errors.ChrtError({
332
289
  message: _response.error.errorMessage,
@@ -8,8 +8,10 @@
8
8
  * schema_version: 1
9
9
  * }
10
10
  */
11
- export interface OffChrtVendorClientCreate1 {
11
+ export interface AccountClientCreate1 {
12
12
  name: string;
13
- notes?: string | null;
13
+ off_chrt_org_data_id?: string | null;
14
+ /** Must be a string starting with `org_` */
15
+ org_id?: string | null;
14
16
  schema_version: number;
15
17
  }
@@ -5,8 +5,6 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface OffChrtVendorClientUpdate1 {
8
+ export interface AccountClientUpdate1 {
9
9
  name?: string | null;
10
- notes?: string | null;
11
- notes__set_to_None?: boolean;
12
10
  }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * filter_org_id: "filter_org_id",
9
+ * filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
10
+ * sort_by: "name",
11
+ * sort_order: "asc",
12
+ * page: 1,
13
+ * page_size: 1
14
+ * }
15
+ */
16
+ export interface AccountsListV1Request {
17
+ /** Filter by associated on-CHRT shipper organization */
18
+ filter_org_id?: string | null;
19
+ /** Filter by associated off-CHRT shipper organization data */
20
+ filter_off_chrt_org_data_id?: string | null;
21
+ /** Field to sort by */
22
+ sort_by?: Chrt.AccountSortByEnum | null;
23
+ /** Sort order */
24
+ sort_order?: Chrt.SortOrderEnum | null;
25
+ page?: number | null;
26
+ page_size?: number | null;
27
+ }
@@ -0,0 +1,3 @@
1
+ export { type AccountClientCreate1 } from "./AccountClientCreate1.mjs";
2
+ export { type AccountsListV1Request } from "./AccountsListV1Request.mjs";
3
+ export { type AccountClientUpdate1 } from "./AccountClientUpdate1.mjs";
@@ -0,0 +1,112 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../index.mjs";
7
+ export declare namespace Contacts {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class Contacts {
31
+ protected readonly _options: Contacts.Options;
32
+ constructor(_options?: Contacts.Options);
33
+ /**
34
+ * Creates an organization-created contact. | authz: min_org_role=operator | (ContactClientCreate1) -> (PydanticObjectId)
35
+ *
36
+ * @param {Chrt.orgs.ContactClientCreate1} request
37
+ * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.orgs.contacts.createV1({
43
+ * name: "name",
44
+ * schema_version: 1
45
+ * })
46
+ */
47
+ createV1(request: Chrt.orgs.ContactClientCreate1, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<string>;
48
+ private __createV1;
49
+ /**
50
+ * Deletes an organization-created contact. | authz: min_org_role=operator | () -> (bool)
51
+ *
52
+ * @param {string} contactId
53
+ * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @throws {@link Chrt.UnprocessableEntityError}
56
+ *
57
+ * @example
58
+ * await client.orgs.contacts.deleteV1("contact_id")
59
+ */
60
+ deleteV1(contactId: string, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<boolean>;
61
+ private __deleteV1;
62
+ /**
63
+ * Lists organization-created contacts with association filters and search. | authz: min_org_role=operator | () -> (ContactListRes)
64
+ *
65
+ * @param {Chrt.orgs.ContactsListV1Request} request
66
+ * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Chrt.UnprocessableEntityError}
69
+ *
70
+ * @example
71
+ * await client.orgs.contacts.listV1({
72
+ * search: "search",
73
+ * filter_org_id: "filter_org_id",
74
+ * filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
75
+ * filter_account_id: "filter_account_id",
76
+ * sort_by: "name",
77
+ * sort_order: "asc",
78
+ * page: 1,
79
+ * page_size: 1
80
+ * })
81
+ */
82
+ listV1(request?: Chrt.orgs.ContactsListV1Request, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<Chrt.ContactListRes>;
83
+ private __listV1;
84
+ /**
85
+ * Updates an organization-created contact. | authz: min_org_role=operator | (ContactClientUpdate1) -> (bool)
86
+ *
87
+ * @param {string} contactId
88
+ * @param {Chrt.orgs.ContactClientUpdate1} request
89
+ * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
90
+ *
91
+ * @throws {@link Chrt.UnprocessableEntityError}
92
+ *
93
+ * @example
94
+ * await client.orgs.contacts.updateV1("contact_id")
95
+ */
96
+ updateV1(contactId: string, request?: Chrt.orgs.ContactClientUpdate1, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<boolean>;
97
+ private __updateV1;
98
+ /**
99
+ * Retrieves an organization-created contact. | authz: min_org_role=operator | () -> (Contact1)
100
+ *
101
+ * @param {string} contactId
102
+ * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
103
+ *
104
+ * @throws {@link Chrt.UnprocessableEntityError}
105
+ *
106
+ * @example
107
+ * await client.orgs.contacts.getV1("contact_id")
108
+ */
109
+ getV1(contactId: string, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<Chrt.Contact1>;
110
+ private __getV1;
111
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
112
+ }