@torrow/sdk-client 0.18.1 → 0.19.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
@@ -37538,7 +37538,41 @@ declare enum TorrowSdkErrorDomain {
37538
37538
  /** Частичное обновление item через GET и CAS PUT. */ ItemPatch = "ItemPatch",
37539
37539
  /** Настройки поведения услуг и ресурсов. */ BehaviorSettings = "BehaviorSettings",
37540
37540
  /** Пошаговый OTP. */ Otp = "Otp",
37541
- /** Сессия токенов и составной вход. */ AuthSession = "AuthSession"
37541
+ /** Сессия токенов и составной вход. */ AuthSession = "AuthSession",
37542
+ /** Защищённые изменения Профилей пользователя. */ Profiles = "Profiles"
37543
+ }
37544
+ /** Стабильная причина отказа при изменении Профилей. */
37545
+ declare enum ProfileErrorReason {
37546
+ /** Цель не входит в Профили текущей учётной записи. */ TargetNotProfile = "TargetNotProfile",
37547
+ /** Нельзя снять последнюю профильную связь. */ LastProfile = "LastProfile",
37548
+ /** Нельзя снять выбранный default Профиль. */ SelectedDefault = "SelectedDefault",
37549
+ /** Список Профилей не доказывает безопасное изменение. */ UnusableProfileList = "UnusableProfileList",
37550
+ /** Выбранный default не доказан. */ UnusableDefault = "UnusableDefault"
37551
+ }
37552
+ /** Имена защищённых операций с Профилями. */
37553
+ declare enum ProfileOperation {
37554
+ /** Назначение существующего Профиля default. */ SetDefaultProfileByContactId = "setDefaultProfileByContactId",
37555
+ /** Снятие связи Профиля. */ Remove = "remove"
37556
+ }
37557
+ /** Стадии защищённых операций с Профилями. */
37558
+ declare enum ProfileFailureAt {
37559
+ /** Проверка аргумента. */ ValidateInput = "ValidateInput",
37560
+ /** Предварительное чтение списка. */ ReadProfiles = "ReadProfiles",
37561
+ /** Проверка списка и членства. */ ValidateProfiles = "ValidateProfiles",
37562
+ /** Чтение выбранного default. */ ReadDefault = "ReadDefault",
37563
+ /** Проверка выбранного default. */ ValidateDefault = "ValidateDefault",
37564
+ /** Целевая запись. */ Write = "Write",
37565
+ /** Проверка ответа записи. */ ValidateWriteResponse = "ValidateWriteResponse",
37566
+ /** Проекция подтверждённого ответа. */ ProjectResponse = "ProjectResponse"
37567
+ }
37568
+ /** Шаг изменения Профилей; не транзакция внутренних действий сервера. */
37569
+ declare enum ProfileEffectStep {
37570
+ /** Целевой PUT или DELETE. */ Write = "Write"
37571
+ }
37572
+ /** Безопасное предметное уточнение операций с Профилями. */
37573
+ interface ProfileErrorDetail {
37574
+ /** Домен Профилей. */ readonly domain: TorrowSdkErrorDomain.Profiles;
37575
+ /** Стабильная причина защитного отказа; отсутствие означает, что достаточно общей категории. */ readonly reason?: ProfileErrorReason;
37542
37576
  }
37543
37577
  /** Причины недостаточных данных для чтения метаданных файла. */
