@nanas-home/hub-common 0.34.734 → 0.36.824

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.
@@ -286,11 +286,17 @@ var BookingAddonType = /* @__PURE__ */ ((BookingAddonType2) => {
286
286
  var BookingStatusType = /* @__PURE__ */ ((BookingStatusType2) => {
287
287
  BookingStatusType2[BookingStatusType2["Pending"] = 0] = "Pending";
288
288
  BookingStatusType2[BookingStatusType2["Cancelled"] = 1] = "Cancelled";
289
- BookingStatusType2[BookingStatusType2["FindPlacement"] = 2] = "FindPlacement";
290
- BookingStatusType2[BookingStatusType2["Request"] = 3] = "Request";
291
- BookingStatusType2[BookingStatusType2["PaidWithHostMatch"] = 4] = "PaidWithHostMatch";
292
- BookingStatusType2[BookingStatusType2["Complete"] = 5] = "Complete";
293
- BookingStatusType2[BookingStatusType2["CompleteWithHostFeedback"] = 6] = "CompleteWithHostFeedback";
289
+ BookingStatusType2[BookingStatusType2["IntakeCall"] = 2] = "IntakeCall";
290
+ BookingStatusType2[BookingStatusType2["RequestMatchFee"] = 3] = "RequestMatchFee";
291
+ BookingStatusType2[BookingStatusType2["FindPlacement"] = 4] = "FindPlacement";
292
+ BookingStatusType2[BookingStatusType2["Matched"] = 5] = "Matched";
293
+ BookingStatusType2[BookingStatusType2["MeetAndGreet"] = 6] = "MeetAndGreet";
294
+ BookingStatusType2[BookingStatusType2["RequestPayment"] = 7] = "RequestPayment";
295
+ BookingStatusType2[BookingStatusType2["PaymentRequested"] = 8] = "PaymentRequested";
296
+ BookingStatusType2[BookingStatusType2["Paid"] = 9] = "Paid";
297
+ BookingStatusType2[BookingStatusType2["WaitList"] = 10] = "WaitList";
298
+ BookingStatusType2[BookingStatusType2["Complete"] = 11] = "Complete";
299
+ BookingStatusType2[BookingStatusType2["CompleteWithHostFeedback"] = 12] = "CompleteWithHostFeedback";
294
300
  return BookingStatusType2;
295
301
  })(BookingStatusType || {});
296
302
 
@@ -516,6 +522,7 @@ var DrivingRouteRestriction = {
516
522
  // src/contracts/generated/restrictions/membershipRestriction.ts
517
523
  var MembershipRestriction = {
518
524
  monthlyFee: { minValue: 0, maxValue: 1e3 },
525
+ yearlyFee: { minValue: 0, maxValue: 1e3 },
519
526
  perNightStay: { minValue: 0, maxValue: 1e3 },
520
527
  additionalPetPerNightStay: { minValue: 0, maxValue: 1e3 },
521
528
  transportFee: { minValue: 0, maxValue: 1e3 },
@@ -571,12 +578,12 @@ var UserRestriction = {
571
578
  // src/contracts/generated/searchColumns.ts
572
579
  var searchColumns = {
573
580
  address: [{ "property": "name", "type": 2 }, { "property": "street", "type": 2 }, { "property": "city", "type": 2 }, { "property": "postalCode", "type": 2 }, { "property": "country", "type": 2 }],
574
- question: [{ "property": "forTypes", "type": 1 }, { "property": "transKey", "type": 2 }, { "property": "fallback", "type": 2 }, { "property": "category", "type": 2 }, { "property": "type", "type": 0 }, { "property": "sortOrder", "type": 3 }, { "property": "visible", "type": 4 }, { "property": "notes", "type": 2 }],
575
- upload: [{ "property": "linkUuid", "type": 2 }, { "property": "linkType", "type": 2 }, { "property": "type", "type": 2 }, { "property": "fileName", "type": 2 }, { "property": "blobType", "type": 2 }, { "property": "sizeInKb", "type": 2 }, { "property": "dateCreated", "type": 5 }],
581
+ booking: [{ "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }, { "property": "status", "type": 2 }, { "property": "notes", "type": 2 }],
576
582
  membership: [{ "property": "monthlyFee", "type": 2 }, { "property": "perNightStay", "type": 2 }, { "property": "additionalPetPerNightStay", "type": 2 }, { "property": "transportFee", "type": 2 }, { "property": "perKm", "type": 2 }, { "property": "matchFee", "type": 2 }, { "property": "freeCancellationWithinDays", "type": 2 }, { "property": "bookingAdvanceDays", "type": 2 }, { "property": "bookingCalenderMonthsOpenInAdvance", "type": 2 }, { "property": "seasonalDiscounts", "type": 2 }],
577
583
  pet: [{ "property": "type", "type": 1 }, { "property": "sex", "type": 2 }, { "property": "breed", "type": 2 }, { "property": "neutered", "type": 2 }, { "property": "name", "type": 2 }, { "property": "notes", "type": 2 }, { "property": "dateOfBirth", "type": 5 }],
578
- user: [{ "property": "types", "type": 1 }, { "property": "firstName", "type": 2 }, { "property": "lastName", "type": 2 }, { "property": "email", "type": 2 }, { "property": "hubspotId", "type": 2 }, { "property": "flags", "type": 1 }, { "property": "dateCreated", "type": 5 }],
579
- booking: [{ "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }, { "property": "status", "type": 2 }, { "property": "notes", "type": 2 }]
584
+ question: [{ "property": "forTypes", "type": 1 }, { "property": "transKey", "type": 2 }, { "property": "fallback", "type": 2 }, { "property": "category", "type": 2 }, { "property": "type", "type": 0 }, { "property": "sortOrder", "type": 3 }, { "property": "visible", "type": 4 }, { "property": "notes", "type": 2 }],
585
+ upload: [{ "property": "linkUuid", "type": 2 }, { "property": "linkType", "type": 2 }, { "property": "type", "type": 2 }, { "property": "fileName", "type": 2 }, { "property": "blobType", "type": 2 }, { "property": "sizeInKb", "type": 2 }, { "property": "dateCreated", "type": 5 }],
586
+ user: [{ "property": "types", "type": 1 }, { "property": "firstName", "type": 2 }, { "property": "lastName", "type": 2 }, { "property": "email", "type": 2 }, { "property": "hubspotId", "type": 2 }, { "property": "flags", "type": 1 }, { "property": "dateCreated", "type": 5 }]
580
587
  };
581
588
 
582
589
  // src/helpers/arrayHelper.ts
@@ -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-DiJrOvzQ.js';
2
- export { cg as APP_TYPE_TOKEN, a5 as ActivityDto, aX as ActivityRestriction, x as ActivityType, a6 as AddressCreateDto, a7 as AddressDto, y as AddressLinkType, a8 as AddressLookupDto, aY as AddressRestriction, a9 as AddressUpdateDto, aa as AnswerCreateDto, ab as AnswerDto, z as AnswerLinkType, aZ as AnswerRestriction, A as AppType, ac as AuthLoginDto, ad as AuthPatDto, ae as AuthSignupDto, af as AuthSuccessDto, ce as BOT_PATH_TOKEN, ag as BookingAddonDto, a$ as BookingAddonRestriction, B as BookingAddonType, ah as BookingCreateDto, ai as BookingDto, aj as BookingHostCreateDto, ak as BookingHostDto, al as BookingHostUpdateDto, a_ as BookingRestriction, am as BookingRestrictionsDto, an as BookingRestrictionsEnabledDaysDto, ao as BookingRestrictionsPremiumEnabledDaysDto, F as BookingStatusType, ap as BookingUpdateDto, aq as BookingWithRelationshipsDto, f as CachedValue, r as ClickEvent, ar as CommentCreateDto, as as CommentDto, G as CommentLinkType, b0 as CommentRestriction, at as CommentUpdateDto, cc as DependencyInjectionContainer, j as DependencyInjectionFactory, h as DependencyInjectionIdentifier, D as DependencyInjectionToken, b1 as DrivingRouteRestriction, E as EnvKey, H as HtmlElementEvent, o as HtmlFilesEvent, q as HtmlImageReadEvent, l as HtmlKeyEvent, ba as ICaptchaResponse, k as IDependencyInjectionSetupWebProps, bN as IImageParams, bc as ILogMessage, bd as IMediaUpload, cb as ISite, c8 as ISiteColour, aW as JwtPayloadDto, K as KeyEvent, bb as LogMethod, J as LogType, au as MembershipCreateDto, av as MembershipDto, b2 as MembershipRestriction, N as MembershipStatus, O as MembershipType, aw as MembershipUpdateDto, M as MonthTranslationKey, d as MouseButton, P as NetworkState, bf as NominatimAddressResponse, be as NominatimResponse, c5 as ObjectWithPropsOfValue, Q as OrderDirectionType, ax as PaginationRequestDto, ay as PaginationResponseDto, b3 as PermissionRestriction, S as PermissionType, az as PetCreateUpdateDto, aA as PetDto, b4 as PetRestriction, T as PetSexType, U as PetStatusType, V as PetType, c6 as Prettify, aB as ProfileDto, aC as ProfileQuestionAndAnswersItemDto, aD as ProfileQuestionRequestDto, aE as ProfileUpdateDto, aF as QuestionCreateDto, aG as QuestionDto, Y as QuestionForType, b5 as QuestionRestriction, X as QuestionType, bp as RenderCellType, ci as SITE_CONFIG_TOKEN, aH as SearchObjDatePropRequestDto, aI as SearchObjRequestDto, aJ as SearchObjTextPropRequestDto, $ as SearchableColumnInfo, _ as SearchableColumnType, cr as TranslationService, b6 as UnavailabilityRestriction, aK as UploadCreateDto, aL as UploadDto, aM as UploadImageWithLinkDto, a0 as UploadLinkType, b7 as UploadRestriction, a1 as UploadType, aN as UploadUpdateDto, a3 as UserAccountFlagType, aO as UserCreateDto, aP as UserDto, aQ as UserMembershipCreateDto, aR as UserMembershipDto, aS as UserMembershipUpdateDto, aT as UserPermissionDto, b8 as UserRestriction, a4 as UserType, aU as UserUpdateDto, bg as ValidationResult, aV as VersionDto, W as WeekdayTranslationKey, bB as addDays, bA as addMinutes, bC as addMonths, bz as addSeconds, c1 as addSpacesForEnum, bm as addToParallelTasks, c3 as anyObject, u as apiRoute, t as apiRouteParam, bk as arrayContains, bj as arrayOfNLength, b$ as capitalizeFirstLetter, c9 as colourPalette, g as createToken, bM as cyrb53, bF as dateDiffInDays, bJ as debounceLeading, ca as defaultSiteColour, c4 as fakePromise, bs as formatDate, c2 as formatFileSize, by as formatForBookingDate, bu as formatForDateDropdown, bt as formatForDateLocal, bx as formatForDateLocalDetailed, bv as formatForDateOfBirth, bw as formatForDateWithTime, bG as getAgeInYears, Z as getAllPetQuestionForType, ch as getAppType, bK as getArrFromEnum, cf as getBotPath, cm as getCommonConfig, bn as getDayClassObject, bq as getDayElements, bo as getDayHeadingElements, bO as getImageParams, cn as getLog, bR as getMimeTypeFromExtension, bP as getPayloadFromJwt, bT as getPerformanceTimer, bW as getPetAvatarUrl, cl as getSiteColour, ck as getSiteConfig, bV as getUserAvatarUrl, br as getUsersName, bH as getWeekNumber, bU as hasRequiredPermissions, bD as isBefore, cD as isNumber, bE as isSameDay, i as isWebApp, c0 as lowercaseFirstLetter, bh as makeArrayOrDefault, cC as maxDate, ct as maxItems, cH as maxLength, cF as maxValue, bQ as mimeTypeLookup, cB as minDate, cs as minItems, cG as minLength, e as minUrlLength, cE as minValue, m as monthTranslationKeyOrder, cy as multiValidation, bY as nameof, n as nanasFonts, cw as noValidation, cx as notNull, bi as onlyUnique, p as portalGlyphLength, bX as promiseFromValue, bZ as randomIntFromRange, b_ as randomItemFromArray, cd as rootContainer, co as rootDependencyInjectionSetup, b9 as searchColumns, cu as selectedItemsExist, cv as selectedOptionIsInEnum, cz as separateValidation, cp as setContainerToken, cq as setContainerTokenLazy, cj as setSiteConfig, cI as shouldBeUrl, cJ as shouldBeYoutubeUrl, bI as showSecondCalendar, s as socialLinks, bl as timeout, bS as tryParseNumber, a2 as uploadsThatNeedEncryption, c7 as urlRef, bL as uuidv4, v as validUuidChars, cA as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-DiJrOvzQ.js';
1
+ import { I as ILogger, R as ResultWithValue, a as Result, L as LogService, C as CommonConfigService, b as IDependencyInjectionSetupProps } from '../textValidation-CJbRmG7d.js';
2
+ export { cg as APP_TYPE_TOKEN, a5 as ActivityDto, aX as ActivityRestriction, x as ActivityType, a6 as AddressCreateDto, a7 as AddressDto, y as AddressLinkType, a8 as AddressLookupDto, aY as AddressRestriction, a9 as AddressUpdateDto, aa as AnswerCreateDto, ab as AnswerDto, z as AnswerLinkType, aZ as AnswerRestriction, A as AppType, ac as AuthLoginDto, ad as AuthPatDto, ae as AuthSignupDto, af as AuthSuccessDto, ce as BOT_PATH_TOKEN, ag as BookingAddonDto, a$ as BookingAddonRestriction, B as BookingAddonType, ah as BookingCreateDto, ai as BookingDto, aj as BookingHostCreateDto, ak as BookingHostDto, al as BookingHostUpdateDto, a_ as BookingRestriction, am as BookingRestrictionsDto, an as BookingRestrictionsEnabledDaysDto, ao as BookingRestrictionsPremiumEnabledDaysDto, F as BookingStatusType, ap as BookingUpdateDto, aq as BookingWithRelationshipsDto, f as CachedValue, r as ClickEvent, ar as CommentCreateDto, as as CommentDto, G as CommentLinkType, b0 as CommentRestriction, at as CommentUpdateDto, cc as DependencyInjectionContainer, j as DependencyInjectionFactory, h as DependencyInjectionIdentifier, D as DependencyInjectionToken, b1 as DrivingRouteRestriction, E as EnvKey, H as HtmlElementEvent, o as HtmlFilesEvent, q as HtmlImageReadEvent, l as HtmlKeyEvent, ba as ICaptchaResponse, k as IDependencyInjectionSetupWebProps, bN as IImageParams, bc as ILogMessage, bd as IMediaUpload, cb as ISite, c8 as ISiteColour, aW as JwtPayloadDto, K as KeyEvent, bb as LogMethod, J as LogType, au as MembershipCreateDto, av as MembershipDto, b2 as MembershipRestriction, N as MembershipStatus, O as MembershipType, aw as MembershipUpdateDto, M as MonthTranslationKey, d as MouseButton, P as NetworkState, bf as NominatimAddressResponse, be as NominatimResponse, c5 as ObjectWithPropsOfValue, Q as OrderDirectionType, ax as PaginationRequestDto, ay as PaginationResponseDto, b3 as PermissionRestriction, S as PermissionType, az as PetCreateUpdateDto, aA as PetDto, b4 as PetRestriction, T as PetSexType, U as PetStatusType, V as PetType, c6 as Prettify, aB as ProfileDto, aC as ProfileQuestionAndAnswersItemDto, aD as ProfileQuestionRequestDto, aE as ProfileUpdateDto, aF as QuestionCreateDto, aG as QuestionDto, Y as QuestionForType, b5 as QuestionRestriction, X as QuestionType, bp as RenderCellType, ci as SITE_CONFIG_TOKEN, aH as SearchObjDatePropRequestDto, aI as SearchObjRequestDto, aJ as SearchObjTextPropRequestDto, $ as SearchableColumnInfo, _ as SearchableColumnType, cr as TranslationService, b6 as UnavailabilityRestriction, aK as UploadCreateDto, aL as UploadDto, aM as UploadImageWithLinkDto, a0 as UploadLinkType, b7 as UploadRestriction, a1 as UploadType, aN as UploadUpdateDto, a3 as UserAccountFlagType, aO as UserCreateDto, aP as UserDto, aQ as UserMembershipCreateDto, aR as UserMembershipDto, aS as UserMembershipUpdateDto, aT as UserPermissionDto, b8 as UserRestriction, a4 as UserType, aU as UserUpdateDto, bg as ValidationResult, aV as VersionDto, W as WeekdayTranslationKey, bB as addDays, bA as addMinutes, bC as addMonths, bz as addSeconds, c1 as addSpacesForEnum, bm as addToParallelTasks, c3 as anyObject, u as apiRoute, t as apiRouteParam, bk as arrayContains, bj as arrayOfNLength, b$ as capitalizeFirstLetter, c9 as colourPalette, g as createToken, bM as cyrb53, bF as dateDiffInDays, bJ as debounceLeading, ca as defaultSiteColour, c4 as fakePromise, bs as formatDate, c2 as formatFileSize, by as formatForBookingDate, bu as formatForDateDropdown, bt as formatForDateLocal, bx as formatForDateLocalDetailed, bv as formatForDateOfBirth, bw as formatForDateWithTime, bG as getAgeInYears, Z as getAllPetQuestionForType, ch as getAppType, bK as getArrFromEnum, cf as getBotPath, cm as getCommonConfig, bn as getDayClassObject, bq as getDayElements, bo as getDayHeadingElements, bO as getImageParams, cn as getLog, bR as getMimeTypeFromExtension, bP as getPayloadFromJwt, bT as getPerformanceTimer, bW as getPetAvatarUrl, cl as getSiteColour, ck as getSiteConfig, bV as getUserAvatarUrl, br as getUsersName, bH as getWeekNumber, bU as hasRequiredPermissions, bD as isBefore, cD as isNumber, bE as isSameDay, i as isWebApp, c0 as lowercaseFirstLetter, bh as makeArrayOrDefault, cC as maxDate, ct as maxItems, cH as maxLength, cF as maxValue, bQ as mimeTypeLookup, cB as minDate, cs as minItems, cG as minLength, e as minUrlLength, cE as minValue, m as monthTranslationKeyOrder, cy as multiValidation, bY as nameof, n as nanasFonts, cw as noValidation, cx as notNull, bi as onlyUnique, p as portalGlyphLength, bX as promiseFromValue, bZ as randomIntFromRange, b_ as randomItemFromArray, cd as rootContainer, co as rootDependencyInjectionSetup, b9 as searchColumns, cu as selectedItemsExist, cv as selectedOptionIsInEnum, cz as separateValidation, cp as setContainerToken, cq as setContainerTokenLazy, cj as setSiteConfig, cI as shouldBeUrl, cJ as shouldBeYoutubeUrl, bI as showSecondCalendar, s as socialLinks, bl as timeout, bS as tryParseNumber, a2 as uploadsThatNeedEncryption, c7 as urlRef, bL as uuidv4, v as validUuidChars, cA as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-CJbRmG7d.js';
3
3
  import 'solid-js';
4
4
  import '@tolgee/web';
5
5
 
@@ -1,5 +1,5 @@
1
- import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, getSiteConfig, getAppType, isWebApp, rootDependencyInjectionSetup, setContainerToken } from '../chunk/V3GOOHTC.js';
2
- export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, colourPalette, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, isBefore, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/V3GOOHTC.js';
1
+ import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, getSiteConfig, getAppType, isWebApp, rootDependencyInjectionSetup, setContainerToken } from '../chunk/P66PP6GS.js';
2
+ export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, colourPalette, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, isBefore, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/P66PP6GS.js';
3
3
  import fs5 from 'fs/promises';
4
4
  import path8 from 'path';
5
5
  import fs2 from 'fs';
@@ -387,11 +387,17 @@ declare enum BookingAddonType {
387
387
  declare enum BookingStatusType {
388
388
  Pending = 0,
389
389
  Cancelled = 1,
390
- FindPlacement = 2,
391
- Request = 3,
392
- PaidWithHostMatch = 4,
393
- Complete = 5,
394
- CompleteWithHostFeedback = 6
390
+ IntakeCall = 2,
391
+ RequestMatchFee = 3,
392
+ FindPlacement = 4,
393
+ Matched = 5,
394
+ MeetAndGreet = 6,
395
+ RequestPayment = 7,
396
+ PaymentRequested = 8,
397
+ Paid = 9,
398
+ WaitList = 10,
399
+ Complete = 11,
400
+ CompleteWithHostFeedback = 12
395
401
  }
396
402
 
397
403
  declare enum CommentLinkType {
@@ -764,7 +770,7 @@ interface components {
764
770
  endDate: Record<string, never> | string | number;
765
771
  notes: string;
766
772
  /** BookingStatusType */
767
- status: 0 | 1 | 2 | 3 | 4 | 5 | 6;
773
+ status: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
768
774
  petUuids: string[];
769
775
  };
770
776
  /**
@@ -786,7 +792,7 @@ interface components {
786
792
  startDate: Record<string, never> | string | number;
787
793
  endDate: Record<string, never> | string | number;
788
794
  /** BookingStatusType */
789
- status: 0 | 1 | 2 | 3 | 4 | 5 | 6;
795
+ status: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
790
796
  notes: string;
791
797
  dateCreated: Record<string, never> | string | number;
792
798
  dateModified: Record<string, never> | string | number;
@@ -880,7 +886,7 @@ interface components {
880
886
  startDate: Record<string, never> | string | number;
881
887
  endDate: Record<string, never> | string | number;
882
888
  /** BookingStatusType */
883
- status: 0 | 1 | 2 | 3 | 4 | 5 | 6;
889
+ status: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
884
890
  notes: string;
885
891
  petUuids: string[];
886
892
  };
@@ -903,7 +909,7 @@ interface components {
903
909
  startDate: Record<string, never> | string | number;
904
910
  endDate: Record<string, never> | string | number;
905
911
  /** BookingStatusType */
906
- status: 0 | 1 | 2 | 3 | 4 | 5 | 6;
912
+ status: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
907
913
  notes: string;
908
914
  dateCreated: Record<string, never> | string | number;
909
915
  dateModified: Record<string, never> | string | number;
@@ -934,7 +940,11 @@ interface components {
934
940
  * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
935
941
  */
936
942
  uuid: string;
937
- userUuid: (string | null) | null;
943
+ /**
944
+ * Format: uuid
945
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
946
+ */
947
+ userUuid: string;
938
948
  /** PetSexType */
939
949
  sex: 0 | 1 | 2;
940
950
  name: string;
@@ -1037,6 +1047,7 @@ interface components {
1037
1047
  /** MembershipType */
1038
1048
  type: 0 | 1 | 2;
1039
1049
  monthlyFee: number;
1050
+ yearlyFee: number;
1040
1051
  perNightStay: number;
1041
1052
  additionalPetPerNightStay: number;
1042
1053
  transportFee: number;
@@ -1060,6 +1071,7 @@ interface components {
1060
1071
  /** MembershipType */
1061
1072
  type: 0 | 1 | 2;
1062
1073
  monthlyFee: number;
1074
+ yearlyFee: number;
1063
1075
  perNightStay: number;
1064
1076
  additionalPetPerNightStay: number;
1065
1077
  transportFee: number;
@@ -1080,6 +1092,7 @@ interface components {
1080
1092
  /** MembershipType */
1081
1093
  type: 0 | 1 | 2;
1082
1094
  monthlyFee: number;
1095
+ yearlyFee: number;
1083
1096
  perNightStay: number;
1084
1097
  additionalPetPerNightStay: number;
1085
1098
  transportFee: number;
@@ -1149,7 +1162,11 @@ interface components {
1149
1162
  * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
1150
1163
  */
1151
1164
  uuid: string;
1152
- userUuid: (string | null) | null;
1165
+ /**
1166
+ * Format: uuid
1167
+ * @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
1168
+ */
1169
+ userUuid: string;
1153
1170
  /** PetSexType */
1154
1171
  sex: 0 | 1 | 2;
1155
1172
  name: string;
@@ -1729,6 +1746,10 @@ declare const MembershipRestriction: {
1729
1746
  readonly minValue: 0;
1730
1747
  readonly maxValue: 1000;
1731
1748
  };
1749
+ readonly yearlyFee: {
1750
+ readonly minValue: 0;
1751
+ readonly maxValue: 1000;
1752
+ };
1732
1753
  readonly perNightStay: {
1733
1754
  readonly minValue: 0;
1734
1755
  readonly maxValue: 1000;
@@ -1854,27 +1875,27 @@ declare const searchColumns: {
1854
1875
  property: string;
1855
1876
  type: number;
1856
1877
  }[];
1857
- question: {
1878
+ booking: {
1858
1879
  property: string;
1859
1880
  type: number;
1860
1881
  }[];
1861
- upload: {
1882
+ membership: {
1862
1883
  property: string;
1863
1884
  type: number;
1864
1885
  }[];
1865
- membership: {
1886
+ pet: {
1866
1887
  property: string;
1867
1888
  type: number;
1868
1889
  }[];
1869
- pet: {
1890
+ question: {
1870
1891
  property: string;
1871
1892
  type: number;
1872
1893
  }[];
1873
- user: {
1894
+ upload: {
1874
1895
  property: string;
1875
1896
  type: number;
1876
1897
  }[];
1877
- booking: {
1898
+ user: {
1878
1899
  property: string;
1879
1900
  type: number;
1880
1901
  }[];
@@ -1,7 +1,7 @@
1
1
  import * as solid_js from 'solid-js';
2
2
  import { Component, JSXElement, JSX, Accessor, ComponentProps } from 'solid-js';
3
- import { F as BookingStatusType, r as ClickEvent, O as MembershipType, U as PetStatusType, aB as ProfileDto, Y as QuestionForType, X as QuestionType, a4 as UserType, R as ResultWithValue, P as NetworkState, cK as IFormCalendarPickerProps, cL as FullDateSelectionProps, cM as FormCalendarPickerMode, cN as FormCalendarDatePickerRangeProps, cO as DateSelectionProps, W as WeekdayTranslationKey, M as MonthTranslationKey, cP as FormCalendarPickerInnerProps, cQ as FormInputProps, bg as ValidationResult, K as KeyEvent, H as HtmlElementEvent, aC as ProfileQuestionAndAnswersItemDto, a6 as AddressCreateDto, a9 as AddressUpdateDto, ac as AuthLoginDto, ae as AuthSignupDto, ah as BookingCreateDto, au as MembershipCreateDto, az as PetCreateUpdateDto, aE as ProfileUpdateDto, aF as QuestionCreateDto, aK as UploadCreateDto, aP as UserDto, aO as UserCreateDto, o as HtmlFilesEvent, bc as ILogMessage, I as ILogger, a as Result, ax as PaginationRequestDto, ay as PaginationResponseDto, aI as SearchObjRequestDto, C as CommonConfigService, a5 as ActivityDto, L as LogService, a7 as AddressDto, y as AddressLinkType, be as NominatimResponse, ai as BookingDto, G as CommentLinkType, as as CommentDto, ar as CommentCreateDto, av as MembershipDto, aA as PetDto, aG as QuestionDto, aL as UploadDto, aR as UserMembershipDto, aT as UserPermissionDto, S as PermissionType, a8 as AddressLookupDto, aq as BookingWithRelationshipsDto, cb as ISite, aM as UploadImageWithLinkDto, am as BookingRestrictionsDto, af as AuthSuccessDto, aV as VersionDto, c6 as Prettify, k as IDependencyInjectionSetupWebProps, cr as TranslationService } from '../textValidation-DiJrOvzQ.js';
4
- export { cg as APP_TYPE_TOKEN, aX as ActivityRestriction, x as ActivityType, aY as AddressRestriction, aa as AnswerCreateDto, ab as AnswerDto, z as AnswerLinkType, aZ as AnswerRestriction, A as AppType, ad as AuthPatDto, ce as BOT_PATH_TOKEN, ag as BookingAddonDto, a$ as BookingAddonRestriction, B as BookingAddonType, aj as BookingHostCreateDto, ak as BookingHostDto, al as BookingHostUpdateDto, a_ as BookingRestriction, an as BookingRestrictionsEnabledDaysDto, ao as BookingRestrictionsPremiumEnabledDaysDto, ap as BookingUpdateDto, f as CachedValue, b0 as CommentRestriction, at as CommentUpdateDto, cc as DependencyInjectionContainer, j as DependencyInjectionFactory, h as DependencyInjectionIdentifier, D as DependencyInjectionToken, b1 as DrivingRouteRestriction, E as EnvKey, cR as FormCalendarSpecialRangeDisplayProps, cS as FormCalendarSpecialRangeProps, q as HtmlImageReadEvent, l as HtmlKeyEvent, ba as ICaptchaResponse, b as IDependencyInjectionSetupProps, bN as IImageParams, bd as IMediaUpload, c8 as ISiteColour, aW as JwtPayloadDto, bb as LogMethod, J as LogType, b2 as MembershipRestriction, N as MembershipStatus, aw as MembershipUpdateDto, d as MouseButton, bf as NominatimAddressResponse, c5 as ObjectWithPropsOfValue, Q as OrderDirectionType, b3 as PermissionRestriction, b4 as PetRestriction, T as PetSexType, V as PetType, aD as ProfileQuestionRequestDto, cV as PropertyOverrides, b5 as QuestionRestriction, bp as RenderCellType, ci as SITE_CONFIG_TOKEN, aH as SearchObjDatePropRequestDto, aJ as SearchObjTextPropRequestDto, $ as SearchableColumnInfo, _ as SearchableColumnType, b6 as UnavailabilityRestriction, a0 as UploadLinkType, b7 as UploadRestriction, a1 as UploadType, aN as UploadUpdateDto, a3 as UserAccountFlagType, aQ as UserMembershipCreateDto, aS as UserMembershipUpdateDto, b8 as UserRestriction, aU as UserUpdateDto, cU as ValidFormComponentTypes, cT as ValidFormTypes, bB as addDays, bA as addMinutes, bC as addMonths, bz as addSeconds, c1 as addSpacesForEnum, bm as addToParallelTasks, c3 as anyObject, u as apiRoute, t as apiRouteParam, bk as arrayContains, bj as arrayOfNLength, b$ as capitalizeFirstLetter, c9 as colourPalette, g as createToken, bM as cyrb53, bF as dateDiffInDays, bJ as debounceLeading, ca as defaultSiteColour, c4 as fakePromise, bs as formatDate, c2 as formatFileSize, by as formatForBookingDate, bu as formatForDateDropdown, bt as formatForDateLocal, bx as formatForDateLocalDetailed, bv as formatForDateOfBirth, bw as formatForDateWithTime, bG as getAgeInYears, Z as getAllPetQuestionForType, ch as getAppType, bK as getArrFromEnum, cf as getBotPath, cm as getCommonConfig, bn as getDayClassObject, bq as getDayElements, bo as getDayHeadingElements, bO as getImageParams, cn as getLog, bR as getMimeTypeFromExtension, bP as getPayloadFromJwt, bT as getPerformanceTimer, bW as getPetAvatarUrl, cl as getSiteColour, ck as getSiteConfig, bV as getUserAvatarUrl, br as getUsersName, bH as getWeekNumber, bU as hasRequiredPermissions, bD as isBefore, cD as isNumber, bE as isSameDay, i as isWebApp, c0 as lowercaseFirstLetter, bh as makeArrayOrDefault, cC as maxDate, ct as maxItems, cH as maxLength, cF as maxValue, bQ as mimeTypeLookup, cB as minDate, cs as minItems, cG as minLength, e as minUrlLength, cE as minValue, m as monthTranslationKeyOrder, cy as multiValidation, bY as nameof, n as nanasFonts, cw as noValidation, cx as notNull, bi as onlyUnique, p as portalGlyphLength, bX as promiseFromValue, bZ as randomIntFromRange, b_ as randomItemFromArray, cd as rootContainer, co as rootDependencyInjectionSetup, b9 as searchColumns, cu as selectedItemsExist, cv as selectedOptionIsInEnum, cz as separateValidation, cp as setContainerToken, cq as setContainerTokenLazy, cj as setSiteConfig, cI as shouldBeUrl, cJ as shouldBeYoutubeUrl, bI as showSecondCalendar, s as socialLinks, bl as timeout, bS as tryParseNumber, a2 as uploadsThatNeedEncryption, c7 as urlRef, bL as uuidv4, v as validUuidChars, cA as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-DiJrOvzQ.js';
3
+ import { F as BookingStatusType, r as ClickEvent, O as MembershipType, U as PetStatusType, aB as ProfileDto, Y as QuestionForType, X as QuestionType, a4 as UserType, R as ResultWithValue, P as NetworkState, cK as IFormCalendarPickerProps, cL as FullDateSelectionProps, cM as FormCalendarPickerMode, cN as FormCalendarDatePickerRangeProps, cO as DateSelectionProps, W as WeekdayTranslationKey, M as MonthTranslationKey, cP as FormCalendarPickerInnerProps, cQ as FormInputProps, bg as ValidationResult, K as KeyEvent, H as HtmlElementEvent, aC as ProfileQuestionAndAnswersItemDto, a6 as AddressCreateDto, a9 as AddressUpdateDto, ac as AuthLoginDto, ae as AuthSignupDto, ah as BookingCreateDto, au as MembershipCreateDto, az as PetCreateUpdateDto, aE as ProfileUpdateDto, aF as QuestionCreateDto, aK as UploadCreateDto, aP as UserDto, aO as UserCreateDto, o as HtmlFilesEvent, bc as ILogMessage, I as ILogger, a as Result, ax as PaginationRequestDto, ay as PaginationResponseDto, aI as SearchObjRequestDto, C as CommonConfigService, a5 as ActivityDto, L as LogService, a7 as AddressDto, y as AddressLinkType, be as NominatimResponse, ai as BookingDto, G as CommentLinkType, as as CommentDto, ar as CommentCreateDto, av as MembershipDto, aA as PetDto, aG as QuestionDto, aL as UploadDto, aR as UserMembershipDto, aT as UserPermissionDto, S as PermissionType, a8 as AddressLookupDto, aq as BookingWithRelationshipsDto, cb as ISite, aM as UploadImageWithLinkDto, am as BookingRestrictionsDto, af as AuthSuccessDto, aV as VersionDto, c6 as Prettify, k as IDependencyInjectionSetupWebProps, cr as TranslationService } from '../textValidation-CJbRmG7d.js';
4
+ export { cg as APP_TYPE_TOKEN, aX as ActivityRestriction, x as ActivityType, aY as AddressRestriction, aa as AnswerCreateDto, ab as AnswerDto, z as AnswerLinkType, aZ as AnswerRestriction, A as AppType, ad as AuthPatDto, ce as BOT_PATH_TOKEN, ag as BookingAddonDto, a$ as BookingAddonRestriction, B as BookingAddonType, aj as BookingHostCreateDto, ak as BookingHostDto, al as BookingHostUpdateDto, a_ as BookingRestriction, an as BookingRestrictionsEnabledDaysDto, ao as BookingRestrictionsPremiumEnabledDaysDto, ap as BookingUpdateDto, f as CachedValue, b0 as CommentRestriction, at as CommentUpdateDto, cc as DependencyInjectionContainer, j as DependencyInjectionFactory, h as DependencyInjectionIdentifier, D as DependencyInjectionToken, b1 as DrivingRouteRestriction, E as EnvKey, cR as FormCalendarSpecialRangeDisplayProps, cS as FormCalendarSpecialRangeProps, q as HtmlImageReadEvent, l as HtmlKeyEvent, ba as ICaptchaResponse, b as IDependencyInjectionSetupProps, bN as IImageParams, bd as IMediaUpload, c8 as ISiteColour, aW as JwtPayloadDto, bb as LogMethod, J as LogType, b2 as MembershipRestriction, N as MembershipStatus, aw as MembershipUpdateDto, d as MouseButton, bf as NominatimAddressResponse, c5 as ObjectWithPropsOfValue, Q as OrderDirectionType, b3 as PermissionRestriction, b4 as PetRestriction, T as PetSexType, V as PetType, aD as ProfileQuestionRequestDto, cV as PropertyOverrides, b5 as QuestionRestriction, bp as RenderCellType, ci as SITE_CONFIG_TOKEN, aH as SearchObjDatePropRequestDto, aJ as SearchObjTextPropRequestDto, $ as SearchableColumnInfo, _ as SearchableColumnType, b6 as UnavailabilityRestriction, a0 as UploadLinkType, b7 as UploadRestriction, a1 as UploadType, aN as UploadUpdateDto, a3 as UserAccountFlagType, aQ as UserMembershipCreateDto, aS as UserMembershipUpdateDto, b8 as UserRestriction, aU as UserUpdateDto, cU as ValidFormComponentTypes, cT as ValidFormTypes, bB as addDays, bA as addMinutes, bC as addMonths, bz as addSeconds, c1 as addSpacesForEnum, bm as addToParallelTasks, c3 as anyObject, u as apiRoute, t as apiRouteParam, bk as arrayContains, bj as arrayOfNLength, b$ as capitalizeFirstLetter, c9 as colourPalette, g as createToken, bM as cyrb53, bF as dateDiffInDays, bJ as debounceLeading, ca as defaultSiteColour, c4 as fakePromise, bs as formatDate, c2 as formatFileSize, by as formatForBookingDate, bu as formatForDateDropdown, bt as formatForDateLocal, bx as formatForDateLocalDetailed, bv as formatForDateOfBirth, bw as formatForDateWithTime, bG as getAgeInYears, Z as getAllPetQuestionForType, ch as getAppType, bK as getArrFromEnum, cf as getBotPath, cm as getCommonConfig, bn as getDayClassObject, bq as getDayElements, bo as getDayHeadingElements, bO as getImageParams, cn as getLog, bR as getMimeTypeFromExtension, bP as getPayloadFromJwt, bT as getPerformanceTimer, bW as getPetAvatarUrl, cl as getSiteColour, ck as getSiteConfig, bV as getUserAvatarUrl, br as getUsersName, bH as getWeekNumber, bU as hasRequiredPermissions, bD as isBefore, cD as isNumber, bE as isSameDay, i as isWebApp, c0 as lowercaseFirstLetter, bh as makeArrayOrDefault, cC as maxDate, ct as maxItems, cH as maxLength, cF as maxValue, bQ as mimeTypeLookup, cB as minDate, cs as minItems, cG as minLength, e as minUrlLength, cE as minValue, m as monthTranslationKeyOrder, cy as multiValidation, bY as nameof, n as nanasFonts, cw as noValidation, cx as notNull, bi as onlyUnique, p as portalGlyphLength, bX as promiseFromValue, bZ as randomIntFromRange, b_ as randomItemFromArray, cd as rootContainer, co as rootDependencyInjectionSetup, b9 as searchColumns, cu as selectedItemsExist, cv as selectedOptionIsInEnum, cz as separateValidation, cp as setContainerToken, cq as setContainerTokenLazy, cj as setSiteConfig, cI as shouldBeUrl, cJ as shouldBeYoutubeUrl, bI as showSecondCalendar, s as socialLinks, bl as timeout, bS as tryParseNumber, a2 as uploadsThatNeedEncryption, c7 as urlRef, bL as uuidv4, v as validUuidChars, cA as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-CJbRmG7d.js';
5
5
  import { ToasterProps } from 'solid-toast';
6
6
  import '@tolgee/web';
7
7
 
package/dist/web/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { notNull, multiValidation, isNumber, minValue, MembershipRestriction, maxValue, minItems, minLength, PetRestriction, maxLength, selectedOptionIsInEnum, PetSexType, PetStatusType, PetType, QuestionRestriction, QuestionForType, QuestionType, UserRestriction, noValidation, AddressRestriction, BookingRestriction, minDate, UploadType, UploadRestriction, rootContainer, BookingStatusType, timeout, uuidv4, anyObject, apiRoute, apiRouteParam, getSiteConfig, getLog, debounceLeading, rootDependencyInjectionSetup, TranslationService, setContainerToken, MembershipType, socialLinks, getUsersName, getUserAvatarUrl, UserType, colourPalette, monthTranslationKeyOrder, changeMonth, getDayHeadingElements, getDayElements, getCalendarDropdownDisplayValue, makeArrayOrDefault, getArrFromEnum, capitalizeFirstLetter, convertToDate, isBefore, formatDate, onlyUnique, getDayClassObject, getPetAvatarUrl, formatForDateLocal, isDateAfterStart, isDateBeforeEnd, convertToFullDateSelection } from '../chunk/V3GOOHTC.js';
2
- export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, 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, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/V3GOOHTC.js';
1
+ import { notNull, multiValidation, isNumber, minValue, MembershipRestriction, maxValue, minItems, minLength, PetRestriction, maxLength, selectedOptionIsInEnum, PetSexType, PetStatusType, PetType, QuestionRestriction, QuestionForType, QuestionType, UserRestriction, noValidation, AddressRestriction, BookingRestriction, minDate, UploadType, UploadRestriction, rootContainer, BookingStatusType, timeout, uuidv4, anyObject, apiRoute, apiRouteParam, getSiteConfig, getLog, debounceLeading, rootDependencyInjectionSetup, TranslationService, setContainerToken, MembershipType, socialLinks, getUsersName, getUserAvatarUrl, UserType, colourPalette, monthTranslationKeyOrder, changeMonth, getDayHeadingElements, getDayElements, getCalendarDropdownDisplayValue, makeArrayOrDefault, getArrFromEnum, capitalizeFirstLetter, convertToDate, isBefore, formatDate, onlyUnique, getDayClassObject, getPetAvatarUrl, formatForDateLocal, isDateAfterStart, isDateBeforeEnd, convertToFullDateSelection } from '../chunk/P66PP6GS.js';
2
+ export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, 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, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/P66PP6GS.js';
3
3
  import { delegateEvents, createComponent, template, insert, effect, className, setAttribute, mergeProps, spread, addEventListener, memo, use, style } from 'solid-js/web';
4
4
  import { createSignal, Show, Switch, Match, For, createEffect, onMount } from 'solid-js';
5
5
  import classNames from 'classnames';
@@ -798,7 +798,7 @@ var PetApiService = class {
798
798
  }
799
799
  load = () => this._baseApi.get(this._routeObj.getAll, addAccessTokenToHeaders);
800
800
  loadFromUuid = (uuid) => this._baseApi.get(this._routeObj.getById.replace(apiRouteParam.petUuid, uuid), addAccessTokenToHeaders);
801
- update = (petUuid, profile) => this._baseApi.post(this._routeObj.update.replace(apiRouteParam.petUuid, petUuid), profile, addAccessTokenToHeaders);
801
+ update = (petUuid, profile) => this._baseApi.put(this._routeObj.update.replace(apiRouteParam.petUuid, petUuid), profile, addAccessTokenToHeaders);
802
802
  };
803
803
 
804
804
  // src/services/api/client/profileApiService.ts
@@ -3539,6 +3539,17 @@ var MembershipCreateDtoMeta = {
3539
3539
  }),
3540
3540
  validator: multiValidation(isNumber, minValue(MembershipRestriction.monthlyFee.minValue), maxValue(MembershipRestriction.monthlyFee.maxValue))
3541
3541
  },
3542
+ yearlyFee: {
3543
+ label: () => createComponent(T, {
3544
+ keyName: "membership_yearly_fee_label",
3545
+ defaultValue: "Yearly Fee"
3546
+ }),
3547
+ placeholder: () => createComponent(T, {
3548
+ keyName: "membership_yearly_fee_placeholder",
3549
+ defaultValue: "10"
3550
+ }),
3551
+ validator: multiValidation(isNumber, minValue(MembershipRestriction.yearlyFee.minValue), maxValue(MembershipRestriction.yearlyFee.maxValue))
3552
+ },
3542
3553
  perNightStay: {
3543
3554
  label: () => createComponent(T, {
3544
3555
  keyName: "membership_per_night_stay_label",
@@ -57,11 +57,17 @@ import classNames2 from "classnames";
57
57
  var BookingStatusType = /* @__PURE__ */ ((BookingStatusType2) => {
58
58
  BookingStatusType2[BookingStatusType2["Pending"] = 0] = "Pending";
59
59
  BookingStatusType2[BookingStatusType2["Cancelled"] = 1] = "Cancelled";
60
- BookingStatusType2[BookingStatusType2["FindPlacement"] = 2] = "FindPlacement";
61
- BookingStatusType2[BookingStatusType2["Request"] = 3] = "Request";
62
- BookingStatusType2[BookingStatusType2["PaidWithHostMatch"] = 4] = "PaidWithHostMatch";
63
- BookingStatusType2[BookingStatusType2["Complete"] = 5] = "Complete";
64
- BookingStatusType2[BookingStatusType2["CompleteWithHostFeedback"] = 6] = "CompleteWithHostFeedback";
60
+ BookingStatusType2[BookingStatusType2["IntakeCall"] = 2] = "IntakeCall";
61
+ BookingStatusType2[BookingStatusType2["RequestMatchFee"] = 3] = "RequestMatchFee";
62
+ BookingStatusType2[BookingStatusType2["FindPlacement"] = 4] = "FindPlacement";
63
+ BookingStatusType2[BookingStatusType2["Matched"] = 5] = "Matched";
64
+ BookingStatusType2[BookingStatusType2["MeetAndGreet"] = 6] = "MeetAndGreet";
65
+ BookingStatusType2[BookingStatusType2["RequestPayment"] = 7] = "RequestPayment";
66
+ BookingStatusType2[BookingStatusType2["PaymentRequested"] = 8] = "PaymentRequested";
67
+ BookingStatusType2[BookingStatusType2["Paid"] = 9] = "Paid";
68
+ BookingStatusType2[BookingStatusType2["WaitList"] = 10] = "WaitList";
69
+ BookingStatusType2[BookingStatusType2["Complete"] = 11] = "Complete";
70
+ BookingStatusType2[BookingStatusType2["CompleteWithHostFeedback"] = 12] = "CompleteWithHostFeedback";
65
71
  return BookingStatusType2;
66
72
  })(BookingStatusType || {});
67
73
 
@@ -889,7 +895,7 @@ var PetApiService = class {
889
895
  }
890
896
  load = () => this._baseApi.get(this._routeObj.getAll, addAccessTokenToHeaders);
891
897
  loadFromUuid = (uuid) => this._baseApi.get(this._routeObj.getById.replace(apiRouteParam.petUuid, uuid), addAccessTokenToHeaders);
892
- update = (petUuid, profile) => this._baseApi.post(this._routeObj.update.replace(apiRouteParam.petUuid, petUuid), profile, addAccessTokenToHeaders);
898
+ update = (petUuid, profile) => this._baseApi.put(this._routeObj.update.replace(apiRouteParam.petUuid, petUuid), profile, addAccessTokenToHeaders);
893
899
  };
894
900
 
895
901
  // src/services/api/client/profileApiService.ts
@@ -3729,6 +3735,7 @@ var maxValue = (max) => (value) => {
3729
3735
  // src/contracts/generated/restrictions/membershipRestriction.ts
3730
3736
  var MembershipRestriction = {
3731
3737
  monthlyFee: { minValue: 0, maxValue: 1e3 },
3738
+ yearlyFee: { minValue: 0, maxValue: 1e3 },
3732
3739
  perNightStay: { minValue: 0, maxValue: 1e3 },
3733
3740
  additionalPetPerNightStay: { minValue: 0, maxValue: 1e3 },
3734
3741
  transportFee: { minValue: 0, maxValue: 1e3 },
@@ -3824,6 +3831,15 @@ var MembershipCreateDtoMeta = {
3824
3831
  maxValue(MembershipRestriction.monthlyFee.maxValue)
3825
3832
  )
3826
3833
  },
3834
+ yearlyFee: {
3835
+ label: () => <T keyName="membership_yearly_fee_label" defaultValue="Yearly Fee" />,
3836
+ placeholder: () => <T keyName="membership_yearly_fee_placeholder" defaultValue="10" />,
3837
+ validator: multiValidation(
3838
+ isNumber,
3839
+ minValue(MembershipRestriction.yearlyFee.minValue),
3840
+ maxValue(MembershipRestriction.yearlyFee.maxValue)
3841
+ )
3842
+ },
3827
3843
  perNightStay: {
3828
3844
  label: () => <T keyName="membership_per_night_stay_label" defaultValue="Cost per night stay" />,
3829
3845
  placeholder: () => <T keyName="membership_per_night_stay_placeholder" defaultValue="10" />,
@@ -4883,12 +4899,12 @@ var UploadRestriction = {
4883
4899
  // src/contracts/generated/searchColumns.ts
4884
4900
  var searchColumns = {
4885
4901
  address: [{ "property": "name", "type": 2 }, { "property": "street", "type": 2 }, { "property": "city", "type": 2 }, { "property": "postalCode", "type": 2 }, { "property": "country", "type": 2 }],
4886
- question: [{ "property": "forTypes", "type": 1 }, { "property": "transKey", "type": 2 }, { "property": "fallback", "type": 2 }, { "property": "category", "type": 2 }, { "property": "type", "type": 0 }, { "property": "sortOrder", "type": 3 }, { "property": "visible", "type": 4 }, { "property": "notes", "type": 2 }],
4887
- upload: [{ "property": "linkUuid", "type": 2 }, { "property": "linkType", "type": 2 }, { "property": "type", "type": 2 }, { "property": "fileName", "type": 2 }, { "property": "blobType", "type": 2 }, { "property": "sizeInKb", "type": 2 }, { "property": "dateCreated", "type": 5 }],
4902
+ booking: [{ "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }, { "property": "status", "type": 2 }, { "property": "notes", "type": 2 }],
4888
4903
  membership: [{ "property": "monthlyFee", "type": 2 }, { "property": "perNightStay", "type": 2 }, { "property": "additionalPetPerNightStay", "type": 2 }, { "property": "transportFee", "type": 2 }, { "property": "perKm", "type": 2 }, { "property": "matchFee", "type": 2 }, { "property": "freeCancellationWithinDays", "type": 2 }, { "property": "bookingAdvanceDays", "type": 2 }, { "property": "bookingCalenderMonthsOpenInAdvance", "type": 2 }, { "property": "seasonalDiscounts", "type": 2 }],
4889
4904
  pet: [{ "property": "type", "type": 1 }, { "property": "sex", "type": 2 }, { "property": "breed", "type": 2 }, { "property": "neutered", "type": 2 }, { "property": "name", "type": 2 }, { "property": "notes", "type": 2 }, { "property": "dateOfBirth", "type": 5 }],
4890
- user: [{ "property": "types", "type": 1 }, { "property": "firstName", "type": 2 }, { "property": "lastName", "type": 2 }, { "property": "email", "type": 2 }, { "property": "hubspotId", "type": 2 }, { "property": "flags", "type": 1 }, { "property": "dateCreated", "type": 5 }],
4891
- booking: [{ "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }, { "property": "status", "type": 2 }, { "property": "notes", "type": 2 }]
4905
+ question: [{ "property": "forTypes", "type": 1 }, { "property": "transKey", "type": 2 }, { "property": "fallback", "type": 2 }, { "property": "category", "type": 2 }, { "property": "type", "type": 0 }, { "property": "sortOrder", "type": 3 }, { "property": "visible", "type": 4 }, { "property": "notes", "type": 2 }],
4906
+ upload: [{ "property": "linkUuid", "type": 2 }, { "property": "linkType", "type": 2 }, { "property": "type", "type": 2 }, { "property": "fileName", "type": 2 }, { "property": "blobType", "type": 2 }, { "property": "sizeInKb", "type": 2 }, { "property": "dateCreated", "type": 5 }],
4907
+ user: [{ "property": "types", "type": 1 }, { "property": "firstName", "type": 2 }, { "property": "lastName", "type": 2 }, { "property": "email", "type": 2 }, { "property": "hubspotId", "type": 2 }, { "property": "flags", "type": 1 }, { "property": "dateCreated", "type": 5 }]
4892
4908
  };
4893
4909
 
4894
4910
  // src/contracts/meta/addressDto.meta.tsx
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@nanas-home/hub-common",
3
- "version": "0.34.734",
3
+ "version": "0.36.824",
4
4
  "description": "Nana's Hub common library",
5
5
  "license": "MIT",
6
6
  "author": "Kurt Lourens",
7
7
  "scripts": {
8
+ "setup": "npm-run-all --sequential setup:*",
9
+ "setup:hook": "git config core.hooksPath .githooks/",
8
10
  "report": "bun ./src/data/report.ts",
9
11
  "prebuild": "bun ./src/data/preBuild.ts",
10
12
  "build": "tsup",
@@ -29,29 +31,29 @@
29
31
  "solid-toast": "^0.5.0"
30
32
  },
31
33
  "devDependencies": {
32
- "@chromatic-com/storybook": "^5.0.1",
33
- "@storybook/addon-a11y": "^10.2.8",
34
- "@storybook/addon-docs": "^10.2.8",
35
- "@storybook/addon-links": "^10.2.8",
36
- "@storybook/addon-onboarding": "^10.2.8",
37
- "@storybook/addon-vitest": "^10.2.8",
38
- "@types/node": "^25.2.3",
39
- "@vitest/browser": "^4.0.18",
40
- "@vitest/coverage-v8": "^4.0.18",
41
- "@vitest/ui": "^4.0.18",
42
- "dayjs": "^1.11.19",
34
+ "@chromatic-com/storybook": "^5.0.2",
35
+ "@storybook/addon-a11y": "^10.3.1",
36
+ "@storybook/addon-docs": "^10.3.1",
37
+ "@storybook/addon-links": "^10.3.1",
38
+ "@storybook/addon-onboarding": "^10.3.1",
39
+ "@storybook/addon-vitest": "^10.3.1",
40
+ "@types/node": "^25.5.0",
41
+ "@vitest/browser": "^4.1.0",
42
+ "@vitest/coverage-v8": "^4.1.0",
43
+ "@vitest/ui": "^4.1.0",
44
+ "dayjs": "^1.11.20",
43
45
  "dotenv-cli": "^11.0.0",
44
- "jsdom": "^28.0.0",
45
- "node-html-parser": "^7.0.2",
46
- "sass": "^1.97.3",
47
- "storybook": "^10.2.8",
46
+ "jsdom": "^29.0.0",
47
+ "node-html-parser": "^7.1.0",
48
+ "sass": "^1.98.0",
49
+ "storybook": "^10.3.1",
48
50
  "storybook-solidjs-vite": "^10.0.9",
49
51
  "tsup": "^8.5.1",
50
52
  "tsup-preset-solid": "^2.2.0",
51
53
  "typescript": "^5.9.3",
52
- "vite": "^7.3.1",
53
- "vite-plugin-solid": "^2.11.10",
54
- "vitest": "^4.0.18"
54
+ "vite": "^8.0.1",
55
+ "vite-plugin-solid": "^2.11.11",
56
+ "vitest": "^4.1.0"
55
57
  },
56
58
  "files": [
57
59
  "dist"