@torrow/sdk-client 0.19.0 → 0.21.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
@@ -34907,7 +34907,6 @@ interface components {
34907
34907
  description?: string | null;
34908
34908
  /** Format: int32 */
34909
34909
  calendarViewIndex?: number | null;
34910
- scheduleRangeExceptions?: components["schemas"]["ScheduleRangeExceptions"];
34911
34910
  name?: string | null;
34912
34911
  uniqueName?: string | null;
34913
34912
  image?: components["schemas"]["FileInfo"];
@@ -38229,8 +38228,35 @@ type ContextItemPatch = TorrowItemPatchFields & {
38229
38228
  description?: string | null;
38230
38229
  };
38231
38230
 
38232
- type CalendarItem = TorrowItemFromDto<CalendarItemDto>;
38233
- type CalendarItemForCreateOrUpdate = TorrowItemForCreateOrUpdate<CalendarItem>;
38231
+ /** Доступные виды календаря; числовые значения совпадают с JSON-кодами API. */
38232
+ declare enum CalendarViewTypeValues {
38233
+ /** День; значение по умолчанию. */
38234
+ Day = 0,
38235
+ /** Афиша. */
38236
+ Poster = 4,
38237
+ /** Расписание. */
38238
+ Schedule = 5
38239
+ }
38240
+
38241
+ /**
38242
+ * Предметная карточка календаря: из {@link TorrowItemFromDto} наследует id, название, описание,
38243
+ * изображение и общие метаданные карточки для чтения. Неиспользуемые календарные исключения
38244
+ * исключены при codegen; календарный вид заменён на три доступных значения.
38245
+ */
38246
+ type CalendarItem = Omit<TorrowItemFromDto<CalendarItemDto>, "calendarViewIndex"> & {
38247
+ /** Доступный вид календаря; отсутствующее или неподдерживаемое серверное значение становится Day. */
38248
+ calendarViewIndex: CalendarViewTypeValues;
38249
+ };
38250
+ /**
38251
+ * Тело создания и полного обновления календаря. Из {@link TorrowItemForCreateOrUpdate} наследует
38252
+ * id для обновляемой карточки, name как её название, description как текст и image как изображение,
38253
+ * а также разрешённые общие поля записи. Настройки публичности задаются опциями создания;
38254
+ * календарный вид можно пропустить, тогда записывается Day.
38255
+ */
38256
+ type CalendarItemForCreateOrUpdate = Omit<TorrowItemForCreateOrUpdate<CalendarItem>, "calendarViewIndex"> & {
38257
+ /** Вид календаря; пропуск выбирает Day. */
38258
+ calendarViewIndex?: CalendarViewTypeValues;
38259
+ };
38234
38260
  /** Параметры получения календаря по идентификатору. */
38235
38261
  type GetCalendarOptions = TorrowItemGetOptions;
38236
38262
  /** Параметры полного обновления календаря. */
@@ -38238,32 +38264,12 @@ interface UpdateCalendarItemOptions extends TorrowItemUpdateOptions {
38238
38264
  /** Токен гостевого доступа к календарю; `null` сохраняет wire-семантику query. */
38239
38265
  securityToken?: string | null;
38240
38266
  }
38241
- /** Полный интервал исключения календаря; существующие интервалы сохраняют свой rid. */
38242
- interface CalendarItemPatchTimeRange {
38243
- /** Идентификатор вложенного интервала (24 hex); отсутствующий/null/пустой создаётся SDK. */
38244
- rid?: string | null;
38245
- /** Начало интервала в Date SDK; в запросе сериализуется в ISO UTC. */
38246
- begin: Date;
38247
- /** Конец интервала в Date SDK; предметный порядок границ проверяет сервер. */
38248
- end: Date;
38249
- /** Подпись интервала; null/пропуск не создаёт текстовую подпись. */
38250
- name?: string | null;
38251
- }
38252
- /** Полная замена исключений; пропущенные внутри структуры списки не объединяются со снимком. */
38253
- interface CalendarItemPatchScheduleRangeExceptions {
38254
- /** Список заменённых интервалов; []/null/пропуск очищает этот список внутри новой структуры. */
38255
- replacedTimeRanges?: CalendarItemPatchTimeRange[] | null;
38256
- /** Список исключённых интервалов; []/null/пропуск очищает этот список внутри новой структуры. */
38257
- excludedTimeRanges?: CalendarItemPatchTimeRange[] | null;
38258
- }
38259
38267
  /** Частичное изменение календаря; общие name/image описаны в TorrowItemPatchFields. */
38260
38268
  interface CalendarItemPatch extends TorrowItemPatchFields {
38261
38269
  /** Описание; null или пустая строка очищает содержимое, пропуск сохраняет. */
38262
38270
  description?: string | null;
38263
- /** Индекс вида int32; null очищает, 0 является реальным значением (ACK может нормализовать его в null). */
38264
- calendarViewIndex?: number | null;
38265
- /** Полная замена структуры исключений; null снимает структуру, {} очищает её списки. */
38266
- scheduleRangeExceptions?: CalendarItemPatchScheduleRangeExceptions | null;
38271
+ /** Доступный вид календаря; пропуск сохраняет поле, неподдерживаемое runtime-значение выбирает Day. */
38272
+ calendarViewIndex?: CalendarViewTypeValues;
38267
38273
  }
38268
38274
 
38269
38275
  /** Цена выбранной карточки: optional settings без null; элементы цены и расписания сохраняются. */
@@ -42978,4 +42984,4 @@ declare class ResourceBuilder {
42978
42984
  build(): ResourceBuildResult;
42979
42985
  }
42980
42986
 
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 };
42987
+ 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 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
@@ -10198,9 +10198,38 @@ function projectItemSocial(item) {
10198
10198
  return result;
10199
10199
  }
