@torrow/sdk-client 0.22.0 → 0.23.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/index.d.ts CHANGED
@@ -42701,6 +42701,19 @@ declare const TimetableViewTypeValues: {
42701
42701
  /** Union известных индексов {@link TimetableViewTypeValues}. */
42702
42702
  type TimetableViewTypeValue = (typeof TimetableViewTypeValues)[keyof typeof TimetableViewTypeValues];
42703
42703
 
42704
+ /** Стабильные причины локального отказа при подготовке вложенных RID. */
42705
+ declare enum NestedRidErrorCode {
42706
+ /** Явно переданный RID не соответствует формату вложенной структуры. */
42707
+ InvalidRid = "InvalidRid"
42708
+ }
42709
+ /** Локальная ошибка вложенного RID: запрос к серверу ещё не начинался. */
42710
+ declare class NestedRidError extends Error {
42711
+ /** Машинная причина отказа; текст `message` остаётся диагностикой для человека. */
42712
+ readonly code: NestedRidErrorCode;
42713
+ /** Сохраняет прежнее сообщение об ошибке RID и задаёт машинную причину. */
42714
+ constructor(code: NestedRidErrorCode, message: string);
42715
+ }
42716
+
42704
42717
  /** Ключи пресетов — значения совпадают с `IconSetService.icons` / basename `*.svg`. */
42705
42718
  declare const ContextIconPresetValues: {
42706
42719
  readonly Anchor: "anchor";
@@ -42896,6 +42909,26 @@ declare class ServiceBuilder {
42896
42909
  private validateConfiguration;
42897
42910
  }
42898
42911
 
42912
+ /** Стабильная причина явного отказа конфигурации ServiceBuilder. */
42913
+ declare enum ServiceBuilderErrorCode {
42914
+ /** Конфигурация услуги, группы ресурсов или шага недопустима. */
42915
+ InvalidConfiguration = "InvalidConfiguration"
42916
+ }
42917
+ /** Локальный отказ конфигурации, совместимый с прежним TypeError. */
42918
+ declare class ServiceBuilderError extends TypeError {
42919
+ /** Стабильная машинная причина отказа конфигурации. */
42920
+ readonly code: ServiceBuilderErrorCode;
42921
+ /** Создаёт локальный отказ с прежним сообщением и машинным кодом. */
42922
+ constructor(code: ServiceBuilderErrorCode, message: string);
42923
+ }
42924
+ /** Локальный отказ числового диапазона, совместимый с прежним RangeError. */
42925
+ declare class ServiceBuilderRangeError extends RangeError {
42926
+ /** Стабильная машинная причина отказа числового диапазона. */
42927
+ readonly code: ServiceBuilderErrorCode;
42928
+ /** Создаёт локальный отказ диапазона с прежним сообщением и машинным кодом. */
42929
+ constructor(code: ServiceBuilderErrorCode, message: string);
42930
+ }
42931
+
42899
42932
  /**
42900
42933
  * Совпадает с `ServiceCheckInWizardStepType` в **torrow-apps** (`libs/domain-models`).
42901
42934
  * `stepType` в `StepDescription` приходит как **число** из API.
@@ -43027,4 +43060,17 @@ declare class ResourceBuilder {
43027
43060
  build(): ResourceBuildResult;
43028
43061
  }
43029
43062
 
43030
- export { type Account, type AccountDto, type AccountType, AccountTypeValueList, AccountTypeValues, type AccountingTransaction, type AccountingTransactionDto, type AccountingTransactionState, type AccountingTransactionStateDto, AccountingTransactionsFacade, type AccountingTransactionsListQuery, ActionHistoryFacade, type ActionHistoryInfo, type ActionHistoryInfoDto, type ActionHistoryListQuery, type ActionHistoryState, type ActionHistoryStateDto, type ActionHistoryType, type ActionHistoryTypeDto, type ActivityStatus, type ActivityStatusDto, type AddExternalAuthReq, type AddExternalAuthReqDto, type AddExternalAuthResp, type AddExternalAuthRespDto, type AddProfileResp, type AddProfileRespDto, type AddServicePaymentGroupInput, type AddServiceResourceGroupInput, type AddServiceResourceStepInput, type Address, type AdvisedItemTypeDto, type AdvisedItemsSearchQuery, type AnnouncementInfo, type AnnouncementInfoDto, type AnnouncementState, type AnnouncementStateDto, AnnouncementsFacade, type AnnouncementsListQuery, type AnyoneAccess, AnyoneAccessValues, ApiErrorNameValues, type ApiKeyInfo, type ApiKeyInfoDto, ApiKeysFacade, type ApproveCaseParticipationReq, type ApproveCaseParticipationReqDto, type AuthCaptchaType, AuthCaptchaTypeValueList, AuthCaptchaTypeValues, AuthFacade, type AuthIdentityBasic, type AuthScope, AuthScopeValueList, AuthScopeValues, AuthSessionEffectStep, type AuthSessionErrorDetail, AuthSessionErrorReason, type AvailabilityTime, type AvailabilityTimeDto, type AvailableResources, AvailableResourcesValues, type BalanceValue, type BalanceValueDto, type BaseItemProperties, BehaviorSettingsEffectStep, type BehaviorSettingsErrorDetail, type BlockReason, type BlockReasonDto, type BlockReasonListQuery, BlockReasonsFacade, type BlockSettings, type BookResourcesForMeReq, type BookResourcesForMeReqDto, type BookResourcesForOthersReq, type BookResourcesForOthersReqDto, type BookResourcesReqDto, type BookingProperties, type BookingWizardExpandedStep, type BuildContextIconSvgOptions, type CalendarItem, type CalendarItemDto, type CalendarItemForCreateOrUpdate, type CalendarItemPatch, type CalendarView, type CalendarViewDto, CalendarViewTypeValues, CalendarsFacade, type CancelCaseParticipationReq, type CancelCaseParticipationReqDto, type CancelMyCaseParticipationReqDto, type CancelOtherCaseParticipationReqDto, type CaseItem, type CaseItemDto, type CaseItemForCreate, type CaseItemForCreateOrUpdate, type CaseItemPatch, type CaseParticipant, type CaseParticipantDto, type CaseParticipantFields, type CaseParticipantFieldsDto, type CaseParticipantStateDto, type CaseParticipantType, type CaseParticipantTypeDto, type CaseParticipantView, type CaseParticipantViewDto, type CaseParticipantsCountQuery, type CaseParticipantsListQuery, type CaseReportProperties, type CaseSessionForCreate, type CaseState, CaseStateValues, type CaseType, CaseTypeValues, type CaseView, type CaseViewDto, CasesFacade, type CellValueType, CellValueTypeValues, type ChangeMoneyReceiveReq, type ChangeMoneyReceiveReqDto, type ChangeOrderServiceReq, type ChangeOrderServiceReqDto, type CheckInOtherReqDto, type CheckInProps, type CheckInPropsDto, type CheckInReq, type CheckInReqDto, type ColumnType, ColumnTypeValues, type Communication, type CommunicationBrandId, type CommunicationForCreateOrUpdate, type CommunicationType, CommunicationTypeValues, type CompleteAddingAccountReq, type CompleteAddingAccountReqDto, type CompleteDeletingUserReq, type CompleteDeletingUserReqDto, type CompleteDeletingUserResp, type CompleteDeletingUserRespDto, type ContactCaseParticipantsListQuery, type ContactCommunicationPatch, type ContactItem, type ContactItemDto, type ContactItemForCreateOrUpdate, type ContactItemPatch, type ContactPersonalInfo, type ContactProperties, type ContactPropertiesDto, type ContactSearchQuery, type ContactView, type ContactViewDto, type ContactVisitCard, type ContactVisitCardField, ContactsFacade, type ContextIconPresetValue, ContextIconPresetValues, type ContextItem, type ContextItemDto, type ContextItemForCreateOrUpdate, type ContextItemPatch, type ContextView, type ContextViewDto, ContextsFacade, type CreateApiKeyRequest, type CreateApiKeyRequestDto, type CreateApiKeyResponse, type CreateApiKeyResponseDto, type CreateAuthSessionReq, type CreateAuthSessionReqDto, type CreateAuthSessionResp, type CreateAuthSessionRespDto, type CreateCaseItemOptions, type CreateCaseReq, type CreateCaseReqDto, type CreateLoyaltyCardReq, type CreateLoyaltyCardReqDto, type CreateLoyaltyCardSubscriptionReq, type CreateLoyaltyCardSubscriptionReqDto, type CreateOrderReq, type CreateOrderReqDto, type CreateViewListReqDto, type CreateViewListRespDto, DEFAULT_TORROW_API_BASE_URL, DefaultAuthScopes, type DeleteResponse, type DeleteResponseDto, type DeleteUserAccountReq, type DeleteUserAccountReqDto, type DeleteUserAccountResp, type DeleteUserAccountRespDto, type DeliveryChannelDto, type DeviceInfo, type DeviceInfoDto, type DeviceSettingsInfo, type DeviceSettingsInfoDto, type DeviceType, type DeviceTypeDto, DeviceTypeValueList, DeviceTypeValues, type DictionarySortCondition, type DictionarySortConditionDto, Discriminator, type DiscriminatorType, type ExcludeFromGroupsReq, type ExcludeFromGroupsReqDto, type ExcludeReqDto, type ExcludeResp, type ExcludeRespDto, type ExportGraph, type ExportGraphDto, ExportImportFacade, type ExportRequest, type ExportRequestDto, type ExternalAuth, type ExternalAuthDto, ExternalAuthsFacade, type ExternalCalendar, type ExternalCalendarIntegration, type ExternalCalendarIntegrationForCreateOrUpdate, type ExternalCalendarIntegrationParameters, type Feedback, type FeedbackDto, type FeedbackOptions, type FeedbackOptionsDto, type FileInfo, type FileInfoDto, type FileMetadataErrorDetail, FileMetadataErrorReason, FileMetadataFailureAt, FileMetadataOperation, type FreeCheckInSlot, type Gender, GenderValues, type GenerateReportReq, type GenerateReportReqDto, type GenerateReportResp, type GenerateReportRespDto, type GenerateSecurityTokenReq, type GenerateSecurityTokenReqDto, type GenerateSecurityTokenResp, type GenerateSecurityTokenRespDto, type GetCalendarOptions, type GetCaseOptions, type GetCaseParticipationCountResp, type GetCaseParticipationCountRespDto, type GetCheckInScheduleReq, type GetCheckInScheduleReqDto, type GetCheckInScheduleResp, type GetCheckInScheduleRespDto, type GetContactOptions, type GetContextOptions, type GetLoyaltyCardOptions, type GetLoyaltySystemOptions, type GetLoyaltySystemsStatisticsReq, type GetLoyaltySystemsStatisticsReqDto, type GetLoyaltySystemsStatisticsResp, type GetLoyaltySystemsStatisticsRespDto, type GetNoteOptions, type GetParticipationCountRespDto, type GetReCheckInScheduleReq, type GetReCheckInScheduleReqDto, type GetResourceOptions, type GetServiceOptions, type GetServiceWorkloadInfoRequest, type GetServiceWorkloadInfoRequestDto, type GetServiceWorkloadInfoResp, type GetServiceWorkloadInfoRespDto, type GetShareItemSessionReq, type GetShareItemSessionReqDto, type GetTimetableStatisticsRequest, type GetTimetableStatisticsRequestDto, type GetTimetableStatisticsResponseDto, type GetTorrowIdResp, type GetTorrowIdRespDto, type GroupStatus, type GroupStatusDto, type Hobby, type HobbyDto, HttpClient, type HttpMethod, type HttpRequestInit, IdGeneratorFacade, type ImagePreviewSize, ImagePreviewSizeValues, type ImportByFileRequest, type ImportByFileRequestDto, type ImportByUniqueNameRequest, type ImportByUniqueNameRequestDto, type IncludeExcludeResp, type IncludeExcludeRespDto, type IncludeForUserReq, type IncludeForUserReqDto, type IncludeToGroupsReq, type IncludeToGroupsReqDto, type IncludeToParentReq, type IncludeToParentReqDto, type InitAddingAccountReq, type InitAddingAccountReqDto, type InitAddingAccountResp, type InitAddingAccountRespDto, type InitDeletingUserResp, type InitDeletingUserRespDto, type Integration, type IntegrationDto, type IntegrationEvent, IntegrationEventTypeValues, type IntegrationForCreateOrUpdate, IntegrationTypeValues, IntegrationsFacade, ItemFacade, type ItemFeedback, type ItemFeedbackDto, ItemPatchEffectStep, type ItemPatchErrorDetail, type ItemPricePatchFields, type ItemPricePatchInfo, type ItemPricePatchProperties, type ItemPricePatchSetting, type ItemProperties, type ItemSortConditionDto, type ItemTagsListQuery, type ItemTextSearchQuery, type ItemViewSortConditionDto as ItemViewSortCondition, type ItemViewSortConditionDto, ItemViewSortConditionValueList, ItemViewSortConditionValues, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type KnownIntegration, type KnownServiceType, type LayoutTypeValue, LayoutTypeValues, type LoyaltyCardFilterCondition, type LoyaltyCardFilterConditionDto, type LoyaltyCardIssueType, LoyaltyCardIssueTypeValues, type LoyaltyCardItem, type LoyaltyCardItemDto, type LoyaltyCardItemForUpdate, type LoyaltyCardItemPatch, type LoyaltyParticipantsQuery as LoyaltyCardParticipantsQuery, type Participation as LoyaltyCardParticipation, type ParticipationResp as LoyaltyCardParticipationResp, type SendLinkOfItemReq as LoyaltyCardSendLinkReq, type SendLinkOfItemResp as LoyaltyCardSendLinkResp, type ShareItemReq as LoyaltyCardShareReq, type LoyaltyCardSortCondition, type LoyaltyCardSortConditionDto, LoyaltyCardSortConditionValues, type LoyaltyCardStateDto, LoyaltyCardStateValues, type LoyaltyCardSubscription, type LoyaltyCardSubscriptionDto, type LoyaltyCardSubscriptionPatch, type LoyaltyCardUpdateKeyInformation, LoyaltyCardUpdateKeyInformationValues, type LoyaltyCardUpdateNonKeyInformation, LoyaltyCardUpdateNonKeyInformationValues, type LoyaltyCardView, type LoyaltyCardViewDto, LoyaltyCardsFacade, type LoyaltyGroupListQuery, type LoyaltyPersonalListQuery, type LoyaltySystemInitialSubscriptionPatch, type LoyaltySystemItem, type LoyaltySystemItemDto, type LoyaltySystemItemForCreateOrUpdate, type LoyaltySystemItemForUpdate, type LoyaltySystemItemPatch, type LoyaltyParticipantsQuery as LoyaltySystemParticipantsQuery, type Participation as LoyaltySystemParticipation, type ParticipationResp as LoyaltySystemParticipationResp, type LoyaltySystemPersonalListQuery, type SendLinkOfItemReq as LoyaltySystemSendLinkReq, type SendLinkOfItemResp as LoyaltySystemSendLinkResp, type ShareItemReq as LoyaltySystemShareReq, type LoyaltySystemView, type LoyaltySystemViewDto, LoyaltySystemsFacade, type LoyaltySystemsStatisticsResp, type LoyaltySystemsStatisticsRespDto, type LoyaltyTransactionsQuery, type ManagedSolutionData, type MemorableDate, type Metrics, type NoteItem, type NoteItemDto, type NoteItemForCreateOrUpdate, type NoteItemPatch, type NoteType, type NoteTypeDto, NoteTypeValues, type NoteView, type NoteViewDto, NotesFacade, type NotificationWay, type NotificationWayDto, type ObjectInfoDto, type ObjectSortConditionDto, type OperationTypeDto, type OrderFilter, type OrderFilterDto, type OrderResp, type OrderRespDto, type OrderSearchQuery, type OrderViewSortConditionDto, type OtpErrorDetail, OtpErrorReason, type ParticipantStateDto as ParticipantState, type ParticipantStateDto, type ParticipantTypeDto as ParticipantType, type ParticipantTypeDto, type ParticipantView, type ParticipantViewDto, type Participation, type ParticipationDto, type ParticipationFieldRequirementType, ParticipationFieldRequirementTypeValues, type ParticipationFieldType, ParticipationFieldTypeValues, type ParticipationResp, type ParticipationRespDto, type PatchCaseReq, type PatchCaseReqDto, type PaymentProviderType, PaymentProviderTypeValues, type PersonalListQuery, type PersonalReminder, type PersonalReminderDto, type PersonalSolutionData, type PersonalSolutionDataDto, type PickOrderReq, type PickOrderReqDto, type PickOrderResp, type PickOrderRespDto, PinnedViewsFacade, type Place, type PlaceDto, ProfileEffectStep, type ProfileErrorDetail, ProfileErrorReason, ProfileFailureAt, type ProfileListResp, type ProfileListRespDto, ProfileOperation, type ProfileProperties, type ProfilePropertiesDto, type ProfileType, ProfileTypeValues, ProfilesFacade, type PublicityType, type PublicityTypeDto, type PutUrlResp, type PutUrlRespDto, type Rating, RawClient, type RawRequestOptions, type RefreshReq, type RefreshReqDto, type RegisterInfo, type RegisterUserForAccountResp, type RegisterUserForAccountRespDto, type RegistrationUserInfo, type RegistrationUserInfoDto, RelationsFacade, type RemoveProfileResp, type RemoveProfileRespDto, type ReportOptions, type ReportProperties, type ReportPropertiesBase, ReportsFacade, type ResolvedTorrowClientConfig, type ResourceBuildResult, ResourceBuilder, type ResourceGroup, type ResourceItem, type ResourceItemApiDto, type ResourceBehaviorSettings as ResourceItemBehaviorSettings, type ResourceItemForCreateOrUpdate, type ResourceItemPatch, type ResourceItemPatchFields, type ResourceMindMapView, type ResourceMindMapViewDto, type ResourcePaymentPatchParameters, type ResourcePaymentPatchProperties, type ResourceReportProperties, type ResourceServiceBindingOptions, type ResourceServiceLinkResult, type ResourceUsageConditionType, type ResourceView, type ResourceViewDto, ResourcesFacade, type ResourcesFilterOptions, type ResourcesRentReportProperties, type ReturnOrderReq, type ReturnOrderReqDto, type ReturnOrderResp, type ReturnOrderRespDto, type RevokeReq, type RevokeReqDto, type SaveItemToMindMapReq, type SaveItemToMindMapReqDto, SearchFacade, type SearchLoyaltyCardsReq, type SearchLoyaltyCardsReqDto, type SearchServiceResourcesReq, type SearchServiceResourcesReqDto, type SearchServiceResourcesResp, type SearchServiceResourcesRespDto, type SendCodeAccountType, SendCodeAccountTypeValueList, SendCodeAccountTypeValues, type SendCodeReq, type SendCodeReqDto, type SendCodeReqForOtp, type SendCodeResp, type SendCodeRespDto, type SendCommunicationCodeReq, type SendCommunicationCodeReqDto, type SendCommunicationCodeResp, type SendCommunicationCodeRespDto, type SendLinkOfItemReqDto, type SendLinkOfItemRespDto, type ServiceBehaviorSettings, type ServiceBehaviorSettingsIssue, ServiceBehaviorSettingsIssueReason, type ServiceBehaviorSettingsState, type ServiceBehaviorSettingsUpdateOptions, type ServiceBehaviorSettingsUpdateResult, type ServiceBuildResult, ServiceBuilder, ServiceCheckInWizardStepParameterName, ServiceCheckInWizardStepType, type ServiceDescription, type ServiceItem, type ServiceItemApiDto, type ServiceItemForCreateOrUpdate, type ServiceItemForUpdate, type ServiceItemPatch, ServiceOrderConflictErrorNameValues, type ServiceOrderConflictReason, type ServiceReportProperties, type ServiceResourceStepUsageType, type ServiceSessionDurationOptions, ServiceType, type ServiceTypePreset, ServiceTypePresetValues, type ServiceView, type ServiceViewDto, ServicesFacade, type ServicesResourcesReportProperties, type SessionDurationProperties, type SessionDurationPropertiesDto, type SessionDurationType, SessionDurationTypeValues, type SessionPrecisionType, SessionPrecisionTypeValues, type SetGroupItemReqDto, type ShareItemReq, type ShareItemReqDto, ShortUrlFacade, type SolutionData, type SolutionDataDto, type Filter as SolutionDataFilter, type StateManagementType, StateManagementTypeValues, type StepDescription, type StepDescriptionDto, type DictionarySortCondition as ThesaurusDictionarySortCondition, ThesaurusFacade, type TimePeriod, type TimeSelectionType, TimeSelectionTypeValues, type TimeSplitType, TimeSplitTypeValues, type TimeStepUiMode, TimeStepUiModeValues, type TimetableCase, type TimetableCaseDto, type TimetableDetailsVisibility, type TimetableDetailsVisibilityDto, type TimetableFilter, type TimetableFilterDto, type TimetableQueryOptions, type TimetableStatisticsResp, type TimetableStatisticsRespDto, type TimetableViewTypeValue, TimetableViewTypeValues, type TokenReq, type TokenReqDto, type TokenResp, type TokenRespDto, type TokenStatus, TokenStatusValueList, TokenStatusValues, type TorrowChildItemCreateOptions, TorrowClient, type TorrowClientConfig, TorrowIdError, type TorrowIdErrorReason, type TorrowItem, type TorrowItemCreateOptions, type TorrowItemDeleteOptions, type TorrowItemDto, type TorrowItemForCreateOrUpdate, type TorrowItemFromDto, type TorrowItemGetOptions, type TorrowItemPatchFields, type TorrowItemPatchImage, type TorrowItemPatchOptions, type TorrowItemPatchResult, type TorrowItemType, TorrowItemTypeValueList, TorrowItemTypeValues, type TorrowItemUpdateOptions, type TorrowItemView, type TorrowItemViewByTypeMap, type TorrowObject, type TorrowObjectDto, type TorrowObjectType, TorrowObjectTypeCode, type TorrowObjectTypeCodeValue, type TorrowObjectTypeDto, type TorrowOptions, type TorrowSdkEffect, TorrowSdkEffectArea, TorrowSdkEffectState, TorrowSdkError, TorrowSdkErrorCategory, type TorrowSdkErrorDetail, TorrowSdkErrorDomain, type TorrowSdkErrorInfo, type TorrowSdkErrorInit, type TorrowSdkHttpDetails, TorrowSdkRequestState, type TorrowSdkSensitiveDetails, type UnpackedTorrowId, type UnsetGroupItemReqDto, type UpdateAnnouncementStateReq, type UpdateAnnouncementStateReqDto, type UpdateCalendarItemOptions, type UpdateCaseItemOptions, type UpdateContactItemOptions, type UpdateContactPropertiesResp, type UpdateContactPropertiesRespDto, type UpdateFileIdResp, type UpdateFileIdRespDto, type UpdateItemAccountsReqDto, type UpdateItemGroupsReqDto, type UpdateMasterInfoReq, type UpdateMasterInfoReqDto, type UpdateOrderInfoReq, type UpdateOrderInfoReqDto, type UpdateOrderReq, type UpdateOrderReqDto, type UpdatePersonalListOrderReq, type UpdatePersonalListOrderReqDto, type UpdatePersonalListOrderResp, type UpdatePersonalListOrderRespDto, type UpdateProfilePropertiesResp, type UpdateProfilePropertiesRespDto, type UpdateResourceItemOptions, type UpdateServiceItemOptions, type UpdateViewListOrderReqDto, type UpdateViewListOrderRespDto, type UsageCondition, type UsageConditionType, UsageConditionTypeValues, type UsageType, UsageTypeValues, type UserAccessLevel, UserAccessLevelValues, type UserAccountsQuery, type UserCalendar, type UserCalendarDto, type UserDeliveryWay, type UserDeliveryWayDto, UserFacade, type UserFeedback, type UserFeedbackDto, type UserProfileItemForAdd, UserSettingsFacade, type UserSettingsInfo, type UserSettingsInfoDto, type UserTimetableQuery, UserViewsFacade, type VerificationMethod, VerificationMethodValueList, VerificationMethodValues, type VerifyCommunicationCodeReq, type VerifyCommunicationCodeReqDto, type VerifyCommunicationCodeResp, type VerifyCommunicationCodeRespDto, type VideoTelephony, type VideoTelephonyIntegration, type VideoTelephonyIntegrationForCreateOrUpdate, type VideoTelephonyIntegrationParameters, type ViewBlockSettings, type ViewInfo, type ViewInfoDto, type ViewListQuery, type ViewListRootQuery, type ViewOrderInput, ViewsFacade, type WebHookIntegration, type WebHookIntegrationForCreateOrUpdate, type WebHookIntegrationParameters, type WorkloadPeriod, type WorkloadPeriodDto, buildContextIconSvg, buildContextIconSvgBytes, cancelCaseParticipation, communicationHref, type components, createOrder, createServiceSessionDurationProperties, expandBookingWizardSteps, generateRid, generateServiceResourceGroupId, generateTorrowId, generateTorrowIdForOwner, getCase, getCheckInSchedule, getContextIconPresetFileName, getFreeCheckInSlots, getResourceGroupIdFromStep, getService, getServiceOrderConflictReason, getServiceResources, getServiceType, getServiceTypeFromSessionDurationProperties, getShardFromTorrowId, getStepParameter, getTicketPaymentUrl, getTicketPaymentUrlRaw, getTimeStepUiMode, getTorrowItemTypeFromTorrowId, getTorrowItemTypeFromTorrowIds, getTorrowObjectTypeFromTorrowId, isAccountType, isAuthCaptchaType, isAuthScope, isContextIconPreset, isDeviceType, isExternalCalendarIntegration, isFreeCheckInSlot, isItemViewSortCondition, isSendCodeAccountType, isServiceOrderConflictError, isStepFlag, isTokenRespReadyStatus, isTokenStatus, isTorrowItemType, isVerificationMethod, isVideoTelephonyIntegration, isWebHookIntegration, normalizePaymentUrl, packTorrowId, parseAccountType, parseAuthCaptchaType, parseAuthScope, parseContextIconPresetFromImage, parseDeviceType, parseSendCodeAccountType, parseTokenStatus, parseVerificationMethod, type paths, resolveCommunicationBrand, shouldSkipResourceStep, sortStepDescriptionsByOrder, torrowObjectTypeToCode, unpackTorrowId };
43063
+ /** Стабильные причины локального отказа ResourceBuilder. */
43064
+ declare enum ResourceBuilderErrorCode {
43065
+ /** Нельзя построить связь ресурса с выбранной услугой и группой. */
43066
+ InvalidServiceLink = "InvalidServiceLink"
43067
+ }
43068
+ /** Локальный отказ при построении связи ресурса с услугой; HTTP-вызов не выполнялся. */
43069
+ declare class ResourceBuilderError extends TypeError {
43070
+ /** Стабильная машинная причина отказа связи. */
43071
+ readonly code: ResourceBuilderErrorCode;
43072
+ /** Сохраняет прежний текст TypeError и предоставляет машинный код. */
43073
+ constructor(code: ResourceBuilderErrorCode, message: string);
43074
+ }
43075
+
43076
+ export { type Account, type AccountDto, type AccountType, AccountTypeValueList, AccountTypeValues, type AccountingTransaction, type AccountingTransactionDto, type AccountingTransactionState, type AccountingTransactionStateDto, AccountingTransactionsFacade, type AccountingTransactionsListQuery, ActionHistoryFacade, type ActionHistoryInfo, type ActionHistoryInfoDto, type ActionHistoryListQuery, type ActionHistoryState, type ActionHistoryStateDto, type ActionHistoryType, type ActionHistoryTypeDto, type ActivityStatus, type ActivityStatusDto, type AddExternalAuthReq, type AddExternalAuthReqDto, type AddExternalAuthResp, type AddExternalAuthRespDto, type AddProfileResp, type AddProfileRespDto, type AddServicePaymentGroupInput, type AddServiceResourceGroupInput, type AddServiceResourceStepInput, type Address, type AdvisedItemTypeDto, type AdvisedItemsSearchQuery, type AnnouncementInfo, type AnnouncementInfoDto, type AnnouncementState, type AnnouncementStateDto, AnnouncementsFacade, type AnnouncementsListQuery, type AnyoneAccess, AnyoneAccessValues, ApiErrorNameValues, type ApiKeyInfo, type ApiKeyInfoDto, ApiKeysFacade, type ApproveCaseParticipationReq, type ApproveCaseParticipationReqDto, type AuthCaptchaType, AuthCaptchaTypeValueList, AuthCaptchaTypeValues, AuthFacade, type AuthIdentityBasic, type AuthScope, AuthScopeValueList, AuthScopeValues, AuthSessionEffectStep, type AuthSessionErrorDetail, AuthSessionErrorReason, type AvailabilityTime, type AvailabilityTimeDto, type AvailableResources, AvailableResourcesValues, type BalanceValue, type BalanceValueDto, type BaseItemProperties, BehaviorSettingsEffectStep, type BehaviorSettingsErrorDetail, type BlockReason, type BlockReasonDto, type BlockReasonListQuery, BlockReasonsFacade, type BlockSettings, type BookResourcesForMeReq, type BookResourcesForMeReqDto, type BookResourcesForOthersReq, type BookResourcesForOthersReqDto, type BookResourcesReqDto, type BookingProperties, type BookingWizardExpandedStep, type BuildContextIconSvgOptions, type CalendarItem, type CalendarItemDto, type CalendarItemForCreateOrUpdate, type CalendarItemPatch, type CalendarView, type CalendarViewDto, CalendarViewTypeValues, CalendarsFacade, type CancelCaseParticipationReq, type CancelCaseParticipationReqDto, type CancelMyCaseParticipationReqDto, type CancelOtherCaseParticipationReqDto, type CaseItem, type CaseItemDto, type CaseItemForCreate, type CaseItemForCreateOrUpdate, type CaseItemPatch, type CaseParticipant, type CaseParticipantDto, type CaseParticipantFields, type CaseParticipantFieldsDto, type CaseParticipantStateDto, type CaseParticipantType, type CaseParticipantTypeDto, type CaseParticipantView, type CaseParticipantViewDto, type CaseParticipantsCountQuery, type CaseParticipantsListQuery, type CaseReportProperties, type CaseSessionForCreate, type CaseState, CaseStateValues, type CaseType, CaseTypeValues, type CaseView, type CaseViewDto, CasesFacade, type CellValueType, CellValueTypeValues, type ChangeMoneyReceiveReq, type ChangeMoneyReceiveReqDto, type ChangeOrderServiceReq, type ChangeOrderServiceReqDto, type CheckInOtherReqDto, type CheckInProps, type CheckInPropsDto, type CheckInReq, type CheckInReqDto, type ColumnType, ColumnTypeValues, type Communication, type CommunicationBrandId, type CommunicationForCreateOrUpdate, type CommunicationType, CommunicationTypeValues, type CompleteAddingAccountReq, type CompleteAddingAccountReqDto, type CompleteDeletingUserReq, type CompleteDeletingUserReqDto, type CompleteDeletingUserResp, type CompleteDeletingUserRespDto, type ContactCaseParticipantsListQuery, type ContactCommunicationPatch, type ContactItem, type ContactItemDto, type ContactItemForCreateOrUpdate, type ContactItemPatch, type ContactPersonalInfo, type ContactProperties, type ContactPropertiesDto, type ContactSearchQuery, type ContactView, type ContactViewDto, type ContactVisitCard, type ContactVisitCardField, ContactsFacade, type ContextIconPresetValue, ContextIconPresetValues, type ContextItem, type ContextItemDto, type ContextItemForCreateOrUpdate, type ContextItemPatch, type ContextView, type ContextViewDto, ContextsFacade, type CreateApiKeyRequest, type CreateApiKeyRequestDto, type CreateApiKeyResponse, type CreateApiKeyResponseDto, type CreateAuthSessionReq, type CreateAuthSessionReqDto, type CreateAuthSessionResp, type CreateAuthSessionRespDto, type CreateCaseItemOptions, type CreateCaseReq, type CreateCaseReqDto, type CreateLoyaltyCardReq, type CreateLoyaltyCardReqDto, type CreateLoyaltyCardSubscriptionReq, type CreateLoyaltyCardSubscriptionReqDto, type CreateOrderReq, type CreateOrderReqDto, type CreateViewListReqDto, type CreateViewListRespDto, DEFAULT_TORROW_API_BASE_URL, DefaultAuthScopes, type DeleteResponse, type DeleteResponseDto, type DeleteUserAccountReq, type DeleteUserAccountReqDto, type DeleteUserAccountResp, type DeleteUserAccountRespDto, type DeliveryChannelDto, type DeviceInfo, type DeviceInfoDto, type DeviceSettingsInfo, type DeviceSettingsInfoDto, type DeviceType, type DeviceTypeDto, DeviceTypeValueList, DeviceTypeValues, type DictionarySortCondition, type DictionarySortConditionDto, Discriminator, type DiscriminatorType, type ExcludeFromGroupsReq, type ExcludeFromGroupsReqDto, type ExcludeReqDto, type ExcludeResp, type ExcludeRespDto, type ExportGraph, type ExportGraphDto, ExportImportFacade, type ExportRequest, type ExportRequestDto, type ExternalAuth, type ExternalAuthDto, ExternalAuthsFacade, type ExternalCalendar, type ExternalCalendarIntegration, type ExternalCalendarIntegrationForCreateOrUpdate, type ExternalCalendarIntegrationParameters, type Feedback, type FeedbackDto, type FeedbackOptions, type FeedbackOptionsDto, type FileInfo, type FileInfoDto, type FileMetadataErrorDetail, FileMetadataErrorReason, FileMetadataFailureAt, FileMetadataOperation, type FreeCheckInSlot, type Gender, GenderValues, type GenerateReportReq, type GenerateReportReqDto, type GenerateReportResp, type GenerateReportRespDto, type GenerateSecurityTokenReq, type GenerateSecurityTokenReqDto, type GenerateSecurityTokenResp, type GenerateSecurityTokenRespDto, type GetCalendarOptions, type GetCaseOptions, type GetCaseParticipationCountResp, type GetCaseParticipationCountRespDto, type GetCheckInScheduleReq, type GetCheckInScheduleReqDto, type GetCheckInScheduleResp, type GetCheckInScheduleRespDto, type GetContactOptions, type GetContextOptions, type GetLoyaltyCardOptions, type GetLoyaltySystemOptions, type GetLoyaltySystemsStatisticsReq, type GetLoyaltySystemsStatisticsReqDto, type GetLoyaltySystemsStatisticsResp, type GetLoyaltySystemsStatisticsRespDto, type GetNoteOptions, type GetParticipationCountRespDto, type GetReCheckInScheduleReq, type GetReCheckInScheduleReqDto, type GetResourceOptions, type GetServiceOptions, type GetServiceWorkloadInfoRequest, type GetServiceWorkloadInfoRequestDto, type GetServiceWorkloadInfoResp, type GetServiceWorkloadInfoRespDto, type GetShareItemSessionReq, type GetShareItemSessionReqDto, type GetTimetableStatisticsRequest, type GetTimetableStatisticsRequestDto, type GetTimetableStatisticsResponseDto, type GetTorrowIdResp, type GetTorrowIdRespDto, type GroupStatus, type GroupStatusDto, type Hobby, type HobbyDto, HttpClient, type HttpMethod, type HttpRequestInit, IdGeneratorFacade, type ImagePreviewSize, ImagePreviewSizeValues, type ImportByFileRequest, type ImportByFileRequestDto, type ImportByUniqueNameRequest, type ImportByUniqueNameRequestDto, type IncludeExcludeResp, type IncludeExcludeRespDto, type IncludeForUserReq, type IncludeForUserReqDto, type IncludeToGroupsReq, type IncludeToGroupsReqDto, type IncludeToParentReq, type IncludeToParentReqDto, type InitAddingAccountReq, type InitAddingAccountReqDto, type InitAddingAccountResp, type InitAddingAccountRespDto, type InitDeletingUserResp, type InitDeletingUserRespDto, type Integration, type IntegrationDto, type IntegrationEvent, IntegrationEventTypeValues, type IntegrationForCreateOrUpdate, IntegrationTypeValues, IntegrationsFacade, ItemFacade, type ItemFeedback, type ItemFeedbackDto, ItemPatchEffectStep, type ItemPatchErrorDetail, type ItemPricePatchFields, type ItemPricePatchInfo, type ItemPricePatchProperties, type ItemPricePatchSetting, type ItemProperties, type ItemSortConditionDto, type ItemTagsListQuery, type ItemTextSearchQuery, type ItemViewSortConditionDto as ItemViewSortCondition, type ItemViewSortConditionDto, ItemViewSortConditionValueList, ItemViewSortConditionValues, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type KnownIntegration, type KnownServiceType, type LayoutTypeValue, LayoutTypeValues, type LoyaltyCardFilterCondition, type LoyaltyCardFilterConditionDto, type LoyaltyCardIssueType, LoyaltyCardIssueTypeValues, type LoyaltyCardItem, type LoyaltyCardItemDto, type LoyaltyCardItemForUpdate, type LoyaltyCardItemPatch, type LoyaltyParticipantsQuery as LoyaltyCardParticipantsQuery, type Participation as LoyaltyCardParticipation, type ParticipationResp as LoyaltyCardParticipationResp, type SendLinkOfItemReq as LoyaltyCardSendLinkReq, type SendLinkOfItemResp as LoyaltyCardSendLinkResp, type ShareItemReq as LoyaltyCardShareReq, type LoyaltyCardSortCondition, type LoyaltyCardSortConditionDto, LoyaltyCardSortConditionValues, type LoyaltyCardStateDto, LoyaltyCardStateValues, type LoyaltyCardSubscription, type LoyaltyCardSubscriptionDto, type LoyaltyCardSubscriptionPatch, type LoyaltyCardUpdateKeyInformation, LoyaltyCardUpdateKeyInformationValues, type LoyaltyCardUpdateNonKeyInformation, LoyaltyCardUpdateNonKeyInformationValues, type LoyaltyCardView, type LoyaltyCardViewDto, LoyaltyCardsFacade, type LoyaltyGroupListQuery, type LoyaltyPersonalListQuery, type LoyaltySystemInitialSubscriptionPatch, type LoyaltySystemItem, type LoyaltySystemItemDto, type LoyaltySystemItemForCreateOrUpdate, type LoyaltySystemItemForUpdate, type LoyaltySystemItemPatch, type LoyaltyParticipantsQuery as LoyaltySystemParticipantsQuery, type Participation as LoyaltySystemParticipation, type ParticipationResp as LoyaltySystemParticipationResp, type LoyaltySystemPersonalListQuery, type SendLinkOfItemReq as LoyaltySystemSendLinkReq, type SendLinkOfItemResp as LoyaltySystemSendLinkResp, type ShareItemReq as LoyaltySystemShareReq, type LoyaltySystemView, type LoyaltySystemViewDto, LoyaltySystemsFacade, type LoyaltySystemsStatisticsResp, type LoyaltySystemsStatisticsRespDto, type LoyaltyTransactionsQuery, type ManagedSolutionData, type MemorableDate, type Metrics, NestedRidError, NestedRidErrorCode, type NoteItem, type NoteItemDto, type NoteItemForCreateOrUpdate, type NoteItemPatch, type NoteType, type NoteTypeDto, NoteTypeValues, type NoteView, type NoteViewDto, NotesFacade, type NotificationWay, type NotificationWayDto, type ObjectInfoDto, type ObjectSortConditionDto, type OperationTypeDto, type OrderFilter, type OrderFilterDto, type OrderResp, type OrderRespDto, type OrderSearchQuery, type OrderViewSortConditionDto, type OtpErrorDetail, OtpErrorReason, type ParticipantStateDto as ParticipantState, type ParticipantStateDto, type ParticipantTypeDto as ParticipantType, type ParticipantTypeDto, type ParticipantView, type ParticipantViewDto, type Participation, type ParticipationDto, type ParticipationFieldRequirementType, ParticipationFieldRequirementTypeValues, type ParticipationFieldType, ParticipationFieldTypeValues, type ParticipationResp, type ParticipationRespDto, type PatchCaseReq, type PatchCaseReqDto, type PaymentProviderType, PaymentProviderTypeValues, type PersonalListQuery, type PersonalReminder, type PersonalReminderDto, type PersonalSolutionData, type PersonalSolutionDataDto, type PickOrderReq, type PickOrderReqDto, type PickOrderResp, type PickOrderRespDto, PinnedViewsFacade, type Place, type PlaceDto, ProfileEffectStep, type ProfileErrorDetail, ProfileErrorReason, ProfileFailureAt, type ProfileListResp, type ProfileListRespDto, ProfileOperation, type ProfileProperties, type ProfilePropertiesDto, type ProfileType, ProfileTypeValues, ProfilesFacade, type PublicityType, type PublicityTypeDto, type PutUrlResp, type PutUrlRespDto, type Rating, RawClient, type RawRequestOptions, type RefreshReq, type RefreshReqDto, type RegisterInfo, type RegisterUserForAccountResp, type RegisterUserForAccountRespDto, type RegistrationUserInfo, type RegistrationUserInfoDto, RelationsFacade, type RemoveProfileResp, type RemoveProfileRespDto, type ReportOptions, type ReportProperties, type ReportPropertiesBase, ReportsFacade, type ResolvedTorrowClientConfig, type ResourceBuildResult, ResourceBuilder, ResourceBuilderError, ResourceBuilderErrorCode, type ResourceGroup, type ResourceItem, type ResourceItemApiDto, type ResourceBehaviorSettings as ResourceItemBehaviorSettings, type ResourceItemForCreateOrUpdate, type ResourceItemPatch, type ResourceItemPatchFields, type ResourceMindMapView, type ResourceMindMapViewDto, type ResourcePaymentPatchParameters, type ResourcePaymentPatchProperties, type ResourceReportProperties, type ResourceServiceBindingOptions, type ResourceServiceLinkResult, type ResourceUsageConditionType, type ResourceView, type ResourceViewDto, ResourcesFacade, type ResourcesFilterOptions, type ResourcesRentReportProperties, type ReturnOrderReq, type ReturnOrderReqDto, type ReturnOrderResp, type ReturnOrderRespDto, type RevokeReq, type RevokeReqDto, type SaveItemToMindMapReq, type SaveItemToMindMapReqDto, SearchFacade, type SearchLoyaltyCardsReq, type SearchLoyaltyCardsReqDto, type SearchServiceResourcesReq, type SearchServiceResourcesReqDto, type SearchServiceResourcesResp, type SearchServiceResourcesRespDto, type SendCodeAccountType, SendCodeAccountTypeValueList, SendCodeAccountTypeValues, type SendCodeReq, type SendCodeReqDto, type SendCodeReqForOtp, type SendCodeResp, type SendCodeRespDto, type SendCommunicationCodeReq, type SendCommunicationCodeReqDto, type SendCommunicationCodeResp, type SendCommunicationCodeRespDto, type SendLinkOfItemReqDto, type SendLinkOfItemRespDto, type ServiceBehaviorSettings, type ServiceBehaviorSettingsIssue, ServiceBehaviorSettingsIssueReason, type ServiceBehaviorSettingsState, type ServiceBehaviorSettingsUpdateOptions, type ServiceBehaviorSettingsUpdateResult, type ServiceBuildResult, ServiceBuilder, ServiceBuilderError, ServiceBuilderErrorCode, ServiceBuilderRangeError, ServiceCheckInWizardStepParameterName, ServiceCheckInWizardStepType, type ServiceDescription, type ServiceItem, type ServiceItemApiDto, type ServiceItemForCreateOrUpdate, type ServiceItemForUpdate, type ServiceItemPatch, ServiceOrderConflictErrorNameValues, type ServiceOrderConflictReason, type ServiceReportProperties, type ServiceResourceStepUsageType, type ServiceSessionDurationOptions, ServiceType, type ServiceTypePreset, ServiceTypePresetValues, type ServiceView, type ServiceViewDto, ServicesFacade, type ServicesResourcesReportProperties, type SessionDurationProperties, type SessionDurationPropertiesDto, type SessionDurationType, SessionDurationTypeValues, type SessionPrecisionType, SessionPrecisionTypeValues, type SetGroupItemReqDto, type ShareItemReq, type ShareItemReqDto, ShortUrlFacade, type SolutionData, type SolutionDataDto, type Filter as SolutionDataFilter, type StateManagementType, StateManagementTypeValues, type StepDescription, type StepDescriptionDto, type DictionarySortCondition as ThesaurusDictionarySortCondition, ThesaurusFacade, type TimePeriod, type TimeSelectionType, TimeSelectionTypeValues, type TimeSplitType, TimeSplitTypeValues, type TimeStepUiMode, TimeStepUiModeValues, type TimetableCase, type TimetableCaseDto, type TimetableDetailsVisibility, type TimetableDetailsVisibilityDto, type TimetableFilter, type TimetableFilterDto, type TimetableQueryOptions, type TimetableStatisticsResp, type TimetableStatisticsRespDto, type TimetableViewTypeValue, TimetableViewTypeValues, type TokenReq, type TokenReqDto, type TokenResp, type TokenRespDto, type TokenStatus, TokenStatusValueList, TokenStatusValues, type TorrowChildItemCreateOptions, TorrowClient, type TorrowClientConfig, TorrowIdError, type TorrowIdErrorReason, type TorrowItem, type TorrowItemCreateOptions, type TorrowItemDeleteOptions, type TorrowItemDto, type TorrowItemForCreateOrUpdate, type TorrowItemFromDto, type TorrowItemGetOptions, type TorrowItemPatchFields, type TorrowItemPatchImage, type TorrowItemPatchOptions, type TorrowItemPatchResult, type TorrowItemType, TorrowItemTypeValueList, TorrowItemTypeValues, type TorrowItemUpdateOptions, type TorrowItemView, type TorrowItemViewByTypeMap, type TorrowObject, type TorrowObjectDto, type TorrowObjectType, TorrowObjectTypeCode, type TorrowObjectTypeCodeValue, type TorrowObjectTypeDto, type TorrowOptions, type TorrowSdkEffect, TorrowSdkEffectArea, TorrowSdkEffectState, TorrowSdkError, TorrowSdkErrorCategory, type TorrowSdkErrorDetail, TorrowSdkErrorDomain, type TorrowSdkErrorInfo, type TorrowSdkErrorInit, type TorrowSdkHttpDetails, TorrowSdkRequestState, type TorrowSdkSensitiveDetails, type UnpackedTorrowId, type UnsetGroupItemReqDto, type UpdateAnnouncementStateReq, type UpdateAnnouncementStateReqDto, type UpdateCalendarItemOptions, type UpdateCaseItemOptions, type UpdateContactItemOptions, type UpdateContactPropertiesResp, type UpdateContactPropertiesRespDto, type UpdateFileIdResp, type UpdateFileIdRespDto, type UpdateItemAccountsReqDto, type UpdateItemGroupsReqDto, type UpdateMasterInfoReq, type UpdateMasterInfoReqDto, type UpdateOrderInfoReq, type UpdateOrderInfoReqDto, type UpdateOrderReq, type UpdateOrderReqDto, type UpdatePersonalListOrderReq, type UpdatePersonalListOrderReqDto, type UpdatePersonalListOrderResp, type UpdatePersonalListOrderRespDto, type UpdateProfilePropertiesResp, type UpdateProfilePropertiesRespDto, type UpdateResourceItemOptions, type UpdateServiceItemOptions, type UpdateViewListOrderReqDto, type UpdateViewListOrderRespDto, type UsageCondition, type UsageConditionType, UsageConditionTypeValues, type UsageType, UsageTypeValues, type UserAccessLevel, UserAccessLevelValues, type UserAccountsQuery, type UserCalendar, type UserCalendarDto, type UserDeliveryWay, type UserDeliveryWayDto, UserFacade, type UserFeedback, type UserFeedbackDto, type UserProfileItemForAdd, UserSettingsFacade, type UserSettingsInfo, type UserSettingsInfoDto, type UserTimetableQuery, UserViewsFacade, type VerificationMethod, VerificationMethodValueList, VerificationMethodValues, type VerifyCommunicationCodeReq, type VerifyCommunicationCodeReqDto, type VerifyCommunicationCodeResp, type VerifyCommunicationCodeRespDto, type VideoTelephony, type VideoTelephonyIntegration, type VideoTelephonyIntegrationForCreateOrUpdate, type VideoTelephonyIntegrationParameters, type ViewBlockSettings, type ViewInfo, type ViewInfoDto, type ViewListQuery, type ViewListRootQuery, type ViewOrderInput, ViewsFacade, type WebHookIntegration, type WebHookIntegrationForCreateOrUpdate, type WebHookIntegrationParameters, type WorkloadPeriod, type WorkloadPeriodDto, buildContextIconSvg, buildContextIconSvgBytes, cancelCaseParticipation, communicationHref, type components, createOrder, createServiceSessionDurationProperties, expandBookingWizardSteps, generateRid, generateServiceResourceGroupId, generateTorrowId, generateTorrowIdForOwner, getCase, getCheckInSchedule, getContextIconPresetFileName, getFreeCheckInSlots, getResourceGroupIdFromStep, getService, getServiceOrderConflictReason, getServiceResources, getServiceType, getServiceTypeFromSessionDurationProperties, getShardFromTorrowId, getStepParameter, getTicketPaymentUrl, getTicketPaymentUrlRaw, getTimeStepUiMode, getTorrowItemTypeFromTorrowId, getTorrowItemTypeFromTorrowIds, getTorrowObjectTypeFromTorrowId, isAccountType, isAuthCaptchaType, isAuthScope, isContextIconPreset, isDeviceType, isExternalCalendarIntegration, isFreeCheckInSlot, isItemViewSortCondition, isSendCodeAccountType, isServiceOrderConflictError, isStepFlag, isTokenRespReadyStatus, isTokenStatus, isTorrowItemType, isVerificationMethod, isVideoTelephonyIntegration, isWebHookIntegration, normalizePaymentUrl, packTorrowId, parseAccountType, parseAuthCaptchaType, parseAuthScope, parseContextIconPresetFromImage, parseDeviceType, parseSendCodeAccountType, parseTokenStatus, parseVerificationMethod, type paths, resolveCommunicationBrand, shouldSkipResourceStep, sortStepDescriptionsByOrder, torrowObjectTypeToCode, unpackTorrowId };
package/dist/index.js CHANGED
@@ -239,7 +239,7 @@ function normalizeTransportError(cause, request, signal, url, parsing = false) {
239
239
  if (cause instanceof TorrowSdkError) {
240
240
  return cause;
241
241
  }
242
- const cancelled = signal?.aborted || record(cause)?.name === "AbortError";
242
+ const cancelled = signal?.aborted || record(cause)?.name === "AbortError" /* Abort */;
243
243
  const category = cancelled ? "Cancelled" /* Cancelled */ : parsing ? "InvalidResponse" /* InvalidResponse */ : request === "Started" /* Started */ && cause instanceof TypeError ? "TransportFailure" /* TransportFailure */ : "Unknown" /* Unknown */;
244
244
  return new TorrowSdkError({ category, request, sensitive: { cause, url } });
245
245
  }
@@ -10960,6 +10960,21 @@ async function readOptionalFileMetadata(options) {
10960
10960
  }
10961
10961
  }
10962
10962
 
10963
+ // ../../src/resources/common/nested-rid-error.ts
10964
+ var NestedRidErrorCode = /* @__PURE__ */ ((NestedRidErrorCode2) => {
10965
+ NestedRidErrorCode2["InvalidRid"] = "InvalidRid";
10966
+ return NestedRidErrorCode2;
10967
+ })(NestedRidErrorCode || {});
10968
+ var NestedRidError = class extends Error {
10969
+ /** Машинная причина отказа; текст `message` остаётся диагностикой для человека. */
10970
+ code;
10971
+ /** Сохраняет прежнее сообщение об ошибке RID и задаёт машинную причину. */
10972
+ constructor(code, message) {
10973
+ super(message);
10974
+ this.code = code;
10975
+ }
10976
+ };
10977
+
10963
10978
  // ../../src/resources/common/nested-rid.ts
10964
10979
  function ensureNestedRidForWrite(item, path) {
10965
10980
  const { rid: rid2 } = item;
@@ -10968,7 +10983,10 @@ function ensureNestedRidForWrite(item, path) {
10968
10983
  return;
10969
10984
  }
10970
10985
  if (!isValidRid(rid2)) {
10971
- throw new Error(`Invalid rid for ${path}: expected ${TORROW_OBJECT_ID_HEX_LENGTH} hexadecimal characters`);
10986
+ throw new NestedRidError(
10987
+ "InvalidRid" /* InvalidRid */,
10988
+ `Invalid rid for ${path}: expected ${TORROW_OBJECT_ID_HEX_LENGTH} hexadecimal characters`
10989
+ );
10972
10990
  }
10973
10991
  }
10974
10992
 
@@ -18992,6 +19010,30 @@ function getTimeStepUiMode(session) {
18992
19010
  return TimeStepUiModeValues.SelectTime;
18993
19011
  }
18994
19012
 
19013
+ // ../../src/resources/services/service-builder-error.ts
19014
+ var ServiceBuilderErrorCode = /* @__PURE__ */ ((ServiceBuilderErrorCode2) => {
19015
+ ServiceBuilderErrorCode2["InvalidConfiguration"] = "InvalidConfiguration";
19016
+ return ServiceBuilderErrorCode2;
19017
+ })(ServiceBuilderErrorCode || {});
19018
+ var ServiceBuilderError = class extends TypeError {
19019
+ /** Стабильная машинная причина отказа конфигурации. */
19020
+ code;
19021
+ /** Создаёт локальный отказ с прежним сообщением и машинным кодом. */
19022
+ constructor(code, message) {
19023
+ super(message);
19024
+ this.code = code;
19025
+ }
19026
+ };
19027
+ var ServiceBuilderRangeError = class extends RangeError {
19028
+ /** Стабильная машинная причина отказа числового диапазона. */
19029
+ code;
19030
+ /** Создаёт локальный отказ диапазона с прежним сообщением и машинным кодом. */
19031
+ constructor(code, message) {
19032
+ super(message);
19033
+ this.code = code;
19034
+ }
19035
+ };
19036
+
18995
19037
  // ../../src/resources/services/service-builder.ts
18996
19038
  var RESOURCE_USAGE_TYPES = /* @__PURE__ */ new Set(["Specification", "Rent", "Sale"]);
18997
19039
  var GROUP_ID_PATTERN = /^[0-9a-f]{24}$/i;
@@ -19047,7 +19089,10 @@ function assertStepPosition(position, length) {
19047
19089
  return length + 1;
19048
19090
  }
19049
19091
  if (!Number.isInteger(position) || position < 1 || position > length + 1) {
19050
- throw new RangeError(`stepOrder must be an integer from 1 to ${length + 1}`);
19092
+ throw new ServiceBuilderRangeError(
19093
+ "InvalidConfiguration" /* InvalidConfiguration */,
19094
+ `stepOrder must be an integer from 1 to ${length + 1}`
19095
+ );
19051
19096
  }
19052
19097
  return position;
19053
19098
  }
