@chrt-inc/typescript-sdk 1.881.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 (202) 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/orgs/client/Client.d.ts +6 -6
  7. package/dist/cjs/api/resources/orgs/client/Client.js +14 -14
  8. package/dist/cjs/api/resources/orgs/resources/accounts/client/Client.d.ts +97 -0
  9. package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → accounts}/client/Client.js +57 -100
  10. 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
  11. package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.ts → accounts/client/requests/AccountClientUpdate1.d.ts} +1 -3
  12. package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.ts +27 -0
  13. package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/index.d.ts +3 -0
  14. package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +112 -0
  15. package/dist/cjs/api/resources/orgs/resources/{directoryEntries → contacts}/client/Client.js +55 -51
  16. package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.d.ts → contacts/client/requests/ContactClientCreate1.d.ts} +5 -4
  17. package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.ts → contacts/client/requests/ContactClientUpdate1.d.ts} +1 -1
  18. package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntriesListV1Request.d.ts → contacts/client/requests/ContactsListV1Request.d.ts} +9 -6
  19. package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/index.d.ts +3 -0
  20. package/dist/cjs/api/resources/orgs/resources/index.d.ts +4 -4
  21. package/dist/cjs/api/resources/orgs/resources/index.js +5 -5
  22. package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.d.ts +1 -1
  23. package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.js +1 -1
  24. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +1 -1
  25. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +4 -4
  26. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +2 -1
  27. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +2 -1
  28. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +3 -3
  29. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +28 -0
  30. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +120 -0
  31. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -0
  32. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -0
  33. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +20 -4
  34. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +3 -0
  35. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +3 -0
  36. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
  37. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +3 -0
  38. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +1 -1
  39. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +1 -1
  40. package/dist/{esm/api/types/OffChrtVendor1.d.mts → cjs/api/types/Account1.d.ts} +4 -2
  41. package/dist/cjs/api/types/{OffChrtVendorListRes.d.ts → AccountListRes.d.ts} +2 -2
  42. package/dist/cjs/api/types/AccountSortByEnum.d.ts +4 -0
  43. package/dist/cjs/api/types/{DirectoryEntry1.d.ts → Contact1.d.ts} +6 -7
  44. package/dist/cjs/api/types/{DirectoryEntryListRes.d.ts → ContactListRes.d.ts} +2 -2
  45. package/dist/cjs/api/types/ContactSortByEnum.d.ts +4 -0
  46. package/dist/cjs/api/types/ContactSortByEnum.js +5 -0
  47. package/dist/cjs/api/types/CreateOffChrtOrgRes.d.ts +1 -1
  48. package/dist/cjs/api/types/LineItemGroup1.d.ts +0 -1
  49. package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +1 -1
  50. package/dist/cjs/api/types/NotificationIntentAdHocClientCreate1.d.ts +1 -1
  51. package/dist/cjs/api/types/Order1.d.ts +1 -0
  52. package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -1
  53. package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
  54. package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +1 -0
  55. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -0
  56. package/dist/cjs/api/types/OrderTemplate1.d.ts +2 -1
  57. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +2 -1
  58. package/dist/cjs/api/types/OrderTemplateExpanded1.d.ts +1 -1
  59. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +3 -2
  60. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +2 -1
  61. package/dist/cjs/api/types/OrderTemplateReferencesExpanded1.d.ts +1 -1
  62. package/dist/cjs/api/types/OrderTemplateResolvabilityRes.d.ts +2 -1
  63. package/dist/cjs/api/types/OrgTypeEnum.d.ts +2 -1
  64. package/dist/cjs/api/types/OrgTypeEnum.js +1 -0
  65. package/dist/cjs/api/types/Statement1.d.ts +0 -1
  66. package/dist/cjs/api/types/Task1.d.ts +1 -1
  67. package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
  68. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -1
  69. package/dist/cjs/api/types/TaskExpanded.d.ts +1 -1
  70. package/dist/cjs/api/types/index.d.ts +6 -5
  71. package/dist/cjs/api/types/index.js +6 -5
  72. package/dist/cjs/version.d.ts +1 -1
  73. package/dist/cjs/version.js +1 -1
  74. package/dist/esm/Client.mjs +2 -2
  75. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.mts +0 -1
  76. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.mts +0 -1
  77. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +2 -2
  78. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +2 -2
  79. package/dist/esm/api/resources/orgs/client/Client.d.mts +6 -6
  80. package/dist/esm/api/resources/orgs/client/Client.mjs +8 -8
  81. package/dist/esm/api/resources/orgs/resources/accounts/client/Client.d.mts +97 -0
  82. package/dist/esm/api/resources/orgs/resources/{offChrtVendor → accounts}/client/Client.mjs +55 -98
  83. 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
  84. package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.mts → accounts/client/requests/AccountClientUpdate1.d.mts} +1 -3
  85. package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.mts +27 -0
  86. package/dist/esm/api/resources/orgs/resources/accounts/client/requests/index.d.mts +3 -0
  87. package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +112 -0
  88. package/dist/esm/api/resources/orgs/resources/{directoryEntries → contacts}/client/Client.mjs +53 -49
  89. package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.d.mts → contacts/client/requests/ContactClientCreate1.d.mts} +5 -4
  90. package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.mts → contacts/client/requests/ContactClientUpdate1.d.mts} +1 -1
  91. package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntriesListV1Request.d.mts → contacts/client/requests/ContactsListV1Request.d.mts} +9 -6
  92. package/dist/esm/api/resources/orgs/resources/contacts/client/requests/index.d.mts +3 -0
  93. package/dist/esm/api/resources/orgs/resources/index.d.mts +4 -4
  94. package/dist/esm/api/resources/orgs/resources/index.mjs +4 -4
  95. package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.d.mts +1 -1
  96. package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.mjs +1 -1
  97. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +1 -1
  98. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +4 -4
  99. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +2 -1
  100. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +2 -1
  101. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +3 -3
  102. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +28 -0
  103. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +120 -0
  104. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -0
  105. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -0
  106. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +20 -4
  107. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +3 -0
  108. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +3 -0
  109. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
  110. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +3 -0
  111. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +1 -1
  112. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +1 -1
  113. package/dist/{cjs/api/types/OffChrtVendor1.d.ts → esm/api/types/Account1.d.mts} +4 -2
  114. package/dist/esm/api/types/{OffChrtVendorListRes.d.mts → AccountListRes.d.mts} +2 -2
  115. package/dist/esm/api/types/AccountSortByEnum.d.mts +4 -0
  116. package/dist/esm/api/types/{DirectoryEntry1.d.mts → Contact1.d.mts} +6 -7
  117. package/dist/esm/api/types/{DirectoryEntryListRes.d.mts → ContactListRes.d.mts} +2 -2
  118. package/dist/esm/api/types/ContactSortByEnum.d.mts +4 -0
  119. package/dist/esm/api/types/ContactSortByEnum.mjs +4 -0
  120. package/dist/esm/api/types/CreateOffChrtOrgRes.d.mts +1 -1
  121. package/dist/esm/api/types/LineItemGroup1.d.mts +0 -1
  122. package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +1 -1
  123. package/dist/esm/api/types/NotificationIntentAdHocClientCreate1.d.mts +1 -1
  124. package/dist/esm/api/types/Order1.d.mts +1 -0
  125. package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -1
  126. package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
  127. package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +1 -0
  128. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -0
  129. package/dist/esm/api/types/OrderTemplate1.d.mts +2 -1
  130. package/dist/esm/api/types/OrderTemplateCore1.d.mts +2 -1
  131. package/dist/esm/api/types/OrderTemplateExpanded1.d.mts +1 -1
  132. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +3 -2
  133. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +2 -1
  134. package/dist/esm/api/types/OrderTemplateReferencesExpanded1.d.mts +1 -1
  135. package/dist/esm/api/types/OrderTemplateResolvabilityRes.d.mts +2 -1
  136. package/dist/esm/api/types/OrgTypeEnum.d.mts +2 -1
  137. package/dist/esm/api/types/OrgTypeEnum.mjs +1 -0
  138. package/dist/esm/api/types/Statement1.d.mts +0 -1
  139. package/dist/esm/api/types/Task1.d.mts +1 -1
  140. package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
  141. package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -1
  142. package/dist/esm/api/types/TaskExpanded.d.mts +1 -1
  143. package/dist/esm/api/types/index.d.mts +6 -5
  144. package/dist/esm/api/types/index.mjs +6 -5
  145. package/dist/esm/version.d.mts +1 -1
  146. package/dist/esm/version.mjs +1 -1
  147. package/package.json +1 -1
  148. package/reference.md +358 -270
  149. package/dist/cjs/api/resources/orgs/resources/directoryEntries/client/Client.d.ts +0 -111
  150. package/dist/cjs/api/resources/orgs/resources/directoryEntries/client/requests/index.d.ts +0 -3
  151. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/Client.d.ts +0 -106
  152. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.ts +0 -14
  153. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.ts +0 -3
  154. package/dist/cjs/api/types/DirectoryEntrySortByEnum.d.ts +0 -4
  155. package/dist/esm/api/resources/orgs/resources/directoryEntries/client/Client.d.mts +0 -111
  156. package/dist/esm/api/resources/orgs/resources/directoryEntries/client/requests/index.d.mts +0 -3
  157. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/Client.d.mts +0 -106
  158. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.mts +0 -14
  159. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.mts +0 -3
  160. package/dist/esm/api/types/DirectoryEntrySortByEnum.d.mts +0 -4
  161. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.d.ts +0 -0
  162. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.js +0 -0
  163. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntriesListV1Request.js → accounts/client/requests/AccountClientCreate1.js} +0 -0
  164. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.js → accounts/client/requests/AccountClientUpdate1.js} +0 -0
  165. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.js → accounts/client/requests/AccountsListV1Request.js} +0 -0
  166. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/client/requests/index.js +0 -0
  167. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/index.d.ts +0 -0
  168. /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/index.js +0 -0
  169. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.d.ts +0 -0
  170. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.js +0 -0
  171. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientCreate1.js → contacts/client/requests/ContactClientCreate1.js} +0 -0
  172. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.js → contacts/client/requests/ContactClientUpdate1.js} +0 -0
  173. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorListV1Request.js → contacts/client/requests/ContactsListV1Request.js} +0 -0
  174. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/client/requests/index.js +0 -0
  175. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/index.d.ts +0 -0
  176. /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/index.js +0 -0
  177. /package/dist/cjs/api/types/{DirectoryEntry1.js → Account1.js} +0 -0
  178. /package/dist/cjs/api/types/{DirectoryEntryListRes.js → AccountListRes.js} +0 -0
  179. /package/dist/cjs/api/types/{DirectoryEntrySortByEnum.js → AccountSortByEnum.js} +0 -0
  180. /package/dist/cjs/api/types/{OffChrtVendor1.js → Contact1.js} +0 -0
  181. /package/dist/cjs/api/types/{OffChrtVendorListRes.js → ContactListRes.js} +0 -0
  182. /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.d.mts +0 -0
  183. /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.mjs +0 -0
  184. /package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntriesListV1Request.mjs → accounts/client/requests/AccountClientCreate1.mjs} +0 -0
  185. /package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.mjs → accounts/client/requests/AccountClientUpdate1.mjs} +0 -0
  186. /package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.mjs → accounts/client/requests/AccountsListV1Request.mjs} +0 -0
  187. /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/client/requests/index.mjs +0 -0
  188. /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/index.d.mts +0 -0
  189. /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/index.mjs +0 -0
  190. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.d.mts +0 -0
  191. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.mjs +0 -0
  192. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientCreate1.mjs → contacts/client/requests/ContactClientCreate1.mjs} +0 -0
  193. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.mjs → contacts/client/requests/ContactClientUpdate1.mjs} +0 -0
  194. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorListV1Request.mjs → contacts/client/requests/ContactsListV1Request.mjs} +0 -0
  195. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/client/requests/index.mjs +0 -0
  196. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/index.d.mts +0 -0
  197. /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/index.mjs +0 -0
  198. /package/dist/esm/api/types/{DirectoryEntry1.mjs → Account1.mjs} +0 -0
  199. /package/dist/esm/api/types/{DirectoryEntryListRes.mjs → AccountListRes.mjs} +0 -0
  200. /package/dist/esm/api/types/{DirectoryEntrySortByEnum.mjs → AccountSortByEnum.mjs} +0 -0
  201. /package/dist/esm/api/types/{OffChrtVendor1.mjs → Contact1.mjs} +0 -0
  202. /package/dist/esm/api/types/{OffChrtVendorListRes.mjs → ContactListRes.mjs} +0 -0