10200
10200
 
10201
+ // ../../src/resources/calendars/calendar-view-type.ts
10202
+ var CalendarViewTypeValues = /* @__PURE__ */ ((CalendarViewTypeValues2) => {
10203
+ CalendarViewTypeValues2[CalendarViewTypeValues2["Day"] = 0] = "Day";
10204
+ CalendarViewTypeValues2[CalendarViewTypeValues2["Poster"] = 4] = "Poster";
10205
+ CalendarViewTypeValues2[CalendarViewTypeValues2["Schedule"] = 5] = "Schedule";
10206
+ return CalendarViewTypeValues2;
10207
+ })(CalendarViewTypeValues || {});
10208
+ function normalizeCalendarViewIndex(value) {
10209
+ switch (value) {
10210
+ case 4 /* Poster */:
10211
+ return 4 /* Poster */;
10212
+ case 5 /* Schedule */:
10213
+ return 5 /* Schedule */;
10214
+ default:
10215
+ return 0 /* Day */;
10216
+ }
10217
+ }
10218
+
10201
10219
  // ../../src/resources/calendars/read-projection.ts
10202
10220
  function projectCalendarItem(item) {
10203
- return projectItemSocial(item);
10221
+ const projected = projectItemSocial(item);
10222
+ if (projected !== null && typeof projected === "object" && !Array.isArray(projected)) {
10223
+ const result = {
10224
+ ...projected,
10225
+ calendarViewIndex: normalizeCalendarViewIndex(
10226
+ "calendarViewIndex" in projected ? projected.calendarViewIndex : void 0
10227
+ )
10228
+ };
10229
+ Reflect.deleteProperty(result, "scheduleRangeExceptions");
10230
+ return result;
10231
+ }
10232
+ return projected;
10204
10233
  }
10205
10234
 
10206
10235
  // ../../src/resources/notes/read-projection.ts
@@ -12098,67 +12127,12 @@ async function patchItem(http, itemId, fields, options, adapter) {
12098
12127
  }
12099
12128
  }
12100
12129
 
12101
- // ../../src/resources/common/schedule-rids.ts
12102
- function record3(value) {
12103
- return value !== null && typeof value === "object" && !Array.isArray(value);
12104
- }
12105
- function normalizeRangeList(value, path) {
12106
- if (!Array.isArray(value)) {
12107
- return;
12108
- }
12109
- value.forEach((range, index) => {
12110
- if (record3(range)) {
12111
- ensureNestedRidForWrite(range, `${path}[${index}]`);
12112
- }
12113
- });
12114
- }
12115
- function normalizeScheduleRidsForWrite(value, path) {
12116
- if (!record3(value)) {
12117
- return;
12118
- }
12119
- normalizeRangeList(value.scheduleRanges, `${path}.scheduleRanges`);
12120
- const exceptions = value.scheduleRangeExceptions;
12121
- if (record3(exceptions)) {
12122
- normalizeRangeList(exceptions.replacedTimeRanges, `${path}.scheduleRangeExceptions.replacedTimeRanges`);
12123
- normalizeRangeList(exceptions.excludedTimeRanges, `${path}.scheduleRangeExceptions.excludedTimeRanges`);
12124
- }
12125
- }
12126
- function normalizeItemScheduleRidsForWrite(body, path) {
12127
- normalizeScheduleRidsForWrite(body.schedule, `${path}.schedule`);
12128
- const priceInfo = body.priceInfo;
12129
- if (!record3(priceInfo) || !Array.isArray(priceInfo.settings)) {
12130
- return;
12131
- }
12132
- priceInfo.settings.forEach((setting, index) => {
12133
- if (record3(setting)) {
12134
- normalizeScheduleRidsForWrite(setting.schedule, `${path}.priceInfo.settings[${index}].schedule`);
12135
- }
12136
- });
12137
- }
12138
-
12139
12130
  // ../../src/resources/calendars/calendar-patch.ts
