@nanas-home/hub-common 0.53.1222 → 0.55.1259
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk/{CNSK7ZOR.js → OLGOAYWP.js} +79 -3
- package/dist/node-utils/index.d.ts +39 -8
- package/dist/node-utils/index.js +106 -9
- package/dist/{textValidation-CchEXsUj.d.ts → textValidation-Dp6X8nfi.d.ts} +76 -12
- package/dist/web/index.d.ts +4 -7
- package/dist/web/index.js +60 -58
- package/dist/web/index.jsx +128 -32
- package/package.json +3 -3
|
@@ -547,6 +547,10 @@ var PetType = /* @__PURE__ */ ((PetType2) => {
|
|
|
547
547
|
PetType2[PetType2["Unknown"] = 0] = "Unknown";
|
|
548
548
|
PetType2[PetType2["Dog"] = 1] = "Dog";
|
|
549
549
|
PetType2[PetType2["Cat"] = 2] = "Cat";
|
|
550
|
+
PetType2[PetType2["Bird"] = 3] = "Bird";
|
|
551
|
+
PetType2[PetType2["Rodent"] = 4] = "Rodent";
|
|
552
|
+
PetType2[PetType2["Reptile"] = 5] = "Reptile";
|
|
553
|
+
PetType2[PetType2["Other"] = 6] = "Other";
|
|
550
554
|
return PetType2;
|
|
551
555
|
})(PetType || {});
|
|
552
556
|
|
|
@@ -592,6 +596,14 @@ var TempLinkType = /* @__PURE__ */ ((TempLinkType2) => {
|
|
|
592
596
|
return TempLinkType2;
|
|
593
597
|
})(TempLinkType || {});
|
|
594
598
|
|
|
599
|
+
// src/contracts/generated/enum/tempRegistrationStatus.ts
|
|
600
|
+
var TempRegistrationStatus = /* @__PURE__ */ ((TempRegistrationStatus2) => {
|
|
601
|
+
TempRegistrationStatus2[TempRegistrationStatus2["UnProcessed"] = 0] = "UnProcessed";
|
|
602
|
+
TempRegistrationStatus2[TempRegistrationStatus2["EmailReminderSent"] = 1] = "EmailReminderSent";
|
|
603
|
+
TempRegistrationStatus2[TempRegistrationStatus2["RegistrationSuccess"] = 2] = "RegistrationSuccess";
|
|
604
|
+
return TempRegistrationStatus2;
|
|
605
|
+
})(TempRegistrationStatus || {});
|
|
606
|
+
|
|
595
607
|
// src/contracts/generated/enum/uploadLinkType.ts
|
|
596
608
|
var UploadLinkType = /* @__PURE__ */ ((UploadLinkType2) => {
|
|
597
609
|
UploadLinkType2[UploadLinkType2["Unknown"] = 0] = "Unknown";
|
|
@@ -650,7 +662,8 @@ var hubspotQuestionsExport = {
|
|
|
650
662
|
how_long_can_your_dog_be_home_alone_: {
|
|
651
663
|
how_long_can_your_dog_be_home_alone__option0: "My dog can't be alone",
|
|
652
664
|
how_long_can_your_dog_be_home_alone__option1: "1-3h",
|
|
653
|
-
how_long_can_your_dog_be_home_alone__option2: "
|
|
665
|
+
how_long_can_your_dog_be_home_alone__option2: "3-6h",
|
|
666
|
+
how_long_can_your_dog_be_home_alone__option3: "During the work day"
|
|
654
667
|
},
|
|
655
668
|
is_your_dog_allowed_on_the_couch_: {
|
|
656
669
|
is_your_dog_allowed_on_the_couch__option0: "No",
|
|
@@ -739,7 +752,7 @@ var AuthRegisterRestriction = {
|
|
|
739
752
|
|
|
740
753
|
// src/contracts/generated/restrictions/bookingRestriction.ts
|
|
741
754
|
var BookingRestriction = {
|
|
742
|
-
code: { min: 0, max: 99999 },
|
|
755
|
+
code: { min: 0, max: 99999, default: 7e3 },
|
|
743
756
|
notes: { maxLength: 250 }
|
|
744
757
|
};
|
|
745
758
|
var BookingAddonRestriction = {
|
|
@@ -760,6 +773,12 @@ var CommentRestriction = {
|
|
|
760
773
|
comment: { maxLength: 1e3 }
|
|
761
774
|
};
|
|
762
775
|
|
|
776
|
+
// src/contracts/generated/restrictions/commonRestriction.ts
|
|
777
|
+
var UuidRestriction = {
|
|
778
|
+
minLength: 36,
|
|
779
|
+
maxLength: 36
|
|
780
|
+
};
|
|
781
|
+
|
|
763
782
|
// src/contracts/generated/restrictions/drivingRouteRestriction.ts
|
|
764
783
|
var DrivingRouteRestriction = {
|
|
765
784
|
notes: { maxLength: 500 }
|
|
@@ -839,6 +858,7 @@ var UserRestriction = {
|
|
|
839
858
|
firstName: { minLength: 3, maxLength: 80 },
|
|
840
859
|
lastName: { minLength: 3, maxLength: 80 },
|
|
841
860
|
email: { minLength: 5, maxLength: 150 },
|
|
861
|
+
contactNumber: { minLength: 5, maxLength: 50 },
|
|
842
862
|
password: { minLength: 5, maxLength: 50 },
|
|
843
863
|
hubspotId: { maxLength: 50 },
|
|
844
864
|
flags: { maxLength: 150 }
|
|
@@ -1779,6 +1799,48 @@ var validateForEach = (validation) => (values) => {
|
|
|
1779
1799
|
return { isValid: true };
|
|
1780
1800
|
};
|
|
1781
1801
|
|
|
1802
|
+
// src/validation/contactNumberValidation.ts
|
|
1803
|
+
var allowedNonNumericalValuesInContactNumber = "+";
|
|
1804
|
+
var contactNumberCharValid = (char) => {
|
|
1805
|
+
const isNotNum = isNaN(char);
|
|
1806
|
+
if (isNotNum) {
|
|
1807
|
+
return allowedNonNumericalValuesInContactNumber.includes(char);
|
|
1808
|
+
}
|
|
1809
|
+
return true;
|
|
1810
|
+
};
|
|
1811
|
+
var contactNumberValid = (value) => {
|
|
1812
|
+
const containsNonNumber = value.split("").filter((v) => contactNumberCharValid(v) == false).length;
|
|
1813
|
+
if (containsNonNumber) {
|
|
1814
|
+
return {
|
|
1815
|
+
isValid: false,
|
|
1816
|
+
errorMessageTransKey: "phone_number_contains_invalid_char_validator",
|
|
1817
|
+
errorMessage: `Invalid character provided`
|
|
1818
|
+
};
|
|
1819
|
+
}
|
|
1820
|
+
const withoutWhitespace = value.replace(/\s/g, "");
|
|
1821
|
+
let actualValue = withoutWhitespace;
|
|
1822
|
+
const startCode = {
|
|
1823
|
+
zero: "0",
|
|
1824
|
+
zero31: "0031",
|
|
1825
|
+
plus: "+31"
|
|
1826
|
+
};
|
|
1827
|
+
if (withoutWhitespace.startsWith(startCode.zero31)) {
|
|
1828
|
+
actualValue = withoutWhitespace.slice(startCode.zero31.length);
|
|
1829
|
+
} else if (withoutWhitespace.startsWith(startCode.plus)) {
|
|
1830
|
+
actualValue = withoutWhitespace.slice(startCode.plus.length);
|
|
1831
|
+
} else if (withoutWhitespace.startsWith(startCode.zero)) {
|
|
1832
|
+
actualValue = withoutWhitespace.slice(startCode.zero.length);
|
|
1833
|
+
}
|
|
1834
|
+
if (actualValue.length != 9) {
|
|
1835
|
+
return {
|
|
1836
|
+
isValid: false,
|
|
1837
|
+
errorMessageTransKey: "phone_number_is_incorrect_length_validator",
|
|
1838
|
+
errorMessage: `Incorrect length provided`
|
|
1839
|
+
};
|
|
1840
|
+
}
|
|
1841
|
+
return { isValid: true };
|
|
1842
|
+
};
|
|
1843
|
+
|
|
1782
1844
|
// src/validation/dateValidation.ts
|
|
1783
1845
|
var minDate = (minDate2) => (value) => {
|
|
1784
1846
|
if (isBefore(minDate2, value)) {
|
|
@@ -1887,6 +1949,20 @@ var passwordValid = (value) => {
|
|
|
1887
1949
|
return { isValid: true };
|
|
1888
1950
|
};
|
|
1889
1951
|
|
|
1952
|
+
// src/validation/postCodeValidation.ts
|
|
1953
|
+
var postCodeValid = (value) => {
|
|
1954
|
+
const postCodePattern = /^\d{4}\s?\w{2}$/;
|
|
1955
|
+
const isValidPostCode = postCodePattern.test(value);
|
|
1956
|
+
if (isValidPostCode == false) {
|
|
1957
|
+
return {
|
|
1958
|
+
isValid: false,
|
|
1959
|
+
errorMessageTransKey: "post_code_invalid_char_validator",
|
|
1960
|
+
errorMessage: `Post Code does not match the pattern 1234 AB`
|
|
1961
|
+
};
|
|
1962
|
+
}
|
|
1963
|
+
return { isValid: true };
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1890
1966
|
// src/validation/textValidation.ts
|
|
1891
1967
|
var minLength = (minLengthVal) => (value) => {
|
|
1892
1968
|
if ((value?.length ?? 0) >= minLengthVal) {
|
|
@@ -1944,4 +2020,4 @@ var shouldBeYoutubeUrl = (value) => {
|
|
|
1944
2020
|
};
|
|
1945
2021
|
};
|
|
1946
2022
|
|
|
1947
|
-
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, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, commonEmailLinks, computeBookingStatusCounts, 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, 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 };
|
|
2023
|
+
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 };
|
|
@@ -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-
|
|
2
|
-
export {
|
|
1
|
+
import { I as ILogger, R as ResultWithValue, a as Result, L as LogService, C as CommonConfigService, b as IDependencyInjectionSetupProps } from '../textValidation-Dp6X8nfi.js';
|
|
2
|
+
export { da as APP_TYPE_TOKEN, ai as ActivityDto, x as ActivityLocationType, bB as ActivityRestriction, F as ActivityType, aj as AddressCreateDto, ak as AddressDto, G as AddressLinkType, al as AddressLookupDto, bC as AddressRestriction, am as AddressUpdateDto, an as AnswerCreateDto, ao as AnswerDto, J as AnswerLinkType, bD 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, bE as AuthRegisterRestriction, ax as AuthRegisterUserDto, ay as AuthRequestResetPasswordDto, az as AuthResetPasswordDto, aA as AuthSuccessDto, ca as BOOKING_OVERVIEW_STATUSES, d8 as BOT_PATH_TOKEN, aB as BookingAddonDto, bG as BookingAddonRestriction, O as BookingAddonType, c6 as BookingCalendarOverviewItem, aC as BookingCalendarOverviewItemDto, aD as BookingCreateDto, aE as BookingDto, aF as BookingHostCreateDto, aG as BookingHostDto, aH as BookingHostUpdateDto, bF as BookingRestriction, aI as BookingRestrictionsDto, aJ as BookingRestrictionsEnabledDaysDto, aK as BookingRestrictionsPremiumEnabledDaysDto, cb as BookingStatusCounts, P as BookingStatusType, aL as BookingUpdateDto, aM as BookingWithRelationshipsDto, aN as BugReportCreateDto, aO as BugReportDto, bH as BugReportRestriction, Q as BugReportStatusType, aP as BugReportUpdateDto, h as CachedValue, u as ClickEvent, aQ as ClientAnswerSaveDto, aR as CommentCreateDto, aS as CommentDto, U as CommentLinkType, bI as CommentRestriction, aT as CommentUpdateDto, d6 as DependencyInjectionContainer, l as DependencyInjectionFactory, k as DependencyInjectionIdentifier, D as DependencyInjectionToken, bK as DrivingRouteRestriction, E as EnvKey, H as HtmlElementEvent, r as HtmlFilesEvent, t as HtmlImageReadEvent, q as HtmlKeyEvent, bV as ICaptchaResponse, o as IDependencyInjectionSetupWebProps, cE as IImageParams, bX as ILogMessage, bY as IMediaUpload, d5 as ISite, d2 as ISiteColour, aU as InvoiceCreateDto, aV as InvoiceDto, bL as InvoiceRestriction, V as InvoiceStatusType, aW as InvoiceUpdateDto, aX as InvoiceWithStripeInfoDto, bA as JwtPayloadDto, K as KeyEvent, bW as LogMethod, X as LogType, Y as MembershipBillingCycleType, aY as MembershipCreateDto, aZ as MembershipDto, bM as MembershipRestriction, Z as MembershipStatus, _ as MembershipType, a_ as MembershipUpdateDto, M as MonthTranslationKey, f as MouseButton, N as NANAS_PALLETTE, $ as NetworkState, b_ as NominatimAddressResponse, bZ as NominatimResponse, cZ as ObjectWithPropsOfValue, a0 as OrderDirectionType, a$ as PaginationRequestDto, b0 as PaginationResponseDto, b1 as PaymentMethodDto, bN as PermissionRestriction, a1 as PermissionType, b2 as PetCreateDto, b3 as PetDto, bO as PetRestriction, a2 as PetSexType, a3 as PetStatusType, a4 as PetType, b4 as PetUpdateDto, c_ as Prettify, b5 as ProfileDto, b6 as ProfileQuestionAndAnswersItemDto, b7 as ProfileQuestionRequestDto, b8 as ProfileUpdateDto, b9 as QuestionCreateDto, ba as QuestionDto, a6 as QuestionForType, bP as QuestionRestriction, a5 as QuestionType, bb as QuestionUpdateDto, cg as RenderCellType, dc as SITE_CONFIG_TOKEN, bc as SearchObjDatePropRequestDto, bd as SearchObjRequestDto, be as SearchObjTextPropRequestDto, a9 as SearchableColumnInfo, a8 as SearchableColumnType, bf as SetupIntentCreateDto, bg as SetupIntentDto, bQ as StripeRestriction, S as SupportedLanguage, d as SupportedLanguageArray, bh as TempLinkCreateDto, bi as TempLinkDto, aa as TempLinkType, ab as TempRegistrationStatus, T as ThemeType, bR as UnavailabilityRestriction, bj as UploadCreateDto, bk as UploadDto, bl as UploadImageWithLinkDto, ac as UploadLinkType, bS as UploadRestriction, ad as UploadType, bm as UploadUpdateDto, af as UserAccountFlagType, bn as UserCreateDto, bo as UserDto, bp as UserMembershipChangeResponseDto, bq as UserMembershipCreateDto, br as UserMembershipDto, bs as UserMembershipSignUpDto, bt as UserMembershipSignUpResponseDto, bu as UserMembershipStatsDto, bv as UserMembershipUpdateDto, bw as UserMembershipWithStripeInfoDto, bx as UserPermissionDto, bT as UserRestriction, ag as UserType, by as UserUpdateDto, bJ as UuidRestriction, b$ as ValidationResult, bz as VersionDto, W as WeekdayTranslationKey, y as activityShortCode, cs as addDays, cr as addMinutes, ct as addMonths, cq as addSeconds, cV as addSpacesForEnum, c5 as addToParallelTasks, dv as allowedNonNumericalValuesInContactNumber, cX as anyObject, B as apiRoute, z as apiRouteParam, c3 as arrayContains, c2 as arrayOfNLength, cT as capitalizeFirstLetter, d3 as colourPalette, e as commonEmailLinks, cc as computeBookingStatusCounts, dw as contactNumberCharValid, dx as contactNumberValid, j as createToken, cD as cyrb53, cw as dateDiffInDays, cA as debounceLeading, d4 as defaultSiteColour, dA as emailValid, cY as fakePromise, cd as filterBookingsByOverviewStatus, c9 as formatBookingCalendarLabel, cj as formatDate, cW as formatFileSize, cp as formatForBookingDate, cl as formatForDateDropdown, ck as formatForDateLocal, co as formatForDateLocalDetailed, cm as formatForDateOfBirth, cn as formatForDateWithTime, d1 as getActiveUserMembership, cx as getAgeInYears, a7 as getAllPetQuestionForType, db as getAppType, cB as getArrFromEnum, c7 as getBookingStatusLabelForAdmin, d9 as getBotPath, dg as getCommonConfig, ce as getDayClassObject, ch as getDayElements, cf as getDayHeadingElements, cF as getImageParams, dh as getLog, c8 as getMembershipTypeLabel, cI as getMimeTypeFromExtension, cG as getPayloadFromJwt, cK as getPerformanceTimer, cN as getPetAvatarUrl, cQ as getQuestionGroups, df as getSiteColour, de as getSiteConfig, cM as getUserAvatarUrl, ci as getUsersName, cy as getWeekNumber, cL as hasRequiredPermissions, ah as hubspotQuestionsExport, cu as isBefore, dB as isNumber, cv as isSameDay, i as isWebApp, cU as lowercaseFirstLetter, c0 as makeArrayOrDefault, dz as maxDate, dm as maxItems, dH as maxLength, dD as maxValue, cH as mimeTypeLookup, dy as minDate, dl as minItems, dG as minLength, g as minUrlLength, dC as minValue, m as monthTranslationKeyOrder, ds as multiValidation, cP as nameof, n as nanasFonts, dq as noValidation, dr as notNull, c1 as onlyUnique, dE as passwordValid, p as portalGlyphLength, dF as postCodeValid, cO as promiseFromValue, cR as randomIntFromRange, cS as randomItemFromArray, d7 as rootContainer, di as rootDependencyInjectionSetup, bU as searchColumns, dn as selectedItemsExist, dp as selectedOptionIsInEnum, dt as separateValidation, dj as setContainerToken, dk as setContainerTokenLazy, dd as setSiteConfig, dI as shouldBeUrl, dJ as shouldBeYoutubeUrl, cz as showSecondCalendar, s as socialLinks, c4 as timeout, cJ as tryParseNumber, ae as uploadsThatNeedEncryption, c$ as urlRef, d0 as userMustChangePassword, cC as uuidv4, v as validUuidChars, du as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-Dp6X8nfi.js';
|
|
3
3
|
import 'solid-js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -236,7 +236,25 @@ declare const emailTemplatePlaceholderReplace: (props: {
|
|
|
236
236
|
declare const emailTemplatePlaceholderReplaceStringWithPlaceholderMap: (fileContent: string, placeHolderMap: Record<string, string>) => Promise<ResultWithValue<string>>;
|
|
237
237
|
declare const emailTemplatePlaceholderCheck: (emailContent: string) => Promise<ResultWithValue<string>>;
|
|
238
238
|
|
|
239
|
-
type TranslationsUsed$
|
|
239
|
+
type TranslationsUsed$3 = {
|
|
240
|
+
booking_request_email_subject: string;
|
|
241
|
+
booking_request_email_title: string;
|
|
242
|
+
booking_request_email_greeting: string;
|
|
243
|
+
booking_request_email_description: string;
|
|
244
|
+
booking_request_email_description2: string;
|
|
245
|
+
booking_request_email_reason_for_email: string;
|
|
246
|
+
booking_request_email_btn: string;
|
|
247
|
+
booking_request_email_btn_fallback: string;
|
|
248
|
+
email_footer_website_link_title: string;
|
|
249
|
+
email_footer_terms_link_title: string;
|
|
250
|
+
email_footer_privacy_link_title: string;
|
|
251
|
+
};
|
|
252
|
+
type IFillResetPasswordEmail$2 = TranslationsUsed$3 & IFillEmailDefaultLayout & {
|
|
253
|
+
bookingDetailsLink: string;
|
|
254
|
+
};
|
|
255
|
+
declare const fillBookingRequestEmail: (props: IFillResetPasswordEmail$2) => Promise<ResultWithValue<EmailTemplateResponse>>;
|
|
256
|
+
|
|
257
|
+
type TranslationsUsed$2 = {
|
|
240
258
|
confirm_account_email_subject: string;
|
|
241
259
|
confirm_account_email_title: string;
|
|
242
260
|
confirm_account_email_greeting: string;
|
|
@@ -248,12 +266,12 @@ type TranslationsUsed$1 = {
|
|
|
248
266
|
email_footer_terms_link_title: string;
|
|
249
267
|
email_footer_privacy_link_title: string;
|
|
250
268
|
};
|
|
251
|
-
type IFillConfirmEmail = TranslationsUsed$
|
|
269
|
+
type IFillConfirmEmail = TranslationsUsed$2 & IFillEmailDefaultLayout & {
|
|
252
270
|
confirmationLink: string;
|
|
253
271
|
};
|
|
254
272
|
declare const fillConfirmEmail: (props: IFillConfirmEmail) => Promise<ResultWithValue<EmailTemplateResponse>>;
|
|
255
273
|
|
|
256
|
-
type TranslationsUsed = {
|
|
274
|
+
type TranslationsUsed$1 = {
|
|
257
275
|
request_reset_password_email_subject: string;
|
|
258
276
|
request_reset_password_email_title: string;
|
|
259
277
|
request_reset_password_email_greeting: string;
|
|
@@ -265,10 +283,23 @@ type TranslationsUsed = {
|
|
|
265
283
|
email_footer_terms_link_title: string;
|
|
266
284
|
email_footer_privacy_link_title: string;
|
|
267
285
|
};
|
|
268
|
-
type IFillResetPasswordEmail = TranslationsUsed & IFillEmailDefaultLayout & {
|
|
286
|
+
type IFillResetPasswordEmail$1 = TranslationsUsed$1 & IFillEmailDefaultLayout & {
|
|
269
287
|
resetPasswordLink: string;
|
|
270
288
|
};
|
|
271
|
-
declare const fillResetPasswordEmail: (props: IFillResetPasswordEmail) => Promise<ResultWithValue<EmailTemplateResponse>>;
|
|
289
|
+
declare const fillResetPasswordEmail: (props: IFillResetPasswordEmail$1) => Promise<ResultWithValue<EmailTemplateResponse>>;
|
|
290
|
+
|
|
291
|
+
type TranslationsUsed = {
|
|
292
|
+
reset_password_confirmation_email_subject: string;
|
|
293
|
+
reset_password_confirmation_email_title: string;
|
|
294
|
+
reset_password_confirmation_email_greeting: string;
|
|
295
|
+
reset_password_confirmation_email_description: string;
|
|
296
|
+
reset_password_confirmation_email_reason_for_email: string;
|
|
297
|
+
email_footer_website_link_title: string;
|
|
298
|
+
email_footer_terms_link_title: string;
|
|
299
|
+
email_footer_privacy_link_title: string;
|
|
300
|
+
};
|
|
301
|
+
type IFillResetPasswordEmail = TranslationsUsed & IFillEmailDefaultLayout;
|
|
302
|
+
declare const fillResetPasswordConfirmationEmail: (props: IFillResetPasswordEmail) => Promise<ResultWithValue<EmailTemplateResponse>>;
|
|
272
303
|
|
|
273
304
|
declare const dependencyInjectionNodeSetup: (props: IDependencyInjectionSetupProps) => {
|
|
274
305
|
logService: LogService;
|
|
@@ -276,4 +307,4 @@ declare const dependencyInjectionNodeSetup: (props: IDependencyInjectionSetupPro
|
|
|
276
307
|
};
|
|
277
308
|
declare const getCaptchaNodeService: () => CaptchaNodeService;
|
|
278
309
|
|
|
279
|
-
export { CaptchaNodeService, CommonConfigService, type EmailTemplateResponse, IDependencyInjectionSetupProps, type IFillEmailDefaultLayout, type IFillTextDefaultLayout, ILogger, LogService, Result, ResultWithValue, cleanDestFolder, cleanDestFolderOfSpecificFiles, copyEsLintRules, createBundleSizeSummary, createEnvFromSecrets, createFoldersOfDestFilePath, createLicenseSummary, createOutdatedPackagesSummary, createTempDirectory, dependencyInjectionNodeSetup, destFolderSize, downloadFileFromUrl, emailBodyRow, emailButtonRow, emailDefaultLayout, emailHeadingRow, emailItalicFaded, emailItalicFadedLink, emailParagraph, emailPostScriptTextRow, emailTemplatePlaceholderCheck, emailTemplatePlaceholderReplace, emailTemplatePlaceholderReplaceStringWithPlaceholderMap, execute, fileExists, fillConfirmEmail, fillResetPasswordEmail, generateEnvTypes, generateFavicons, generateMeta, generateScss, getCaptchaNodeService, getEnvFileKeys, getFileExtensionFromUrl, getFileFromFilePath, getFilesRecursively, getIndexOfFolderSlash, getVersionNumFromPackageJson, readBinaryFileFromPath, readFileAsString, readJsonFile, testLicenceUrl, textDefaultLayout, warnOnMissingEnv, writeEnvTypeFile, writeLinesToFile };
|
|
310
|
+
export { CaptchaNodeService, CommonConfigService, type EmailTemplateResponse, IDependencyInjectionSetupProps, type IFillEmailDefaultLayout, type IFillTextDefaultLayout, ILogger, LogService, Result, ResultWithValue, cleanDestFolder, cleanDestFolderOfSpecificFiles, copyEsLintRules, createBundleSizeSummary, createEnvFromSecrets, createFoldersOfDestFilePath, createLicenseSummary, createOutdatedPackagesSummary, createTempDirectory, dependencyInjectionNodeSetup, destFolderSize, downloadFileFromUrl, emailBodyRow, emailButtonRow, emailDefaultLayout, emailHeadingRow, emailItalicFaded, emailItalicFadedLink, emailParagraph, emailPostScriptTextRow, emailTemplatePlaceholderCheck, emailTemplatePlaceholderReplace, emailTemplatePlaceholderReplaceStringWithPlaceholderMap, execute, fileExists, fillBookingRequestEmail, fillConfirmEmail, fillResetPasswordConfirmationEmail, fillResetPasswordEmail, generateEnvTypes, generateFavicons, generateMeta, generateScss, getCaptchaNodeService, getEnvFileKeys, getFileExtensionFromUrl, getFileFromFilePath, getFilesRecursively, getIndexOfFolderSlash, getVersionNumFromPackageJson, readBinaryFileFromPath, readFileAsString, readJsonFile, testLicenceUrl, textDefaultLayout, warnOnMissingEnv, writeEnvTypeFile, writeLinesToFile };
|
package/dist/node-utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, NANAS_PALLETTE, getSiteConfig, getAppType, isWebApp, rootDependencyInjectionSetup, setContainerToken } from '../chunk/
|
|
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, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, activityShortCode, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, colourPalette, commonEmailLinks, computeBookingStatusCounts, 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, 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/
|
|
1
|
+
import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, NANAS_PALLETTE, getSiteConfig, getAppType, isWebApp, rootDependencyInjectionSetup, setContainerToken } from '../chunk/OLGOAYWP.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/OLGOAYWP.js';
|
|
3
3
|
import fs6, { stat } from 'fs/promises';
|
|
4
4
|
import path12 from 'path';
|
|
5
5
|
import fs2 from 'fs';
|
|
@@ -1030,14 +1030,10 @@ var emailDefaultLayout_default = `<!DOCTYPE html>
|
|
|
1030
1030
|
</table>
|
|
1031
1031
|
</td>
|
|
1032
1032
|
</tr>
|
|
1033
|
-
</table>
|
|
1034
|
-
|
|
1035
|
-
<!-- Banner -->
|
|
1036
|
-
<table class="pc-component" style="width:600px;max-width:600px" width="600" align="center"
|
|
1037
|
-
border="0" cellspacing="0" cellpadding="0" role="presentation">
|
|
1038
1033
|
<tr>
|
|
1039
1034
|
<td valign="top" class="pc-w520-padding-5-0-15-0 pc-w620-padding-5-0-15-0"
|
|
1040
|
-
style="height:unset;background-color:#
|
|
1035
|
+
style="height:unset;background-color:#263a38;padding-bottom:0 !important"
|
|
1036
|
+
bgcolor="#ffffff">
|
|
1041
1037
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"
|
|
1042
1038
|
role="presentation">
|
|
1043
1039
|
<tr>
|
|
@@ -1483,6 +1479,61 @@ var emailPostScriptTextRow = (props) => `<table class="pc-component" style="widt
|
|
|
1483
1479
|
</tr>
|
|
1484
1480
|
</table>`;
|
|
1485
1481
|
|
|
1482
|
+
// src/services/external/email/templates/bookingRequest/bookingRequest.ts
|
|
1483
|
+
var fillBookingRequestEmail = async (props) => {
|
|
1484
|
+
const emailContent = [
|
|
1485
|
+
emailHeadingRow({ text: props.booking_request_email_title }),
|
|
1486
|
+
//
|
|
1487
|
+
emailBodyRow({
|
|
1488
|
+
content: [
|
|
1489
|
+
emailParagraph({ content: props.booking_request_email_greeting }),
|
|
1490
|
+
"<br/>",
|
|
1491
|
+
emailParagraph({
|
|
1492
|
+
content: props.booking_request_email_description
|
|
1493
|
+
}),
|
|
1494
|
+
"<br/><br/>",
|
|
1495
|
+
emailParagraph({
|
|
1496
|
+
content: props.booking_request_email_description2
|
|
1497
|
+
})
|
|
1498
|
+
].join("")
|
|
1499
|
+
}),
|
|
1500
|
+
//
|
|
1501
|
+
emailButtonRow({ link: props.bookingDetailsLink, text: props.booking_request_email_btn }),
|
|
1502
|
+
//
|
|
1503
|
+
emailPostScriptTextRow({
|
|
1504
|
+
content: [
|
|
1505
|
+
emailItalicFaded({ content: props.booking_request_email_btn_fallback }),
|
|
1506
|
+
"<br/>",
|
|
1507
|
+
emailItalicFadedLink({ link: props.bookingDetailsLink, content: props.bookingDetailsLink })
|
|
1508
|
+
].join("")
|
|
1509
|
+
})
|
|
1510
|
+
].join("");
|
|
1511
|
+
const textContent = [props.booking_request_email_greeting, props.booking_request_email_description, ""].join("");
|
|
1512
|
+
const layoutTranslations = {
|
|
1513
|
+
emailTitle: props.booking_request_email_subject,
|
|
1514
|
+
reasonForEmail: props.booking_request_email_reason_for_email,
|
|
1515
|
+
footerWebsiteLinkTitle: props.email_footer_website_link_title,
|
|
1516
|
+
footerTermsLinkTitle: props.email_footer_terms_link_title,
|
|
1517
|
+
footerPrivacyLinkTitle: props.email_footer_privacy_link_title
|
|
1518
|
+
};
|
|
1519
|
+
const [emailHtmlResult, emailTxtResult] = await Promise.all([
|
|
1520
|
+
emailDefaultLayout({ ...props, ...layoutTranslations }, emailContent),
|
|
1521
|
+
emailTemplatePlaceholderReplaceStringWithPlaceholderMap(
|
|
1522
|
+
textDefaultLayout({ ...props, ...layoutTranslations }, textContent),
|
|
1523
|
+
{}
|
|
1524
|
+
)
|
|
1525
|
+
]);
|
|
1526
|
+
if (emailHtmlResult.isSuccess == false) return emailHtmlResult;
|
|
1527
|
+
if (emailTxtResult.isSuccess == false) return emailTxtResult;
|
|
1528
|
+
return {
|
|
1529
|
+
isSuccess: true,
|
|
1530
|
+
value: {
|
|
1531
|
+
html: emailHtmlResult.value,
|
|
1532
|
+
text: emailTxtResult.value
|
|
1533
|
+
}
|
|
1534
|
+
};
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1486
1537
|
// src/services/external/email/templates/confirmEmail/confirmEmail.ts
|
|
1487
1538
|
var fillConfirmEmail = async (props) => {
|
|
1488
1539
|
const emailContent = [
|
|
@@ -1594,6 +1645,52 @@ var fillResetPasswordEmail = async (props) => {
|
|
|
1594
1645
|
};
|
|
1595
1646
|
};
|
|
1596
1647
|
|
|
1648
|
+
// src/services/external/email/templates/resetPasswordConfirmation/resetPasswordConfirmation.ts
|
|
1649
|
+
var fillResetPasswordConfirmationEmail = async (props) => {
|
|
1650
|
+
const emailContent = [
|
|
1651
|
+
emailHeadingRow({ text: props.reset_password_confirmation_email_title }),
|
|
1652
|
+
//
|
|
1653
|
+
emailBodyRow({
|
|
1654
|
+
content: [
|
|
1655
|
+
emailParagraph({ content: props.reset_password_confirmation_email_greeting }),
|
|
1656
|
+
"<br/>",
|
|
1657
|
+
emailParagraph({
|
|
1658
|
+
content: props.reset_password_confirmation_email_description
|
|
1659
|
+
})
|
|
1660
|
+
].join("")
|
|
1661
|
+
}),
|
|
1662
|
+
emailBodyRow({ content: "" })
|
|
1663
|
+
].join("");
|
|
1664
|
+
const textContent = [
|
|
1665
|
+
props.reset_password_confirmation_email_greeting,
|
|
1666
|
+
props.reset_password_confirmation_email_description,
|
|
1667
|
+
""
|
|
1668
|
+
].join("");
|
|
1669
|
+
const layoutTranslations = {
|
|
1670
|
+
emailTitle: props.reset_password_confirmation_email_subject,
|
|
1671
|
+
reasonForEmail: props.reset_password_confirmation_email_reason_for_email,
|
|
1672
|
+
footerWebsiteLinkTitle: props.email_footer_website_link_title,
|
|
1673
|
+
footerTermsLinkTitle: props.email_footer_terms_link_title,
|
|
1674
|
+
footerPrivacyLinkTitle: props.email_footer_privacy_link_title
|
|
1675
|
+
};
|
|
1676
|
+
const [emailHtmlResult, emailTxtResult] = await Promise.all([
|
|
1677
|
+
emailDefaultLayout({ ...props, ...layoutTranslations }, emailContent),
|
|
1678
|
+
emailTemplatePlaceholderReplaceStringWithPlaceholderMap(
|
|
1679
|
+
textDefaultLayout({ ...props, ...layoutTranslations }, textContent),
|
|
1680
|
+
{}
|
|
1681
|
+
)
|
|
1682
|
+
]);
|
|
1683
|
+
if (emailHtmlResult.isSuccess == false) return emailHtmlResult;
|
|
1684
|
+
if (emailTxtResult.isSuccess == false) return emailTxtResult;
|
|
1685
|
+
return {
|
|
1686
|
+
isSuccess: true,
|
|
1687
|
+
value: {
|
|
1688
|
+
html: emailHtmlResult.value,
|
|
1689
|
+
text: emailTxtResult.value
|
|
1690
|
+
}
|
|
1691
|
+
};
|
|
1692
|
+
};
|
|
1693
|
+
|
|
1597
1694
|
// src/services/internal/dependencyInjection/setup-node.ts
|
|
1598
1695
|
var dependencyInjectionNodeSetup = (props) => {
|
|
1599
1696
|
const { logService, configService } = rootDependencyInjectionSetup(props);
|
|
@@ -1602,4 +1699,4 @@ var dependencyInjectionNodeSetup = (props) => {
|
|
|
1602
1699
|
};
|
|
1603
1700
|
var getCaptchaNodeService = () => rootContainer.resolve(CaptchaNodeService);
|
|
1604
1701
|
|
|
1605
|
-
export { CaptchaNodeService, cleanDestFolder, cleanDestFolderOfSpecificFiles, copyEsLintRules, createBundleSizeSummary, createEnvFromSecrets, createFoldersOfDestFilePath, createLicenseSummary, createOutdatedPackagesSummary, createTempDirectory, dependencyInjectionNodeSetup, destFolderSize, downloadFileFromUrl, emailBodyRow, emailButtonRow, emailDefaultLayout, emailHeadingRow, emailItalicFaded, emailItalicFadedLink, emailParagraph, emailPostScriptTextRow, emailTemplatePlaceholderCheck, emailTemplatePlaceholderReplace, emailTemplatePlaceholderReplaceStringWithPlaceholderMap, execute, fileExists, fillConfirmEmail, fillResetPasswordEmail, generateEnvTypes, generateFavicons, generateMeta, generateScss, getCaptchaNodeService, getEnvFileKeys, getFileExtensionFromUrl, getFileFromFilePath, getFilesRecursively, getIndexOfFolderSlash, getVersionNumFromPackageJson, readBinaryFileFromPath, readFileAsString, readJsonFile, testLicenceUrl, textDefaultLayout, warnOnMissingEnv, writeEnvTypeFile, writeLinesToFile };
|
|
1702
|
+
export { CaptchaNodeService, cleanDestFolder, cleanDestFolderOfSpecificFiles, copyEsLintRules, createBundleSizeSummary, createEnvFromSecrets, createFoldersOfDestFilePath, createLicenseSummary, createOutdatedPackagesSummary, createTempDirectory, dependencyInjectionNodeSetup, destFolderSize, downloadFileFromUrl, emailBodyRow, emailButtonRow, emailDefaultLayout, emailHeadingRow, emailItalicFaded, emailItalicFadedLink, emailParagraph, emailPostScriptTextRow, emailTemplatePlaceholderCheck, emailTemplatePlaceholderReplace, emailTemplatePlaceholderReplaceStringWithPlaceholderMap, execute, fileExists, fillBookingRequestEmail, fillConfirmEmail, fillResetPasswordConfirmationEmail, fillResetPasswordEmail, generateEnvTypes, generateFavicons, generateMeta, generateScss, getCaptchaNodeService, getEnvFileKeys, getFileExtensionFromUrl, getFileFromFilePath, getFilesRecursively, getIndexOfFolderSlash, getVersionNumFromPackageJson, readBinaryFileFromPath, readFileAsString, readJsonFile, testLicenceUrl, textDefaultLayout, warnOnMissingEnv, writeEnvTypeFile, writeLinesToFile };
|