@@ -0,0 +1,112 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.js";
5
+ import * as core from "../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../index.js";
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
+ }
@@ -45,26 +45,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
45
45
  });
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.DirectoryEntries = void 0;
48
+ exports.Contacts = void 0;
49
49
  const environments = __importStar(require("../../../../../../environments.js"));
50
50
  const core = __importStar(require("../../../../../../core/index.js"));
51
51
  const Chrt = __importStar(require("../../../../../index.js"));
52
52
  const headers_js_1 = require("../../../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../../../errors/index.js"));
54
- class DirectoryEntries {
54
+ class Contacts {
55
55
  constructor(_options = {}) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Creates an organization-owned directory entry. | authz: min_org_role=operator | (DirectoryEntryClientCreate1) -> (PydanticObjectId)
59
+ * Creates an organization-created contact. | authz: min_org_role=operator | (ContactClientCreate1) -> (PydanticObjectId)
60
60
  *
61
- * @param {Chrt.orgs.DirectoryEntryClientCreate1} request
62
- * @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
61
+ * @param {Chrt.orgs.ContactClientCreate1} request
62
+ * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
64
64
  * @throws {@link Chrt.UnprocessableEntityError}
65
65
  *
66
66
  * @example
67
- * await client.orgs.directoryEntries.createV1({
67
+ * await client.orgs.contacts.createV1({
68
68
  * name: "name",
69
69
  * schema_version: 1
70
70
  * })
@@ -77,7 +77,7 @@ class DirectoryEntries {
77
77
  var _a, _b, _c, _d;
78
78
  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);
79
79
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
80
- 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/directory_entries/create/v1"),
80
+ 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/contacts/create/v1"),
81
81
  method: "POST",
82
82
  headers: _headers,
83
83
  contentType: "application/json",
@@ -111,7 +111,7 @@ class DirectoryEntries {
111
111
  rawResponse: _response.rawResponse,
112
112
  });
113
113
  case "timeout":
114
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/directory_entries/create/v1.");
114
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/contacts/create/v1.");
115
115
  case "unknown":
116
116
  throw new errors.ChrtError({
117
117
  message: _response.error.errorMessage,
@@ -121,25 +121,25 @@ class DirectoryEntries {
121
121
  });
122
122
  }
123
123
  /**
124
- * Deletes an organization-owned directory entry. | authz: min_org_role=operator | () -> (bool)
124
+ * Deletes an organization-created contact. | authz: min_org_role=operator | () -> (bool)
125
125
  *
126
- * @param {string} directoryEntryId
127
- * @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
126
+ * @param {string} contactId
127
+ * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
128
128
  *
129
129
  * @throws {@link Chrt.UnprocessableEntityError}
130
130
  *
131
131
  * @example
132
- * await client.orgs.directoryEntries.deleteV1("directory_entry_id")
132
+ * await client.orgs.contacts.deleteV1("contact_id")
133
133
  */
134
- deleteV1(directoryEntryId, requestOptions) {
135
- return core.HttpResponsePromise.fromPromise(this.__deleteV1(directoryEntryId, requestOptions));
134
+ deleteV1(contactId, requestOptions) {
135
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(contactId, requestOptions));
136
136
  }
137
- __deleteV1(directoryEntryId, requestOptions) {
137
+ __deleteV1(contactId, requestOptions) {
138
138
  return __awaiter(this, void 0, void 0, function* () {
139
139
  var _a, _b, _c, _d;
140
140
  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);
141
141
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
142
- 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/directory_entries/delete/v1/${encodeURIComponent(directoryEntryId)}`),
142
+ 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/contacts/delete/v1/${encodeURIComponent(contactId)}`),
143
143
  method: "DELETE",
144
144
  headers: _headers,
145
145
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -170,7 +170,7 @@ class DirectoryEntries {
170
170
  rawResponse: _response.rawResponse,
171
171
  });
172
172
  case "timeout":
173
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /orgs/directory_entries/delete/v1/{directory_entry_id}.");
173
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /orgs/contacts/delete/v1/{contact_id}.");
174
174
  case "unknown":
175
175
  throw new errors.ChrtError({
176
176
  message: _response.error.errorMessage,
@@ -180,18 +180,19 @@ class DirectoryEntries {
180
180
  });
181
181
  }
182
182
  /**
183
- * Lists organization-owned directory entries with association filters and search. | authz: min_org_role=operator | () -> (DirectoryEntryListRes)
183
+ * Lists organization-created contacts with association filters and search. | authz: min_org_role=operator | () -> (ContactListRes)
184
184
  *
185
- * @param {Chrt.orgs.DirectoryEntriesListV1Request} request
186
- * @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
185
+ * @param {Chrt.orgs.ContactsListV1Request} request
186
+ * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
187
187
  *
188
188
  * @throws {@link Chrt.UnprocessableEntityError}
189
189
  *
190
190
  * @example
191
- * await client.orgs.directoryEntries.listV1({
191
+ * await client.orgs.contacts.listV1({
192
192
  * search: "search",
193
- * filter_entry_org_id: "filter_entry_org_id",
194
- * filter_entry_off_chrt_org_data_id: "filter_entry_off_chrt_org_data_id",
193
+ * filter_org_id: "filter_org_id",
194
+ * filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
195
+ * filter_account_id: "filter_account_id",
195
196
  * sort_by: "name",
196
197
  * sort_order: "asc",
197
198
  * page: 1,
@@ -204,16 +205,19 @@ class DirectoryEntries {
204
205
  __listV1() {
205
206
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
206
207
  var _a, _b, _c, _d, _e, _f;
207
- const { search, filter_entry_org_id: filterEntryOrgId, filter_entry_off_chrt_org_data_id: filterEntryOffChrtOrgDataId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
208
+ const { search, filter_org_id: filterOrgId, filter_off_chrt_org_data_id: filterOffChrtOrgDataId, filter_account_id: filterAccountId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
208
209
  const _queryParams = {};
209
210
  if (search !== undefined) {
210
211
  _queryParams["search"] = search;
211
212
  }
212
- if (filterEntryOrgId !== undefined) {
213
- _queryParams["filter_entry_org_id"] = filterEntryOrgId;
213
+ if (filterOrgId !== undefined) {
214
+ _queryParams["filter_org_id"] = filterOrgId;
214
215
  }
215
- if (filterEntryOffChrtOrgDataId !== undefined) {
216
- _queryParams["filter_entry_off_chrt_org_data_id"] = filterEntryOffChrtOrgDataId;
216
+ if (filterOffChrtOrgDataId !== undefined) {
217
+ _queryParams["filter_off_chrt_org_data_id"] = filterOffChrtOrgDataId;
218
+ }
219
+ if (filterAccountId !== undefined) {
220
+ _queryParams["filter_account_id"] = filterAccountId;
217
221
  }
218
222
  if (sortBy !== undefined) {
219
223
  _queryParams["sort_by"] = sortBy;
@@ -229,7 +233,7 @@ class DirectoryEntries {
229
233
  }
230
234
  let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
231
235
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
232
- 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/directory_entries/list/v1"),
236
+ 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/contacts/list/v1"),
233
237
  method: "GET",
234
238
  headers: _headers,
235
239
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -260,7 +264,7 @@ class DirectoryEntries {
260
264
  rawResponse: _response.rawResponse,
261
265
  });
262
266
  case "timeout":
263
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/directory_entries/list/v1.");
267
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/contacts/list/v1.");
264
268
  case "unknown":
265
269
  throw new errors.ChrtError({
266
270
  message: _response.error.errorMessage,
@@ -270,26 +274,26 @@ class DirectoryEntries {
270
274
  });
271
275
  }
272
276
  /**
273
- * Updates an organization-owned directory entry. | authz: min_org_role=operator | (DirectoryEntryClientUpdate1) -> (bool)
277
+ * Updates an organization-created contact. | authz: min_org_role=operator | (ContactClientUpdate1) -> (bool)
274
278
  *
275
- * @param {string} directoryEntryId
276
- * @param {Chrt.orgs.DirectoryEntryClientUpdate1} request
277
- * @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
279
+ * @param {string} contactId
280
+ * @param {Chrt.orgs.ContactClientUpdate1} request
281
+ * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
278
282
  *
279
283
  * @throws {@link Chrt.UnprocessableEntityError}
280
284
  *
281
285
  * @example
282
- * await client.orgs.directoryEntries.updateV1("directory_entry_id")
286
+ * await client.orgs.contacts.updateV1("contact_id")
283
287
  */
284
- updateV1(directoryEntryId, request = {}, requestOptions) {
285
- return core.HttpResponsePromise.fromPromise(this.__updateV1(directoryEntryId, request, requestOptions));
288
+ updateV1(contactId, request = {}, requestOptions) {
289
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(contactId, request, requestOptions));
286
290
  }
287
- __updateV1(directoryEntryId_1) {
288
- return __awaiter(this, arguments, void 0, function* (directoryEntryId, request = {}, requestOptions) {
291
+ __updateV1(contactId_1) {
292
+ return __awaiter(this, arguments, void 0, function* (contactId, request = {}, requestOptions) {
289
293
  var _a, _b, _c, _d;
290
294
  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);
291
295
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
292
- 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/directory_entries/update/v1/${encodeURIComponent(directoryEntryId)}`),
296
+ 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/contacts/update/v1/${encodeURIComponent(contactId)}`),
293
297
  method: "PATCH",
294
298
  headers: _headers,
295
299
  contentType: "application/json",
@@ -323,7 +327,7 @@ class DirectoryEntries {
323
327
  rawResponse: _response.rawResponse,
324
328
  });
325
329
  case "timeout":
326
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/directory_entries/update/v1/{directory_entry_id}.");
330
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/contacts/update/v1/{contact_id}.");
327
331
  case "unknown":
328
332
  throw new errors.ChrtError({
329
333
  message: _response.error.errorMessage,
@@ -333,25 +337,25 @@ class DirectoryEntries {
333
337
  });
334
338
  }
335
339
  /**
336
- * Retrieves an organization-owned directory entry. | authz: min_org_role=operator | () -> (DirectoryEntry1)
340
+ * Retrieves an organization-created contact. | authz: min_org_role=operator | () -> (Contact1)
337
341
  *
338
- * @param {string} directoryEntryId
339
- * @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
342
+ * @param {string} contactId
343
+ * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
340
344
  *
341
345
  * @throws {@link Chrt.UnprocessableEntityError}
342
346
  *
343
347
  * @example
344
- * await client.orgs.directoryEntries.getV1("directory_entry_id")
348
+ * await client.orgs.contacts.getV1("contact_id")
345
349
  */
346
- getV1(directoryEntryId, requestOptions) {
347
- return core.HttpResponsePromise.fromPromise(this.__getV1(directoryEntryId, requestOptions));
350
+ getV1(contactId, requestOptions) {
351
+ return core.HttpResponsePromise.fromPromise(this.__getV1(contactId, requestOptions));
348
352
  }
349
- __getV1(directoryEntryId, requestOptions) {
353
+ __getV1(contactId, requestOptions) {
350
354
  return __awaiter(this, void 0, void 0, function* () {
351
355
  var _a, _b, _c, _d;
352
356
  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);
353
357
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
354
- 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/directory_entries/v1/${encodeURIComponent(directoryEntryId)}`),
358
+ 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/contacts/v1/${encodeURIComponent(contactId)}`),
355
359
  method: "GET",
356
360
  headers: _headers,
357
361
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -382,7 +386,7 @@ class DirectoryEntries {
382
386
  rawResponse: _response.rawResponse,
383
387
  });
384
388
  case "timeout":
385
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/directory_entries/v1/{directory_entry_id}.");
389
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/contacts/v1/{contact_id}.");
386
390
  case "unknown":
387
391
  throw new errors.ChrtError({
388
392
  message: _response.error.errorMessage,
@@ -401,4 +405,4 @@ class DirectoryEntries {
401
405
  });
402
406
  }
403
407
  }
404
- exports.DirectoryEntries = DirectoryEntries;
408
+ exports.Contacts = Contacts;
@@ -9,15 +9,16 @@ import * as Chrt from "../../../../../../index.js";
9
9
  * schema_version: 1
10
10
  * }
11
11
  */
12
- export interface DirectoryEntryClientCreate1 {
12
+ export interface ContactClientCreate1 {
13
+ account_id?: string | null;
13
14
  email_address?: string | null;
14
- entry_off_chrt_org_data_id?: string | null;
15
- /** Must be a string starting with `org_` */
16
- entry_org_id?: string | null;
17
15
  job_title?: string | null;
18
16
  location?: Chrt.LocationFeature | null;
19
17
  name: string;
20
18
  notes?: string | null;
19
+ off_chrt_org_data_id?: string | null;
20
+ /** Must be a string starting with `org_` */
21
+ org_id?: string | null;
21
22
  phone_number?: string | null;
22
23
  schema_version: number;
23
24
  }
@@ -6,7 +6,7 @@ import * as Chrt from "../../../../../../index.js";
6
6
  * @example
7
7
  * {}
8
8
  */
9
- export interface DirectoryEntryClientUpdate1 {
9
+ export interface ContactClientUpdate1 {
10
10
  email_address?: string | null;
11
11
  email_address__set_to_None?: boolean;
12
12
  job_title?: string | null;
@@ -6,23 +6,26 @@ import * as Chrt from "../../../../../../index.js";
6
6
  * @example
7
7
  * {
8
8
  * search: "search",
9
- * filter_entry_org_id: "filter_entry_org_id",
10
- * filter_entry_off_chrt_org_data_id: "filter_entry_off_chrt_org_data_id",
9
+ * filter_org_id: "filter_org_id",
10
+ * filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
11
+ * filter_account_id: "filter_account_id",
11
12
  * sort_by: "name",
12
13
  * sort_order: "asc",
13
14
  * page: 1,
14
15
  * page_size: 1
15
16
  * }
16
17
  */
17
- export interface DirectoryEntriesListV1Request {
18
+ export interface ContactsListV1Request {
18
19
  /** Full-text search query */
19
20
  search?: string | null;
20
21
  /** Filter by associated on-CHRT organization */
21
- filter_entry_org_id?: string | null;
22
+ filter_org_id?: string | null;
22
23
  /** Filter by associated off-CHRT organization data */
23
- filter_entry_off_chrt_org_data_id?: string | null;
24
+ filter_off_chrt_org_data_id?: string | null;
25
+ /** Filter by associated account */
26
+ filter_account_id?: string | null;
24
27
  /** Field to sort by */
25
- sort_by?: Chrt.DirectoryEntrySortByEnum | null;
28
+ sort_by?: Chrt.ContactSortByEnum | null;
26
29
  /** Sort order */
27
30
  sort_order?: Chrt.SortOrderEnum | null;
28
31
  page?: number | null;
@@ -0,0 +1,3 @@
1
+ export { type ContactClientCreate1 } from "./ContactClientCreate1.js";
2
+ export { type ContactsListV1Request } from "./ContactsListV1Request.js";
3
+ export { type ContactClientUpdate1 } from "./ContactClientUpdate1.js";
@@ -1,14 +1,14 @@
1
1
  export * as connections from "./connections/index.js";
2
2
  export * from "./connections/types/index.js";
3
+ export * as accounts from "./accounts/index.js";
3
4
  export * as complianceDocuments from "./complianceDocuments/index.js";
4
- export * as directoryEntries from "./directoryEntries/index.js";
5
+ export * as contacts from "./contacts/index.js";
5
6
  export * as offChrtOrgData from "./offChrtOrgData/index.js";
6
- export * as offChrtVendor from "./offChrtVendor/index.js";
7
7
  export * as privateData from "./privateData/index.js";
8
8
  export * as publicData from "./publicData/index.js";
9
+ export * from "./accounts/client/requests/index.js";
9
10
  export * from "./complianceDocuments/client/requests/index.js";
10
11
  export * from "./connections/client/requests/index.js";
11
- export * from "./directoryEntries/client/requests/index.js";
12
+ export * from "./contacts/client/requests/index.js";
12
13
  export * from "./offChrtOrgData/client/requests/index.js";
13
- export * from "./offChrtVendor/client/requests/index.js";
14
14
  export * from "./publicData/client/requests/index.js";
@@ -36,18 +36,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.publicData = exports.privateData = exports.offChrtVendor = exports.offChrtOrgData = exports.directoryEntries = exports.complianceDocuments = exports.connections = void 0;
39
+ exports.publicData = exports.privateData = exports.offChrtOrgData = exports.contacts = exports.complianceDocuments = exports.accounts = exports.connections = void 0;
40
40
  exports.connections = __importStar(require("./connections/index.js"));
41
41
  __exportStar(require("./connections/types/index.js"), exports);
42
+ exports.accounts = __importStar(require("./accounts/index.js"));
42
43
  exports.complianceDocuments = __importStar(require("./complianceDocuments/index.js"));
43
- exports.directoryEntries = __importStar(require("./directoryEntries/index.js"));
44
+ exports.contacts = __importStar(require("./contacts/index.js"));
44
45
  exports.offChrtOrgData = __importStar(require("./offChrtOrgData/index.js"));
45
- exports.offChrtVendor = __importStar(require("./offChrtVendor/index.js"));
46
46
  exports.privateData = __importStar(require("./privateData/index.js"));
47
47
  exports.publicData = __importStar(require("./publicData/index.js"));
48
+ __exportStar(require("./accounts/client/requests/index.js"), exports);
48
49
  __exportStar(require("./complianceDocuments/client/requests/index.js"), exports);
49
50
  __exportStar(require("./connections/client/requests/index.js"), exports);
50
- __exportStar(require("./directoryEntries/client/requests/index.js"), exports);
51
+ __exportStar(require("./contacts/client/requests/index.js"), exports);
51
52
  __exportStar(require("./offChrtOrgData/client/requests/index.js"), exports);
52
- __exportStar(require("./offChrtVendor/client/requests/index.js"), exports);
53
53
  __exportStar(require("./publicData/client/requests/index.js"), exports);
@@ -31,7 +31,7 @@ export declare class OffChrtOrgData {
31
31
  protected readonly _options: OffChrtOrgData.Options;
32
32
  constructor(_options?: OffChrtOrgData.Options);
33
33
  /**
34
- * Atomically creates owner-scoped off-CHRT organization data and its shipper-coordinator or coordinator-executor connection. | authz: allowed_org_types=[provider] | (CreateOffChrtOrgReq) -> (CreateOffChrtOrgRes)
34
+ * Creates owner-scoped off-CHRT organization data and, for shippers or providers, its required connection. | authz: allowed_org_types=[provider] | (CreateOffChrtOrgReq) -> (CreateOffChrtOrgRes)
35
35
  *
36
36
  * @param {Chrt.orgs.CreateOffChrtOrgReq} request
37
37
  * @param {OffChrtOrgData.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class OffChrtOrgData {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Atomically creates owner-scoped off-CHRT organization data and its shipper-coordinator or coordinator-executor connection. | authz: allowed_org_types=[provider] | (CreateOffChrtOrgReq) -> (CreateOffChrtOrgRes)
59
+ * Creates owner-scoped off-CHRT organization data and, for shippers or providers, its required connection. | authz: allowed_org_types=[provider] | (CreateOffChrtOrgReq) -> (CreateOffChrtOrgRes)
60
60
  *
61
61
  * @param {Chrt.orgs.CreateOffChrtOrgReq} request
62
62
  * @param {OffChrtOrgData.RequestOptions} requestOptions - Request-specific configuration.
@@ -80,7 +80,7 @@ export declare class OrderTemplates {
80
80
  * filter_department_id: "filter_department_id",
81
81
  * filter_coordinator_label: "filter_coordinator_label",
82
82
  * filter_driver_id: "filter_driver_id",
83
- * filter_directory_entry_id: "filter_directory_entry_id",
83
+ * filter_contact_id: "filter_contact_id",
84
84
  * filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
85
85
  * filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
86
86
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -197,7 +197,7 @@ class OrderTemplates {
197
197
  * filter_department_id: "filter_department_id",
198
198
  * filter_coordinator_label: "filter_coordinator_label",
199
199
  * filter_driver_id: "filter_driver_id",
200
- * filter_directory_entry_id: "filter_directory_entry_id",
200
+ * filter_contact_id: "filter_contact_id",
201
201
  * filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
202
202
  * filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
203
203
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -214,7 +214,7 @@ class OrderTemplates {
214
214
  __listV1() {
215
215
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
216
216
  var _a, _b, _c, _d, _e, _f, _g;
217
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_off_chrt_reference_id_str: filterOffChrtReferenceIdStr, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_department_id: filterDepartmentId, filter_coordinator_label: filterCoordinatorLabel, filter_driver_id: filterDriverId, filter_directory_entry_id: filterDirectoryEntryId, filter_task_lists_to_apply_at_order_creation_task_list_id: filterTaskListsToApplyAtOrderCreationTaskListId, filter_task_lists_to_apply_at_order_staging_task_list_id: filterTaskListsToApplyAtOrderStagingTaskListId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
217
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_off_chrt_reference_id_str: filterOffChrtReferenceIdStr, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_department_id: filterDepartmentId, filter_coordinator_label: filterCoordinatorLabel, filter_driver_id: filterDriverId, filter_contact_id: filterContactId, filter_task_lists_to_apply_at_order_creation_task_list_id: filterTaskListsToApplyAtOrderCreationTaskListId, filter_task_lists_to_apply_at_order_staging_task_list_id: filterTaskListsToApplyAtOrderStagingTaskListId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
218
218
  const _queryParams = {};
219
219
  if (sortBy !== undefined) {
220
220
  _queryParams["sort_by"] = sortBy;
@@ -258,8 +258,8 @@ class OrderTemplates {
258
258
  if (filterDriverId !== undefined) {
259
259
  _queryParams["filter_driver_id"] = filterDriverId;
260
260
  }
261
- if (filterDirectoryEntryId !== undefined) {
262
- _queryParams["filter_directory_entry_id"] = filterDirectoryEntryId;
261
+ if (filterContactId !== undefined) {
262
+ _queryParams["filter_contact_id"] = filterContactId;
263
263
  }
264
264
  if (filterTaskListsToApplyAtOrderCreationTaskListId !== undefined) {
265
265
  _queryParams["filter_task_lists_to_apply_at_order_creation_task_list_id"] =
@@ -10,12 +10,13 @@ import * as Chrt from "../../../../../../index.js";
10
10
  * }
11
11
  */
12
12
  export interface OrderTemplateClientCreate1 {
13
+ contact_ids?: string[];
13
14
  coordinator_label?: string | null;
14
15
  /** Must be a string starting with `org_` */
15
16
  coordinator_org_id?: string | null;
17
+ coordinator_shipper_account_ids?: string[];
16
18
  department_id?: string | null;
17
19
  description?: string | null;
18
- directory_entry_ids?: string[];
19
20
  driver_ids?: string[];
20
21
  executor_org_ids?: string[];
21
22
  name: string;
@@ -7,16 +7,17 @@ import * as Chrt from "../../../../../../index.js";
7
7
  * {}
8
8
  */
9
9
  export interface OrderTemplateClientUpdate1 {
10
+ contact_ids?: string[];
10
11
  coordinator_label?: string | null;
11
12
  coordinator_label__set_to_None?: boolean;
12
13
  /** Must be a string starting with `org_` */
13
14
  coordinator_org_id?: string | null;
14
15
  coordinator_org_id__set_to_None?: boolean;
16
+ coordinator_shipper_account_ids?: string[];
15
17
  department_id?: string | null;
16
18
  department_id__set_to_None?: boolean;
17
19
  description?: string | null;
18
20
  description__set_to_None?: boolean;
19
- directory_entry_ids?: string[];
20
21
  driver_ids?: string[];
21
22
  executor_org_ids?: string[];
22
23
  name?: string | null;
@@ -19,7 +19,7 @@ import * as Chrt from "../../../../../../index.js";
19
19
  * filter_department_id: "filter_department_id",
20
20
  * filter_coordinator_label: "filter_coordinator_label",
21
21
  * filter_driver_id: "filter_driver_id",
22
- * filter_directory_entry_id: "filter_directory_entry_id",
22
+ * filter_contact_id: "filter_contact_id",
23
23
  * filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
24
24
  * filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
25
25
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -57,8 +57,8 @@ export interface OrderTemplatesListV1Request {
57
57
  filter_coordinator_label?: string | null;
58
58
  /** Filter by driver ID included in the template. */
59
59
  filter_driver_id?: string | null;
60
- /** Filter by directory entry ID included in the template. */
61
- filter_directory_entry_id?: string | null;
60
+ /** Filter by contact ID included in the template. */
61
+ filter_contact_id?: string | null;
62
62
  /** Filter by task list ID included in order-creation applications. */
63
63
  filter_task_lists_to_apply_at_order_creation_task_list_id?: string | null;
64
64
  /** Filter by task list ID included in staging applications. */