12140
- function isRecord2(value) {
12141
- return value !== null && typeof value === "object" && (Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null);
12142
- }
12143
12131
  function isCalendarPatchViewIndex(value) {
12144
- return typeof value === "number" && Number.isInteger(value) && value >= -2147483648 && value <= 2147483647;
12145
- }
12146
- function isTimeRange(value, allowMissingRid = false) {
12147
- const rid2 = isRecord2(value) ? value.rid : void 0;
12148
- return isRecord2(value) && Object.keys(value).every((key) => ["rid", "begin", "end", "name"].includes(key)) && (isValidRid(rid2) || allowMissingRid && (rid2 == null || typeof rid2 === "string" && rid2.trim() === "")) && value.begin instanceof Date && Number.isFinite(value.begin.getTime()) && value.end instanceof Date && Number.isFinite(value.end.getTime()) && (value.name == null || typeof value.name === "string");
12149
- }
12150
- function isCalendarPatchExceptions(value) {
12151
- return isRecord2(value) && Object.keys(value).every((key) => ["replacedTimeRanges", "excludedTimeRanges"].includes(key)) && Object.values(value).every(
12152
- (ranges) => ranges == null || Array.isArray(ranges) && ranges.every((range) => isTimeRange(range))
12153
- );
12154
- }
12155
- function isCalendarPatchInputExceptions(value) {
12156
- return isRecord2(value) && Object.keys(value).every((key) => ["replacedTimeRanges", "excludedTimeRanges"].includes(key)) && Object.values(value).every(
12157
- (ranges) => ranges == null || Array.isArray(ranges) && ranges.every((range) => isTimeRange(range, true))
12158
- );
12132
+ return value === 0 /* Day */ || value === 4 /* Poster */ || value === 5 /* Schedule */;
12159
12133
  }
