@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
|
@@ -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.
|
|
48
|
+
exports.Accounts = 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
|
|
54
|
+
class Accounts {
|
|
55
55
|
constructor(_options = {}) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Creates
|
|
59
|
+
* Creates a coordinator-private account for a connected on- or off-CHRT shipper. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientCreate1) -> (PydanticObjectId)
|
|
60
60
|
*
|
|
61
|
-
* @param {Chrt.orgs.
|
|
62
|
-
* @param {
|
|
61
|
+
* @param {Chrt.orgs.AccountClientCreate1} request
|
|
62
|
+
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
63
|
*
|
|
64
64
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await client.orgs.
|
|
67
|
+
* await client.orgs.accounts.createV1({
|
|
68
68
|
* name: "name",
|
|
69
69
|
* schema_version: 1
|
|
70
70
|
* })
|
|
@@ -77,7 +77,7 @@ class OffChrtVendor {
|
|
|
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/
|
|
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/accounts/create/v1"),
|
|
81
81
|
method: "POST",
|
|
82
82
|
headers: _headers,
|
|
83
83
|
contentType: "application/json",
|
|
@@ -111,7 +111,7 @@ class OffChrtVendor {
|
|
|
111
111
|
rawResponse: _response.rawResponse,
|
|
112
112
|
});
|
|
113
113
|
case "timeout":
|
|
114
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/
|
|
114
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/accounts/create/v1.");
|
|
115
115
|
case "unknown":
|
|
116
116
|
throw new errors.ChrtError({
|
|
117
117
|
message: _response.error.errorMessage,
|
|
@@ -121,15 +121,19 @@ class OffChrtVendor {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
|
-
* Lists
|
|
124
|
+
* Lists coordinator-created shipper accounts with association filters, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)
|
|
125
125
|
*
|
|
126
|
-
* @param {Chrt.orgs.
|
|
127
|
-
* @param {
|
|
126
|
+
* @param {Chrt.orgs.AccountsListV1Request} request
|
|
127
|
+
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
128
|
*
|
|
129
129
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
|
-
* await client.orgs.
|
|
132
|
+
* await client.orgs.accounts.listV1({
|
|
133
|
+
* filter_org_id: "filter_org_id",
|
|
134
|
+
* filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
135
|
+
* sort_by: "name",
|
|
136
|
+
* sort_order: "asc",
|
|
133
137
|
* page: 1,
|
|
134
138
|
* page_size: 1
|
|
135
139
|
* })
|
|
@@ -140,8 +144,20 @@ class OffChrtVendor {
|
|
|
140
144
|
__listV1() {
|
|
141
145
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
142
146
|
var _a, _b, _c, _d, _e, _f;
|
|
143
|
-
const { page, page_size: pageSize } = request;
|
|
147
|
+
const { filter_org_id: filterOrgId, filter_off_chrt_org_data_id: filterOffChrtOrgDataId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
144
148
|
const _queryParams = {};
|
|
149
|
+
if (filterOrgId !== undefined) {
|
|
150
|
+
_queryParams["filter_org_id"] = filterOrgId;
|
|
151
|
+
}
|
|
152
|
+
if (filterOffChrtOrgDataId !== undefined) {
|
|
153
|
+
_queryParams["filter_off_chrt_org_data_id"] = filterOffChrtOrgDataId;
|
|
154
|
+
}
|
|
155
|
+
if (sortBy !== undefined) {
|
|
156
|
+
_queryParams["sort_by"] = sortBy;
|
|
157
|
+
}
|
|
158
|
+
if (sortOrder !== undefined) {
|
|
159
|
+
_queryParams["sort_order"] = sortOrder;
|
|
160
|
+
}
|
|
145
161
|
if (page !== undefined) {
|
|
146
162
|
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
147
163
|
}
|
|
@@ -150,7 +166,7 @@ class OffChrtVendor {
|
|
|
150
166
|
}
|
|
151
167
|
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);
|
|
152
168
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
153
|
-
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/
|
|
169
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "orgs/accounts/list/v1"),
|
|
154
170
|
method: "GET",
|
|
155
171
|
headers: _headers,
|
|
156
172
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -181,7 +197,7 @@ class OffChrtVendor {
|
|
|
181
197
|
rawResponse: _response.rawResponse,
|
|
182
198
|
});
|
|
183
199
|
case "timeout":
|
|
184
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/
|
|
200
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/accounts/list/v1.");
|
|
185
201
|
case "unknown":
|
|
186
202
|
throw new errors.ChrtError({
|
|
187
203
|
message: _response.error.errorMessage,
|
|
@@ -191,28 +207,32 @@ class OffChrtVendor {
|
|
|
191
207
|
});
|
|
192
208
|
}
|
|
193
209
|
/**
|
|
194
|
-
*
|
|
210
|
+
* Updates the name of a coordinator-created shipper account. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientUpdate1) -> (bool)
|
|
195
211
|
*
|
|
196
|
-
* @param {string}
|
|
197
|
-
* @param {
|
|
212
|
+
* @param {string} accountId
|
|
213
|
+
* @param {Chrt.orgs.AccountClientUpdate1} request
|
|
214
|
+
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
198
215
|
*
|
|
199
216
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
200
217
|
*
|
|
201
218
|
* @example
|
|
202
|
-
* await client.orgs.
|
|
219
|
+
* await client.orgs.accounts.updateV1("account_id")
|
|
203
220
|
*/
|
|
204
|
-
|
|
205
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
221
|
+
updateV1(accountId, request = {}, requestOptions) {
|
|
222
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(accountId, request, requestOptions));
|
|
206
223
|
}
|
|
207
|
-
|
|
208
|
-
return __awaiter(this,
|
|
224
|
+
__updateV1(accountId_1) {
|
|
225
|
+
return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
|
|
209
226
|
var _a, _b, _c, _d;
|
|
210
227
|
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);
|
|
211
228
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
212
|
-
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/
|
|
213
|
-
method: "
|
|
229
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/accounts/update/v1/${encodeURIComponent(accountId)}`),
|
|
230
|
+
method: "PATCH",
|
|
214
231
|
headers: _headers,
|
|
232
|
+
contentType: "application/json",
|
|
215
233
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
234
|
+
requestType: "json",
|
|
235
|
+
body: request,
|
|
216
236
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
217
237
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
218
238
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -240,7 +260,7 @@ class OffChrtVendor {
|
|
|
240
260
|
rawResponse: _response.rawResponse,
|
|
241
261
|
});
|
|
242
262
|
case "timeout":
|
|
243
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
263
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/accounts/update/v1/{account_id}.");
|
|
244
264
|
case "unknown":
|
|
245
265
|
throw new errors.ChrtError({
|
|
246
266
|
message: _response.error.errorMessage,
|
|
@@ -250,91 +270,28 @@ class OffChrtVendor {
|
|
|
250
270
|
});
|
|
251
271
|
}
|
|
252
272
|
/**
|
|
253
|
-
*
|
|
273
|
+
* Retrieves a coordinator-created shipper account. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Account1)
|
|
254
274
|
*
|
|
255
|
-
* @param {string}
|
|
256
|
-
* @param {
|
|
275
|
+
* @param {string} accountId
|
|
276
|
+
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
257
277
|
*
|
|
258
278
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
259
279
|
*
|
|
260
280
|
* @example
|
|
261
|
-
* await client.orgs.
|
|
281
|
+
* await client.orgs.accounts.getV1("account_id")
|
|
262
282
|
*/
|
|
263
|
-
|
|
264
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
283
|
+
getV1(accountId, requestOptions) {
|
|
284
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(accountId, requestOptions));
|
|
265
285
|
}
|
|
266
|
-
|
|
286
|
+
__getV1(accountId, requestOptions) {
|
|
267
287
|
return __awaiter(this, void 0, void 0, function* () {
|
|
268
288
|
var _a, _b, _c, _d;
|
|
269
289
|
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);
|
|
270
290
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
271
|
-
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/
|
|
272
|
-
method: "
|
|
273
|
-
headers: _headers,
|
|
274
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
275
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
276
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
277
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
278
|
-
});
|
|
279
|
-
if (_response.ok) {
|
|
280
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
281
|
-
}
|
|
282
|
-
if (_response.error.reason === "status-code") {
|
|
283
|
-
switch (_response.error.statusCode) {
|
|
284
|
-
case 422:
|
|
285
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
286
|
-
default:
|
|
287
|
-
throw new errors.ChrtError({
|
|
288
|
-
statusCode: _response.error.statusCode,
|
|
289
|
-
body: _response.error.body,
|
|
290
|
-
rawResponse: _response.rawResponse,
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
switch (_response.error.reason) {
|
|
295
|
-
case "non-json":
|
|
296
|
-
throw new errors.ChrtError({
|
|
297
|
-
statusCode: _response.error.statusCode,
|
|
298
|
-
body: _response.error.rawBody,
|
|
299
|
-
rawResponse: _response.rawResponse,
|
|
300
|
-
});
|
|
301
|
-
case "timeout":
|
|
302
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /orgs/off_chrt_vendor/v1/{id}.");
|
|
303
|
-
case "unknown":
|
|
304
|
-
throw new errors.ChrtError({
|
|
305
|
-
message: _response.error.errorMessage,
|
|
306
|
-
rawResponse: _response.rawResponse,
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
/**
|
|
312
|
-
* Updates an existing off-chrt vendor owned by the caller's organization. | (OffChrtVendorClientUpdate1) -> (bool)
|
|
313
|
-
*
|
|
314
|
-
* @param {string} id
|
|
315
|
-
* @param {Chrt.orgs.OffChrtVendorClientUpdate1} request
|
|
316
|
-
* @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
|
|
317
|
-
*
|
|
318
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
319
|
-
*
|
|
320
|
-
* @example
|
|
321
|
-
* await client.orgs.offChrtVendor.updateByIdV1("id")
|
|
322
|
-
*/
|
|
323
|
-
updateByIdV1(id, request = {}, requestOptions) {
|
|
324
|
-
return core.HttpResponsePromise.fromPromise(this.__updateByIdV1(id, request, requestOptions));
|
|
325
|
-
}
|
|
326
|
-
__updateByIdV1(id_1) {
|
|
327
|
-
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
328
|
-
var _a, _b, _c, _d;
|
|
329
|
-
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);
|
|
330
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
331
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/off_chrt_vendor/v1/${encodeURIComponent(id)}`),
|
|
332
|
-
method: "PATCH",
|
|
291
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/accounts/v1/${encodeURIComponent(accountId)}`),
|
|
292
|
+
method: "GET",
|
|
333
293
|
headers: _headers,
|
|
334
|
-
contentType: "application/json",
|
|
335
294
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
336
|
-
requestType: "json",
|
|
337
|
-
body: request,
|
|
338
295
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
339
296
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
340
297
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -362,7 +319,7 @@ class OffChrtVendor {
|
|
|
362
319
|
rawResponse: _response.rawResponse,
|
|
363
320
|
});
|
|
364
321
|
case "timeout":
|
|
365
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
322
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/accounts/v1/{account_id}.");
|
|
366
323
|
case "unknown":
|
|
367
324
|
throw new errors.ChrtError({
|
|
368
325
|
message: _response.error.errorMessage,
|
|
@@ -381,4 +338,4 @@ class OffChrtVendor {
|
|
|
381
338
|
});
|
|
382
339
|
}
|
|
383
340
|
}
|
|
384
|
-
exports.
|
|
341
|
+
exports.Accounts = Accounts;
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
* schema_version: 1
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface AccountClientCreate1 {
|
|
12
12
|
name: string;
|
|
13
|
-
|
|
13
|
+
off_chrt_org_data_id?: string | null;
|
|
14
|
+
/** Must be a string starting with `org_` */
|
|
15
|
+
org_id?: string | null;
|
|
14
16
|
schema_version: number;
|
|
15
17
|
}
|
package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* filter_org_id: "filter_org_id",
|
|
9
|
+
* filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
10
|
+
* sort_by: "name",
|
|
11
|
+
* sort_order: "asc",
|
|
12
|
+
* page: 1,
|
|
13
|
+
* page_size: 1
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface AccountsListV1Request {
|
|
17
|
+
/** Filter by associated on-CHRT shipper organization */
|
|
18
|
+
filter_org_id?: string | null;
|
|
19
|
+
/** Filter by associated off-CHRT shipper organization data */
|
|
20
|
+
filter_off_chrt_org_data_id?: string | null;
|
|
21
|
+
/** Field to sort by */
|
|
22
|
+
sort_by?: Chrt.AccountSortByEnum | null;
|
|
23
|
+
/** Sort order */
|
|
24
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
25
|
+
page?: number | null;
|
|
26
|
+
page_size?: number | null;
|
|
27
|
+
}
|
|
@@ -0,0 +1,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
|
+
}
|