@nanas-home/hub-common 0.56.1271 → 0.57.1293

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.
@@ -128,6 +128,7 @@ var apiRouteParam = {
128
128
  petUuid: ":petUuid",
129
129
  addressUuid: ":addressUuid",
130
130
  bookingUuid: ":bookingUuid",
131
+ bookingHostUuid: ":bookingHostUuid",
131
132
  bookingAddonUuid: ":bookingAddonUuid",
132
133
  uploadUuid: ":uploadUuid",
133
134
  userMembershipUuid: ":userMembershipUuid",
@@ -148,6 +149,7 @@ var apiRoute = {
148
149
  signup: "/signup",
149
150
  signupProgress: "/signup-progress",
150
151
  signupQuestions: "/signup-questions",
152
+ signupTempPetImageUpload: "/signup-temp-pet-upload",
151
153
  confirmEmail: `/confirm-email/${apiRouteParam.linkUuid}`,
152
154
  requestPasswordResetLink: `/password-reset`,
153
155
  passwordResetFromTempLink: `/password-reset/${apiRouteParam.linkUuid}`,
@@ -188,7 +190,7 @@ var apiRoute = {
188
190
  byPet: `/pet/${apiRouteParam.petUuid}`,
189
191
  withRelationships: `/with-relationships/${apiRouteParam.bookingUuid}`,
190
192
  assignHost: `/assign-host/${apiRouteParam.bookingUuid}/${apiRouteParam.userUuid}`,
191
- removeHost: `/remove-host/${apiRouteParam.bookingUuid}`,
193
+ removeHost: `/remove-host/${apiRouteParam.bookingUuid}/${apiRouteParam.bookingHostUuid}`,
192
194
  calendarOverview: "/calendar-overview",
193
195
  swagger: { name: "Bookings", description: "Endpoints for managing bookings" }
194
196
  },
@@ -234,6 +236,7 @@ var apiRoute = {
234
236
  user: {
235
237
  prefix: "/admin/user",
236
238
  searchHosts: "/search-hosts",
239
+ migrationReport: "/migration-report",
237
240
  swagger: { name: "Users", description: "Endpoints for Admins to manage Users" }
238
241
  },
239
242
  userMembership: {
@@ -611,6 +614,7 @@ var UploadLinkType = /* @__PURE__ */ ((UploadLinkType2) => {
611
614
  UploadLinkType2[UploadLinkType2["Unknown"] = 0] = "Unknown";
612
615
  UploadLinkType2[UploadLinkType2["User"] = 1] = "User";
613
616
  UploadLinkType2[UploadLinkType2["Pet"] = 2] = "Pet";
617
+ UploadLinkType2[UploadLinkType2["UserRegistration"] = 3] = "UserRegistration";
614
618
  return UploadLinkType2;
615
619
  })(UploadLinkType || {});
616
620
  var UploadType = /* @__PURE__ */ ((UploadType2) => {
@@ -748,7 +752,15 @@ var AnswerRestriction = {
748
752
 
749
753
  // src/contracts/generated/restrictions/authRestriction.ts
750
754
  var AuthRegisterRestriction = {
751
- pets: { minItems: 1, maxItems: 5 },
755
+ pets: {
756
+ minItems: 1,
757
+ maxItems: 5,
758
+ upload: {
759
+ url: { minLength: 0, maxLength: 1e3 },
760
+ mimeType: { minLength: 3, maxLength: 50 },
761
+ extension: { minLength: 3, maxLength: 5 }
762
+ }
763
+ },
752
764
  answers: { minItems: 3, maxItems: 50 }
753
765
  };
754
766
 
@@ -1168,8 +1180,6 @@ var addToParallelTasks = async (tasks, newTask, numTasksInParallel = 5) => {
1168
1180
  tasks.push(newTask);
1169
1181
  return tasks;
1170
1182
  };
1171
-
1172
- // src/helpers/bookingCalendarHelper.ts
1173
1183
  var getBookingStatusLabelForAdmin = (status) => {
1174
1184
  switch (status) {
1175
1185
  case 0 /* Cancelled */:
@@ -1205,12 +1215,40 @@ var getMembershipTypeLabel = (type) => {
1205
1215
  return "None";
1206
1216
  }
1207
1217
  };
1218
+ var getPetTypeLabel = (type) => {
1219
+ switch (type) {
1220
+ case 1 /* Dog */:
1221
+ return "Dog";
1222
+ case 2 /* Cat */:
1223
+ return "Cat";
1224
+ case 3 /* Bird */:
1225
+ return "Bird";
1226
+ case 4 /* Rodent */:
1227
+ return "Rodent";
1228
+ case 5 /* Reptile */:
1229
+ return "Reptile";
1230
+ case 6 /* Other */:
1231
+ return "Other";
1232
+ case 0 /* Unknown */:
1233
+ default:
1234
+ return "Unknown";
1235
+ }
1236
+ };
1237
+ var formatPetTypesLabel = (types) => {
1238
+ const uniqueTypes = [];
1239
+ for (const type of types) {
1240
+ if (uniqueTypes.includes(type) == false) uniqueTypes.push(type);
1241
+ }
1242
+ const labels = uniqueTypes.map((type) => getPetTypeLabel(type)).filter((label) => label !== "Unknown");
1243
+ return labels.length > 0 ? labels.join(", ") : "Unknown";
1244
+ };
1208
1245
  var formatBookingCalendarLabel = (item) => {
1209
1246
  const status = getBookingStatusLabelForAdmin(item.status);
1210
- const pets = item.petNames.join(", ") || "No pets";
1247
+ const petNames = item.petNames.join(", ") || "No pets";
1211
1248
  const membership = getMembershipTypeLabel(item.ownerMembershipType);
1212
- const hostPart = item.hostNames.length > 0 ? ` with ${item.hostNames.join(", ")}` : "";
1213
- return `${status}: ${pets}, ${membership} (${item.ownerName})${hostPart}`;
1249
+ const petTypes = formatPetTypesLabel(item.petTypes);
1250
+ const hostPart = item.hostNames.length > 0 ? ` [with ${item.hostNames.join(", ")}]` : "";
1251
+ return `${status}: ${petNames}, ${membership} (${item.ownerName}) ${petTypes}${hostPart}`;
1214
1252
  };
1215
1253
  var BOOKING_OVERVIEW_STATUSES = [
1216
1254
  1 /* IntakeCall */,
@@ -1233,9 +1271,29 @@ var computeBookingStatusCounts = (bookings) => {
1233
1271
  }
1234
1272
  return counts;
1235
1273
  };
1236
- var filterBookingsByOverviewStatus = (bookings, status) => {
1237
- if (status == null) return bookings;
1238
- return bookings.filter((booking) => booking.status === status);
1274
+ var filterBookingsByOverviewStatus = (bookings, statuses) => {
1275
+ if (statuses == null || statuses.length === 0) return bookings;
1276
+ const allowed = new Set(statuses);
1277
+ return bookings.filter((booking) => allowed.has(booking.status));
1278
+ };
1279
+ var computeBookingNightCount = (startDate, endDate) => {
1280
+ const nights = Math.abs(
1281
+ dayjs(endDate).startOf("day").diff(dayjs(startDate).startOf("day"), "day")
1282
+ );
1283
+ return Math.max(1, nights);
1284
+ };
1285
+ var formatBookingNightsTooltip = (startDate, endDate) => {
1286
+ const nights = computeBookingNightCount(startDate, endDate);
1287
+ return nights === 1 ? "1 night" : `${nights} nights`;
1288
+ };
1289
+ var serializeBookingOverviewStatuses = (statuses) => {
1290
+ if (statuses.length === 0) return void 0;
1291
+ return statuses.join(",");
1292
+ };
1293
+ var parseBookingOverviewStatuses = (statuses) => {
1294
+ if (statuses == null || statuses.trim().length === 0) return void 0;
1295
+ const parsed = statuses.split(",").map((value) => value.trim()).filter((value) => value.length > 0).map((value) => Number(value)).filter((value) => Number.isFinite(value));
1296
+ return parsed.length > 0 ? parsed : void 0;
1239
1297
  };
1240
1298
 
1241
1299
  // src/components/form/calendar/calendarPicker.functions.ts
@@ -1660,6 +1718,13 @@ var urlRef = (url) => {
1660
1718
  }
1661
1719
  return url + `?ref=${ref}`;
1662
1720
  };
1721
+ var urlAddQueryParam = (url, queryParamName, queryParamValue) => {
1722
+ if (url.includes(`${queryParamName}=`)) return url;
1723
+ if (url.includes("?")) {
1724
+ return url + `&${queryParamName}=${queryParamValue}`;
1725
+ }
1726
+ return url + `?${queryParamName}=${queryParamValue}`;
1727
+ };
1663
1728
 
1664
1729
  // src/helpers/userAccountFlagHelper.ts
1665
1730
  var userMustChangePassword = (flags) => flags?.includes(1 /* ChangePassword */) === true;
@@ -2022,4 +2087,4 @@ var shouldBeYoutubeUrl = (value) => {
2022
2087
  };
2023
2088
  };
2024
2089
 
2025
- export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder };
2090
+ export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingNightCount, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatBookingNightsTooltip, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, formatPetTypesLabel, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getPetTypeLabel, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, parseBookingOverviewStatuses, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, serializeBookingOverviewStatuses, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlAddQueryParam, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder };
@@ -1,5 +1,5 @@
1
- import { I as ILogger, R as ResultWithValue, a as Result, L as LogService, C as CommonConfigService, b as IDependencyInjectionSetupProps } from '../textValidation-BfD85KGx.js';
2
- export { dc as APP_TYPE_TOKEN, ai as ActivityDto, x as ActivityLocationType, bD as ActivityRestriction, F as ActivityType, aj as AddressCreateDto, ak as AddressDto, G as AddressLinkType, al as AddressLookupDto, bE as AddressRestriction, am as AddressUpdateDto, an as AnswerCreateDto, ao as AnswerDto, J as AnswerLinkType, bF as AnswerRestriction, A as AppType, ap as AuthChangePasswordDto, aq as AuthLoginDto, ar as AuthPatDto, as as AuthRegisterAddressDto, at as AuthRegisterDto, au as AuthRegisterGetQuestionsDto, av as AuthRegisterPetDto, aw as AuthRegisterQuestionDto, bG as AuthRegisterRestriction, ax as AuthRegisterStoreProgressDto, ay as AuthRegisterUserDto, az as AuthRequestResetPasswordDto, aA as AuthResetPasswordDto, aB as AuthSuccessDto, cc as BOOKING_OVERVIEW_STATUSES, da as BOT_PATH_TOKEN, aC as BookingAddonDto, bI as BookingAddonRestriction, O as BookingAddonType, c8 as BookingCalendarOverviewItem, aD as BookingCalendarOverviewItemDto, aE as BookingCreateDto, aF as BookingDto, aG as BookingHostCreateDto, aH as BookingHostDto, aI as BookingHostUpdateDto, bH as BookingRestriction, aJ as BookingRestrictionsDto, aK as BookingRestrictionsEnabledDaysDto, aL as BookingRestrictionsPremiumEnabledDaysDto, cd as BookingStatusCounts, P as BookingStatusType, aM as BookingUpdateDto, aN as BookingWithRelationshipsDto, aO as BugReportCreateDto, aP as BugReportDto, bJ as BugReportRestriction, Q as BugReportStatusType, aQ as BugReportUpdateDto, h as CachedValue, u as ClickEvent, aR as ClientAnswerSaveDto, aS as CommentCreateDto, aT as CommentDto, U as CommentLinkType, bK as CommentRestriction, aU as CommentUpdateDto, d8 as DependencyInjectionContainer, l as DependencyInjectionFactory, k as DependencyInjectionIdentifier, D as DependencyInjectionToken, bM as DrivingRouteRestriction, E as EnvKey, H as HtmlElementEvent, r as HtmlFilesEvent, t as HtmlImageReadEvent, q as HtmlKeyEvent, bX as ICaptchaResponse, o as IDependencyInjectionSetupWebProps, cG as IImageParams, bZ as ILogMessage, b_ as IMediaUpload, d7 as ISite, d4 as ISiteColour, aV as InvoiceCreateDto, aW as InvoiceDto, bN as InvoiceRestriction, V as InvoiceStatusType, aX as InvoiceUpdateDto, aY as InvoiceWithStripeInfoDto, bC as JwtPayloadDto, K as KeyEvent, bY as LogMethod, X as LogType, Y as MembershipBillingCycleType, aZ as MembershipCreateDto, a_ as MembershipDto, bO as MembershipRestriction, Z as MembershipStatus, _ as MembershipType, a$ as MembershipUpdateDto, M as MonthTranslationKey, f as MouseButton, N as NANAS_PALLETTE, $ as NetworkState, c0 as NominatimAddressResponse, b$ as NominatimResponse, c$ as ObjectWithPropsOfValue, a0 as OrderDirectionType, b0 as PaginationRequestDto, b1 as PaginationResponseDto, b2 as PaymentMethodDto, bP as PermissionRestriction, a1 as PermissionType, b3 as PetCreateDto, b4 as PetDto, bQ as PetRestriction, a2 as PetSexType, a3 as PetStatusType, a4 as PetType, b5 as PetUpdateDto, d0 as Prettify, b6 as ProfileDto, b7 as ProfileQuestionAndAnswersItemDto, b8 as ProfileQuestionRequestDto, b9 as ProfileUpdateDto, ba as QuestionCreateDto, bb as QuestionDto, a6 as QuestionForType, bR as QuestionRestriction, a5 as QuestionType, bc as QuestionUpdateDto, ci as RenderCellType, de as SITE_CONFIG_TOKEN, bd as SearchObjDatePropRequestDto, be as SearchObjRequestDto, bf as SearchObjTextPropRequestDto, a9 as SearchableColumnInfo, a8 as SearchableColumnType, bg as SetupIntentCreateDto, bh as SetupIntentDto, bS as StripeRestriction, S as SupportedLanguage, d as SupportedLanguageArray, bi as TempLinkCreateDto, bj as TempLinkDto, aa as TempLinkType, ab as TempRegistrationStatus, T as ThemeType, bT as UnavailabilityRestriction, bk as UploadCreateDto, bl as UploadDto, bm as UploadImageWithLinkDto, ac as UploadLinkType, bU as UploadRestriction, ad as UploadType, bn as UploadUpdateDto, af as UserAccountFlagType, bo as UserCreateDto, bp as UserDto, bq as UserMembershipChangeResponseDto, br as UserMembershipCreateDto, bs as UserMembershipDto, bt as UserMembershipSignUpDto, bu as UserMembershipSignUpResponseDto, bv as UserMembershipStatsDto, bw as UserMembershipUpdateDto, bx as UserMembershipWithStripeInfoDto, by as UserMembershipWithUserNamesDto, bz as UserPermissionDto, bV as UserRestriction, ag as UserType, bA as UserUpdateDto, bL as UuidRestriction, c1 as ValidationResult, bB as VersionDto, W as WeekdayTranslationKey, y as activityShortCode, cu as addDays, ct as addMinutes, cv as addMonths, cs as addSeconds, cX as addSpacesForEnum, c7 as addToParallelTasks, dx as allowedNonNumericalValuesInContactNumber, cZ as anyObject, B as apiRoute, z as apiRouteParam, c5 as arrayContains, c4 as arrayOfNLength, cV as capitalizeFirstLetter, d5 as colourPalette, e as commonEmailLinks, ce as computeBookingStatusCounts, dy as contactNumberCharValid, dz as contactNumberValid, j as createToken, cF as cyrb53, cy as dateDiffInDays, cC as debounceLeading, d6 as defaultSiteColour, dC as emailValid, c_ as fakePromise, cf as filterBookingsByOverviewStatus, cb as formatBookingCalendarLabel, cl as formatDate, cY as formatFileSize, cr as formatForBookingDate, cn as formatForDateDropdown, cm as formatForDateLocal, cq as formatForDateLocalDetailed, co as formatForDateOfBirth, cp as formatForDateWithTime, d3 as getActiveUserMembership, cz as getAgeInYears, a7 as getAllPetQuestionForType, dd as getAppType, cD as getArrFromEnum, c9 as getBookingStatusLabelForAdmin, db as getBotPath, di as getCommonConfig, cg as getDayClassObject, cj as getDayElements, ch as getDayHeadingElements, cH as getImageParams, dj as getLog, ca as getMembershipTypeLabel, cK as getMimeTypeFromExtension, cI as getPayloadFromJwt, cM as getPerformanceTimer, cP as getPetAvatarUrl, cS as getQuestionGroups, dh as getSiteColour, dg as getSiteConfig, cO as getUserAvatarUrl, ck as getUsersName, cA as getWeekNumber, cN as hasRequiredPermissions, ah as hubspotQuestionsExport, cw as isBefore, dD as isNumber, cx as isSameDay, i as isWebApp, cW as lowercaseFirstLetter, c2 as makeArrayOrDefault, dB as maxDate, dp as maxItems, dJ as maxLength, dF as maxValue, cJ as mimeTypeLookup, dA as minDate, dn as minItems, dI as minLength, g as minUrlLength, dE as minValue, m as monthTranslationKeyOrder, du as multiValidation, cR as nameof, n as nanasFonts, ds as noValidation, dt as notNull, c3 as onlyUnique, dG as passwordValid, p as portalGlyphLength, dH as postCodeValid, cQ as promiseFromValue, cT as randomIntFromRange, cU as randomItemFromArray, d9 as rootContainer, dk as rootDependencyInjectionSetup, bW as searchColumns, dq as selectedItemsExist, dr as selectedOptionIsInEnum, dv as separateValidation, dl as setContainerToken, dm as setContainerTokenLazy, df as setSiteConfig, dK as shouldBeUrl, dL as shouldBeYoutubeUrl, cB as showSecondCalendar, s as socialLinks, c6 as timeout, cL as tryParseNumber, ae as uploadsThatNeedEncryption, d1 as urlRef, d2 as userMustChangePassword, cE as uuidv4, v as validUuidChars, dw as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-BfD85KGx.js';
1
+ import { I as ILogger, R as ResultWithValue, a as Result, L as LogService, C as CommonConfigService, b as IDependencyInjectionSetupProps } from '../textValidation-CCe3PBaJ.js';
2
+ export { du as APP_TYPE_TOKEN, ai as ActivityDto, x as ActivityLocationType, bK as ActivityRestriction, F as ActivityType, aj as AddressCreateDto, ak as AddressDto, G as AddressLinkType, al as AddressLookupDto, bL as AddressRestriction, am as AddressUpdateDto, an as AnswerCreateDto, ao as AnswerDto, J as AnswerLinkType, bM as AnswerRestriction, A as AppType, ap as AuthChangePasswordDto, aq as AuthLoginDto, ar as AuthPatDto, as as AuthRegisterAddressDto, at as AuthRegisterDto, au as AuthRegisterGetQuestionsDto, av as AuthRegisterGetTempUploadUrlDto, aw as AuthRegisterGetTempUploadUrlResponseDto, ax as AuthRegisterPetDto, ay as AuthRegisterQuestionDto, bN as AuthRegisterRestriction, az as AuthRegisterStoreProgressDto, aA as AuthRegisterUserDto, aB as AuthRequestResetPasswordDto, aC as AuthResetPasswordDto, aD as AuthSuccessDto, cl as BOOKING_OVERVIEW_STATUSES, ds as BOT_PATH_TOKEN, aE as BookingAddonDto, bP as BookingAddonRestriction, O as BookingAddonType, cf as BookingCalendarOverviewItem, aF as BookingCalendarOverviewItemDto, aG as BookingCreateDto, aH as BookingDto, aI as BookingHostAssignDto, aJ as BookingHostCreateDto, aK as BookingHostDto, aL as BookingHostUpdateDto, bO as BookingRestriction, aM as BookingRestrictionsDto, aN as BookingRestrictionsEnabledDaysDto, aO as BookingRestrictionsPremiumEnabledDaysDto, cm as BookingStatusCounts, P as BookingStatusType, aP as BookingUpdateDto, aQ as BookingWithRelationshipsDto, aR as BugReportCreateDto, aS as BugReportDto, bQ as BugReportRestriction, Q as BugReportStatusType, aT as BugReportUpdateDto, h as CachedValue, u as ClickEvent, aU as ClientAnswerSaveDto, aV as CommentCreateDto, aW as CommentDto, U as CommentLinkType, bR as CommentRestriction, aX as CommentUpdateDto, dq as DependencyInjectionContainer, l as DependencyInjectionFactory, k as DependencyInjectionIdentifier, D as DependencyInjectionToken, bT as DrivingRouteRestriction, E as EnvKey, H as HtmlElementEvent, r as HtmlFilesEvent, t as HtmlImageReadEvent, q as HtmlKeyEvent, c2 as ICaptchaResponse, o as IDependencyInjectionSetupWebProps, cT as IImageParams, c4 as ILogMessage, c5 as IMediaUpload, dp as ISite, dl as ISiteColour, aY as InvoiceCreateDto, aZ as InvoiceDto, bU as InvoiceRestriction, V as InvoiceStatusType, a_ as InvoiceUpdateDto, a$ as InvoiceWithStripeInfoDto, bJ as JwtPayloadDto, K as KeyEvent, c3 as LogMethod, X as LogType, Y as MembershipBillingCycleType, b0 as MembershipCreateDto, b1 as MembershipDto, bV as MembershipRestriction, Z as MembershipStatus, _ as MembershipType, b2 as MembershipUpdateDto, M as MonthTranslationKey, f as MouseButton, N as NANAS_PALLETTE, $ as NetworkState, c7 as NominatimAddressResponse, c6 as NominatimResponse, dc as ObjectWithPropsOfValue, a0 as OrderDirectionType, b3 as PaginationRequestDto, b4 as PaginationResponseDto, b5 as PaymentMethodDto, bW as PermissionRestriction, a1 as PermissionType, b6 as PetCreateDto, b7 as PetDto, bX as PetRestriction, a2 as PetSexType, a3 as PetStatusType, a4 as PetType, b8 as PetUpdateDto, dd as Prettify, b9 as ProfileDto, ba as ProfileQuestionAndAnswersItemDto, bb as ProfileQuestionRequestDto, bc as ProfileUpdateDto, bd as QuestionCreateDto, be as QuestionDto, a6 as QuestionForType, bY as QuestionRestriction, a5 as QuestionType, bf as QuestionUpdateDto, cv as RenderCellType, dw as SITE_CONFIG_TOKEN, bg as SearchObjDatePropRequestDto, bh as SearchObjRequestDto, bi as SearchObjTextPropRequestDto, a9 as SearchableColumnInfo, a8 as SearchableColumnType, bj as SetupIntentCreateDto, bk as SetupIntentDto, bZ as StripeRestriction, S as SupportedLanguage, d as SupportedLanguageArray, bl as TempLinkCreateDto, bm as TempLinkDto, aa as TempLinkType, bn as TempRegistrationDto, ab as TempRegistrationStatus, T as ThemeType, b_ as UnavailabilityRestriction, bo as UploadCreateDto, bp as UploadDto, bq as UploadImageWithLinkDto, ac as UploadLinkType, b$ as UploadRestriction, ad as UploadType, br as UploadUpdateDto, af as UserAccountFlagType, bs as UserCreateDto, bt as UserDto, bu as UserMembershipChangeResponseDto, bv as UserMembershipCreateDto, bw as UserMembershipDto, bx as UserMembershipSignUpDto, by as UserMembershipSignUpResponseDto, bz as UserMembershipStatsDto, bA as UserMembershipUpdateDto, bB as UserMembershipWithStripeInfoDto, bC as UserMembershipWithUserNamesDto, dk as UserMigrationReport, dj as UserMigrationReportCounts, bD as UserMigrationReportCountsDto, bE as UserMigrationReportDto, di as UserMigrationReportUser, bF as UserMigrationReportUserDto, bG as UserPermissionDto, c0 as UserRestriction, ag as UserType, bH as UserUpdateDto, bS as UuidRestriction, c8 as ValidationResult, bI as VersionDto, W as WeekdayTranslationKey, y as activityShortCode, cH as addDays, cG as addMinutes, cI as addMonths, cF as addSeconds, d8 as addSpacesForEnum, ce as addToParallelTasks, dO as allowedNonNumericalValuesInContactNumber, da as anyObject, B as apiRoute, z as apiRouteParam, cc as arrayContains, cb as arrayOfNLength, d6 as capitalizeFirstLetter, dm as colourPalette, e as commonEmailLinks, cp as computeBookingNightCount, cn as computeBookingStatusCounts, dP as contactNumberCharValid, dQ as contactNumberValid, j as createToken, cS as cyrb53, cL as dateDiffInDays, cP as debounceLeading, dn as defaultSiteColour, dT as emailValid, db as fakePromise, co as filterBookingsByOverviewStatus, ck as formatBookingCalendarLabel, cq as formatBookingNightsTooltip, cy as formatDate, d9 as formatFileSize, cE as formatForBookingDate, cA as formatForDateDropdown, cz as formatForDateLocal, cD as formatForDateLocalDetailed, cB as formatForDateOfBirth, cC as formatForDateWithTime, cj as formatPetTypesLabel, dh as getActiveUserMembership, cM as getAgeInYears, a7 as getAllPetQuestionForType, dv as getAppType, cQ as getArrFromEnum, cg as getBookingStatusLabelForAdmin, dt as getBotPath, dA as getCommonConfig, ct as getDayClassObject, cw as getDayElements, cu as getDayHeadingElements, cU as getImageParams, dB as getLog, ch as getMembershipTypeLabel, cX as getMimeTypeFromExtension, cV as getPayloadFromJwt, cZ as getPerformanceTimer, d0 as getPetAvatarUrl, ci as getPetTypeLabel, d3 as getQuestionGroups, dz as getSiteColour, dy as getSiteConfig, c$ as getUserAvatarUrl, cx as getUsersName, cN as getWeekNumber, c_ as hasRequiredPermissions, ah as hubspotQuestionsExport, cJ as isBefore, dU as isNumber, cK as isSameDay, i as isWebApp, d7 as lowercaseFirstLetter, c9 as makeArrayOrDefault, dS as maxDate, dG as maxItems, d_ as maxLength, dW as maxValue, cW as mimeTypeLookup, dR as minDate, dF as minItems, dZ as minLength, g as minUrlLength, dV as minValue, m as monthTranslationKeyOrder, dL as multiValidation, d2 as nameof, n as nanasFonts, dJ as noValidation, dK as notNull, ca as onlyUnique, cs as parseBookingOverviewStatuses, dX as passwordValid, p as portalGlyphLength, dY as postCodeValid, d1 as promiseFromValue, d4 as randomIntFromRange, d5 as randomItemFromArray, dr as rootContainer, dC as rootDependencyInjectionSetup, c1 as searchColumns, dH as selectedItemsExist, dI as selectedOptionIsInEnum, dM as separateValidation, cr as serializeBookingOverviewStatuses, dD as setContainerToken, dE as setContainerTokenLazy, dx as setSiteConfig, d$ as shouldBeUrl, e0 as shouldBeYoutubeUrl, cO as showSecondCalendar, s as socialLinks, cd as timeout, cY as tryParseNumber, ae as uploadsThatNeedEncryption, df as urlAddQueryParam, de as urlRef, dg as userMustChangePassword, cR as uuidv4, v as validUuidChars, dN as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-CCe3PBaJ.js';
3
3
  import 'solid-js';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, NANAS_PALLETTE, getSiteConfig, getAppType, isWebApp, rootDependencyInjectionSetup, setContainerToken } from '../chunk/77A4D4VS.js';
2
- export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, colourPalette, commonEmailLinks, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/77A4D4VS.js';
1
+ import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, NANAS_PALLETTE, getSiteConfig, getAppType, isWebApp, rootDependencyInjectionSetup, setContainerToken } from '../chunk/RIERZOAS.js';
2
+ export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, colourPalette, commonEmailLinks, computeBookingNightCount, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatBookingNightsTooltip, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, formatPetTypesLabel, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getPetTypeLabel, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, parseBookingOverviewStatuses, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, serializeBookingOverviewStatuses, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlAddQueryParam, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/RIERZOAS.js';
3
3
  import fs6, { stat } from 'fs/promises';
4
4
  import path12 from 'path';
5
5
  import fs2 from 'fs';
@@ -176,6 +176,7 @@ declare const apiRouteParam: {
176
176
  readonly petUuid: ":petUuid";
177
177
  readonly addressUuid: ":addressUuid";
178
178
  readonly bookingUuid: ":bookingUuid";
179
+ readonly bookingHostUuid: ":bookingHostUuid";
179
180
  readonly bookingAddonUuid: ":bookingAddonUuid";
180
181
  readonly uploadUuid: ":uploadUuid";
181
182
  readonly userMembershipUuid: ":userMembershipUuid";
@@ -195,6 +196,7 @@ declare const apiRoute: {
195
196
  readonly signup: "/signup";
196
197
  readonly signupProgress: "/signup-progress";
197
198
  readonly signupQuestions: "/signup-questions";
199
+ readonly signupTempPetImageUpload: "/signup-temp-pet-upload";
198
200
  readonly confirmEmail: "/confirm-email/:linkUuid";
199
201
  readonly requestPasswordResetLink: "/password-reset";
200
202
  readonly passwordResetFromTempLink: "/password-reset/:linkUuid";
@@ -247,7 +249,7 @@ declare const apiRoute: {
247
249
  readonly byPet: "/pet/:petUuid";
248
250
  readonly withRelationships: "/with-relationships/:bookingUuid";
249
251
  readonly assignHost: "/assign-host/:bookingUuid/:userUuid";
250
- readonly removeHost: "/remove-host/:bookingUuid";
252
+ readonly removeHost: "/remove-host/:bookingUuid/:bookingHostUuid";
251
253
  readonly calendarOverview: "/calendar-overview";
252
254
  readonly swagger: {
253
255
  readonly name: "Bookings";
@@ -314,6 +316,7 @@ declare const apiRoute: {
314
316
  readonly user: {
315
317
  readonly prefix: "/admin/user";
316
318
  readonly searchHosts: "/search-hosts";
319
+ readonly migrationReport: "/migration-report";
317
320
  readonly swagger: {
318
321
  readonly name: "Users";
319
322
  readonly description: "Endpoints for Admins to manage Users";
@@ -698,7 +701,8 @@ declare enum TempRegistrationStatus {
698
701
  declare enum UploadLinkType {
699
702
  Unknown = 0,
700
703
  User = 1,
701
- Pet = 2
704
+ Pet = 2,
705
+ UserRegistration = 3
702
706
  }
703
707
  declare enum UploadType {
704
708
  Unknown = 0,
@@ -913,6 +917,11 @@ interface components {
913
917
  * @description User Details required to register an account
914
918
  */
915
919
  user: {
920
+ /**
921
+ * Format: uuid
922
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
923
+ */
924
+ uuid: string;
916
925
  types: (0 | 1 | 2 | 3 | 50 | 99)[];
917
926
  firstName: string;
918
927
  lastName: string;
@@ -937,6 +946,13 @@ interface components {
937
946
  notes: string;
938
947
  };
939
948
  pets: {
949
+ /**
950
+ * Format: uuid
951
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
952
+ */
953
+ uuid: string;
954
+ /** Format: uri */
955
+ profilePicture: string;
940
956
  /** PetSexType */
941
957
  sex: 0 | 1 | 2;
942
958
  name: string;
@@ -974,6 +990,11 @@ interface components {
974
990
  * @description User Details required to register an account
975
991
  */
976
992
  user: {
993
+ /**
994
+ * Format: uuid
995
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
996
+ */
997
+ uuid: string;
977
998
  types: (0 | 1 | 2 | 3 | 50 | 99)[];
978
999
  firstName: string;
979
1000
  lastName: string;
@@ -998,6 +1019,13 @@ interface components {
998
1019
  notes: string;
999
1020
  };
1000
1021
  pets: {
1022
+ /**
1023
+ * Format: uuid
1024
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
1025
+ */
1026
+ uuid: string;
1027
+ /** Format: uri */
1028
+ profilePicture: string;
1001
1029
  /** PetSexType */
1002
1030
  sex: 0 | 1 | 2;
1003
1031
  name: string;
@@ -1009,11 +1037,44 @@ interface components {
1009
1037
  dateOfBirth: ((Record<string, never> | string | number) | null) | null;
1010
1038
  }[];
1011
1039
  };
1040
+ /**
1041
+ * AuthRegisterGetTempUploadUrlDtoSchema
1042
+ * @description Get upload url for Temp Registration
1043
+ */
1044
+ AuthRegisterGetTempUploadUrlDto: {
1045
+ /**
1046
+ * Format: uuid
1047
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
1048
+ */
1049
+ tempRegistrationUuid: string;
1050
+ /**
1051
+ * Format: uuid
1052
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
1053
+ */
1054
+ petUuid: string;
1055
+ mimeType: string;
1056
+ extension: string;
1057
+ };
1058
+ /**
1059
+ * AuthRegisterGetTempUploadUrlResponseDtoSchema
1060
+ * @description Get upload url for Temp Registration
1061
+ */
1062
+ AuthRegisterGetTempUploadUrlResponseDto: {
1063
+ uploadUrl: string;
1064
+ successUrl: string;
1065
+ };
1012
1066
  /**
1013
1067
  * AuthRegisterPetDto
1014
1068
  * @description Pet Details required to register an account
1015
1069
  */
1016
1070
  AuthRegisterPetDto: {
1071
+ /**
1072
+ * Format: uuid
1073
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
1074
+ */
1075
+ uuid: string;
1076
+ /** Format: uri */
1077
+ profilePicture: string;
1017
1078
  /** PetSexType */
1018
1079
  sex: 0 | 1 | 2;
1019
1080
  name: string;
@@ -1063,6 +1124,11 @@ interface components {
1063
1124
  * @description User Details required to register an account
1064
1125
  */
1065
1126
  AuthRegisterUserDto: {
1127
+ /**
1128
+ * Format: uuid
1129
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
1130
+ */
1131
+ uuid: string;
1066
1132
  types: (0 | 1 | 2 | 3 | 50 | 99)[];
1067
1133
  firstName: string;
1068
1134
  lastName: string;
@@ -1147,6 +1213,7 @@ interface components {
1147
1213
  startDate: Record<string, never> | string | number;
1148
1214
  endDate: Record<string, never> | string | number;
1149
1215
  petNames: string[];
1216
+ petTypes: (0 | 1 | 2 | 3 | 4 | 5 | 6)[];
1150
1217
  ownerName: string;
1151
1218
  /** MembershipType */
1152
1219
  ownerMembershipType: 0 | 1 | 2;
@@ -1186,6 +1253,13 @@ interface components {
1186
1253
  dateCreated: Record<string, never> | string | number;
1187
1254
  dateModified: Record<string, never> | string | number;
1188
1255
  };
1256
+ /**
1257
+ * BookingHostAssignDto
1258
+ * @description Assign a host to a booking with nights stayed
1259
+ */
1260
+ BookingHostAssignDto: {
1261
+ numberOfNights: number;
1262
+ };
1189
1263
  /**
1190
1264
  * BookingHostCreateDto
1191
1265
  * @description Create BookingHost details
@@ -2013,6 +2087,18 @@ interface components {
2013
2087
  dateCreated: Record<string, never> | string | number;
2014
2088
  dateModified: Record<string, never> | string | number;
2015
2089
  };
2090
+ /**
2091
+ * TempRegistrationDto
2092
+ * @description Temp Registration details
2093
+ */
2094
+ TempRegistrationDto: {
2095
+ /**
2096
+ * Format: uuid
2097
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
2098
+ */
2099
+ uuid: string;
2100
+ stepProgress: number;
2101
+ };
2016
2102
  /**
2017
2103
  * UploadCreateDto
2018
2104
  * @description Upload Create details
@@ -2024,7 +2110,7 @@ interface components {
2024
2110
  */
2025
2111
  linkUuid: string;
2026
2112
  /** UploadLinkType */
2027
- linkType: 0 | 1 | 2;
2113
+ linkType: 0 | 1 | 2 | 3;
2028
2114
  fileName: string;
2029
2115
  blobType: string;
2030
2116
  /** UploadType */
@@ -2047,7 +2133,7 @@ interface components {
2047
2133
  */
2048
2134
  linkUuid: string;
2049
2135
  /** UploadLinkType */
2050
- linkType: 0 | 1 | 2;
2136
+ linkType: 0 | 1 | 2 | 3;
2051
2137
  fileName: string;
2052
2138
  blobType: string;
2053
2139
  /** UploadType */
@@ -2062,7 +2148,7 @@ interface components {
2062
2148
  */
2063
2149
  UploadImageWithLinkDto: {
2064
2150
  linkUuid: string;
2065
- linkType: string | (0 | 1 | 2);
2151
+ linkType: string | (0 | 1 | 2 | 3);
2066
2152
  type: string | (0 | 5 | 10 | 11 | 20);
2067
2153
  /**
2068
2154
  * Format: binary
@@ -2086,7 +2172,7 @@ interface components {
2086
2172
  */
2087
2173
  linkUuid: string;
2088
2174
  /** UploadLinkType */
2089
- linkType: 0 | 1 | 2;
2175
+ linkType: 0 | 1 | 2 | 3;
2090
2176
  fileName: string;
2091
2177
  blobType: string;
2092
2178
  /** UploadType */
@@ -2335,6 +2421,106 @@ interface components {
2335
2421
  dateCreated: Record<string, never> | string | number;
2336
2422
  dateModified: Record<string, never> | string | number;
2337
2423
  };
2424
+ /**
2425
+ * UserMigrationReportCountsDto
2426
+ * @description Aggregate counts for user migration reporting
2427
+ */
2428
+ UserMigrationReportCountsDto: {
2429
+ pendingPasswordResets: number;
2430
+ expiredPasswordResets: number;
2431
+ ownersNeverLoggedIn: number;
2432
+ };
2433
+ /**
2434
+ * UserMigrationReportDto
2435
+ * @description Admin report on migrated user onboarding progress
2436
+ */
2437
+ UserMigrationReportDto: {
2438
+ /**
2439
+ * UserMigrationReportCountsDto
2440
+ * @description Aggregate counts for user migration reporting
2441
+ */
2442
+ counts: {
2443
+ pendingPasswordResets: number;
2444
+ expiredPasswordResets: number;
2445
+ ownersNeverLoggedIn: number;
2446
+ };
2447
+ pendingPasswordResets: {
2448
+ /**
2449
+ * Format: uuid
2450
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
2451
+ */
2452
+ uuid: string;
2453
+ firstName: string;
2454
+ lastName: string;
2455
+ /**
2456
+ * Format: email
2457
+ * @default info@nanaspetsitting.com
2458
+ */
2459
+ email: string;
2460
+ lastLogin: ((Record<string, never> | string | number) | null) | null;
2461
+ dateCreated: Record<string, never> | string | number;
2462
+ passwordResetLinkCreated?: ((Record<string, never> | string | number) | null) | null;
2463
+ passwordResetLinkExpires?: ((Record<string, never> | string | number) | null) | null;
2464
+ }[];
2465
+ expiredPasswordResets: {
2466
+ /**
2467
+ * Format: uuid
2468
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
2469
+ */
2470
+ uuid: string;
2471
+ firstName: string;
2472
+ lastName: string;
2473
+ /**
2474
+ * Format: email
2475
+ * @default info@nanaspetsitting.com
2476
+ */
2477
+ email: string;
2478
+ lastLogin: ((Record<string, never> | string | number) | null) | null;
2479
+ dateCreated: Record<string, never> | string | number;
2480
+ passwordResetLinkCreated?: ((Record<string, never> | string | number) | null) | null;
2481
+ passwordResetLinkExpires?: ((Record<string, never> | string | number) | null) | null;
2482
+ }[];
2483
+ ownersNeverLoggedIn: {
2484
+ /**
2485
+ * Format: uuid
2486
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
2487
+ */
2488
+ uuid: string;
2489
+ firstName: string;
2490
+ lastName: string;
2491
+ /**
2492
+ * Format: email
2493
+ * @default info@nanaspetsitting.com
2494
+ */
2495
+ email: string;
2496
+ lastLogin: ((Record<string, never> | string | number) | null) | null;
2497
+ dateCreated: Record<string, never> | string | number;
2498
+ passwordResetLinkCreated?: ((Record<string, never> | string | number) | null) | null;
2499
+ passwordResetLinkExpires?: ((Record<string, never> | string | number) | null) | null;
2500
+ }[];
2501
+ };
2502
+ /**
2503
+ * UserMigrationReportUserDto
2504
+ * @description User summary row for admin migration reporting
2505
+ */
2506
+ UserMigrationReportUserDto: {
2507
+ /**
2508
+ * Format: uuid
2509
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
2510
+ */
2511
+ uuid: string;
2512
+ firstName: string;
2513
+ lastName: string;
2514
+ /**
2515
+ * Format: email
2516
+ * @default info@nanaspetsitting.com
2517
+ */
2518
+ email: string;
2519
+ lastLogin: ((Record<string, never> | string | number) | null) | null;
2520
+ dateCreated: Record<string, never> | string | number;
2521
+ passwordResetLinkCreated?: ((Record<string, never> | string | number) | null) | null;
2522
+ passwordResetLinkExpires?: ((Record<string, never> | string | number) | null) | null;
2523
+ };
2338
2524
  /**
2339
2525
  * UserPermissionDto
2340
2526
  * @description A record of a user permission
@@ -2421,6 +2607,8 @@ type AuthPatDto = components['schemas']['AuthPatDto'];
2421
2607
  type AuthRegisterAddressDto = components['schemas']['AuthRegisterAddressDto'];
2422
2608
  type AuthRegisterDto = components['schemas']['AuthRegisterDto'];
2423
2609
  type AuthRegisterGetQuestionsDto = components['schemas']['AuthRegisterGetQuestionsDto'];
2610
+ type AuthRegisterGetTempUploadUrlDto = components['schemas']['AuthRegisterGetTempUploadUrlDto'];
2611
+ type AuthRegisterGetTempUploadUrlResponseDto = components['schemas']['AuthRegisterGetTempUploadUrlResponseDto'];
2424
2612
  type AuthRegisterPetDto = components['schemas']['AuthRegisterPetDto'];
2425
2613
  type AuthRegisterQuestionDto = components['schemas']['AuthRegisterQuestionDto'];
2426
2614
  type AuthRegisterStoreProgressDto = components['schemas']['AuthRegisterStoreProgressDto'];
@@ -2432,6 +2620,7 @@ type BookingAddonDto = P<Omit<components['schemas']['BookingAddonDto'], 'dateCre
2432
2620
  type BookingCalendarOverviewItemDto = P<Omit<components['schemas']['BookingCalendarOverviewItemDto'], 'startDate' | 'endDate'> & { startDate: Date; endDate: Date }>;
2433
2621
  type BookingCreateDto = P<Omit<components['schemas']['BookingCreateDto'], 'startDate' | 'endDate'> & { startDate: Date; endDate: Date }>;
2434
2622
  type BookingDto = P<Omit<components['schemas']['BookingDto'], 'dateCreated' | 'dateModified' | 'startDate' | 'endDate'> & { dateCreated: Date; dateModified: Date; startDate: Date; endDate: Date }>;
2623
+ type BookingHostAssignDto = components['schemas']['BookingHostAssignDto'];
2435
2624
  type BookingHostCreateDto = components['schemas']['BookingHostCreateDto'];
2436
2625
  type BookingHostDto = P<Omit<components['schemas']['BookingHostDto'], 'dateCreated' | 'dateModified'> & { dateCreated: Date; dateModified: Date }>;
2437
2626
  type BookingHostUpdateDto = components['schemas']['BookingHostUpdateDto'];
@@ -2474,6 +2663,7 @@ type SetupIntentCreateDto = components['schemas']['SetupIntentCreateDto'];
2474
2663
  type SetupIntentDto = components['schemas']['SetupIntentDto'];
2475
2664
  type TempLinkCreateDto = components['schemas']['TempLinkCreateDto'];
2476
2665
  type TempLinkDto = P<Omit<components['schemas']['TempLinkDto'], 'dateCreated' | 'dateModified'> & { dateCreated: Date; dateModified: Date }>;
2666
+ type TempRegistrationDto = components['schemas']['TempRegistrationDto'];
2477
2667
  type UploadCreateDto = components['schemas']['UploadCreateDto'];
2478
2668
  type UploadDto = P<Omit<components['schemas']['UploadDto'], 'dateCreated' | 'dateModified'> & { dateCreated: Date; dateModified: Date }>;
2479
2669
  type UploadImageWithLinkDto = components['schemas']['UploadImageWithLinkDto'];
@@ -2489,6 +2679,9 @@ type UserMembershipStatsDto = components['schemas']['UserMembershipStatsDto'];
2489
2679
  type UserMembershipUpdateDto = P<Omit<components['schemas']['UserMembershipUpdateDto'], 'startDate' | 'endDate'> & { startDate: Date; endDate: Date }>;
2490
2680
  type UserMembershipWithStripeInfoDto = P<Omit<components['schemas']['UserMembershipWithStripeInfoDto'], 'dateCreated' | 'dateModified' | 'startDate' | 'endDate'> & { dateCreated: Date; dateModified: Date; startDate: Date; endDate: Date }>;
2491
2681
  type UserMembershipWithUserNamesDto = P<Omit<components['schemas']['UserMembershipWithUserNamesDto'], 'dateCreated' | 'dateModified' | 'startDate' | 'endDate'> & { dateCreated: Date; dateModified: Date; startDate: Date; endDate: Date }>;
2682
+ type UserMigrationReportCountsDto = components['schemas']['UserMigrationReportCountsDto'];
2683
+ type UserMigrationReportDto = components['schemas']['UserMigrationReportDto'];
2684
+ type UserMigrationReportUserDto = P<Omit<components['schemas']['UserMigrationReportUserDto'], 'dateCreated' | 'dateModified'> & { dateCreated: Date; dateModified: Date }>;
2492
2685
  type UserPermissionDto = components['schemas']['UserPermissionDto'];
2493
2686
  type UserUpdateDto = components['schemas']['UserUpdateDto'];
2494
2687
  type VersionDto = components['schemas']['VersionDto'];
@@ -2542,6 +2735,20 @@ declare const AuthRegisterRestriction: {
2542
2735
  readonly pets: {
2543
2736
  readonly minItems: 1;
2544
2737
  readonly maxItems: 5;
2738
+ readonly upload: {
2739
+ readonly url: {
2740
+ readonly minLength: 0;
2741
+ readonly maxLength: 1000;
2742
+ };
2743
+ readonly mimeType: {
2744
+ readonly minLength: 3;
2745
+ readonly maxLength: 50;
2746
+ };
2747
+ readonly extension: {
2748
+ readonly minLength: 3;
2749
+ readonly maxLength: 5;
2750
+ };
2751
+ };
2545
2752
  };
2546
2753
  readonly answers: {
2547
2754
  readonly minItems: 3;
@@ -2921,17 +3128,24 @@ type BookingCalendarOverviewItem = {
2921
3128
  startDate: Date | string;
2922
3129
  endDate: Date | string;
2923
3130
  petNames: Array<string>;
3131
+ petTypes: Array<PetType>;
2924
3132
  ownerName: string;
2925
3133
  ownerMembershipType: MembershipType;
2926
3134
  hostNames: Array<string>;
2927
3135
  };
2928
3136
  declare const getBookingStatusLabelForAdmin: (status: BookingStatusType) => string;
2929
3137
  declare const getMembershipTypeLabel: (type: MembershipType) => string;
3138
+ declare const getPetTypeLabel: (type: PetType) => string;
3139
+ declare const formatPetTypesLabel: (types: Array<PetType>) => string;
2930
3140
  declare const formatBookingCalendarLabel: (item: BookingCalendarOverviewItem) => string;
2931
3141
  declare const BOOKING_OVERVIEW_STATUSES: Array<BookingStatusType>;
2932
3142
  type BookingStatusCounts = Record<BookingStatusType, number>;
2933
3143
  declare const computeBookingStatusCounts: (bookings: Array<BookingCalendarOverviewItem>) => BookingStatusCounts;
2934
- declare const filterBookingsByOverviewStatus: (bookings: Array<BookingCalendarOverviewItem>, status: BookingStatusType | null) => Array<BookingCalendarOverviewItem>;
3144
+ declare const filterBookingsByOverviewStatus: (bookings: Array<BookingCalendarOverviewItem>, statuses: Array<BookingStatusType> | null) => Array<BookingCalendarOverviewItem>;
3145
+ declare const computeBookingNightCount: (startDate: Date | string, endDate: Date | string) => number;
3146
+ declare const formatBookingNightsTooltip: (startDate: Date | string, endDate: Date | string) => string;
3147
+ declare const serializeBookingOverviewStatuses: (statuses: Array<BookingStatusType>) => string | undefined;
3148
+ declare const parseBookingOverviewStatuses: (statuses: string | undefined) => Array<BookingStatusType> | undefined;
2935
3149
 
2936
3150
  type ValidFormTypes = string | Array<string> | Array<number> | (string | number) | number | boolean | Date | (FormCalendarDatePickerRangeProps | undefined) | File;
2937
3151
  type ValidFormComponentTypes = Component<FormInputProps<string>> | Component<FormInputProps<Array<string>>> | Component<FormInputProps<string | Array<string>>> | Component<FormInputProps<Array<number>>> | Component<FormInputProps<string | number>> | Component<FormInputProps<number>> | Component<FormInputProps<boolean>> | Component<FormInputProps<Date>> | Component<FormInputProps<FormCalendarDatePickerRangeProps | undefined>> | Component<FormInputProps<File>>;
@@ -3120,11 +3334,34 @@ type Prettify<T> = {
3120
3334
  } & {};
3121
3335
 
3122
3336
  declare const urlRef: (url: string) => string;
3337
+ declare const urlAddQueryParam: (url: string, queryParamName: string, queryParamValue: string) => string;
3123
3338
 
3124
3339
  declare const userMustChangePassword: (flags?: Array<UserAccountFlagType | number>) => boolean;
3125
3340
 
3126
3341
  declare const getActiveUserMembership: (userMemberships: Array<UserMembershipDto>) => UserMembershipDto | undefined;
3127
3342
 
3343
+ type UserMigrationReportUser = {
3344
+ uuid: string;
3345
+ firstName: string;
3346
+ lastName: string;
3347
+ email: string;
3348
+ lastLogin: Date | string | null;
3349
+ dateCreated: Date | string;
3350
+ passwordResetLinkCreated?: Date | string | null;
3351
+ passwordResetLinkExpires?: Date | string | null;
3352
+ };
3353
+ type UserMigrationReportCounts = {
3354
+ pendingPasswordResets: number;
3355
+ expiredPasswordResets: number;
3356
+ ownersNeverLoggedIn: number;
3357
+ };
3358
+ type UserMigrationReport = {
3359
+ counts: UserMigrationReportCounts;
3360
+ pendingPasswordResets: Array<UserMigrationReportUser>;
3361
+ expiredPasswordResets: Array<UserMigrationReportUser>;
3362
+ ownersNeverLoggedIn: Array<UserMigrationReportUser>;
3363
+ };
3364
+
3128
3365
  declare class CommonConfigService {
3129
3366
  private _internalIsProd?;
3130
3367
  getHubApiUrl: () => string;
@@ -3250,4 +3487,4 @@ declare const maxLength: (maxLengthVal: number) => (value: string) => Validation
3250
3487
  declare const shouldBeUrl: (value: string) => ValidationResult;
3251
3488
  declare const shouldBeYoutubeUrl: (value: string) => ValidationResult;
3252
3489
 
3253
- export { NetworkState as $, AppType as A, apiRoute as B, CommonConfigService as C, type DependencyInjectionToken as D, type EnvKey as E, ActivityType as F, AddressLinkType as G, type HtmlElementEvent as H, type ILogger as I, AnswerLinkType as J, type KeyEvent as K, LogService as L, type MonthTranslationKey as M, NANAS_PALLETTE as N, BookingAddonType as O, BookingStatusType as P, BugReportStatusType as Q, type ResultWithValue as R, type SupportedLanguage as S, type ThemeType as T, CommentLinkType as U, InvoiceStatusType as V, type WeekdayTranslationKey as W, type LogType as X, MembershipBillingCycleType as Y, MembershipStatus as Z, MembershipType as _, type Result as a, type MembershipUpdateDto as a$, OrderDirectionType as a0, PermissionType as a1, PetSexType as a2, PetStatusType as a3, PetType as a4, QuestionType as a5, QuestionForType as a6, getAllPetQuestionForType as a7, SearchableColumnType as a8, type SearchableColumnInfo as a9, type AuthResetPasswordDto as aA, type AuthSuccessDto as aB, type BookingAddonDto as aC, type BookingCalendarOverviewItemDto as aD, type BookingCreateDto as aE, type BookingDto as aF, type BookingHostCreateDto as aG, type BookingHostDto as aH, type BookingHostUpdateDto as aI, type BookingRestrictionsDto as aJ, type BookingRestrictionsEnabledDaysDto as aK, type BookingRestrictionsPremiumEnabledDaysDto as aL, type BookingUpdateDto as aM, type BookingWithRelationshipsDto as aN, type BugReportCreateDto as aO, type BugReportDto as aP, type BugReportUpdateDto as aQ, type ClientAnswerSaveDto as aR, type CommentCreateDto as aS, type CommentDto as aT, type CommentUpdateDto as aU, type InvoiceCreateDto as aV, type InvoiceDto as aW, type InvoiceUpdateDto as aX, type InvoiceWithStripeInfoDto as aY, type MembershipCreateDto as aZ, type MembershipDto as a_, TempLinkType as aa, TempRegistrationStatus as ab, UploadLinkType as ac, UploadType as ad, uploadsThatNeedEncryption as ae, UserAccountFlagType as af, UserType as ag, hubspotQuestionsExport as ah, type ActivityDto as ai, type AddressCreateDto as aj, type AddressDto as ak, type AddressLookupDto as al, type AddressUpdateDto as am, type AnswerCreateDto as an, type AnswerDto as ao, type AuthChangePasswordDto as ap, type AuthLoginDto as aq, type AuthPatDto as ar, type AuthRegisterAddressDto as as, type AuthRegisterDto as at, type AuthRegisterGetQuestionsDto as au, type AuthRegisterPetDto as av, type AuthRegisterQuestionDto as aw, type AuthRegisterStoreProgressDto as ax, type AuthRegisterUserDto as ay, type AuthRequestResetPasswordDto as az, type IDependencyInjectionSetupProps as b, type NominatimResponse as b$, type PaginationRequestDto as b0, type PaginationResponseDto as b1, type PaymentMethodDto as b2, type PetCreateDto as b3, type PetDto as b4, type PetUpdateDto as b5, type ProfileDto as b6, type ProfileQuestionAndAnswersItemDto as b7, type ProfileQuestionRequestDto as b8, type ProfileUpdateDto as b9, type UserUpdateDto as bA, type VersionDto as bB, type JwtPayloadDto as bC, ActivityRestriction as bD, AddressRestriction as bE, AnswerRestriction as bF, AuthRegisterRestriction as bG, BookingRestriction as bH, BookingAddonRestriction as bI, BugReportRestriction as bJ, CommentRestriction as bK, UuidRestriction as bL, DrivingRouteRestriction as bM, InvoiceRestriction as bN, MembershipRestriction as bO, PermissionRestriction as bP, PetRestriction as bQ, QuestionRestriction as bR, StripeRestriction as bS, UnavailabilityRestriction as bT, UploadRestriction as bU, UserRestriction as bV, searchColumns as bW, type ICaptchaResponse as bX, type LogMethod as bY, type ILogMessage as bZ, type IMediaUpload as b_, type QuestionCreateDto as ba, type QuestionDto as bb, type QuestionUpdateDto as bc, type SearchObjDatePropRequestDto as bd, type SearchObjRequestDto as be, type SearchObjTextPropRequestDto as bf, type SetupIntentCreateDto as bg, type SetupIntentDto as bh, type TempLinkCreateDto as bi, type TempLinkDto as bj, type UploadCreateDto as bk, type UploadDto as bl, type UploadImageWithLinkDto as bm, type UploadUpdateDto as bn, type UserCreateDto as bo, type UserDto as bp, type UserMembershipChangeResponseDto as bq, type UserMembershipCreateDto as br, type UserMembershipDto as bs, type UserMembershipSignUpDto as bt, type UserMembershipSignUpResponseDto as bu, type UserMembershipStatsDto as bv, type UserMembershipUpdateDto as bw, type UserMembershipWithStripeInfoDto as bx, type UserMembershipWithUserNamesDto as by, type UserPermissionDto as bz, weekdayTranslationKeyOrder as c, type ObjectWithPropsOfValue as c$, type NominatimAddressResponse as c0, type ValidationResult as c1, makeArrayOrDefault as c2, onlyUnique as c3, arrayOfNLength as c4, arrayContains as c5, timeout as c6, addToParallelTasks as c7, type BookingCalendarOverviewItem as c8, getBookingStatusLabelForAdmin as c9, getWeekNumber as cA, showSecondCalendar as cB, debounceLeading as cC, getArrFromEnum as cD, uuidv4 as cE, cyrb53 as cF, type IImageParams as cG, getImageParams as cH, getPayloadFromJwt as cI, mimeTypeLookup as cJ, getMimeTypeFromExtension as cK, tryParseNumber as cL, getPerformanceTimer as cM, hasRequiredPermissions as cN, getUserAvatarUrl as cO, getPetAvatarUrl as cP, promiseFromValue as cQ, nameof as cR, getQuestionGroups as cS, randomIntFromRange as cT, randomItemFromArray as cU, capitalizeFirstLetter as cV, lowercaseFirstLetter as cW, addSpacesForEnum as cX, formatFileSize as cY, anyObject as cZ, fakePromise as c_, getMembershipTypeLabel as ca, formatBookingCalendarLabel as cb, BOOKING_OVERVIEW_STATUSES as cc, type BookingStatusCounts as cd, computeBookingStatusCounts as ce, filterBookingsByOverviewStatus as cf, getDayClassObject as cg, getDayHeadingElements as ch, type RenderCellType as ci, getDayElements as cj, getUsersName as ck, formatDate as cl, formatForDateLocal as cm, formatForDateDropdown as cn, formatForDateOfBirth as co, formatForDateWithTime as cp, formatForDateLocalDetailed as cq, formatForBookingDate as cr, addSeconds as cs, addMinutes as ct, addDays as cu, addMonths as cv, isBefore as cw, isSameDay as cx, dateDiffInDays as cy, getAgeInYears as cz, SupportedLanguageArray as d, type Prettify as d0, urlRef as d1, userMustChangePassword as d2, getActiveUserMembership as d3, type ISiteColour as d4, colourPalette as d5, defaultSiteColour as d6, type ISite as d7, DependencyInjectionContainer as d8, rootContainer as d9, minDate as dA, maxDate as dB, emailValid as dC, isNumber as dD, minValue as dE, maxValue as dF, passwordValid as dG, postCodeValid as dH, minLength as dI, maxLength as dJ, shouldBeUrl as dK, shouldBeYoutubeUrl as dL, type IFormCalendarPickerProps as dM, type FullDateSelectionProps as dN, type FormCalendarPickerMode as dO, type FormCalendarDatePickerRangeProps as dP, type DateSelectionProps as dQ, type FormCalendarPickerInnerProps as dR, type FormInputProps as dS, type FormCalendarSpecialRangeDisplayProps as dT, type FormCalendarSpecialRangeProps as dU, type ValidFormTypes as dV, type ValidFormComponentTypes as dW, type PropertyOverrides as dX, BOT_PATH_TOKEN as da, getBotPath as db, APP_TYPE_TOKEN as dc, getAppType as dd, SITE_CONFIG_TOKEN as de, setSiteConfig as df, getSiteConfig as dg, getSiteColour as dh, getCommonConfig as di, getLog as dj, rootDependencyInjectionSetup as dk, setContainerToken as dl, setContainerTokenLazy as dm, minItems as dn, maxItems as dp, selectedItemsExist as dq, selectedOptionIsInEnum as dr, noValidation as ds, notNull as dt, multiValidation as du, separateValidation as dv, validateForEach as dw, allowedNonNumericalValuesInContactNumber as dx, contactNumberCharValid as dy, contactNumberValid as dz, commonEmailLinks as e, MouseButton as f, minUrlLength as g, type CachedValue as h, isWebApp as i, createToken as j, type DependencyInjectionIdentifier as k, type DependencyInjectionFactory as l, monthTranslationKeyOrder as m, nanasFonts as n, type IDependencyInjectionSetupWebProps as o, portalGlyphLength as p, type HtmlKeyEvent as q, type HtmlFilesEvent as r, socialLinks as s, type HtmlImageReadEvent as t, type ClickEvent as u, validUuidChars as v, webAppTypes as w, type ActivityLocationType as x, activityShortCode as y, apiRouteParam as z };
3490
+ export { NetworkState as $, AppType as A, apiRoute as B, CommonConfigService as C, type DependencyInjectionToken as D, type EnvKey as E, ActivityType as F, AddressLinkType as G, type HtmlElementEvent as H, type ILogger as I, AnswerLinkType as J, type KeyEvent as K, LogService as L, type MonthTranslationKey as M, NANAS_PALLETTE as N, BookingAddonType as O, BookingStatusType as P, BugReportStatusType as Q, type ResultWithValue as R, type SupportedLanguage as S, type ThemeType as T, CommentLinkType as U, InvoiceStatusType as V, type WeekdayTranslationKey as W, type LogType as X, MembershipBillingCycleType as Y, MembershipStatus as Z, MembershipType as _, type Result as a, type InvoiceWithStripeInfoDto as a$, OrderDirectionType as a0, PermissionType as a1, PetSexType as a2, PetStatusType as a3, PetType as a4, QuestionType as a5, QuestionForType as a6, getAllPetQuestionForType as a7, SearchableColumnType as a8, type SearchableColumnInfo as a9, type AuthRegisterUserDto as aA, type AuthRequestResetPasswordDto as aB, type AuthResetPasswordDto as aC, type AuthSuccessDto as aD, type BookingAddonDto as aE, type BookingCalendarOverviewItemDto as aF, type BookingCreateDto as aG, type BookingDto as aH, type BookingHostAssignDto as aI, type BookingHostCreateDto as aJ, type BookingHostDto as aK, type BookingHostUpdateDto as aL, type BookingRestrictionsDto as aM, type BookingRestrictionsEnabledDaysDto as aN, type BookingRestrictionsPremiumEnabledDaysDto as aO, type BookingUpdateDto as aP, type BookingWithRelationshipsDto as aQ, type BugReportCreateDto as aR, type BugReportDto as aS, type BugReportUpdateDto as aT, type ClientAnswerSaveDto as aU, type CommentCreateDto as aV, type CommentDto as aW, type CommentUpdateDto as aX, type InvoiceCreateDto as aY, type InvoiceDto as aZ, type InvoiceUpdateDto as a_, TempLinkType as aa, TempRegistrationStatus as ab, UploadLinkType as ac, UploadType as ad, uploadsThatNeedEncryption as ae, UserAccountFlagType as af, UserType as ag, hubspotQuestionsExport as ah, type ActivityDto as ai, type AddressCreateDto as aj, type AddressDto as ak, type AddressLookupDto as al, type AddressUpdateDto as am, type AnswerCreateDto as an, type AnswerDto as ao, type AuthChangePasswordDto as ap, type AuthLoginDto as aq, type AuthPatDto as ar, type AuthRegisterAddressDto as as, type AuthRegisterDto as at, type AuthRegisterGetQuestionsDto as au, type AuthRegisterGetTempUploadUrlDto as av, type AuthRegisterGetTempUploadUrlResponseDto as aw, type AuthRegisterPetDto as ax, type AuthRegisterQuestionDto as ay, type AuthRegisterStoreProgressDto as az, type IDependencyInjectionSetupProps as b, UploadRestriction as b$, type MembershipCreateDto as b0, type MembershipDto as b1, type MembershipUpdateDto as b2, type PaginationRequestDto as b3, type PaginationResponseDto as b4, type PaymentMethodDto as b5, type PetCreateDto as b6, type PetDto as b7, type PetUpdateDto as b8, type ProfileDto as b9, type UserMembershipUpdateDto as bA, type UserMembershipWithStripeInfoDto as bB, type UserMembershipWithUserNamesDto as bC, type UserMigrationReportCountsDto as bD, type UserMigrationReportDto as bE, type UserMigrationReportUserDto as bF, type UserPermissionDto as bG, type UserUpdateDto as bH, type VersionDto as bI, type JwtPayloadDto as bJ, ActivityRestriction as bK, AddressRestriction as bL, AnswerRestriction as bM, AuthRegisterRestriction as bN, BookingRestriction as bO, BookingAddonRestriction as bP, BugReportRestriction as bQ, CommentRestriction as bR, UuidRestriction as bS, DrivingRouteRestriction as bT, InvoiceRestriction as bU, MembershipRestriction as bV, PermissionRestriction as bW, PetRestriction as bX, QuestionRestriction as bY, StripeRestriction as bZ, UnavailabilityRestriction as b_, type ProfileQuestionAndAnswersItemDto as ba, type ProfileQuestionRequestDto as bb, type ProfileUpdateDto as bc, type QuestionCreateDto as bd, type QuestionDto as be, type QuestionUpdateDto as bf, type SearchObjDatePropRequestDto as bg, type SearchObjRequestDto as bh, type SearchObjTextPropRequestDto as bi, type SetupIntentCreateDto as bj, type SetupIntentDto as bk, type TempLinkCreateDto as bl, type TempLinkDto as bm, type TempRegistrationDto as bn, type UploadCreateDto as bo, type UploadDto as bp, type UploadImageWithLinkDto as bq, type UploadUpdateDto as br, type UserCreateDto as bs, type UserDto as bt, type UserMembershipChangeResponseDto as bu, type UserMembershipCreateDto as bv, type UserMembershipDto as bw, type UserMembershipSignUpDto as bx, type UserMembershipSignUpResponseDto as by, type UserMembershipStatsDto as bz, weekdayTranslationKeyOrder as c, getUserAvatarUrl as c$, UserRestriction as c0, searchColumns as c1, type ICaptchaResponse as c2, type LogMethod as c3, type ILogMessage as c4, type IMediaUpload as c5, type NominatimResponse as c6, type NominatimAddressResponse as c7, type ValidationResult as c8, makeArrayOrDefault as c9, formatForDateDropdown as cA, formatForDateOfBirth as cB, formatForDateWithTime as cC, formatForDateLocalDetailed as cD, formatForBookingDate as cE, addSeconds as cF, addMinutes as cG, addDays as cH, addMonths as cI, isBefore as cJ, isSameDay as cK, dateDiffInDays as cL, getAgeInYears as cM, getWeekNumber as cN, showSecondCalendar as cO, debounceLeading as cP, getArrFromEnum as cQ, uuidv4 as cR, cyrb53 as cS, type IImageParams as cT, getImageParams as cU, getPayloadFromJwt as cV, mimeTypeLookup as cW, getMimeTypeFromExtension as cX, tryParseNumber as cY, getPerformanceTimer as cZ, hasRequiredPermissions as c_, onlyUnique as ca, arrayOfNLength as cb, arrayContains as cc, timeout as cd, addToParallelTasks as ce, type BookingCalendarOverviewItem as cf, getBookingStatusLabelForAdmin as cg, getMembershipTypeLabel as ch, getPetTypeLabel as ci, formatPetTypesLabel as cj, formatBookingCalendarLabel as ck, BOOKING_OVERVIEW_STATUSES as cl, type BookingStatusCounts as cm, computeBookingStatusCounts as cn, filterBookingsByOverviewStatus as co, computeBookingNightCount as cp, formatBookingNightsTooltip as cq, serializeBookingOverviewStatuses as cr, parseBookingOverviewStatuses as cs, getDayClassObject as ct, getDayHeadingElements as cu, type RenderCellType as cv, getDayElements as cw, getUsersName as cx, formatDate as cy, formatForDateLocal as cz, SupportedLanguageArray as d, shouldBeUrl as d$, getPetAvatarUrl as d0, promiseFromValue as d1, nameof as d2, getQuestionGroups as d3, randomIntFromRange as d4, randomItemFromArray as d5, capitalizeFirstLetter as d6, lowercaseFirstLetter as d7, addSpacesForEnum as d8, formatFileSize as d9, getCommonConfig as dA, getLog as dB, rootDependencyInjectionSetup as dC, setContainerToken as dD, setContainerTokenLazy as dE, minItems as dF, maxItems as dG, selectedItemsExist as dH, selectedOptionIsInEnum as dI, noValidation as dJ, notNull as dK, multiValidation as dL, separateValidation as dM, validateForEach as dN, allowedNonNumericalValuesInContactNumber as dO, contactNumberCharValid as dP, contactNumberValid as dQ, minDate as dR, maxDate as dS, emailValid as dT, isNumber as dU, minValue as dV, maxValue as dW, passwordValid as dX, postCodeValid as dY, minLength as dZ, maxLength as d_, anyObject as da, fakePromise as db, type ObjectWithPropsOfValue as dc, type Prettify as dd, urlRef as de, urlAddQueryParam as df, userMustChangePassword as dg, getActiveUserMembership as dh, type UserMigrationReportUser as di, type UserMigrationReportCounts as dj, type UserMigrationReport as dk, type ISiteColour as dl, colourPalette as dm, defaultSiteColour as dn, type ISite as dp, DependencyInjectionContainer as dq, rootContainer as dr, BOT_PATH_TOKEN as ds, getBotPath as dt, APP_TYPE_TOKEN as du, getAppType as dv, SITE_CONFIG_TOKEN as dw, setSiteConfig as dx, getSiteConfig as dy, getSiteColour as dz, commonEmailLinks as e, shouldBeYoutubeUrl as e0, type IFormCalendarPickerProps as e1, type FullDateSelectionProps as e2, type FormCalendarPickerMode as e3, type FormCalendarDatePickerRangeProps as e4, type DateSelectionProps as e5, type FormCalendarPickerInnerProps as e6, type FormInputProps as e7, type FormCalendarSpecialRangeDisplayProps as e8, type FormCalendarSpecialRangeProps as e9, type ValidFormTypes as ea, type ValidFormComponentTypes as eb, type PropertyOverrides as ec, MouseButton as f, minUrlLength as g, type CachedValue as h, isWebApp as i, createToken as j, type DependencyInjectionIdentifier as k, type DependencyInjectionFactory as l, monthTranslationKeyOrder as m, nanasFonts as n, type IDependencyInjectionSetupWebProps as o, portalGlyphLength as p, type HtmlKeyEvent as q, type HtmlFilesEvent as r, socialLinks as s, type HtmlImageReadEvent as t, type ClickEvent as u, validUuidChars as v, webAppTypes as w, type ActivityLocationType as x, activityShortCode as y, apiRouteParam as z };
@@ -1,7 +1,7 @@
1
1
  import * as solid_js from 'solid-js';
2
2
  import { JSXElement, Component, JSX, Accessor, ComponentProps } from 'solid-js';
3
- import { F as ActivityType, P as BookingStatusType, Q as BugReportStatusType, u as ClickEvent, _ as MembershipType, Z as MembershipStatus, Y as MembershipBillingCycleType, a3 as PetStatusType, b6 as ProfileDto, bb as QuestionDto, ao as AnswerDto, a6 as QuestionForType, a5 as QuestionType, ag as UserType, af as UserAccountFlagType, R as ResultWithValue, a1 as PermissionType, $ as NetworkState, dM as IFormCalendarPickerProps, dN as FullDateSelectionProps, dO as FormCalendarPickerMode, dP as FormCalendarDatePickerRangeProps, dQ as DateSelectionProps, W as WeekdayTranslationKey, M as MonthTranslationKey, dR as FormCalendarPickerInnerProps, dS as FormInputProps, c1 as ValidationResult, K as KeyEvent, H as HtmlElementEvent, aj as AddressCreateDto, am as AddressUpdateDto, aq as AuthLoginDto, ay as AuthRegisterUserDto, aF as BookingDto, aE as BookingCreateDto, aM as BookingUpdateDto, aP as BugReportDto, aO as BugReportCreateDto, aZ as MembershipCreateDto, b3 as PetCreateDto, b5 as PetUpdateDto, b9 as ProfileUpdateDto, ba as QuestionCreateDto, bk as UploadCreateDto, bm as UploadImageWithLinkDto, bp as UserDto, bo as UserCreateDto, bw as UserMembershipUpdateDto, br as UserMembershipCreateDto, r as HtmlFilesEvent, bZ as ILogMessage, I as ILogger, a as Result, b0 as PaginationRequestDto, b1 as PaginationResponseDto, be as SearchObjRequestDto, C as CommonConfigService, ai as ActivityDto, L as LogService, ak as AddressDto, G as AddressLinkType, b$ as NominatimResponse, b7 as ProfileQuestionAndAnswersItemDto, aN as BookingWithRelationshipsDto, c8 as BookingCalendarOverviewItem, aQ as BugReportUpdateDto, U as CommentLinkType, aT as CommentDto, aS as CommentCreateDto, aW as InvoiceDto, aV as InvoiceCreateDto, aX as InvoiceUpdateDto, a_ as MembershipDto, a$ as MembershipUpdateDto, b4 as PetDto, bl as UploadDto, bn as UploadUpdateDto, bA as UserUpdateDto, bs as UserMembershipDto, by as UserMembershipWithUserNamesDto, bv as UserMembershipStatsDto, bz as UserPermissionDto, al as AddressLookupDto, aY as InvoiceWithStripeInfoDto, d7 as ISite, b2 as PaymentMethodDto, bg as SetupIntentCreateDto, bh as SetupIntentDto, aJ as BookingRestrictionsDto, bt as UserMembershipSignUpDto, bu as UserMembershipSignUpResponseDto, bq as UserMembershipChangeResponseDto, aB as AuthSuccessDto, at as AuthRegisterDto, ax as AuthRegisterStoreProgressDto, au as AuthRegisterGetQuestionsDto, az as AuthRequestResetPasswordDto, aA as AuthResetPasswordDto, ap as AuthChangePasswordDto, bB as VersionDto, T as ThemeType, d0 as Prettify, o as IDependencyInjectionSetupWebProps } from '../textValidation-BfD85KGx.js';
4
- export { dc as APP_TYPE_TOKEN, x as ActivityLocationType, bD as ActivityRestriction, bE as AddressRestriction, an as AnswerCreateDto, J as AnswerLinkType, bF as AnswerRestriction, A as AppType, ar as AuthPatDto, as as AuthRegisterAddressDto, av as AuthRegisterPetDto, aw as AuthRegisterQuestionDto, bG as AuthRegisterRestriction, cc as BOOKING_OVERVIEW_STATUSES, da as BOT_PATH_TOKEN, aC as BookingAddonDto, bI as BookingAddonRestriction, O as BookingAddonType, aD as BookingCalendarOverviewItemDto, aG as BookingHostCreateDto, aH as BookingHostDto, aI as BookingHostUpdateDto, bH as BookingRestriction, aK as BookingRestrictionsEnabledDaysDto, aL as BookingRestrictionsPremiumEnabledDaysDto, cd as BookingStatusCounts, bJ as BugReportRestriction, h as CachedValue, aR as ClientAnswerSaveDto, bK as CommentRestriction, aU as CommentUpdateDto, d8 as DependencyInjectionContainer, l as DependencyInjectionFactory, k as DependencyInjectionIdentifier, D as DependencyInjectionToken, bM as DrivingRouteRestriction, E as EnvKey, dT as FormCalendarSpecialRangeDisplayProps, dU as FormCalendarSpecialRangeProps, t as HtmlImageReadEvent, q as HtmlKeyEvent, bX as ICaptchaResponse, b as IDependencyInjectionSetupProps, cG as IImageParams, b_ as IMediaUpload, d4 as ISiteColour, bN as InvoiceRestriction, V as InvoiceStatusType, bC as JwtPayloadDto, bY as LogMethod, X as LogType, bO as MembershipRestriction, f as MouseButton, N as NANAS_PALLETTE, c0 as NominatimAddressResponse, c$ as ObjectWithPropsOfValue, a0 as OrderDirectionType, bP as PermissionRestriction, bQ as PetRestriction, a2 as PetSexType, a4 as PetType, b8 as ProfileQuestionRequestDto, dX as PropertyOverrides, bR as QuestionRestriction, bc as QuestionUpdateDto, ci as RenderCellType, de as SITE_CONFIG_TOKEN, bd as SearchObjDatePropRequestDto, bf as SearchObjTextPropRequestDto, a9 as SearchableColumnInfo, a8 as SearchableColumnType, bS as StripeRestriction, S as SupportedLanguage, d as SupportedLanguageArray, bi as TempLinkCreateDto, bj as TempLinkDto, aa as TempLinkType, ab as TempRegistrationStatus, bT as UnavailabilityRestriction, ac as UploadLinkType, bU as UploadRestriction, ad as UploadType, bx as UserMembershipWithStripeInfoDto, bV as UserRestriction, bL as UuidRestriction, dW as ValidFormComponentTypes, dV as ValidFormTypes, y as activityShortCode, cu as addDays, ct as addMinutes, cv as addMonths, cs as addSeconds, cX as addSpacesForEnum, c7 as addToParallelTasks, dx as allowedNonNumericalValuesInContactNumber, cZ as anyObject, B as apiRoute, z as apiRouteParam, c5 as arrayContains, c4 as arrayOfNLength, cV as capitalizeFirstLetter, d5 as colourPalette, e as commonEmailLinks, ce as computeBookingStatusCounts, dy as contactNumberCharValid, dz as contactNumberValid, j as createToken, cF as cyrb53, cy as dateDiffInDays, cC as debounceLeading, d6 as defaultSiteColour, dC as emailValid, c_ as fakePromise, cf as filterBookingsByOverviewStatus, cb as formatBookingCalendarLabel, cl as formatDate, cY as formatFileSize, cr as formatForBookingDate, cn as formatForDateDropdown, cm as formatForDateLocal, cq as formatForDateLocalDetailed, co as formatForDateOfBirth, cp as formatForDateWithTime, d3 as getActiveUserMembership, cz as getAgeInYears, a7 as getAllPetQuestionForType, dd as getAppType, cD as getArrFromEnum, c9 as getBookingStatusLabelForAdmin, db as getBotPath, di as getCommonConfig, cg as getDayClassObject, cj as getDayElements, ch as getDayHeadingElements, cH as getImageParams, dj as getLog, ca as getMembershipTypeLabel, cK as getMimeTypeFromExtension, cI as getPayloadFromJwt, cM as getPerformanceTimer, cP as getPetAvatarUrl, cS as getQuestionGroups, dh as getSiteColour, dg as getSiteConfig, cO as getUserAvatarUrl, ck as getUsersName, cA as getWeekNumber, cN as hasRequiredPermissions, ah as hubspotQuestionsExport, cw as isBefore, dD as isNumber, cx as isSameDay, i as isWebApp, cW as lowercaseFirstLetter, c2 as makeArrayOrDefault, dB as maxDate, dp as maxItems, dJ as maxLength, dF as maxValue, cJ as mimeTypeLookup, dA as minDate, dn as minItems, dI as minLength, g as minUrlLength, dE as minValue, m as monthTranslationKeyOrder, du as multiValidation, cR as nameof, n as nanasFonts, ds as noValidation, dt as notNull, c3 as onlyUnique, dG as passwordValid, p as portalGlyphLength, dH as postCodeValid, cQ as promiseFromValue, cT as randomIntFromRange, cU as randomItemFromArray, d9 as rootContainer, dk as rootDependencyInjectionSetup, bW as searchColumns, dq as selectedItemsExist, dr as selectedOptionIsInEnum, dv as separateValidation, dl as setContainerToken, dm as setContainerTokenLazy, df as setSiteConfig, dK as shouldBeUrl, dL as shouldBeYoutubeUrl, cB as showSecondCalendar, s as socialLinks, c6 as timeout, cL as tryParseNumber, ae as uploadsThatNeedEncryption, d1 as urlRef, d2 as userMustChangePassword, cE as uuidv4, v as validUuidChars, dw as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-BfD85KGx.js';
3
+ import { F as ActivityType, P as BookingStatusType, Q as BugReportStatusType, u as ClickEvent, _ as MembershipType, Z as MembershipStatus, Y as MembershipBillingCycleType, a3 as PetStatusType, b9 as ProfileDto, be as QuestionDto, ao as AnswerDto, a6 as QuestionForType, a5 as QuestionType, ag as UserType, af as UserAccountFlagType, R as ResultWithValue, a1 as PermissionType, $ as NetworkState, e1 as IFormCalendarPickerProps, e2 as FullDateSelectionProps, e3 as FormCalendarPickerMode, e4 as FormCalendarDatePickerRangeProps, e5 as DateSelectionProps, W as WeekdayTranslationKey, M as MonthTranslationKey, e6 as FormCalendarPickerInnerProps, e7 as FormInputProps, c8 as ValidationResult, K as KeyEvent, H as HtmlElementEvent, aj as AddressCreateDto, am as AddressUpdateDto, aq as AuthLoginDto, aA as AuthRegisterUserDto, aH as BookingDto, aG as BookingCreateDto, aP as BookingUpdateDto, aS as BugReportDto, aR as BugReportCreateDto, b0 as MembershipCreateDto, b6 as PetCreateDto, b8 as PetUpdateDto, bc as ProfileUpdateDto, bd as QuestionCreateDto, bo as UploadCreateDto, bq as UploadImageWithLinkDto, bt as UserDto, bs as UserCreateDto, bA as UserMembershipUpdateDto, bv as UserMembershipCreateDto, r as HtmlFilesEvent, c4 as ILogMessage, I as ILogger, a as Result, b3 as PaginationRequestDto, b4 as PaginationResponseDto, bh as SearchObjRequestDto, C as CommonConfigService, ai as ActivityDto, L as LogService, ak as AddressDto, G as AddressLinkType, c6 as NominatimResponse, ba as ProfileQuestionAndAnswersItemDto, aQ as BookingWithRelationshipsDto, cf as BookingCalendarOverviewItem, aT as BugReportUpdateDto, U as CommentLinkType, aW as CommentDto, aV as CommentCreateDto, aZ as InvoiceDto, aY as InvoiceCreateDto, a_ as InvoiceUpdateDto, b1 as MembershipDto, b2 as MembershipUpdateDto, b7 as PetDto, bp as UploadDto, br as UploadUpdateDto, bH as UserUpdateDto, dk as UserMigrationReport, bw as UserMembershipDto, bC as UserMembershipWithUserNamesDto, bz as UserMembershipStatsDto, bG as UserPermissionDto, al as AddressLookupDto, a$ as InvoiceWithStripeInfoDto, dp as ISite, b5 as PaymentMethodDto, bj as SetupIntentCreateDto, bk as SetupIntentDto, aM as BookingRestrictionsDto, bx as UserMembershipSignUpDto, by as UserMembershipSignUpResponseDto, bu as UserMembershipChangeResponseDto, aD as AuthSuccessDto, at as AuthRegisterDto, az as AuthRegisterStoreProgressDto, bn as TempRegistrationDto, au as AuthRegisterGetQuestionsDto, av as AuthRegisterGetTempUploadUrlDto, aw as AuthRegisterGetTempUploadUrlResponseDto, aB as AuthRequestResetPasswordDto, aC as AuthResetPasswordDto, ap as AuthChangePasswordDto, bI as VersionDto, T as ThemeType, dd as Prettify, o as IDependencyInjectionSetupWebProps } from '../textValidation-CCe3PBaJ.js';
4
+ export { du as APP_TYPE_TOKEN, x as ActivityLocationType, bK as ActivityRestriction, bL as AddressRestriction, an as AnswerCreateDto, J as AnswerLinkType, bM as AnswerRestriction, A as AppType, ar as AuthPatDto, as as AuthRegisterAddressDto, ax as AuthRegisterPetDto, ay as AuthRegisterQuestionDto, bN as AuthRegisterRestriction, cl as BOOKING_OVERVIEW_STATUSES, ds as BOT_PATH_TOKEN, aE as BookingAddonDto, bP as BookingAddonRestriction, O as BookingAddonType, aF as BookingCalendarOverviewItemDto, aI as BookingHostAssignDto, aJ as BookingHostCreateDto, aK as BookingHostDto, aL as BookingHostUpdateDto, bO as BookingRestriction, aN as BookingRestrictionsEnabledDaysDto, aO as BookingRestrictionsPremiumEnabledDaysDto, cm as BookingStatusCounts, bQ as BugReportRestriction, h as CachedValue, aU as ClientAnswerSaveDto, bR as CommentRestriction, aX as CommentUpdateDto, dq as DependencyInjectionContainer, l as DependencyInjectionFactory, k as DependencyInjectionIdentifier, D as DependencyInjectionToken, bT as DrivingRouteRestriction, E as EnvKey, e8 as FormCalendarSpecialRangeDisplayProps, e9 as FormCalendarSpecialRangeProps, t as HtmlImageReadEvent, q as HtmlKeyEvent, c2 as ICaptchaResponse, b as IDependencyInjectionSetupProps, cT as IImageParams, c5 as IMediaUpload, dl as ISiteColour, bU as InvoiceRestriction, V as InvoiceStatusType, bJ as JwtPayloadDto, c3 as LogMethod, X as LogType, bV as MembershipRestriction, f as MouseButton, N as NANAS_PALLETTE, c7 as NominatimAddressResponse, dc as ObjectWithPropsOfValue, a0 as OrderDirectionType, bW as PermissionRestriction, bX as PetRestriction, a2 as PetSexType, a4 as PetType, bb as ProfileQuestionRequestDto, ec as PropertyOverrides, bY as QuestionRestriction, bf as QuestionUpdateDto, cv as RenderCellType, dw as SITE_CONFIG_TOKEN, bg as SearchObjDatePropRequestDto, bi as SearchObjTextPropRequestDto, a9 as SearchableColumnInfo, a8 as SearchableColumnType, bZ as StripeRestriction, S as SupportedLanguage, d as SupportedLanguageArray, bl as TempLinkCreateDto, bm as TempLinkDto, aa as TempLinkType, ab as TempRegistrationStatus, b_ as UnavailabilityRestriction, ac as UploadLinkType, b$ as UploadRestriction, ad as UploadType, bB as UserMembershipWithStripeInfoDto, dj as UserMigrationReportCounts, bD as UserMigrationReportCountsDto, bE as UserMigrationReportDto, di as UserMigrationReportUser, bF as UserMigrationReportUserDto, c0 as UserRestriction, bS as UuidRestriction, eb as ValidFormComponentTypes, ea as ValidFormTypes, y as activityShortCode, cH as addDays, cG as addMinutes, cI as addMonths, cF as addSeconds, d8 as addSpacesForEnum, ce as addToParallelTasks, dO as allowedNonNumericalValuesInContactNumber, da as anyObject, B as apiRoute, z as apiRouteParam, cc as arrayContains, cb as arrayOfNLength, d6 as capitalizeFirstLetter, dm as colourPalette, e as commonEmailLinks, cp as computeBookingNightCount, cn as computeBookingStatusCounts, dP as contactNumberCharValid, dQ as contactNumberValid, j as createToken, cS as cyrb53, cL as dateDiffInDays, cP as debounceLeading, dn as defaultSiteColour, dT as emailValid, db as fakePromise, co as filterBookingsByOverviewStatus, ck as formatBookingCalendarLabel, cq as formatBookingNightsTooltip, cy as formatDate, d9 as formatFileSize, cE as formatForBookingDate, cA as formatForDateDropdown, cz as formatForDateLocal, cD as formatForDateLocalDetailed, cB as formatForDateOfBirth, cC as formatForDateWithTime, cj as formatPetTypesLabel, dh as getActiveUserMembership, cM as getAgeInYears, a7 as getAllPetQuestionForType, dv as getAppType, cQ as getArrFromEnum, cg as getBookingStatusLabelForAdmin, dt as getBotPath, dA as getCommonConfig, ct as getDayClassObject, cw as getDayElements, cu as getDayHeadingElements, cU as getImageParams, dB as getLog, ch as getMembershipTypeLabel, cX as getMimeTypeFromExtension, cV as getPayloadFromJwt, cZ as getPerformanceTimer, d0 as getPetAvatarUrl, ci as getPetTypeLabel, d3 as getQuestionGroups, dz as getSiteColour, dy as getSiteConfig, c$ as getUserAvatarUrl, cx as getUsersName, cN as getWeekNumber, c_ as hasRequiredPermissions, ah as hubspotQuestionsExport, cJ as isBefore, dU as isNumber, cK as isSameDay, i as isWebApp, d7 as lowercaseFirstLetter, c9 as makeArrayOrDefault, dS as maxDate, dG as maxItems, d_ as maxLength, dW as maxValue, cW as mimeTypeLookup, dR as minDate, dF as minItems, dZ as minLength, g as minUrlLength, dV as minValue, m as monthTranslationKeyOrder, dL as multiValidation, d2 as nameof, n as nanasFonts, dJ as noValidation, dK as notNull, ca as onlyUnique, cs as parseBookingOverviewStatuses, dX as passwordValid, p as portalGlyphLength, dY as postCodeValid, d1 as promiseFromValue, d4 as randomIntFromRange, d5 as randomItemFromArray, dr as rootContainer, dC as rootDependencyInjectionSetup, c1 as searchColumns, dH as selectedItemsExist, dI as selectedOptionIsInEnum, dM as separateValidation, cr as serializeBookingOverviewStatuses, dD as setContainerToken, dE as setContainerTokenLazy, dx as setSiteConfig, d$ as shouldBeUrl, e0 as shouldBeYoutubeUrl, cO as showSecondCalendar, s as socialLinks, cd as timeout, cY as tryParseNumber, ae as uploadsThatNeedEncryption, df as urlAddQueryParam, de as urlRef, dg as userMustChangePassword, cR as uuidv4, v as validUuidChars, dN as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-CCe3PBaJ.js';
5
5
  import { ToasterProps } from 'solid-toast';
6
6
  import { TolgeeInstance, TranslationKey, CombinedOptions, DefaultParamType } from '@tolgee/web';
7
7
 
@@ -794,9 +794,9 @@ declare class AdminBookingApiService extends BaseCrudService<BookingDto, Booking
794
794
  getForUserUuid: (userUuid: string) => Promise<ResultWithValue<Array<BookingDto>>>;
795
795
  getForPetUuid: (petUuid: string) => Promise<ResultWithValue<Array<BookingDto>>>;
796
796
  readWithRelationships: (bookingUuid: string) => Promise<ResultWithValue<BookingWithRelationshipsDto>>;
797
- assignHost: (bookingUuid: string, hostUuid: string) => Promise<ResultWithValue<BookingWithRelationshipsDto>>;
798
- removeHost: (bookingUuid: string) => Promise<ResultWithValue<BookingWithRelationshipsDto>>;
799
- getCalendarOverview: (from: string, to: string) => Promise<ResultWithValue<Array<BookingCalendarOverviewItem>>>;
797
+ assignHost: (bookingUuid: string, hostUuid: string, numberOfNights: number) => Promise<ResultWithValue<BookingWithRelationshipsDto>>;
798
+ removeHost: (bookingUuid: string, bookingHostUuid: string) => Promise<ResultWithValue<BookingWithRelationshipsDto>>;
799
+ getCalendarOverview: (from: string, to: string, statuses?: Array<BookingStatusType>) => Promise<ResultWithValue<Array<BookingCalendarOverviewItem>>>;
800
800
  }
801
801
 
802
802
  declare class AdminBugReportApiService extends BaseCrudService<BugReportDto, BugReportCreateDto, BugReportUpdateDto> {
@@ -843,6 +843,7 @@ declare class AdminUserApiService extends BaseCrudService<UserDto, UserCreateDto
843
843
  constructor(log: LogService, config: CommonConfigService);
844
844
  load: () => Promise<ResultWithValue<Array<UserDto>>>;
845
845
  searchHostsPage: (pagination: PaginationRequestDto, search: string) => Promise<ResultWithValue<PaginationResponseDto<UserDto>>>;
846
+ getMigrationReport: () => Promise<ResultWithValue<UserMigrationReport>>;
846
847
  }
847
848
 
848
849
  declare class AdminUserMembershipApiService extends BaseCrudService<UserMembershipDto, UserMembershipCreateDto, UserMembershipUpdateDto> {
@@ -983,8 +984,9 @@ declare class AuthApiService {
983
984
  constructor(log: LogService, config: CommonConfigService);
984
985
  login: (data: AuthLoginDto) => Promise<ResultWithValue<AuthSuccessDto>>;
985
986
  signUp: (data: AuthRegisterDto) => Promise<ResultWithValue<UserDto>>;
986
- signUpProgress: (data: AuthRegisterStoreProgressDto) => Promise<Result>;
987
+ signUpProgress: (data: AuthRegisterStoreProgressDto) => Promise<ResultWithValue<TempRegistrationDto>>;
987
988
  signUpQuestions: (data: AuthRegisterGetQuestionsDto) => Promise<ResultWithValue<Record<string, Array<ProfileQuestionAndAnswersItemDto>>>>;
989
+ signupGetPetUploadUrl: (data: AuthRegisterGetTempUploadUrlDto) => Promise<ResultWithValue<AuthRegisterGetTempUploadUrlResponseDto>>;
988
990
  requestPasswordReset: (data: AuthRequestResetPasswordDto) => Promise<ResultWithValue<unknown>>;
989
991
  passwordResetFromTempLink: (tempLinkUuid: string, data: AuthResetPasswordDto) => Promise<ResultWithValue<unknown>>;
990
992
  changePassword: (data: AuthChangePasswordDto) => Promise<ResultWithValue<AuthSuccessDto>>;
@@ -1149,4 +1151,4 @@ type AssistantAppsAppNoticeList = ComponentProps<'div'> & {
1149
1151
 
1150
1152
  declare const maxFullDateSelection: (maxDate: Date, type: keyof FormCalendarDatePickerRangeProps) => (value: FormCalendarDatePickerRangeProps) => ValidationResult;
1151
1153
 
1152
- export { AboutPageContent, Accordion, ActivityDto, ActivityType, AddressApiService, AddressCreateDto, AddressCreateDtoMeta, AddressDto, AddressLinkType, AddressLookupDto, AddressUpdateDto, AddressUpdateDtoMeta, AdminActivityApiService, AdminAddressApiService, AdminAnswerApiService, AdminBookingApiService, AdminBugReportApiService, AdminCommentApiService, AdminInvoiceApiService, AdminMembershipApiService, AdminPetApiService, AdminQuestionApiService, AdminUploadApiService, AdminUserApiService, AdminUserMembershipApiService, AdminUserPermissionApiService, Alert, AnswerApiService, AnswerDto, type AssistantAppsAppNoticeList, AsyncComponent, AsyncDetailPageComponent, AuthApiService, AuthChangePasswordDto, AuthGuard, AuthLoginDto, AuthLoginDtoMeta, AuthRegisterDto, AuthRegisterGetQuestionsDto, AuthRegisterStoreProgressDto, AuthRegisterUserDto, AuthRegisterUserDtoMeta, AuthRequestResetPasswordDto, AuthResetPasswordDto, AuthSuccessDto, Backdrop, BaseApiService, BaseCrudService, BookingApiService, BookingCalendarOverviewItem, BookingCreateDto, BookingCreateDtoMeta, BookingDto, BookingDtoMeta, BookingRestrictionsDto, BookingStatusType, BookingStatusTypeDropdown, BookingUpdateDto, BookingUpdateDtoMeta, BookingWithRelationshipsDto, Breadcrumb, BugReportApiService, BugReportCreateDto, BugReportCreateDtoMeta, BugReportDto, BugReportDtoMeta, BugReportFab, BugReportStatusType, BugReportUpdateDto, Button, CameraIcon, CaptchaWebService, Card, Center, CenterLoading, ChangePasswordPage, type ChangePasswordPageProps, CircularProgress, ClickEvent, type ClientAnswerSaveBody, CommentCreateDto, CommentDto, CommentLinkType, CommonConfigService, CommonStateService, DateSelectionProps, DebugNode, DebugService, DocumentMeta, DocumentService, EnumTypeDropdown, ErrorBlock, ErrorBoundary, ErrorDogSvg, ErrorScreen, EyeHideIcon, EyeIcon, FacebookIcon, ForcePasswordChangeGuard, FormCalendarDatePickerRangeProps, FormCalendarPicker, FormCalendarPickerDropdown, FormCalendarPickerInner, FormCalendarPickerInnerProps, FormCalendarPickerMode, FormCheckbox, FormDropdown, type FormDtoMeta, type FormDtoMetaDetails, FormInputErrorMessage, FormInputProps, FormLongInput, FormNetworkStateIndicator, FormPasswordInput, FormPromiseDropdown, FormPromiseSearchDropdown, FormTextArea, FormUserPetDropdown, FullDateSelectionProps, HelpIcon, HelpIconTooltip, HtmlElementEvent, HtmlFilesEvent, type IBaseCrudService, type IBreadcrumbLinkProps, type ICardProps, type ICommonState, IDependencyInjectionSetupWebProps, IFormCalendarPickerProps, type IFormDropdownAdditionalOption, type IFormDropdownOption, type ILoadingSpinnerProps, ILogMessage, ILogger, type IProfilePanelLinkProps$1 as IProfilePanelLinkProps, type ISidebarItemProps, ISite, IllustrationNoItems, InstagramIcon, InvoiceApiService, InvoiceCreateDto, InvoiceDto, InvoiceUpdateDto, InvoiceWithStripeInfoDto, KeyEvent, LazyImage, LinkedInIcon, type LoadItemsSearchFn, LoadingSpinner, LoadingSpinnerBlock, LocalStorageKeys, type LocalStorageKeysType, LocalStorageService, LogService, MembershipApiService, MembershipBillingCycleDropdown, MembershipBillingCycleType, MembershipCreateDto, MembershipCreateDtoMeta, MembershipDto, MembershipIcon, MembershipProfileHeading, MembershipStatus, MembershipStatusDropdown, MembershipType, MembershipTypeDropdown, MembershipUpdateDto, MembershipUuidDropdown, Modal, MonthTranslationKey, NavBar, NetworkState, NominatimResponse, PaginationRequestDto, PaginationResponseDto, PaymentMethodApiService, PaymentMethodDto, PermissionType, PetApiService, PetCreateDto, PetCreateDtoMeta, PetDto, PetSexTypeDropdown, PetStatusType, PetStatusTypeDropdown, PetTypeDropdown, PetUpdateDto, PetUpdateDtoMeta, Prettify, ProfileApiService, ProfileDto, ProfilePanel, ProfilePanelNavBarDropdown, ProfileQuestionAndAnswersItemDto, ProfileUpdateDto, ProfileUpdateDtoMeta, QuestionCreateDto, QuestionCreateDtoMeta, QuestionDto, QuestionForType, QuestionForTypeDropdown, QuestionType, QuestionTypeDropdown, Result, ResultWithValue, SearchObjRequestDto, SetupIntentCreateDto, SetupIntentDto, Sidebar, T, ThemeType, ToastService, Tooltip, TranslationService, UploadApiService, UploadCreateDto, UploadCreateDtoMeta, UploadDto, UploadImageWithLinkDto, UploadImageWithLinkDtoMeta, UploadUpdateDto, UserAccountFlagType, UserAccountFlagTypeDropdown, UserCreateDto, UserCreateDtoMeta, UserDto, UserDtoMeta, UserMembershipApiService, UserMembershipChangeResponseDto, UserMembershipCreateDto, UserMembershipCreateDtoMeta, UserMembershipDto, UserMembershipSignUpDto, UserMembershipSignUpResponseDto, UserMembershipStatsDto, UserMembershipUpdateDto, UserMembershipUpdateDtoMeta, UserMembershipWithUserNamesDto, UserPermissionDto, UserType, UserTypeDropdown, UserUpdateDto, ValidationResult, type ValidationWithPropName, VersionApiService, VersionDto, WeekdayTranslationKey, WrapWhen, addAccessTokenToHeaders, changeMonth, convertToDate, convertToFullDateSelection, copyTextToClipboard, dateCreatedMeta, dependencyInjectionWebSetup, displayActivityTypeBadge, displayBookingStatusTypeBadge, displayBugReportTypeBadge, displayMembershipBillingCycleBadge, displayMembershipStatusBadge, displayMembershipTypeBadge, displayPetStatusTypeBadge, displayQuestionForTypeBadge, displayQuestionTypeBadge, displayUserAccountFlagTypeBadge, displayUserTypeBadge, formDataWithAccessTokenHeaders, getAddressApi, getAdminActivityApi, getAdminAddressApi, getAdminAnswerApi, getAdminBookingApi, getAdminBugReportApi, getAdminCommentApi, getAdminInvoiceApi, getAdminMembershipApi, getAdminPetApi, getAdminQuestionApi, getAdminUploadApi, getAdminUserApi, getAdminUserMembershipApi, getAdminUserPermissionApi, getAnswerApi, getAriaInvalid, getAuthApi, getBookingApi, getBookingStatusTypeLocalisationForAdmin, getBookingStatusTypeLocalisationForClient, getBugReportApi, getBugReportStatusBadgeContent, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCaptchaWebService, getCommonStateService, getDebugService, getDocumentServ, getFormControlAriaInvalid, getInvoiceApi, getLocalStorage, getMembershipApi, getMonthHeading, getNextMonthButton, getPaginationQueryParams, getPaymentMethodApi, getPetApi, getPrevMonthButton, getProfileApi, getToastService, getUploadApi, getUserAccountFlagTypeBadgeContent, getUserMembershipApi, getVersionApi, globalErrorDetails, handleLogMessageError, hasOneOrMoreErrors, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isFormControlInvalid, isFormNetworkError, isFormNetworkLoading, loggerHasErrors, maxFullDateSelection, monthTranslation, notesMeta, onFormSubmitFacade, onTargetChecked, onTargetFiles, onTargetValue, preventDefault, profileEventSignal, questionAnswerDisplay, setGlobalErrorDetails, setLoggerHasErrors, setProfileEventSignal, stopPropagation, translate, translateComponentToString, usePromise, useValidation, weekdayTranslation2Char, weekdayTranslation3Char, windowOnError, windowOnUnhandledRejection };
1154
+ export { AboutPageContent, Accordion, ActivityDto, ActivityType, AddressApiService, AddressCreateDto, AddressCreateDtoMeta, AddressDto, AddressLinkType, AddressLookupDto, AddressUpdateDto, AddressUpdateDtoMeta, AdminActivityApiService, AdminAddressApiService, AdminAnswerApiService, AdminBookingApiService, AdminBugReportApiService, AdminCommentApiService, AdminInvoiceApiService, AdminMembershipApiService, AdminPetApiService, AdminQuestionApiService, AdminUploadApiService, AdminUserApiService, AdminUserMembershipApiService, AdminUserPermissionApiService, Alert, AnswerApiService, AnswerDto, type AssistantAppsAppNoticeList, AsyncComponent, AsyncDetailPageComponent, AuthApiService, AuthChangePasswordDto, AuthGuard, AuthLoginDto, AuthLoginDtoMeta, AuthRegisterDto, AuthRegisterGetQuestionsDto, AuthRegisterGetTempUploadUrlDto, AuthRegisterGetTempUploadUrlResponseDto, AuthRegisterStoreProgressDto, AuthRegisterUserDto, AuthRegisterUserDtoMeta, AuthRequestResetPasswordDto, AuthResetPasswordDto, AuthSuccessDto, Backdrop, BaseApiService, BaseCrudService, BookingApiService, BookingCalendarOverviewItem, BookingCreateDto, BookingCreateDtoMeta, BookingDto, BookingDtoMeta, BookingRestrictionsDto, BookingStatusType, BookingStatusTypeDropdown, BookingUpdateDto, BookingUpdateDtoMeta, BookingWithRelationshipsDto, Breadcrumb, BugReportApiService, BugReportCreateDto, BugReportCreateDtoMeta, BugReportDto, BugReportDtoMeta, BugReportFab, BugReportStatusType, BugReportUpdateDto, Button, CameraIcon, CaptchaWebService, Card, Center, CenterLoading, ChangePasswordPage, type ChangePasswordPageProps, CircularProgress, ClickEvent, type ClientAnswerSaveBody, CommentCreateDto, CommentDto, CommentLinkType, CommonConfigService, CommonStateService, DateSelectionProps, DebugNode, DebugService, DocumentMeta, DocumentService, EnumTypeDropdown, ErrorBlock, ErrorBoundary, ErrorDogSvg, ErrorScreen, EyeHideIcon, EyeIcon, FacebookIcon, ForcePasswordChangeGuard, FormCalendarDatePickerRangeProps, FormCalendarPicker, FormCalendarPickerDropdown, FormCalendarPickerInner, FormCalendarPickerInnerProps, FormCalendarPickerMode, FormCheckbox, FormDropdown, type FormDtoMeta, type FormDtoMetaDetails, FormInputErrorMessage, FormInputProps, FormLongInput, FormNetworkStateIndicator, FormPasswordInput, FormPromiseDropdown, FormPromiseSearchDropdown, FormTextArea, FormUserPetDropdown, FullDateSelectionProps, HelpIcon, HelpIconTooltip, HtmlElementEvent, HtmlFilesEvent, type IBaseCrudService, type IBreadcrumbLinkProps, type ICardProps, type ICommonState, IDependencyInjectionSetupWebProps, IFormCalendarPickerProps, type IFormDropdownAdditionalOption, type IFormDropdownOption, type ILoadingSpinnerProps, ILogMessage, ILogger, type IProfilePanelLinkProps$1 as IProfilePanelLinkProps, type ISidebarItemProps, ISite, IllustrationNoItems, InstagramIcon, InvoiceApiService, InvoiceCreateDto, InvoiceDto, InvoiceUpdateDto, InvoiceWithStripeInfoDto, KeyEvent, LazyImage, LinkedInIcon, type LoadItemsSearchFn, LoadingSpinner, LoadingSpinnerBlock, LocalStorageKeys, type LocalStorageKeysType, LocalStorageService, LogService, MembershipApiService, MembershipBillingCycleDropdown, MembershipBillingCycleType, MembershipCreateDto, MembershipCreateDtoMeta, MembershipDto, MembershipIcon, MembershipProfileHeading, MembershipStatus, MembershipStatusDropdown, MembershipType, MembershipTypeDropdown, MembershipUpdateDto, MembershipUuidDropdown, Modal, MonthTranslationKey, NavBar, NetworkState, NominatimResponse, PaginationRequestDto, PaginationResponseDto, PaymentMethodApiService, PaymentMethodDto, PermissionType, PetApiService, PetCreateDto, PetCreateDtoMeta, PetDto, PetSexTypeDropdown, PetStatusType, PetStatusTypeDropdown, PetTypeDropdown, PetUpdateDto, PetUpdateDtoMeta, Prettify, ProfileApiService, ProfileDto, ProfilePanel, ProfilePanelNavBarDropdown, ProfileQuestionAndAnswersItemDto, ProfileUpdateDto, ProfileUpdateDtoMeta, QuestionCreateDto, QuestionCreateDtoMeta, QuestionDto, QuestionForType, QuestionForTypeDropdown, QuestionType, QuestionTypeDropdown, Result, ResultWithValue, SearchObjRequestDto, SetupIntentCreateDto, SetupIntentDto, Sidebar, T, TempRegistrationDto, ThemeType, ToastService, Tooltip, TranslationService, UploadApiService, UploadCreateDto, UploadCreateDtoMeta, UploadDto, UploadImageWithLinkDto, UploadImageWithLinkDtoMeta, UploadUpdateDto, UserAccountFlagType, UserAccountFlagTypeDropdown, UserCreateDto, UserCreateDtoMeta, UserDto, UserDtoMeta, UserMembershipApiService, UserMembershipChangeResponseDto, UserMembershipCreateDto, UserMembershipCreateDtoMeta, UserMembershipDto, UserMembershipSignUpDto, UserMembershipSignUpResponseDto, UserMembershipStatsDto, UserMembershipUpdateDto, UserMembershipUpdateDtoMeta, UserMembershipWithUserNamesDto, UserMigrationReport, UserPermissionDto, UserType, UserTypeDropdown, UserUpdateDto, ValidationResult, type ValidationWithPropName, VersionApiService, VersionDto, WeekdayTranslationKey, WrapWhen, addAccessTokenToHeaders, changeMonth, convertToDate, convertToFullDateSelection, copyTextToClipboard, dateCreatedMeta, dependencyInjectionWebSetup, displayActivityTypeBadge, displayBookingStatusTypeBadge, displayBugReportTypeBadge, displayMembershipBillingCycleBadge, displayMembershipStatusBadge, displayMembershipTypeBadge, displayPetStatusTypeBadge, displayQuestionForTypeBadge, displayQuestionTypeBadge, displayUserAccountFlagTypeBadge, displayUserTypeBadge, formDataWithAccessTokenHeaders, getAddressApi, getAdminActivityApi, getAdminAddressApi, getAdminAnswerApi, getAdminBookingApi, getAdminBugReportApi, getAdminCommentApi, getAdminInvoiceApi, getAdminMembershipApi, getAdminPetApi, getAdminQuestionApi, getAdminUploadApi, getAdminUserApi, getAdminUserMembershipApi, getAdminUserPermissionApi, getAnswerApi, getAriaInvalid, getAuthApi, getBookingApi, getBookingStatusTypeLocalisationForAdmin, getBookingStatusTypeLocalisationForClient, getBugReportApi, getBugReportStatusBadgeContent, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCaptchaWebService, getCommonStateService, getDebugService, getDocumentServ, getFormControlAriaInvalid, getInvoiceApi, getLocalStorage, getMembershipApi, getMonthHeading, getNextMonthButton, getPaginationQueryParams, getPaymentMethodApi, getPetApi, getPrevMonthButton, getProfileApi, getToastService, getUploadApi, getUserAccountFlagTypeBadgeContent, getUserMembershipApi, getVersionApi, globalErrorDetails, handleLogMessageError, hasOneOrMoreErrors, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isFormControlInvalid, isFormNetworkError, isFormNetworkLoading, loggerHasErrors, maxFullDateSelection, monthTranslation, notesMeta, onFormSubmitFacade, onTargetChecked, onTargetFiles, onTargetValue, preventDefault, profileEventSignal, questionAnswerDisplay, setGlobalErrorDetails, setLoggerHasErrors, setProfileEventSignal, stopPropagation, translate, translateComponentToString, usePromise, useValidation, weekdayTranslation2Char, weekdayTranslation3Char, windowOnError, windowOnUnhandledRejection };
package/dist/web/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { multiValidation, minLength, UserRestriction, contactNumberValid, maxLength, emailValid, passwordValid, noValidation, notNull, BookingRestriction, minDate, minItems, isNumber, minValue, MembershipRestriction, maxValue, PetRestriction, selectedOptionIsInEnum, PetSexType, PetStatusType, PetType, QuestionRestriction, QuestionForType, QuestionType, AddressRestriction, postCodeValid, UploadType, UploadRestriction, UploadLinkType, rootContainer, uuidv4, anyObject, timeout, apiRoute, apiRouteParam, addMinutes, getSiteConfig, getLog, debounceLeading, rootDependencyInjectionSetup, setContainerToken, socialLinks, getPayloadFromJwt, userMustChangePassword, ActivityType, getAppType, BookingStatusType, BugReportStatusType, MembershipType, MembershipStatus, MembershipBillingCycleType, getUsersName, getUserAvatarUrl, hasRequiredPermissions, hubspotQuestionsExport, arrayOfNLength, UserType, UserAccountFlagType, colourPalette, monthTranslationKeyOrder, changeMonth, getDayHeadingElements, getDayElements, getCalendarDropdownDisplayValue, makeArrayOrDefault, getArrFromEnum, capitalizeFirstLetter, convertToDate, isBefore, formatForDateOfBirth, formatForDateLocal, BugReportRestriction, onlyUnique, getDayClassObject, getPetAvatarUrl, isDateAfterStart, isDateBeforeEnd, convertToFullDateSelection } from '../chunk/77A4D4VS.js';
2
- export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/77A4D4VS.js';
1
+ import { multiValidation, minLength, UserRestriction, contactNumberValid, maxLength, emailValid, passwordValid, noValidation, notNull, BookingRestriction, minDate, minItems, isNumber, minValue, MembershipRestriction, maxValue, PetRestriction, selectedOptionIsInEnum, PetSexType, PetStatusType, PetType, QuestionRestriction, QuestionForType, QuestionType, AddressRestriction, postCodeValid, UploadType, UploadRestriction, UploadLinkType, rootContainer, uuidv4, anyObject, timeout, apiRoute, apiRouteParam, addMinutes, getSiteConfig, getLog, debounceLeading, rootDependencyInjectionSetup, setContainerToken, socialLinks, getPayloadFromJwt, userMustChangePassword, ActivityType, getAppType, BookingStatusType, BugReportStatusType, MembershipType, MembershipStatus, MembershipBillingCycleType, getUsersName, getUserAvatarUrl, hasRequiredPermissions, hubspotQuestionsExport, arrayOfNLength, UserType, UserAccountFlagType, colourPalette, monthTranslationKeyOrder, changeMonth, getDayHeadingElements, getDayElements, getCalendarDropdownDisplayValue, makeArrayOrDefault, getArrFromEnum, capitalizeFirstLetter, convertToDate, isBefore, formatForDateOfBirth, formatForDateLocal, BugReportRestriction, onlyUnique, getDayClassObject, getPetAvatarUrl, isDateAfterStart, isDateBeforeEnd, convertToFullDateSelection } from '../chunk/RIERZOAS.js';
2
+ export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, AuthRegisterRestriction, BOOKING_OVERVIEW_STATUSES, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, BugReportRestriction, BugReportStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, LogService, MembershipBillingCycleType, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NANAS_PALLETTE, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, StripeRestriction, SupportedLanguageArray, TempLinkType, TempRegistrationStatus, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, UuidRestriction, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, allowedNonNumericalValuesInContactNumber, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingNightCount, computeBookingStatusCounts, contactNumberCharValid, contactNumberValid, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, emailValid, fakePromise, filterBookingsByOverviewStatus, formatBookingCalendarLabel, formatBookingNightsTooltip, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, formatPetTypesLabel, getActiveUserMembership, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBookingStatusLabelForAdmin, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMembershipTypeLabel, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getPetTypeLabel, getQuestionGroups, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, hubspotQuestionsExport, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, parseBookingOverviewStatuses, passwordValid, portalGlyphLength, postCodeValid, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, serializeBookingOverviewStatuses, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlAddQueryParam, urlRef, userMustChangePassword, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/RIERZOAS.js';
3
3
  import { delegateEvents, createComponent, template, insert, effect, className, spread, mergeProps, setAttribute, style, use, memo, addEventListener } from 'solid-js/web';
4
4
  import { createSignal, Switch, Match, Show, For, onMount, createEffect, onCleanup, splitProps } from 'solid-js';
5
5
  import classNames18 from 'classnames';
@@ -514,20 +514,26 @@ var AdminBookingApiService = class extends BaseCrudService {
514
514
  `${apiRoute.admin.booking.withRelationships.replace(":bookingUuid", bookingUuid)}`,
515
515
  addAccessTokenToHeaders
516
516
  );
517
- assignHost = (bookingUuid, hostUuid) => this.baseApi.put(
517
+ assignHost = (bookingUuid, hostUuid, numberOfNights) => this.baseApi.put(
518
518
  `${apiRoute.admin.booking.assignHost.replace(":bookingUuid", bookingUuid).replace(":userUuid", hostUuid)}`,
519
- {},
519
+ { numberOfNights },
520
520
  addAccessTokenToHeaders
521
521
  );
522
- removeHost = (bookingUuid) => this.baseApi.put(
523
- `${apiRoute.admin.booking.removeHost.replace(":bookingUuid", bookingUuid)}`,
522
+ removeHost = (bookingUuid, bookingHostUuid) => this.baseApi.put(
523
+ `${apiRoute.admin.booking.removeHost.replace(":bookingUuid", bookingUuid).replace(":bookingHostUuid", bookingHostUuid)}`,
524
524
  {},
525
525
  addAccessTokenToHeaders
526
526
  );
527
- getCalendarOverview = (from, to) => this.baseApi.get(
528
- `${apiRoute.admin.booking.calendarOverview}?from=${encodeURIComponent(from)}&to=${encodeURIComponent(to)}`,
529
- addAccessTokenToHeaders
530
- );
527
+ getCalendarOverview = (from, to, statuses) => {
528
+ const params = new URLSearchParams({ from, to });
529
+ if (statuses != null && statuses.length > 0) {
530
+ params.set("statuses", statuses.join(","));
531
+ }
532
+ return this.baseApi.get(
533
+ `${apiRoute.admin.booking.calendarOverview}?${params.toString()}`,
534
+ addAccessTokenToHeaders
535
+ );
536
+ };
531
537
  };
532
538
 
533
539
  // src/services/api/admin/adminBugReportApiService.ts
@@ -658,6 +664,7 @@ var AdminUserApiService = class extends BaseCrudService {
658
664
  { search },
659
665
  addAccessTokenToHeaders
660
666
  );
667
+ getMigrationReport = () => this.baseApi.get(apiRoute.admin.user.migrationReport, addAccessTokenToHeaders);
661
668
  };
662
669
 
663
670
  // src/services/api/admin/adminUserMembershipApiService.ts
@@ -948,6 +955,7 @@ var AuthApiService = class {
948
955
  signUp = (data) => this._baseApi.post(`${this._prefix}${apiRoute.common.auth.signup}`, data);
949
956
  signUpProgress = (data) => this._baseApi.post(`${this._prefix}${apiRoute.common.auth.signupProgress}`, data);
950
957
  signUpQuestions = (data) => this._baseApi.post(`${this._prefix}${apiRoute.common.auth.signupQuestions}`, data);
958
+ signupGetPetUploadUrl = (data) => this._baseApi.post(`${this._prefix}${apiRoute.common.auth.signupTempPetImageUpload}`, data);
951
959
  requestPasswordReset = (data) => this._baseApi.post(`${this._prefix}${apiRoute.common.auth.requestPasswordResetLink}`, data);
952
960
  passwordResetFromTempLink = (tempLinkUuid, data) => {
953
961
  const url = apiRoute.common.auth.passwordResetFromTempLink.replaceAll(apiRouteParam.linkUuid, tempLinkUuid);
@@ -2190,6 +2198,7 @@ var AuthLoginDtoMeta = {
2190
2198
  }
2191
2199
  };
2192
2200
  var AuthRegisterUserDtoMeta = {
2201
+ uuid: UserDtoMeta.uuid,
2193
2202
  types: UserDtoMeta.types,
2194
2203
  firstName: UserDtoMeta.firstName,
2195
2204
  lastName: UserDtoMeta.lastName,
@@ -155,6 +155,7 @@ var apiRouteParam = {
155
155
  petUuid: ":petUuid",
156
156
  addressUuid: ":addressUuid",
157
157
  bookingUuid: ":bookingUuid",
158
+ bookingHostUuid: ":bookingHostUuid",
158
159
  bookingAddonUuid: ":bookingAddonUuid",
159
160
  uploadUuid: ":uploadUuid",
160
161
  userMembershipUuid: ":userMembershipUuid",
@@ -175,6 +176,7 @@ var apiRoute = {
175
176
  signup: "/signup",
176
177
  signupProgress: "/signup-progress",
177
178
  signupQuestions: "/signup-questions",
179
+ signupTempPetImageUpload: "/signup-temp-pet-upload",
178
180
  confirmEmail: `/confirm-email/${apiRouteParam.linkUuid}`,
179
181
  requestPasswordResetLink: `/password-reset`,
180
182
  passwordResetFromTempLink: `/password-reset/${apiRouteParam.linkUuid}`,
@@ -215,7 +217,7 @@ var apiRoute = {
215
217
  byPet: `/pet/${apiRouteParam.petUuid}`,
216
218
  withRelationships: `/with-relationships/${apiRouteParam.bookingUuid}`,
217
219
  assignHost: `/assign-host/${apiRouteParam.bookingUuid}/${apiRouteParam.userUuid}`,
218
- removeHost: `/remove-host/${apiRouteParam.bookingUuid}`,
220
+ removeHost: `/remove-host/${apiRouteParam.bookingUuid}/${apiRouteParam.bookingHostUuid}`,
219
221
  calendarOverview: "/calendar-overview",
220
222
  swagger: { name: "Bookings", description: "Endpoints for managing bookings" }
221
223
  },
@@ -261,6 +263,7 @@ var apiRoute = {
261
263
  user: {
262
264
  prefix: "/admin/user",
263
265
  searchHosts: "/search-hosts",
266
+ migrationReport: "/migration-report",
264
267
  swagger: { name: "Users", description: "Endpoints for Admins to manage Users" }
265
268
  },
266
269
  userMembership: {
@@ -765,20 +768,26 @@ var AdminBookingApiService = class extends BaseCrudService {
765
768
  `${apiRoute.admin.booking.withRelationships.replace(":bookingUuid", bookingUuid)}`,
766
769
  addAccessTokenToHeaders
767
770
  );
768
- assignHost = (bookingUuid, hostUuid) => this.baseApi.put(
771
+ assignHost = (bookingUuid, hostUuid, numberOfNights) => this.baseApi.put(
769
772
  `${apiRoute.admin.booking.assignHost.replace(":bookingUuid", bookingUuid).replace(":userUuid", hostUuid)}`,
770
- {},
773
+ { numberOfNights },
771
774
  addAccessTokenToHeaders
772
775
  );
773
- removeHost = (bookingUuid) => this.baseApi.put(
774
- `${apiRoute.admin.booking.removeHost.replace(":bookingUuid", bookingUuid)}`,
776
+ removeHost = (bookingUuid, bookingHostUuid) => this.baseApi.put(
777
+ `${apiRoute.admin.booking.removeHost.replace(":bookingUuid", bookingUuid).replace(":bookingHostUuid", bookingHostUuid)}`,
775
778
  {},
776
779
  addAccessTokenToHeaders
777
780
  );
778
- getCalendarOverview = (from, to) => this.baseApi.get(
779
- `${apiRoute.admin.booking.calendarOverview}?from=${encodeURIComponent(from)}&to=${encodeURIComponent(to)}`,
780
- addAccessTokenToHeaders
781
- );
781
+ getCalendarOverview = (from, to, statuses) => {
782
+ const params = new URLSearchParams({ from, to });
783
+ if (statuses != null && statuses.length > 0) {
784
+ params.set("statuses", statuses.join(","));
785
+ }
786
+ return this.baseApi.get(
787
+ `${apiRoute.admin.booking.calendarOverview}?${params.toString()}`,
788
+ addAccessTokenToHeaders
789
+ );
790
+ };
782
791
  };
783
792
 
784
793
  // src/services/api/admin/adminBugReportApiService.ts
@@ -909,6 +918,7 @@ var AdminUserApiService = class extends BaseCrudService {
909
918
  { search },
910
919
  addAccessTokenToHeaders
911
920
  );
921
+ getMigrationReport = () => this.baseApi.get(apiRoute.admin.user.migrationReport, addAccessTokenToHeaders);
912
922
  };
913
923
 
914
924
  // src/services/api/admin/adminUserMembershipApiService.ts
@@ -1260,6 +1270,7 @@ var AuthApiService = class {
1260
1270
  signUp = (data) => this._baseApi.post(`${this._prefix}${apiRoute.common.auth.signup}`, data);
1261
1271
  signUpProgress = (data) => this._baseApi.post(`${this._prefix}${apiRoute.common.auth.signupProgress}`, data);
1262
1272
  signUpQuestions = (data) => this._baseApi.post(`${this._prefix}${apiRoute.common.auth.signupQuestions}`, data);
1273
+ signupGetPetUploadUrl = (data) => this._baseApi.post(`${this._prefix}${apiRoute.common.auth.signupTempPetImageUpload}`, data);
1263
1274
  requestPasswordReset = (data) => this._baseApi.post(`${this._prefix}${apiRoute.common.auth.requestPasswordResetLink}`, data);
1264
1275
  passwordResetFromTempLink = (tempLinkUuid, data) => {
1265
1276
  const url = apiRoute.common.auth.passwordResetFromTempLink.replaceAll(apiRouteParam.linkUuid, tempLinkUuid);
@@ -2972,6 +2983,7 @@ var AuthLoginDtoMeta = {
2972
2983
  }
2973
2984
  };
2974
2985
  var AuthRegisterUserDtoMeta = {
2986
+ uuid: UserDtoMeta.uuid,
2975
2987
  types: UserDtoMeta.types,
2976
2988
  firstName: UserDtoMeta.firstName,
2977
2989
  lastName: UserDtoMeta.lastName,
@@ -6689,6 +6701,7 @@ var UploadLinkType = /* @__PURE__ */ ((UploadLinkType2) => {
6689
6701
  UploadLinkType2[UploadLinkType2["Unknown"] = 0] = "Unknown";
6690
6702
  UploadLinkType2[UploadLinkType2["User"] = 1] = "User";
6691
6703
  UploadLinkType2[UploadLinkType2["Pet"] = 2] = "Pet";
6704
+ UploadLinkType2[UploadLinkType2["UserRegistration"] = 3] = "UserRegistration";
6692
6705
  return UploadLinkType2;
6693
6706
  })(UploadLinkType || {});
6694
6707
  var UploadType = /* @__PURE__ */ ((UploadType2) => {
@@ -6724,7 +6737,15 @@ var AnswerRestriction = {
6724
6737
 
6725
6738
  // src/contracts/generated/restrictions/authRestriction.ts
6726
6739
  var AuthRegisterRestriction = {
6727
- pets: { minItems: 1, maxItems: 5 },
6740
+ pets: {
6741
+ minItems: 1,
6742
+ maxItems: 5,
6743
+ upload: {
6744
+ url: { minLength: 0, maxLength: 1e3 },
6745
+ mimeType: { minLength: 3, maxLength: 50 },
6746
+ extension: { minLength: 3, maxLength: 5 }
6747
+ }
6748
+ },
6728
6749
  answers: { minItems: 3, maxItems: 50 }
6729
6750
  };
6730
6751
 
@@ -6982,6 +7003,7 @@ var UploadImageWithLinkDtoMeta = {
6982
7003
  };
6983
7004
 
6984
7005
  // src/helpers/bookingCalendarHelper.ts
7006
+ import dayjs2 from "dayjs";
6985
7007
  var getBookingStatusLabelForAdmin = (status) => {
6986
7008
  switch (status) {
6987
7009
  case 0 /* Cancelled */:
@@ -7017,12 +7039,40 @@ var getMembershipTypeLabel = (type) => {
7017
7039
  return "None";
7018
7040
  }
7019
7041
  };
7042
+ var getPetTypeLabel = (type) => {
7043
+ switch (type) {
7044
+ case 1 /* Dog */:
7045
+ return "Dog";
7046
+ case 2 /* Cat */:
7047
+ return "Cat";
7048
+ case 3 /* Bird */:
7049
+ return "Bird";
7050
+ case 4 /* Rodent */:
7051
+ return "Rodent";
7052
+ case 5 /* Reptile */:
7053
+ return "Reptile";
7054
+ case 6 /* Other */:
7055
+ return "Other";
7056
+ case 0 /* Unknown */:
7057
+ default:
7058
+ return "Unknown";
7059
+ }
7060
+ };
7061
+ var formatPetTypesLabel = (types) => {
7062
+ const uniqueTypes = [];
7063
+ for (const type of types) {
7064
+ if (uniqueTypes.includes(type) == false) uniqueTypes.push(type);
7065
+ }
7066
+ const labels = uniqueTypes.map((type) => getPetTypeLabel(type)).filter((label) => label !== "Unknown");
7067
+ return labels.length > 0 ? labels.join(", ") : "Unknown";
7068
+ };
7020
7069
  var formatBookingCalendarLabel = (item) => {
7021
7070
  const status = getBookingStatusLabelForAdmin(item.status);
7022
- const pets = item.petNames.join(", ") || "No pets";
7071
+ const petNames = item.petNames.join(", ") || "No pets";
7023
7072
  const membership = getMembershipTypeLabel(item.ownerMembershipType);
7024
- const hostPart = item.hostNames.length > 0 ? ` with ${item.hostNames.join(", ")}` : "";
7025
- return `${status}: ${pets}, ${membership} (${item.ownerName})${hostPart}`;
7073
+ const petTypes = formatPetTypesLabel(item.petTypes);
7074
+ const hostPart = item.hostNames.length > 0 ? ` [with ${item.hostNames.join(", ")}]` : "";
7075
+ return `${status}: ${petNames}, ${membership} (${item.ownerName}) ${petTypes}${hostPart}`;
7026
7076
  };
7027
7077
  var BOOKING_OVERVIEW_STATUSES = [
7028
7078
  1 /* IntakeCall */,
@@ -7045,9 +7095,29 @@ var computeBookingStatusCounts = (bookings) => {
7045
7095
  }
7046
7096
  return counts;
7047
7097
  };
7048
- var filterBookingsByOverviewStatus = (bookings, status) => {
7049
- if (status == null) return bookings;
7050
- return bookings.filter((booking) => booking.status === status);
7098
+ var filterBookingsByOverviewStatus = (bookings, statuses) => {
7099
+ if (statuses == null || statuses.length === 0) return bookings;
7100
+ const allowed = new Set(statuses);
7101
+ return bookings.filter((booking) => allowed.has(booking.status));
7102
+ };
7103
+ var computeBookingNightCount = (startDate, endDate) => {
7104
+ const nights = Math.abs(
7105
+ dayjs2(endDate).startOf("day").diff(dayjs2(startDate).startOf("day"), "day")
7106
+ );
7107
+ return Math.max(1, nights);
7108
+ };
7109
+ var formatBookingNightsTooltip = (startDate, endDate) => {
7110
+ const nights = computeBookingNightCount(startDate, endDate);
7111
+ return nights === 1 ? "1 night" : `${nights} nights`;
7112
+ };
7113
+ var serializeBookingOverviewStatuses = (statuses) => {
7114
+ if (statuses.length === 0) return void 0;
7115
+ return statuses.join(",");
7116
+ };
7117
+ var parseBookingOverviewStatuses = (statuses) => {
7118
+ if (statuses == null || statuses.trim().length === 0) return void 0;
7119
+ const parsed = statuses.split(",").map((value) => value.trim()).filter((value) => value.length > 0).map((value) => Number(value)).filter((value) => Number.isFinite(value));
7120
+ return parsed.length > 0 ? parsed : void 0;
7051
7121
  };
7052
7122
 
7053
7123
  // src/helpers/hashHelper.ts
@@ -7169,6 +7239,13 @@ var urlRef = (url) => {
7169
7239
  }
7170
7240
  return url + `?ref=${ref}`;
7171
7241
  };
7242
+ var urlAddQueryParam = (url, queryParamName, queryParamValue) => {
7243
+ if (url.includes(`${queryParamName}=`)) return url;
7244
+ if (url.includes("?")) {
7245
+ return url + `&${queryParamName}=${queryParamValue}`;
7246
+ }
7247
+ return url + `?${queryParamName}=${queryParamValue}`;
7248
+ };
7172
7249
 
7173
7250
  // src/helpers/userMembershipHelper.ts
7174
7251
  var getActiveUserMembership = (userMemberships) => {
@@ -7389,6 +7466,7 @@ export {
7389
7466
  changeMonth,
7390
7467
  colourPalette,
7391
7468
  commonEmailLinks,
7469
+ computeBookingNightCount,
7392
7470
  computeBookingStatusCounts,
7393
7471
  contactNumberCharValid,
7394
7472
  contactNumberValid,
@@ -7418,6 +7496,7 @@ export {
7418
7496
  filterBookingsByOverviewStatus,
7419
7497
  formDataWithAccessTokenHeaders,
7420
7498
  formatBookingCalendarLabel,
7499
+ formatBookingNightsTooltip,
7421
7500
  formatDate,
7422
7501
  formatFileSize,
7423
7502
  formatForBookingDate,
@@ -7426,6 +7505,7 @@ export {
7426
7505
  formatForDateLocalDetailed,
7427
7506
  formatForDateOfBirth,
7428
7507
  formatForDateWithTime,
7508
+ formatPetTypesLabel,
7429
7509
  getActiveUserMembership,
7430
7510
  getAddressApi,
7431
7511
  getAdminActivityApi,
@@ -7482,6 +7562,7 @@ export {
7482
7562
  getPerformanceTimer,
7483
7563
  getPetApi,
7484
7564
  getPetAvatarUrl,
7565
+ getPetTypeLabel,
7485
7566
  getPrevMonthButton,
7486
7567
  getProfileApi,
7487
7568
  getQuestionGroups,
@@ -7538,6 +7619,7 @@ export {
7538
7619
  onTargetFiles,
7539
7620
  onTargetValue,
7540
7621
  onlyUnique,
7622
+ parseBookingOverviewStatuses,
7541
7623
  passwordValid,
7542
7624
  portalGlyphLength,
7543
7625
  postCodeValid,
@@ -7553,6 +7635,7 @@ export {
7553
7635
  selectedItemsExist,
7554
7636
  selectedOptionIsInEnum,
7555
7637
  separateValidation,
7638
+ serializeBookingOverviewStatuses,
7556
7639
  setContainerToken,
7557
7640
  setContainerTokenLazy,
7558
7641
  setGlobalErrorDetails,
@@ -7569,6 +7652,7 @@ export {
7569
7652
  translateComponentToString,
7570
7653
  tryParseNumber,
7571
7654
  uploadsThatNeedEncryption,
7655
+ urlAddQueryParam,
7572
7656
  urlRef,
7573
7657
  usePromise,
7574
7658
  useValidation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanas-home/hub-common",
3
- "version": "0.56.1271",
3
+ "version": "0.57.1293",
4
4
  "description": "Nana's Hub common library",
5
5
  "license": "MIT",
6
6
  "author": "Kurt Lourens",
@@ -27,7 +27,7 @@
27
27
  "dayjs": "^1.11.21",
28
28
  "favicons": "^7.3.0",
29
29
  "jwt-decode": "^4.0.0",
30
- "solid-js": "^1.9.13",
30
+ "solid-js": "^1.9.14",
31
31
  "solid-toast": "^0.5.0"
32
32
  },
33
33
  "devDependencies": {
@@ -56,7 +56,7 @@
56
56
  "tsup": "^8.5.1",
57
57
  "tsup-preset-solid": "^2.2.0",
58
58
  "typescript": "^6.0.3",
59
- "vite": "^8.1.2",
59
+ "vite": "^8.1.3",
60
60
  "vite-plugin-solid": "^2.11.12",
61
61
  "vitest": "^4.1.9"
62
62
  },