@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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.ts +0 -1
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.ts +0 -1
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +2 -2
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +25 -9
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +80 -12
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.d.ts +14 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.d.ts → OperationsTasksSetDeadlineTimestampsReq1.d.ts} +4 -4
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/orgs/client/Client.js +14 -14
- package/dist/cjs/api/resources/orgs/resources/accounts/client/Client.d.ts +97 -0
- package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → accounts}/client/Client.js +57 -100
- 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
- package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.ts → accounts/client/requests/AccountClientUpdate1.d.ts} +1 -3
- package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.ts +27 -0
- package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +112 -0
- package/dist/cjs/api/resources/orgs/resources/{directoryEntries → contacts}/client/Client.js +55 -51
- package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.d.ts → contacts/client/requests/ContactClientCreate1.d.ts} +5 -4
- package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.ts → contacts/client/requests/ContactClientUpdate1.d.ts} +1 -1
- package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntriesListV1Request.d.ts → contacts/client/requests/ContactsListV1Request.d.ts} +9 -6
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/index.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/index.js +5 -5
- package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +4 -4
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +2 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +2 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +28 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +120 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +20 -4
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +1 -1
- package/dist/{esm/api/types/OffChrtVendor1.d.mts → cjs/api/types/Account1.d.ts} +4 -2
- package/dist/cjs/api/types/{OffChrtVendorListRes.d.ts → AccountListRes.d.ts} +2 -2
- package/dist/cjs/api/types/AccountSortByEnum.d.ts +4 -0
- package/dist/cjs/api/types/{DirectoryEntry1.d.ts → Contact1.d.ts} +6 -7
- package/dist/cjs/api/types/{DirectoryEntryListRes.d.ts → ContactListRes.d.ts} +2 -2
- package/dist/cjs/api/types/ContactSortByEnum.d.ts +4 -0
- package/dist/cjs/api/types/CreateOffChrtOrgRes.d.ts +1 -1
- package/dist/cjs/api/types/LineItemGroup1.d.ts +0 -1
- package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +1 -1
- package/dist/cjs/api/types/NotificationIntentAdHocClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/{OperationsTaskDeadlineUpdate1.d.ts → OperationsTaskDeadlineTimestampUpdate1.d.ts} +2 -2
- package/dist/cjs/api/types/OperationsTaskDeadlineTimestampUpdate1.js +5 -0
- package/dist/cjs/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.d.ts +7 -0
- package/dist/cjs/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.js +5 -0
- package/dist/cjs/api/types/Order1.d.ts +1 -0
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -1
- package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
- package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +1 -0
- package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplate1.d.ts +2 -1
- package/dist/cjs/api/types/OrderTemplateCore1.d.ts +2 -1
- package/dist/cjs/api/types/OrderTemplateExpanded1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +3 -2
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +2 -1
- package/dist/cjs/api/types/OrderTemplateReferencesExpanded1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateResolvabilityRes.d.ts +2 -1
- package/dist/cjs/api/types/OrgTypeEnum.d.ts +2 -1
- package/dist/cjs/api/types/OrgTypeEnum.js +1 -0
- package/dist/cjs/api/types/Statement1.d.ts +0 -1
- package/dist/cjs/api/types/Task1.d.ts +1 -1
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/types/TaskExpanded.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +8 -7
- package/dist/cjs/api/types/index.js +8 -7
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.mts +0 -1
- package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.mts +0 -1
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +2 -2
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +25 -9
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +80 -12
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.d.mts +14 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.d.mts → OperationsTasksSetDeadlineTimestampsReq1.d.mts} +4 -4
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/orgs/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/orgs/client/Client.mjs +8 -8
- package/dist/esm/api/resources/orgs/resources/accounts/client/Client.d.mts +97 -0
- package/dist/esm/api/resources/orgs/resources/{offChrtVendor → accounts}/client/Client.mjs +55 -98
- 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
- package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.mts → accounts/client/requests/AccountClientUpdate1.d.mts} +1 -3
- package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.mts +27 -0
- package/dist/esm/api/resources/orgs/resources/accounts/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +112 -0
- package/dist/esm/api/resources/orgs/resources/{directoryEntries → contacts}/client/Client.mjs +53 -49
- package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.d.mts → contacts/client/requests/ContactClientCreate1.d.mts} +5 -4
- package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.mts → contacts/client/requests/ContactClientUpdate1.d.mts} +1 -1
- package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntriesListV1Request.d.mts → contacts/client/requests/ContactsListV1Request.d.mts} +9 -6
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/index.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/index.mjs +4 -4
- package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +4 -4
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +2 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +2 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +28 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +120 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +20 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +1 -1
- package/dist/{cjs/api/types/OffChrtVendor1.d.ts → esm/api/types/Account1.d.mts} +4 -2
- package/dist/esm/api/types/{OffChrtVendorListRes.d.mts → AccountListRes.d.mts} +2 -2
- package/dist/esm/api/types/AccountSortByEnum.d.mts +4 -0
- package/dist/esm/api/types/{DirectoryEntry1.d.mts → Contact1.d.mts} +6 -7
- package/dist/esm/api/types/{DirectoryEntryListRes.d.mts → ContactListRes.d.mts} +2 -2
- package/dist/esm/api/types/ContactSortByEnum.d.mts +4 -0
- package/dist/esm/api/types/CreateOffChrtOrgRes.d.mts +1 -1
- package/dist/esm/api/types/LineItemGroup1.d.mts +0 -1
- package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +1 -1
- package/dist/esm/api/types/NotificationIntentAdHocClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/{OperationsTaskDeadlineUpdate1.d.mts → OperationsTaskDeadlineTimestampUpdate1.d.mts} +2 -2
- package/dist/esm/api/types/OperationsTaskDeadlineTimestampUpdate1.mjs +4 -0
- package/dist/esm/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.d.mts +7 -0
- package/dist/esm/api/types/OperationsTasksDeadlineTimestampsUpdateRes1.mjs +4 -0
- package/dist/esm/api/types/Order1.d.mts +1 -0
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -1
- package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
- package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +1 -0
- package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplate1.d.mts +2 -1
- package/dist/esm/api/types/OrderTemplateCore1.d.mts +2 -1
- package/dist/esm/api/types/OrderTemplateExpanded1.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +3 -2
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +2 -1
- package/dist/esm/api/types/OrderTemplateReferencesExpanded1.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateResolvabilityRes.d.mts +2 -1
- package/dist/esm/api/types/OrgTypeEnum.d.mts +2 -1
- package/dist/esm/api/types/OrgTypeEnum.mjs +1 -0
- package/dist/esm/api/types/Statement1.d.mts +0 -1
- package/dist/esm/api/types/Task1.d.mts +1 -1
- package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -1
- package/dist/esm/api/types/TaskExpanded.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +8 -7
- package/dist/esm/api/types/index.mjs +8 -7
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +441 -287
- package/dist/cjs/api/resources/orgs/resources/directoryEntries/client/Client.d.ts +0 -111
- package/dist/cjs/api/resources/orgs/resources/directoryEntries/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/Client.d.ts +0 -106
- package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.ts +0 -14
- package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/types/DirectoryEntrySortByEnum.d.ts +0 -4
- package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.ts +0 -7
- package/dist/esm/api/resources/orgs/resources/directoryEntries/client/Client.d.mts +0 -111
- package/dist/esm/api/resources/orgs/resources/directoryEntries/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/Client.d.mts +0 -106
- package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.mts +0 -14
- package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.mts +0 -3
- package/dist/esm/api/types/DirectoryEntrySortByEnum.d.mts +0 -4
- package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.mts +0 -7
- /package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.js → OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.js} +0 -0
- /package/dist/cjs/api/resources/{orgs/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.js → operations/resources/operationsTasks/client/requests/OperationsTasksSetDeadlineTimestampsReq1.js} +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.js +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.js → accounts/client/requests/AccountClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.js → accounts/client/requests/AccountClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientCreate1.js → accounts/client/requests/AccountsListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{directoryEntries → accounts}/index.js +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.js +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.js → contacts/client/requests/ContactClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorListV1Request.js → contacts/client/requests/ContactClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/DirectoryEntry1.js → resources/orgs/resources/contacts/client/requests/ContactsListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/orgs/resources/{offChrtVendor → contacts}/index.js +0 -0
- /package/dist/cjs/api/types/{DirectoryEntryListRes.js → Account1.js} +0 -0
- /package/dist/cjs/api/types/{DirectoryEntrySortByEnum.js → AccountListRes.js} +0 -0
- /package/dist/cjs/api/types/{OffChrtVendor1.js → AccountSortByEnum.js} +0 -0
- /package/dist/cjs/api/types/{OffChrtVendorListRes.js → Contact1.js} +0 -0
- /package/dist/cjs/api/types/{OperationsTaskDeadlineUpdate1.js → ContactListRes.js} +0 -0
- /package/dist/cjs/api/types/{OperationsTasksBulkUpdateDeadlinesRes1.js → ContactSortByEnum.js} +0 -0
- /package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTasksBulkUpdateDeadlinesReq1.mjs → OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.mjs} +0 -0
- /package/dist/esm/api/resources/{orgs/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksSetDeadlineTimestampsReq1.mjs} +0 -0
- /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientCreate1.mjs → accounts/client/requests/AccountClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/orgs/resources/{directoryEntries/client/requests/DirectoryEntryClientUpdate1.mjs → accounts/client/requests/AccountClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientCreate1.mjs → accounts/client/requests/AccountsListV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/index.d.mts +0 -0
- /package/dist/esm/api/resources/orgs/resources/{directoryEntries → accounts}/index.mjs +0 -0
- /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorClientUpdate1.mjs → contacts/client/requests/ContactClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/orgs/resources/{offChrtVendor/client/requests/OffChrtVendorListV1Request.mjs → contacts/client/requests/ContactClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/DirectoryEntry1.mjs → resources/orgs/resources/contacts/client/requests/ContactsListV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/index.d.mts +0 -0
- /package/dist/esm/api/resources/orgs/resources/{offChrtVendor → contacts}/index.mjs +0 -0
- /package/dist/esm/api/types/{DirectoryEntryListRes.mjs → Account1.mjs} +0 -0
- /package/dist/esm/api/types/{DirectoryEntrySortByEnum.mjs → AccountListRes.mjs} +0 -0
- /package/dist/esm/api/types/{OffChrtVendor1.mjs → AccountSortByEnum.mjs} +0 -0
- /package/dist/esm/api/types/{OffChrtVendorListRes.mjs → Contact1.mjs} +0 -0
- /package/dist/esm/api/types/{OperationsTaskDeadlineUpdate1.mjs → ContactListRes.mjs} +0 -0
- /package/dist/esm/api/types/{OperationsTasksBulkUpdateDeadlinesRes1.mjs → ContactSortByEnum.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -57,8 +57,8 @@ class ChrtClient {
|
|
|
57
57
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
58
58
|
"X-Fern-Language": "JavaScript",
|
|
59
59
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
60
|
-
"X-Fern-SDK-Version": "1.
|
|
61
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
60
|
+
"X-Fern-SDK-Version": "1.885.0",
|
|
61
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.885.0",
|
|
62
62
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
63
63
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
64
64
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -15,7 +15,6 @@ export interface LineItemGroupAdHocCreateClientReq {
|
|
|
15
15
|
owned_by_org_id: string;
|
|
16
16
|
payment_destination_driver_id?: string | null;
|
|
17
17
|
payment_destination_off_chrt_provider_org_data_id?: string | null;
|
|
18
|
-
payment_destination_off_chrt_vendor_id?: string | null;
|
|
19
18
|
/** Must be a string starting with `org_` */
|
|
20
19
|
payment_destination_org_id?: string | null;
|
|
21
20
|
payment_origin_off_chrt_shipper_org_data_id?: string | null;
|
|
@@ -12,7 +12,6 @@ export interface StatementCreateClientReq {
|
|
|
12
12
|
order_group_id?: string | null;
|
|
13
13
|
payment_destination_driver_id?: string | null;
|
|
14
14
|
payment_destination_off_chrt_provider_org_data_id?: string | null;
|
|
15
|
-
payment_destination_off_chrt_vendor_id?: string | null;
|
|
16
15
|
/** Must be a string starting with `org_` */
|
|
17
16
|
payment_destination_org_id?: string | null;
|
|
18
17
|
payment_origin_off_chrt_shipper_org_data_id?: string | null;
|
|
@@ -41,7 +41,7 @@ export declare class AdHoc {
|
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* await client.notifications.adHoc.createV1("order_id", {
|
|
44
|
-
*
|
|
44
|
+
* contact_id: "contact_id",
|
|
45
45
|
* schema_version: 1
|
|
46
46
|
* })
|
|
47
47
|
*/
|
|
@@ -58,7 +58,7 @@ export declare class AdHoc {
|
|
|
58
58
|
*
|
|
59
59
|
* @example
|
|
60
60
|
* await client.notifications.adHoc.createForSessionV1("session_id", {
|
|
61
|
-
*
|
|
61
|
+
* contact_id: "contact_id",
|
|
62
62
|
* schema_version: 1
|
|
63
63
|
* })
|
|
64
64
|
*/
|
|
@@ -66,7 +66,7 @@ class AdHoc {
|
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* await client.notifications.adHoc.createV1("order_id", {
|
|
69
|
-
*
|
|
69
|
+
* contact_id: "contact_id",
|
|
70
70
|
* schema_version: 1
|
|
71
71
|
* })
|
|
72
72
|
*/
|
|
@@ -132,7 +132,7 @@ class AdHoc {
|
|
|
132
132
|
*
|
|
133
133
|
* @example
|
|
134
134
|
* await client.notifications.adHoc.createForSessionV1("session_id", {
|
|
135
|
-
*
|
|
135
|
+
* contact_id: "contact_id",
|
|
136
136
|
* schema_version: 1
|
|
137
137
|
* })
|
|
138
138
|
*/
|
|
@@ -47,23 +47,21 @@ export declare class OperationsTasks {
|
|
|
47
47
|
addCommentV1(taskId: string, request: Chrt.operations.OperationsTaskAddCommentReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
48
|
private __addCommentV1;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Adds the same ISO 8601 duration to every selected OperationsTask's deadline_timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
51
51
|
*
|
|
52
|
-
* @param {Chrt.operations.
|
|
52
|
+
* @param {Chrt.operations.OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1} request
|
|
53
53
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.operations.operationsTasks.
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* task_id: "task_id"
|
|
62
|
-
* }]
|
|
58
|
+
* await client.operations.operationsTasks.applyTimeDeltaToDeadlineTimestampsV1({
|
|
59
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
60
|
+
* time_delta: "time_delta"
|
|
63
61
|
* })
|
|
64
62
|
*/
|
|
65
|
-
|
|
66
|
-
private
|
|
63
|
+
applyTimeDeltaToDeadlineTimestampsV1(request: Chrt.operations.OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksDeadlineTimestampsUpdateRes1>;
|
|
64
|
+
private __applyTimeDeltaToDeadlineTimestampsV1;
|
|
67
65
|
/**
|
|
68
66
|
* Deletes a comment from an OperationsTask's comment thread. 404 if the comment isn't found. | authz: min_org_role=operator | () -> (bool)
|
|
69
67
|
*
|
|
@@ -128,6 +126,24 @@ export declare class OperationsTasks {
|
|
|
128
126
|
*/
|
|
129
127
|
listV1(request?: Chrt.operations.OperationsTasksListV1Request, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskListRes>;
|
|
130
128
|
private __listV1;
|
|
129
|
+
/**
|
|
130
|
+
* Sets each selected OperationsTask's deadline_timestamp to its requested timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksSetDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
131
|
+
*
|
|
132
|
+
* @param {Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1} request
|
|
133
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* await client.operations.operationsTasks.setDeadlineTimestampsV1({
|
|
139
|
+
* updates: [{
|
|
140
|
+
* deadline_timestamp: "2024-01-15T09:30:00Z",
|
|
141
|
+
* operations_task_id: "operations_task_id"
|
|
142
|
+
* }]
|
|
143
|
+
* })
|
|
144
|
+
*/
|
|
145
|
+
setDeadlineTimestampsV1(request: Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksDeadlineTimestampsUpdateRes1>;
|
|
146
|
+
private __setDeadlineTimestampsV1;
|
|
131
147
|
/**
|
|
132
148
|
* Sets an OperationsTask's status (not_started / in_progress / completed / skipped / cancelled). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
|
|
133
149
|
*
|
|
@@ -121,30 +121,28 @@ class OperationsTasks {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Adds the same ISO 8601 duration to every selected OperationsTask's deadline_timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
125
125
|
*
|
|
126
|
-
* @param {Chrt.operations.
|
|
126
|
+
* @param {Chrt.operations.OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1} request
|
|
127
127
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
128
|
*
|
|
129
129
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
|
-
* await client.operations.operationsTasks.
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* task_id: "task_id"
|
|
136
|
-
* }]
|
|
132
|
+
* await client.operations.operationsTasks.applyTimeDeltaToDeadlineTimestampsV1({
|
|
133
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
134
|
+
* time_delta: "time_delta"
|
|
137
135
|
* })
|
|
138
136
|
*/
|
|
139
|
-
|
|
140
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
137
|
+
applyTimeDeltaToDeadlineTimestampsV1(request, requestOptions) {
|
|
138
|
+
return core.HttpResponsePromise.fromPromise(this.__applyTimeDeltaToDeadlineTimestampsV1(request, requestOptions));
|
|
141
139
|
}
|
|
142
|
-
|
|
140
|
+
__applyTimeDeltaToDeadlineTimestampsV1(request, requestOptions) {
|
|
143
141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
144
142
|
var _a, _b, _c, _d;
|
|
145
143
|
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);
|
|
146
144
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
147
|
-
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, "operations/operations_tasks/
|
|
145
|
+
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, "operations/operations_tasks/apply_time_delta_to_deadline_timestamps/v1"),
|
|
148
146
|
method: "PATCH",
|
|
149
147
|
headers: _headers,
|
|
150
148
|
contentType: "application/json",
|
|
@@ -181,7 +179,7 @@ class OperationsTasks {
|
|
|
181
179
|
rawResponse: _response.rawResponse,
|
|
182
180
|
});
|
|
183
181
|
case "timeout":
|
|
184
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/
|
|
182
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/apply_time_delta_to_deadline_timestamps/v1.");
|
|
185
183
|
case "unknown":
|
|
186
184
|
throw new errors.ChrtError({
|
|
187
185
|
message: _response.error.errorMessage,
|
|
@@ -510,6 +508,76 @@ class OperationsTasks {
|
|
|
510
508
|
}
|
|
511
509
|
});
|
|
512
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
* Sets each selected OperationsTask's deadline_timestamp to its requested timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksSetDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)
|
|
513
|
+
*
|
|
514
|
+
* @param {Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1} request
|
|
515
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
516
|
+
*
|
|
517
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
518
|
+
*
|
|
519
|
+
* @example
|
|
520
|
+
* await client.operations.operationsTasks.setDeadlineTimestampsV1({
|
|
521
|
+
* updates: [{
|
|
522
|
+
* deadline_timestamp: "2024-01-15T09:30:00Z",
|
|
523
|
+
* operations_task_id: "operations_task_id"
|
|
524
|
+
* }]
|
|
525
|
+
* })
|
|
526
|
+
*/
|
|
527
|
+
setDeadlineTimestampsV1(request, requestOptions) {
|
|
528
|
+
return core.HttpResponsePromise.fromPromise(this.__setDeadlineTimestampsV1(request, requestOptions));
|
|
529
|
+
}
|
|
530
|
+
__setDeadlineTimestampsV1(request, requestOptions) {
|
|
531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
532
|
+
var _a, _b, _c, _d;
|
|
533
|
+
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);
|
|
534
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
535
|
+
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, "operations/operations_tasks/set_deadline_timestamps/v1"),
|
|
536
|
+
method: "PATCH",
|
|
537
|
+
headers: _headers,
|
|
538
|
+
contentType: "application/json",
|
|
539
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
540
|
+
requestType: "json",
|
|
541
|
+
body: request,
|
|
542
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
543
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
544
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
545
|
+
});
|
|
546
|
+
if (_response.ok) {
|
|
547
|
+
return {
|
|
548
|
+
data: _response.body,
|
|
549
|
+
rawResponse: _response.rawResponse,
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
if (_response.error.reason === "status-code") {
|
|
553
|
+
switch (_response.error.statusCode) {
|
|
554
|
+
case 422:
|
|
555
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
556
|
+
default:
|
|
557
|
+
throw new errors.ChrtError({
|
|
558
|
+
statusCode: _response.error.statusCode,
|
|
559
|
+
body: _response.error.body,
|
|
560
|
+
rawResponse: _response.rawResponse,
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
switch (_response.error.reason) {
|
|
565
|
+
case "non-json":
|
|
566
|
+
throw new errors.ChrtError({
|
|
567
|
+
statusCode: _response.error.statusCode,
|
|
568
|
+
body: _response.error.rawBody,
|
|
569
|
+
rawResponse: _response.rawResponse,
|
|
570
|
+
});
|
|
571
|
+
case "timeout":
|
|
572
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/set_deadline_timestamps/v1.");
|
|
573
|
+
case "unknown":
|
|
574
|
+
throw new errors.ChrtError({
|
|
575
|
+
message: _response.error.errorMessage,
|
|
576
|
+
rawResponse: _response.rawResponse,
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
}
|
|
513
581
|
/**
|
|
514
582
|
* Sets an OperationsTask's status (not_started / in_progress / completed / skipped / cancelled). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
|
|
515
583
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
8
|
+
* time_delta: "time_delta"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1 {
|
|
12
|
+
operations_task_ids: string[];
|
|
13
|
+
time_delta: string;
|
|
14
|
+
}
|
|
@@ -5,12 +5,12 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
*
|
|
8
|
+
* updates: [{
|
|
9
9
|
* deadline_timestamp: "2024-01-15T09:30:00Z",
|
|
10
|
-
*
|
|
10
|
+
* operations_task_id: "operations_task_id"
|
|
11
11
|
* }]
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
15
|
-
|
|
14
|
+
export interface OperationsTasksSetDeadlineTimestampsReq1 {
|
|
15
|
+
updates: Chrt.OperationsTaskDeadlineTimestampUpdate1[];
|
|
16
16
|
}
|
package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { type OperationsTaskAddCommentReq1 } from "./OperationsTaskAddCommentReq1.js";
|
|
2
|
-
export { type
|
|
2
|
+
export { type OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1 } from "./OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1.js";
|
|
3
3
|
export { type OperationsTasksExpandedListV1Request } from "./OperationsTasksExpandedListV1Request.js";
|
|
4
4
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.js";
|
|
5
|
+
export { type OperationsTasksSetDeadlineTimestampsReq1 } from "./OperationsTasksSetDeadlineTimestampsReq1.js";
|
|
5
6
|
export { type OperationsTaskStatusReq } from "./OperationsTaskStatusReq.js";
|
|
6
7
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.js";
|
|
7
8
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.js";
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import * as environments from "../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
6
|
import * as Chrt from "../../../index.js";
|
|
7
|
+
import { Accounts } from "../resources/accounts/client/Client.js";
|
|
7
8
|
import { ComplianceDocuments } from "../resources/complianceDocuments/client/Client.js";
|
|
8
9
|
import { Connections } from "../resources/connections/client/Client.js";
|
|
9
|
-
import {
|
|
10
|
+
import { Contacts } from "../resources/contacts/client/Client.js";
|
|
10
11
|
import { OffChrtOrgData } from "../resources/offChrtOrgData/client/Client.js";
|
|
11
|
-
import { OffChrtVendor } from "../resources/offChrtVendor/client/Client.js";
|
|
12
12
|
import { PrivateData } from "../resources/privateData/client/Client.js";
|
|
13
13
|
import { PublicData } from "../resources/publicData/client/Client.js";
|
|
14
14
|
export declare namespace Orgs {
|
|
@@ -36,19 +36,19 @@ export declare namespace Orgs {
|
|
|
36
36
|
}
|
|
37
37
|
export declare class Orgs {
|
|
38
38
|
protected readonly _options: Orgs.Options;
|
|
39
|
+
protected _accounts: Accounts | undefined;
|
|
39
40
|
protected _complianceDocuments: ComplianceDocuments | undefined;
|
|
40
41
|
protected _connections: Connections | undefined;
|
|
41
|
-
protected
|
|
42
|
+
protected _contacts: Contacts | undefined;
|
|
42
43
|
protected _offChrtOrgData: OffChrtOrgData | undefined;
|
|
43
|
-
protected _offChrtVendor: OffChrtVendor | undefined;
|
|
44
44
|
protected _privateData: PrivateData | undefined;
|
|
45
45
|
protected _publicData: PublicData | undefined;
|
|
46
46
|
constructor(_options?: Orgs.Options);
|
|
47
|
+
get accounts(): Accounts;
|
|
47
48
|
get complianceDocuments(): ComplianceDocuments;
|
|
48
49
|
get connections(): Connections;
|
|
49
|
-
get
|
|
50
|
+
get contacts(): Contacts;
|
|
50
51
|
get offChrtOrgData(): OffChrtOrgData;
|
|
51
|
-
get offChrtVendor(): OffChrtVendor;
|
|
52
52
|
get privateData(): PrivateData;
|
|
53
53
|
get publicData(): PublicData;
|
|
54
54
|
/**
|
|
@@ -51,36 +51,36 @@ 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
|
-
const Client_js_1 = require("../resources/
|
|
55
|
-
const Client_js_2 = require("../resources/
|
|
56
|
-
const Client_js_3 = require("../resources/
|
|
57
|
-
const Client_js_4 = require("../resources/
|
|
58
|
-
const Client_js_5 = require("../resources/
|
|
54
|
+
const Client_js_1 = require("../resources/accounts/client/Client.js");
|
|
55
|
+
const Client_js_2 = require("../resources/complianceDocuments/client/Client.js");
|
|
56
|
+
const Client_js_3 = require("../resources/connections/client/Client.js");
|
|
57
|
+
const Client_js_4 = require("../resources/contacts/client/Client.js");
|
|
58
|
+
const Client_js_5 = require("../resources/offChrtOrgData/client/Client.js");
|
|
59
59
|
const Client_js_6 = require("../resources/privateData/client/Client.js");
|
|
60
60
|
const Client_js_7 = require("../resources/publicData/client/Client.js");
|
|
61
61
|
class Orgs {
|
|
62
62
|
constructor(_options = {}) {
|
|
63
63
|
this._options = _options;
|
|
64
64
|
}
|
|
65
|
+
get accounts() {
|
|
66
|
+
var _a;
|
|
67
|
+
return ((_a = this._accounts) !== null && _a !== void 0 ? _a : (this._accounts = new Client_js_1.Accounts(this._options)));
|
|
68
|
+
}
|
|
65
69
|
get complianceDocuments() {
|
|
66
70
|
var _a;
|
|
67
|
-
return ((_a = this._complianceDocuments) !== null && _a !== void 0 ? _a : (this._complianceDocuments = new
|
|
71
|
+
return ((_a = this._complianceDocuments) !== null && _a !== void 0 ? _a : (this._complianceDocuments = new Client_js_2.ComplianceDocuments(this._options)));
|
|
68
72
|
}
|
|
69
73
|
get connections() {
|
|
70
74
|
var _a;
|
|
71
|
-
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new
|
|
75
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_3.Connections(this._options)));
|
|
72
76
|
}
|
|
73
|
-
get
|
|
77
|
+
get contacts() {
|
|
74
78
|
var _a;
|
|
75
|
-
return ((_a = this.
|
|
79
|
+
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Client_js_4.Contacts(this._options)));
|
|
76
80
|
}
|
|
77
81
|
get offChrtOrgData() {
|
|
78
82
|
var _a;
|
|
79
|
-
return ((_a = this._offChrtOrgData) !== null && _a !== void 0 ? _a : (this._offChrtOrgData = new
|
|
80
|
-
}
|
|
81
|
-
get offChrtVendor() {
|
|
82
|
-
var _a;
|
|
83
|
-
return ((_a = this._offChrtVendor) !== null && _a !== void 0 ? _a : (this._offChrtVendor = new Client_js_5.OffChrtVendor(this._options)));
|
|
83
|
+
return ((_a = this._offChrtOrgData) !== null && _a !== void 0 ? _a : (this._offChrtOrgData = new Client_js_5.OffChrtOrgData(this._options)));
|
|
84
84
|
}
|
|
85
85
|
get privateData() {
|
|
86
86
|
var _a;
|
|
@@ -0,0 +1,97 @@
|
|
|
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 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
|
+
}
|