12160
12134
  function projectCalendarPatchItem(item) {
12161
- if (item.description != null && typeof item.description !== "string" || item.name != null && typeof item.name !== "string" || item.calendarViewIndex != null && !isCalendarPatchViewIndex(item.calendarViewIndex) || item.scheduleRangeExceptions != null && !isCalendarPatchExceptions(item.scheduleRangeExceptions)) {
12135
+ if (item.description != null && typeof item.description !== "string" || item.name != null && typeof item.name !== "string") {
12162
12136
  throw itemPatchError("InvalidResponse" /* InvalidResponse */);
12163
12137
  }
12164
12138
  return item;
@@ -12175,26 +12149,13 @@ function assertCalendarPatchSnapshot(item) {
12175
12149
  function createCalendarPatchAdapter() {
12176
12150
  return {
12177
12151
  operation: "CalendarsFacade.patch",
12178
- ridPaths: calendarPatchRidPaths,
12179
12152
  basePath: "/api/v1/calendars",
12180
12153
  objectType: TorrowObjectTypeCode.Calendar,
12181
12154
  discriminator: "CalendarItem" /* CalendarItem */,
12182
12155
  fields: {
12183
12156
  ...commonItemPatchFields,
12184
12157
  description: { kind: "String" /* String */, nullable: true },
12185
- calendarViewIndex: { kind: "Integer" /* Integer */, nullable: true, validate: isCalendarPatchViewIndex },
12186
- scheduleRangeExceptions: {
12187
- kind: "Object" /* Object */,
12188
- nullable: true,
12189
- validate: isCalendarPatchInputExceptions
12190
- }
12191
- },
12192
- validateFields: (fields) => {
12193
- try {
12194
- normalizeScheduleRidsForWrite(fields, "calendar");
12195
- } catch {
12196
- throw itemPatchError("InvalidInput" /* InvalidInput */);
12197
- }
12158
+ calendarViewIndex: { kind: "Integer" /* Integer */, validate: isCalendarPatchViewIndex }
12198
12159
  },
12199
12160
  assertSnapshot: assertCalendarPatchSnapshot,
12200
12161
  project: (item) => projectCalendarItem(projectCalendarPatchItem(item)),
@@ -12219,12 +12180,26 @@ var CalendarsFacade = class extends TorrowItemFacade {
12219
12180
  }
12220
12181
  /** Частично изменяет календарь: полный GET и максимум один CAS PUT, без deep merge/readback/retry. */
12221
12182
  patch(itemId, fields, options) {
12222
- return patchItem(this.http, itemId, fields, options, createCalendarPatchAdapter());
12183
+ let selected = fields;
12184
+ if (fields !== null && typeof fields === "object") {
12185
+ try {
12186
+ const view = Object.getOwnPropertyDescriptor(fields, "calendarViewIndex");
12187
+ if (view && Object.hasOwn(view, "value")) {
12188
+ const descriptors = Object.getOwnPropertyDescriptors(fields);
12189
+ descriptors.calendarViewIndex = { ...view, value: normalizeCalendarViewIndex(view.value) };
12190
+ selected = Object.create(Object.getPrototypeOf(fields), descriptors);
12191
+ }
12192
+ } catch {
12193
+ selected = fields;
12194
+ }
12195
+ }
12196
+ return patchItem(this.http, itemId, selected, options, createCalendarPatchAdapter());
12223
12197
  }
12224
12198
  /** `POST /api/v1/calendars` */
12225
12199
  create(body, options) {
12226
12200
  const payload = applyItemCreateDefaults(structuredClone(body), "CalendarItem" /* CalendarItem */, options?.publicityType);
12227
- normalizeScheduleRidsForWrite(payload, "calendar");
12201
+ payload.calendarViewIndex = normalizeCalendarViewIndex(payload.calendarViewIndex);
12202
+ Reflect.deleteProperty(payload, "scheduleRangeExceptions");
12228
12203
  return this.http.requestJson({
12229
12204
  method: "POST",
12230
12205
  path: BASE,
@@ -12240,7 +12215,8 @@ var CalendarsFacade = class extends TorrowItemFacade {
12240
12215
  update(body, options) {
12241
12216
  const itemId = requireItemUpdateId(body, "Calendar");
12242
12217
  const payload = structuredClone(body);
12243
- normalizeScheduleRidsForWrite(payload, "calendar");
12218
+ payload.calendarViewIndex = normalizeCalendarViewIndex(payload.calendarViewIndex);
12219
+ Reflect.deleteProperty(payload, "scheduleRangeExceptions");
12244
12220
  return this.http.requestJson({
12245
12221
  method: "PUT",
12246
12222
  path: `${BASE}/${encodePathSegment(itemId)}`,
@@ -12478,6 +12454,44 @@ function isItemPatchObjectArray(value) {
12478
12454
  return Array.isArray(value) && value.every(isItemPatchDtoObject);
12479
12455
  }
12480
12456
 
12457
+ // ../../src/resources/common/schedule-rids.ts
12458
+ function record3(value) {
12459
+ return value !== null && typeof value === "object" && !Array.isArray(value);
12460
+ }
12461
+ function normalizeRangeList(value, path) {
12462
+ if (!Array.isArray(value)) {
12463
+ return;
12464
+ }
12465
+ value.forEach((range, index) => {
12466
+ if (record3(range)) {
12467
+ ensureNestedRidForWrite(range, `${path}[${index}]`);
12468
+ }
12469
+ });
12470
+ }
12471
+ function normalizeScheduleRidsForWrite(value, path) {
12472
+ if (!record3(value)) {
12473
+ return;
12474
+ }
12475
+ normalizeRangeList(value.scheduleRanges, `${path}.scheduleRanges`);
12476
+ const exceptions = value.scheduleRangeExceptions;
12477
+ if (record3(exceptions)) {
12478
+ normalizeRangeList(exceptions.replacedTimeRanges, `${path}.scheduleRangeExceptions.replacedTimeRanges`);
12479
+ normalizeRangeList(exceptions.excludedTimeRanges, `${path}.scheduleRangeExceptions.excludedTimeRanges`);
12480
+ }
12481
+ }
12482
+ function normalizeItemScheduleRidsForWrite(body, path) {
12483
+ normalizeScheduleRidsForWrite(body.schedule, `${path}.schedule`);
12484
+ const priceInfo = body.priceInfo;
12485
+ if (!record3(priceInfo) || !Array.isArray(priceInfo.settings)) {
12486
+ return;
12487
+ }
12488
+ priceInfo.settings.forEach((setting, index) => {
12489
+ if (record3(setting)) {
12490
+ normalizeScheduleRidsForWrite(setting.schedule, `${path}.priceInfo.settings[${index}].schedule`);
12491
+ }
12492
+ });
12493
+ }
12494
+
12481
12495
  // ../../src/resources/common/case-action-rids.ts
12482
12496
  function normalizeCaseActionRidsForWrite(body, path) {
12483
12497
  if (!Array.isArray(body.caseActionList)) {
@@ -19243,6 +19257,7 @@ export {
19243
19257
  AvailableResourcesValues,
19244
19258
  BehaviorSettingsEffectStep,
19245
19259
  BlockReasonsFacade,
19260
+ CalendarViewTypeValues,
19246
19261
  CalendarsFacade,
19247
19262
  CaseStateValues,
19248
19263
  CaseTypeValues,