37544
37578
  declare enum FileMetadataErrorReason {
@@ -37604,7 +37638,7 @@ declare enum AuthSessionEffectStep {
37604
37638
  /** Безопасное описание отдельного изменения; не журнал всех вызовов. */
37605
37639
  interface TorrowSdkEffect {
37606
37640
  /** Область изменения. */ readonly area: TorrowSdkEffectArea;
37607
- /** Предметный шаг выбранного метода. */ readonly step: BehaviorSettingsEffectStep | AuthSessionEffectStep | ItemPatchEffectStep;
37641
+ /** Предметный шаг выбранного метода. */ readonly step: BehaviorSettingsEffectStep | AuthSessionEffectStep | ItemPatchEffectStep | ProfileEffectStep;
37608
37642
  /** Доказанность результата шага. */ readonly state: TorrowSdkEffectState;
37609
37643
  }
37610
37644
  /** Предметное уточнение настроек. */
@@ -37630,7 +37664,7 @@ interface AuthSessionErrorDetail {
37630
37664
  /** Дополнительное уточнение; отсутствие означает, что достаточно category. */ readonly reason?: AuthSessionErrorReason;
37631
37665
  }
37632
37666
  /** Поддержанные предметные детали ошибки. */
37633
- type TorrowSdkErrorDetail = BehaviorSettingsErrorDetail | ItemPatchErrorDetail | OtpErrorDetail | AuthSessionErrorDetail | FileMetadataErrorDetail;
37667
+ type TorrowSdkErrorDetail = BehaviorSettingsErrorDetail | ItemPatchErrorDetail | OtpErrorDetail | AuthSessionErrorDetail | FileMetadataErrorDetail | ProfileErrorDetail;
37634
37668
  /** Безопасные HTTP-метаданные без тела и URL. */
37635
37669
  interface TorrowSdkHttpDetails {
37636
37670
  /** Статус полученного ответа. */ readonly status: number;
@@ -40911,7 +40945,13 @@ declare class ProfilesFacade {
40911
40945
  updateProfileProperties(profileId: string, body: ProfileProperties, options?: {
40912
40946
  signal?: AbortSignal;
40913
40947
  }): Promise<TorrowObject | undefined>;
40914
- /** `DELETE /api/v1/user/profiles/{profileId}` — удалить Профиль; возвращает актуальный **`personalContactList`**. */
40948
+ /**
40949
+ * `DELETE /api/v1/user/profiles/{profileId}` — снять связь Профиля, сохранив другой Профиль и выбранный SDK default.
40950
+ * Проверяет список и default до DELETE; fallback default может повторно прочитать список, но первый снимок остаётся условием.
40951
+ * Успех возвращает `personalContactList` как `ContactItem[]`; Contact не удаляется. GET→DELETE не атомарны.
40952
+ * @param profileId Точный ID привязанного Contact; на wire кодируется как сегмент пути.
40953
+ * @param options Общий signal предварительных чтений и целевого DELETE.
40954
+ */
40915
40955
  remove(profileId: string, options?: {
40916
40956
  signal?: AbortSignal;
40917
40957
  }): Promise<ContactItem[]>;
@@ -41972,7 +42012,13 @@ declare class UserFacade {
41972
42012
  getDefaultProfile(options?: {
41973
42013
  signal?: AbortSignal;
41974
42014
  }): Promise<ContactItem | null>;
41975
- /** `PUT /api/v1/user/defaultprofile` */
42015
+ /**
42016
+ * `PUT /api/v1/user/defaultprofile` — назначает только Contact, доказанно входящий в Профили учётной записи.
42017
+ * Предварительный список и целевой PUT используют один signal; между ними возможна серверная гонка.
42018
+ * При отказе `TorrowSdkError.effects` описывает только целевой PUT, а не предварительный GET.
42019
+ * @param contactId Точный ID Contact из `profiles.list`; не нормализуется.
42020
+ * @param options Параметры всей цепочки, включая общий signal отмены.
42021
+ */
41976
42022
  setDefaultProfileByContactId(contactId: string, options?: {
41977
42023
  signal?: AbortSignal;
41978
42024
  }): Promise<ContactItem>;
@@ -42932,4 +42978,4 @@ declare class ResourceBuilder {
42932
42978
  build(): ResourceBuildResult;
42933
42979
  }
42934
42980
 
42935
- 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 CalendarItemPatchScheduleRangeExceptions, type CalendarItemPatchTimeRange, type CalendarView, type CalendarViewDto, CalendarsFacade, type CancelCaseParticipationReq, type CancelCaseParticipationReqDto, type CancelMyCaseParticipationReqDto, type CancelOtherCaseParticipationReqDto, type CaseItem, type CaseItemDto, 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 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, type ProfileListResp, type ProfileListRespDto, 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 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 };
42981
+ 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 CalendarItemPatchScheduleRangeExceptions, type CalendarItemPatchTimeRange, type CalendarView, type CalendarViewDto, CalendarsFacade, type CancelCaseParticipationReq, type CancelCaseParticipationReqDto, type CancelMyCaseParticipationReqDto, type CancelOtherCaseParticipationReqDto, type CaseItem, type CaseItemDto, 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 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 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 };
package/dist/index.js CHANGED
@@ -52,8 +52,37 @@ var TorrowSdkErrorDomain = /* @__PURE__ */ ((TorrowSdkErrorDomain2) => {
52
52
  TorrowSdkErrorDomain2["BehaviorSettings"] = "BehaviorSettings";
53
53
  TorrowSdkErrorDomain2["Otp"] = "Otp";
54
54
  TorrowSdkErrorDomain2["AuthSession"] = "AuthSession";
55
+ TorrowSdkErrorDomain2["Profiles"] = "Profiles";
55
56
  return TorrowSdkErrorDomain2;
56
57
  })(TorrowSdkErrorDomain || {});
58
+ var ProfileErrorReason = /* @__PURE__ */ ((ProfileErrorReason2) => {
59
+ ProfileErrorReason2["TargetNotProfile"] = "TargetNotProfile";
60
+ ProfileErrorReason2["LastProfile"] = "LastProfile";
61
+ ProfileErrorReason2["SelectedDefault"] = "SelectedDefault";
62
+ ProfileErrorReason2["UnusableProfileList"] = "UnusableProfileList";
63
+ ProfileErrorReason2["UnusableDefault"] = "UnusableDefault";
64
+ return ProfileErrorReason2;
65
+ })(ProfileErrorReason || {});
66
+ var ProfileOperation = /* @__PURE__ */ ((ProfileOperation2) => {
67
+ ProfileOperation2["SetDefaultProfileByContactId"] = "setDefaultProfileByContactId";
68
+ ProfileOperation2["Remove"] = "remove";
69
+ return ProfileOperation2;
70
+ })(ProfileOperation || {});
71
+ var ProfileFailureAt = /* @__PURE__ */ ((ProfileFailureAt2) => {
72
+ ProfileFailureAt2["ValidateInput"] = "ValidateInput";
73
+ ProfileFailureAt2["ReadProfiles"] = "ReadProfiles";
74
+ ProfileFailureAt2["ValidateProfiles"] = "ValidateProfiles";
75
+ ProfileFailureAt2["ReadDefault"] = "ReadDefault";
76
+ ProfileFailureAt2["ValidateDefault"] = "ValidateDefault";
77
+ ProfileFailureAt2["Write"] = "Write";
78
+ ProfileFailureAt2["ValidateWriteResponse"] = "ValidateWriteResponse";
79
+ ProfileFailureAt2["ProjectResponse"] = "ProjectResponse";
80
+ return ProfileFailureAt2;
81
+ })(ProfileFailureAt || {});
82
+ var ProfileEffectStep = /* @__PURE__ */ ((ProfileEffectStep2) => {
83
+ ProfileEffectStep2["Write"] = "Write";
84
+ return ProfileEffectStep2;
85
+ })(ProfileEffectStep || {});
57
86
  var FileMetadataErrorReason = /* @__PURE__ */ ((FileMetadataErrorReason2) => {
58
87
  FileMetadataErrorReason2["ContentTypeUnavailable"] = "ContentTypeUnavailable";
59
88
  FileMetadataErrorReason2["SubscriptionIsNotValid"] = "SubscriptionIsNotValid";
@@ -15652,6 +15681,63 @@ function prepareUserProfileItemForAdd(body) {
15652
15681
  return payload;
15653
15682
  }
15654
15683
 
15684
+ // ../../src/resources/user-profiles/profile-list-response-error.ts
15685
+ var ProfileListResponseError = class extends Error {
15686
+ constructor(message, cause) {
15687
+ super(message, { cause });
15688
+ }
15689
+ };
15690
+
15691
+ // ../../src/resources/user-profiles/read-default-profile.ts
15692
+ async function readDefaultProfile(http, listProfiles, options) {
15693
+ const dto = await http.requestJson({
15694
+ method: "GET",
15695
+ path: "/api/v1/user/defaultprofile",
15696
+ signal: options?.signal
15697
+ });
15698
+ if (dto !== null && dto !== void 0) {
15699
+ return projectContactItem(dto);
15700
+ }
15701
+ return (await listProfiles())[0] ?? null;
15702
+ }
15703
+
15704
+ // ../../src/resources/user-profiles/profile-write-guard.ts
15705
+ function assertUsableProfileIds(profiles) {
15706
+ const ids = /* @__PURE__ */ new Set();
15707
+ if (!Array.isArray(profiles) || profiles.length === 0 || profiles.some((profile) => {
15708
+ const id = profile?.id;
15709
+ if (typeof id !== "string" || id.trim().length === 0 || ids.has(id)) {
15710
+ return true;
15711
+ }
15712
+ ids.add(id);
15713
+ return false;
15714
+ })) {
15715
+ throw new TorrowSdkError({
15716
+ category: "InsufficientData" /* InsufficientData */,
15717
+ detail: { domain: "Profiles" /* Profiles */, reason: "UnusableProfileList" /* UnusableProfileList */ }
15718
+ });
15719
+ }
15720
+ return ids;
15721
+ }
15722
+ function contextualizeProfileWriteError(cause, operation, failureAt, dispatched, effect) {
15723
+ const error = cause instanceof TorrowSdkError ? cause : new TorrowSdkError({
15724
+ category: cause instanceof ProfileListResponseError || failureAt === "ProjectResponse" /* ProjectResponse */ && cause instanceof Error ? "InvalidResponse" /* InvalidResponse */ : "Unknown" /* Unknown */,
15725
+ sensitive: { cause }
15726
+ });
15727
+ const detail = cause instanceof ProfileListResponseError ? {
15728
+ domain: "Profiles" /* Profiles */,
15729
+ reason: failureAt === "ReadProfiles" /* ReadProfiles */ ? "UnusableProfileList" /* UnusableProfileList */ : "UnusableDefault" /* UnusableDefault */
15730
+ } : error.detail?.domain === "Profiles" /* Profiles */ ? error.detail : { domain: "Profiles" /* Profiles */ };
15731
+ const writeState = effect === "Applied" /* Applied */ ? effect : dispatched ? "Unknown" /* Unknown */ : "NotApplied" /* NotApplied */;
15732
+ return error.withContext({
15733
+ detail,
15734
+ operation,
15735
+ failureAt,
15736
+ request: dispatched ? "Started" /* Started */ : "NotStarted" /* NotStarted */,
15737
+ effects: [{ area: "Remote" /* Remote */, step: "Write" /* Write */, state: writeState }]
15738
+ });
15739
+ }
15740
+
15655
15741
  // ../../src/resources/user-profiles/ProfilesFacade.ts
15656
15742
  var BASE11 = "/api/v1/user/profiles";
15657
15743
  var ProfilesFacade = class {
@@ -15671,16 +15757,20 @@ var ProfilesFacade = class {
15671
15757
  signal: options?.signal
15672
15758
  });
15673
15759
  if (resp === null || typeof resp !== "object") {
15674
- throw new Error("GET /api/v1/user/profiles: expected a JSON object body");
15760
+ throw new ProfileListResponseError("GET /api/v1/user/profiles: expected a JSON object body");
15675
15761
  }
15676
15762
  const pl = resp.profileList;
15677
15763
  if (pl === void 0 || pl === null) {
15678
15764
  return projectReadList([], (dto) => projectContactItem(dto));
15679
15765
  }
15680
15766
  if (!Array.isArray(pl)) {
15681
- throw new Error("GET /api/v1/user/profiles: profileList must be an array when present");
15767
+ throw new ProfileListResponseError("GET /api/v1/user/profiles: profileList must be an array when present");
15768
+ }
15769
+ try {
15770
+ return projectReadList(pl, (dto) => projectContactItem(dto));
15771
+ } catch (cause) {
15772
+ throw new ProfileListResponseError("GET /api/v1/user/profiles: invalid profile projection", cause);
15682
15773
  }
15683
- return projectReadList(pl, (dto) => projectContactItem(dto));
15684
15774
  }
15685
15775
  /**
15686
15776
  * `POST /api/v1/user/profiles` — создать Профиль по телу **`UserProfileItemForAdd`** (контакт для write + поля Профиля).
@@ -15724,14 +15814,65 @@ var ProfilesFacade = class {
15724
15814
  });
15725
15815
  return unwrapTorrowObjectFromProfilePropertiesUpdate(resp);
15726
15816
  }
15727
- /** `DELETE /api/v1/user/profiles/{profileId}` — удалить Профиль; возвращает актуальный **`personalContactList`**. */
15817
+ /**
15818
+ * `DELETE /api/v1/user/profiles/{profileId}` — снять связь Профиля, сохранив другой Профиль и выбранный SDK default.
15819
+ * Проверяет список и default до DELETE; fallback default может повторно прочитать список, но первый снимок остаётся условием.
15820
+ * Успех возвращает `personalContactList` как `ContactItem[]`; Contact не удаляется. GET→DELETE не атомарны.
15821
+ * @param profileId Точный ID привязанного Contact; на wire кодируется как сегмент пути.
15822
+ * @param options Общий signal предварительных чтений и целевого DELETE.
15823
+ */
15728
15824
  async remove(profileId, options) {
15729
- const resp = await this.http.requestJson({
15730
- method: "DELETE",
15731
- path: `${BASE11}/${encodePathSegment(profileId)}`,
15732
- signal: options?.signal
15733
- });
15734
- return projectReadList(unwrapRemoveProfileList(resp), (dto) => projectContactItem(dto));
15825
+ let failureAt = "ValidateInput" /* ValidateInput */;
15826
+ let dispatched = false;
15827
+ let effect = "NotApplied" /* NotApplied */;
15828
+ try {
15829
+ if (typeof profileId !== "string" || profileId.trim().length === 0) {
15830
+ throw new TorrowSdkError({ category: "InvalidInput" /* InvalidInput */ });
15831
+ }
15832
+ failureAt = "ReadProfiles" /* ReadProfiles */;
15833
+ const profiles = await this.list(options);
15834
+ failureAt = "ValidateProfiles" /* ValidateProfiles */;
15835
+ const ids = assertUsableProfileIds(profiles);
15836
+ if (!ids.has(profileId)) {
15837
+ throw new TorrowSdkError({
15838
+ category: "InvalidState" /* InvalidState */,
15839
+ detail: { domain: "Profiles" /* Profiles */, reason: "TargetNotProfile" /* TargetNotProfile */ }
15840
+ });
15841
+ }
15842
+ if (profiles.length === 1) {
15843
+ throw new TorrowSdkError({
15844
+ category: "InvalidState" /* InvalidState */,
15845
+ detail: { domain: "Profiles" /* Profiles */, reason: "LastProfile" /* LastProfile */ }
15846
+ });
15847
+ }
15848
+ failureAt = "ReadDefault" /* ReadDefault */;
15849
+ const selected = await readDefaultProfile(this.http, () => this.list(options), options);
15850
+ failureAt = "ValidateDefault" /* ValidateDefault */;
15851
+ if (typeof selected?.id !== "string" || selected.id.trim().length === 0 || !ids.has(selected.id)) {
15852
+ throw new TorrowSdkError({
15853
+ category: "InsufficientData" /* InsufficientData */,
15854
+ detail: { domain: "Profiles" /* Profiles */, reason: "UnusableDefault" /* UnusableDefault */ }
15855
+ });
15856
+ }
15857
+ if (selected.id === profileId) {
15858
+ throw new TorrowSdkError({
15859
+ category: "InvalidState" /* InvalidState */,
15860
+ detail: { domain: "Profiles" /* Profiles */, reason: "SelectedDefault" /* SelectedDefault */ }
15861
+ });
15862
+ }
15863
+ failureAt = "Write" /* Write */;
15864
+ const resp = await this.http.requestJson(
15865
+ { method: "DELETE", path: `${BASE11}/${encodePathSegment(profileId)}`, signal: options?.signal },
15866
+ () => {
15867
+ dispatched = true;
15868
+ }
15869
+ );
15870
+ effect = "Applied" /* Applied */;
15871
+ failureAt = "ProjectResponse" /* ProjectResponse */;
15872
+ return projectReadList(unwrapRemoveProfileList(resp), (dto) => projectContactItem(dto));
15873
+ } catch (cause) {
15874
+ throw contextualizeProfileWriteError(cause, "remove" /* Remove */, failureAt, dispatched, effect);
15875
+ }
15735
15876
  }
15736
15877
  };
15737
15878
 
@@ -17088,25 +17229,61 @@ var UserFacade = class {
17088
17229
  * @param options Параметры чтения: signal — отмена всей цепочки запросов.
17089
17230
  */
17090
17231
  async getDefaultProfile(options) {
17091
- const dto = await this.http.requestJson({
17092
- method: "GET",
17093
- path: `${BASE20}/defaultprofile`,
17094
- signal: options?.signal
17095
- });
17096
- if (dto !== null && dto !== void 0) {
17097
- return projectContactItem(dto);
17098
- }
17099
- return (await this.profiles.list(options))[0] ?? null;
17232
+ return readDefaultProfile(this.http, () => this.profiles.list(options), options);
17100
17233
  }
17101
- /** `PUT /api/v1/user/defaultprofile` */
17234
+ /**
17235
+ * `PUT /api/v1/user/defaultprofile` — назначает только Contact, доказанно входящий в Профили учётной записи.
17236
+ * Предварительный список и целевой PUT используют один signal; между ними возможна серверная гонка.
17237
+ * При отказе `TorrowSdkError.effects` описывает только целевой PUT, а не предварительный GET.
17238
+ * @param contactId Точный ID Contact из `profiles.list`; не нормализуется.
17239
+ * @param options Параметры всей цепочки, включая общий signal отмены.
17240
+ */
17102
17241
  async setDefaultProfileByContactId(contactId, options) {
17103
- const resp = await this.http.requestJson({
17104
- method: "PUT",
17105
- path: `${BASE20}/defaultprofile`,
17106
- body: contactId,
17107
- signal: options?.signal
17108
- });
17109
- return projectContactItem(unwrapAddProfileContact(resp));
17242
+ let failureAt = "ValidateInput" /* ValidateInput */;
17243
+ let dispatched = false;
17244
+ let effect = "NotApplied" /* NotApplied */;
17245
+ try {
17246
+ if (typeof contactId !== "string" || contactId.trim().length === 0) {
17247
+ throw new TorrowSdkError({ category: "InvalidInput" /* InvalidInput */ });
17248
+ }
17249
+ failureAt = "ReadProfiles" /* ReadProfiles */;
17250
+ const profiles = await this.profiles.list(options);
17251
+ failureAt = "ValidateProfiles" /* ValidateProfiles */;
17252
+ const ids = assertUsableProfileIds(profiles);
17253
+ if (!ids.has(contactId)) {
17254
+ throw new TorrowSdkError({
17255
+ category: "InvalidState" /* InvalidState */,
17256
+ detail: { domain: "Profiles" /* Profiles */, reason: "TargetNotProfile" /* TargetNotProfile */ }
17257
+ });
17258
+ }
17259
+ failureAt = "Write" /* Write */;
17260
+ const resp = await this.http.requestJson(
17261
+ { method: "PUT", path: `${BASE20}/defaultprofile`, body: contactId, signal: options?.signal },
17262
+ () => {
17263
+ dispatched = true;
17264
+ }
17265
+ );
17266
+ effect = "Unknown" /* Unknown */;
17267
+ failureAt = "ValidateWriteResponse" /* ValidateWriteResponse */;
17268
+ const profile = resp?.profile;
17269
+ if (!profile || typeof profile !== "object" || Array.isArray(profile) || profile.id !== contactId) {
17270
+ throw new TorrowSdkError({
17271
+ category: "InvalidResponse" /* InvalidResponse */,
17272
+ sensitive: { body: resp }
17273
+ });
17274
+ }
17275
+ effect = "Applied" /* Applied */;
17276
+ failureAt = "ProjectResponse" /* ProjectResponse */;
17277
+ return projectContactItem(profile);
17278
+ } catch (cause) {
17279
+ throw contextualizeProfileWriteError(
17280
+ cause,
17281
+ "setDefaultProfileByContactId" /* SetDefaultProfileByContactId */,
17282
+ failureAt,
17283
+ dispatched,
17284
+ effect
17285
+ );
17286
+ }
17110
17287
  }
17111
17288
  /**
17112
17289
  * `POST /api/v1/user/defaultprofile` — создать и назначить дефолтный профиль.
@@ -19112,6 +19289,10 @@ export {
19112
19289
  ParticipationFieldTypeValues,
19113
19290
  PaymentProviderTypeValues,
19114
19291
  PinnedViewsFacade,
19292
+ ProfileEffectStep,
19293
+ ProfileErrorReason,
19294
+ ProfileFailureAt,
19295
+ ProfileOperation,
19115
19296
  ProfileTypeValues,
19116
19297
  ProfilesFacade,
19117
19298
  RawClient,