@@ -19067,14 +19112,18 @@ var ServiceBuilder = class _ServiceBuilder {
19067
19112
  }
19068
19113
  withType(type, options) {
19069
19114
  if (type === ServiceType.Custom) {
19070
- throw new TypeError("ServiceType.Custom requires explicit sessionDurationProperties");
19115
+ throw new ServiceBuilderError(
19116
+ "InvalidConfiguration" /* InvalidConfiguration */,
19117
+ "ServiceType.Custom requires explicit sessionDurationProperties"
19118
+ );
19071
19119
  }
19072
19120
  this.draft.sessionDurationProperties = createServiceSessionDurationProperties(type, options);
19073
19121
  return this;
19074
19122
  }
19075
19123
  withSessionDurationProperties(properties) {
19076
19124
  if (!properties.sessionDurationType || !SESSION_DURATION_TYPES.has(properties.sessionDurationType) || !properties.timeSelectionType || !TIME_SELECTION_TYPES.has(properties.timeSelectionType) || !properties.stateManagementType || !STATE_MANAGEMENT_TYPES.has(properties.stateManagementType)) {
19077
- throw new TypeError(
19125
+ throw new ServiceBuilderError(
19126
+ "InvalidConfiguration" /* InvalidConfiguration */,
19078
19127
  "sessionDurationProperties must include sessionDurationType, timeSelectionType, and stateManagementType"
19079
19128
  );
19080
19129
  }
@@ -19083,12 +19132,18 @@ var ServiceBuilder = class _ServiceBuilder {
19083
19132
  }
19084
19133
  addResourceStep(input) {
19085
19134
  if (!RESOURCE_USAGE_TYPES.has(input.usageType)) {
19086
- throw new TypeError(`Unsupported resource group usageType: ${String(input.usageType)}`);
19135
+ throw new ServiceBuilderError(
19136
+ "InvalidConfiguration" /* InvalidConfiguration */,
19137
+ `Unsupported resource group usageType: ${String(input.usageType)}`
19138
+ );
19087
19139
  }
19088
19140
  const minResources = input.minResources ?? 1;
19089
19141
  const maxResources = input.maxResources ?? 1;
19090
19142
  if (input.autoChoiceResource === true && (minResources !== 1 || maxResources !== 1)) {
19091
- throw new RangeError("autoChoiceResource requires exactly one resource");
19143
+ throw new ServiceBuilderRangeError(
19144
+ "InvalidConfiguration" /* InvalidConfiguration */,
19145
+ "autoChoiceResource requires exactly one resource"
19146
+ );
19092
19147
  }
19093
19148
  const group = this.addResourceGroup(input, input.usageType);
19094
19149
  const groupId = group.groupId;
@@ -19126,18 +19181,27 @@ var ServiceBuilder = class _ServiceBuilder {
19126
19181
  setResourceGroupResourceIds(resourceGroupId, resourceIds) {
19127
19182
  const normalizedGroupId = resourceGroupId.trim();
19128
19183
  if (!normalizedGroupId) {
19129
- throw new TypeError("resourceGroupId must not be empty");
19184
+ throw new ServiceBuilderError("InvalidConfiguration" /* InvalidConfiguration */, "resourceGroupId must not be empty");
19130
19185
  }
19131
19186
  const normalizedResourceIds = resourceIds.map((resourceId) => resourceId.trim());
19132
19187
  if (normalizedResourceIds.some((resourceId) => !resourceId)) {
19133
- throw new TypeError("resourceIds must not contain empty ids");
19188
+ throw new ServiceBuilderError(
19189
+ "InvalidConfiguration" /* InvalidConfiguration */,
19190
+ "resourceIds must not contain empty ids"
19191
+ );
19134
19192
  }
19135
19193
  if (new Set(normalizedResourceIds).size !== normalizedResourceIds.length) {
19136
- throw new TypeError("resourceIds must not contain duplicates");
19194
+ throw new ServiceBuilderError(
19195
+ "InvalidConfiguration" /* InvalidConfiguration */,
19196
+ "resourceIds must not contain duplicates"
19197
+ );
19137
19198
  }
19138
19199
  const groups = this.draft.resourceGroupList ?? [];
19139
19200
  if (!groups.some((group) => group.groupId === normalizedGroupId)) {
19140
- throw new TypeError(`Service resource group not found: ${normalizedGroupId}`);
19201
+ throw new ServiceBuilderError(
19202
+ "InvalidConfiguration" /* InvalidConfiguration */,
19203
+ `Service resource group not found: ${normalizedGroupId}`
19204
+ );
19141
19205
  }
19142
19206
  this.draft.resourceGroupList = groups.map(
19143
19207
  (group) => group.groupId === normalizedGroupId ? { ...group, resourceIdList: [...normalizedResourceIds] } : group
@@ -19166,7 +19230,10 @@ var ServiceBuilder = class _ServiceBuilder {
19166
19230
  }
19167
19231
  addSingletonStep(stepType, stepOrder) {
19168
19232
  if (this.draft.stepDescriptionList?.some((step) => step.stepType === stepType)) {
19169
- throw new TypeError(`Service already contains step type ${stepType}`);
19233
+ throw new ServiceBuilderError(
19234
+ "InvalidConfiguration" /* InvalidConfiguration */,
19235
+ `Service already contains step type ${stepType}`
19236
+ );
19170
19237
  }
19171
19238
  this.insertStep({ stepType }, stepOrder);
19172
19239
  return this;
@@ -19175,21 +19242,36 @@ var ServiceBuilder = class _ServiceBuilder {
19175
19242
  const key = input.key.trim();
19176
19243
  const groupName = input.groupName.trim();
19177
19244
  if (!key) {
19178
- throw new TypeError("Resource group key must not be empty");
19245
+ throw new ServiceBuilderError(
19246
+ "InvalidConfiguration" /* InvalidConfiguration */,
19247
+ "Resource group key must not be empty"
19248
+ );
19179
19249
  }
19180
19250
  if (!groupName) {
19181
- throw new TypeError("Resource group name must not be empty");
19251
+ throw new ServiceBuilderError(
19252
+ "InvalidConfiguration" /* InvalidConfiguration */,
19253
+ "Resource group name must not be empty"
19254
+ );
19182
19255
  }
19183
19256
  if (this.addedGroups.has(key)) {
19184
- throw new TypeError(`Duplicate resource group key: ${key}`);
19257
+ throw new ServiceBuilderError(
19258
+ "InvalidConfiguration" /* InvalidConfiguration */,
19259
+ `Duplicate resource group key: ${key}`
19260
+ );
19185
19261
  }
19186
19262
  const groupId = input.groupId ?? generateServiceResourceGroupId();
19187
19263
  if (!GROUP_ID_PATTERN.test(groupId)) {
19188
- throw new TypeError("Resource group id must be a 24-character hexadecimal string");
19264
+ throw new ServiceBuilderError(
19265
+ "InvalidConfiguration" /* InvalidConfiguration */,
19266
+ "Resource group id must be a 24-character hexadecimal string"
19267
+ );
19189
19268
  }
19190
19269
  const groups = [...this.draft.resourceGroupList ?? []];
19191
19270
  if (groups.some((group2) => group2.groupId === groupId)) {
19192
- throw new TypeError(`Duplicate resource group id: ${groupId}`);
19271
+ throw new ServiceBuilderError(
19272
+ "InvalidConfiguration" /* InvalidConfiguration */,
19273
+ `Duplicate resource group id: ${groupId}`
19274
+ );
19193
19275
  }
19194
19276
  const minResources = input.minResources ?? 1;
19195
19277
  const maxResources = input.maxResources ?? 1;
@@ -19199,11 +19281,17 @@ var ServiceBuilder = class _ServiceBuilder {
19199
19281
  ["maxTotalAmount", input.maxTotalAmount]
19200
19282
  ]) {
19201
19283
  if (value != null && (!Number.isInteger(value) || value < 0)) {
19202
- throw new RangeError(`${name} must be a non-negative integer`);
19284
+ throw new ServiceBuilderRangeError(
19285
+ "InvalidConfiguration" /* InvalidConfiguration */,
19286
+ `${name} must be a non-negative integer`
19287
+ );
19203
19288
  }
19204
19289
  }
19205
19290
  if (minResources > maxResources) {
19206
- throw new RangeError("minResources must not exceed maxResources");
19291
+ throw new ServiceBuilderRangeError(
19292
+ "InvalidConfiguration" /* InvalidConfiguration */,
19293
+ "minResources must not exceed maxResources"
19294
+ );
19207
19295
  }
19208
19296
  const group = {
19209
19297
  groupId,
@@ -19256,10 +19344,16 @@ var ServiceBuilder = class _ServiceBuilder {
19256
19344
  const ids = /* @__PURE__ */ new Set();
19257
19345
  for (const group of groups) {
19258
19346
  if (!group.groupId || !GROUP_ID_PATTERN.test(group.groupId)) {
19259
- throw new TypeError("Every resource group must have a valid 24-character hexadecimal id");
19347
+ throw new ServiceBuilderError(
19348
+ "InvalidConfiguration" /* InvalidConfiguration */,
19349
+ "Every resource group must have a valid 24-character hexadecimal id"
19350
+ );
19260
19351
  }
19261
19352
  if (ids.has(group.groupId)) {
19262
- throw new TypeError(`Duplicate resource group id: ${group.groupId}`);
19353
+ throw new ServiceBuilderError(
19354
+ "InvalidConfiguration" /* InvalidConfiguration */,
19355
+ `Duplicate resource group id: ${group.groupId}`
19356
+ );
19263
19357
  }
19264
19358
  ids.add(group.groupId);
19265
19359
  }
@@ -19270,10 +19364,16 @@ var ServiceBuilder = class _ServiceBuilder {
19270
19364
  }
19271
19365
  const groupId = getResourceGroupIdFromStep(step);
19272
19366
  if (!groupId || !ids.has(groupId)) {
19273
- throw new TypeError(`Resource step references an unknown resource group: ${groupId ?? ""}`);
19367
+ throw new ServiceBuilderError(
19368
+ "InvalidConfiguration" /* InvalidConfiguration */,
19369
+ `Resource step references an unknown resource group: ${groupId ?? ""}`
19370
+ );
19274
19371
  }
19275
19372
  if (usedIds.has(groupId)) {
19276
- throw new TypeError(`Resource group is used by more than one step: ${groupId}`);
19373
+ throw new ServiceBuilderError(
19374
+ "InvalidConfiguration" /* InvalidConfiguration */,
19375
+ `Resource group is used by more than one step: ${groupId}`
19376
+ );
19277
19377
  }
19278
19378
  usedIds.add(groupId);
19279
19379
  }
@@ -19394,6 +19494,21 @@ function getTicketPaymentUrl(caseItem) {
19394
19494
  return normalizePaymentUrl(getTicketPaymentUrlRaw(caseItem));
19395
19495
  }
19396
19496
 
19497
+ // ../../src/resources/resources/resource-builder-error.ts
19498
+ var ResourceBuilderErrorCode = /* @__PURE__ */ ((ResourceBuilderErrorCode2) => {
19499
+ ResourceBuilderErrorCode2["InvalidServiceLink"] = "InvalidServiceLink";
19500
+ return ResourceBuilderErrorCode2;
19501
+ })(ResourceBuilderErrorCode || {});
19502
+ var ResourceBuilderError = class extends TypeError {
19503
+ /** Стабильная машинная причина отказа связи. */
19504
+ code;
19505
+ /** Сохраняет прежний текст TypeError и предоставляет машинный код. */
19506
+ constructor(code, message) {
19507
+ super(message);
19508
+ this.code = code;
19509
+ }
19510
+ };
19511
+
19397
19512
  // ../../src/resources/resources/resource-builder.ts
19398
19513
  function cloneValue2(value) {
19399
19514
  if (value instanceof Date) {
@@ -19429,21 +19544,30 @@ var ResourceBuilder = class _ResourceBuilder {
19429
19544
  attachToService(service, resourceGroupId, options) {
19430
19545
  const serviceId = service.id?.trim();
19431
19546
  if (!serviceId) {
19432
- throw new TypeError("Service must have a non-empty id");
19547
+ throw new ResourceBuilderError("InvalidServiceLink" /* InvalidServiceLink */, "Service must have a non-empty id");
19433
19548
  }
19434
19549
  const normalizedGroupId = resourceGroupId.trim();
19435
19550
  if (!normalizedGroupId) {
19436
- throw new TypeError("resourceGroupId must not be empty");
19551
+ throw new ResourceBuilderError("InvalidServiceLink" /* InvalidServiceLink */, "resourceGroupId must not be empty");
19437
19552
  }
19438
19553
  const group = service.resourceGroupList?.find((item) => item.groupId === normalizedGroupId);
19439
19554
  if (!group) {
19440
- throw new TypeError(`Service resource group not found: ${normalizedGroupId}`);
19555
+ throw new ResourceBuilderError(
19556
+ "InvalidServiceLink" /* InvalidServiceLink */,
19557
+ `Service resource group not found: ${normalizedGroupId}`
19558
+ );
19441
19559
  }
19442
19560
  if (!group.usageType) {
19443
- throw new TypeError("Service resource group has no usageType");
19561
+ throw new ResourceBuilderError(
19562
+ "InvalidServiceLink" /* InvalidServiceLink */,
19563
+ "Service resource group has no usageType"
19564
+ );
19444
19565
  }
19445
19566
  if (this.draft.usageType != null && this.draft.usageType !== group.usageType) {
19446
- throw new TypeError("Resource usageType does not match the service resource group");
19567
+ throw new ResourceBuilderError(
19568
+ "InvalidServiceLink" /* InvalidServiceLink */,
19569
+ "Resource usageType does not match the service resource group"
19570
+ );
19447
19571
  }
19448
19572
  const descriptions = [...this.draft.serviceDescriptions ?? []];
19449
19573
  const matching = descriptions.filter((item) => isSameBinding(item, serviceId, normalizedGroupId));
@@ -19630,6 +19754,8 @@ export {
19630
19754
  LoyaltyCardUpdateNonKeyInformationValues,
19631
19755
  LoyaltyCardsFacade,
19632
19756
  LoyaltySystemsFacade,
19757
+ NestedRidError,
19758
+ NestedRidErrorCode,
19633
19759
  NoteTypeValues,
19634
19760
  NotesFacade,
19635
19761
  OtpErrorReason,
@@ -19647,12 +19773,17 @@ export {
19647
19773
  RelationsFacade,
19648
19774
  ReportsFacade,
19649
19775
  ResourceBuilder,
19776
+ ResourceBuilderError,
19777
+ ResourceBuilderErrorCode,
19650
19778
  ResourcesFacade,
19651
19779
  SearchFacade,
19652
19780
  SendCodeAccountTypeValueList,
19653
19781
  SendCodeAccountTypeValues,
19654
19782
  ServiceBehaviorSettingsIssueReason,
19655
19783
  ServiceBuilder,
19784
+ ServiceBuilderError,
19785
+ ServiceBuilderErrorCode,
19786
+ ServiceBuilderRangeError,
19656
19787
  ServiceCheckInWizardStepParameterName,
19657
19788
  ServiceCheckInWizardStepType,
19658
19789
  ServiceOrderConflictErrorNameValues,