@nanas-home/hub-common 0.37.875 → 0.37.888
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/{CVJITZ37.js → R2TBEIMY.js} +33 -30
- package/dist/index.css +1 -1
- package/dist/node-utils/index.d.ts +2 -2
- package/dist/node-utils/index.js +2 -2
- package/dist/{textValidation-DVIleflX.d.ts → textValidation-DLb_eJM0.d.ts} +89 -69
- package/dist/web/index.d.ts +23 -4
- package/dist/web/index.js +84 -35
- package/dist/web/index.jsx +119 -63
- package/package.json +1 -1
|
@@ -142,12 +142,12 @@ var apiRoute = {
|
|
|
142
142
|
byUser: "/user",
|
|
143
143
|
swagger: { name: "Bookings", description: "Endpoints for managing bookings" }
|
|
144
144
|
},
|
|
145
|
-
|
|
146
|
-
prefix: "/
|
|
145
|
+
invoice: {
|
|
146
|
+
prefix: "/invoice",
|
|
147
147
|
getByUserId: `/user/${apiRouteParam.userUuid}`,
|
|
148
148
|
getByBookingId: `/booking/${apiRouteParam.bookingUuid}`,
|
|
149
149
|
getByBookingAddonId: `/booking-addon/${apiRouteParam.bookingAddonUuid}`,
|
|
150
|
-
swagger: { name: "
|
|
150
|
+
swagger: { name: "Invoices", description: "Endpoints for managing Invoices that have been issued" }
|
|
151
151
|
},
|
|
152
152
|
comment: {
|
|
153
153
|
prefix: "/admin/comment",
|
|
@@ -160,7 +160,7 @@ var apiRoute = {
|
|
|
160
160
|
},
|
|
161
161
|
pet: {
|
|
162
162
|
prefix: "/admin/pet",
|
|
163
|
-
byUser:
|
|
163
|
+
byUser: `/user/${apiRouteParam.userUuid}`,
|
|
164
164
|
swagger: { name: "Pets", description: "Endpoints for managing Pets" }
|
|
165
165
|
},
|
|
166
166
|
question: {
|
|
@@ -182,7 +182,7 @@ var apiRoute = {
|
|
|
182
182
|
},
|
|
183
183
|
userMembership: {
|
|
184
184
|
prefix: "/admin/user-membership",
|
|
185
|
-
byUser:
|
|
185
|
+
byUser: `/user/${apiRouteParam.userUuid}`,
|
|
186
186
|
swagger: { name: "UserMemberships", description: "Endpoints for managing User's Memberships" }
|
|
187
187
|
},
|
|
188
188
|
userPermission: {
|
|
@@ -223,12 +223,12 @@ var apiRoute = {
|
|
|
223
223
|
removeToBooking: `/${apiRouteParam.bookingAddonUuid}`,
|
|
224
224
|
swagger: { name: "BookingAddons", description: "Endpoints for User to manage their Booking Addons" }
|
|
225
225
|
},
|
|
226
|
-
|
|
227
|
-
prefix: "/
|
|
226
|
+
invoice: {
|
|
227
|
+
prefix: "/invoice",
|
|
228
228
|
getByForUser: `/user`,
|
|
229
229
|
getByBookingId: `/booking/${apiRouteParam.bookingUuid}`,
|
|
230
230
|
getByBookingAddonId: `/booking-addon/${apiRouteParam.bookingAddonUuid}`,
|
|
231
|
-
swagger: { name: "
|
|
231
|
+
swagger: { name: "Invoices", description: "Endpoints for User to view the Invoices they have been issued" }
|
|
232
232
|
},
|
|
233
233
|
membership: {
|
|
234
234
|
prefix: "/membership",
|
|
@@ -315,25 +315,25 @@ var BookingStatusType = /* @__PURE__ */ ((BookingStatusType2) => {
|
|
|
315
315
|
return BookingStatusType2;
|
|
316
316
|
})(BookingStatusType || {});
|
|
317
317
|
|
|
318
|
-
// src/contracts/generated/enum/chargeStatusType.ts
|
|
319
|
-
var ChargeStatusType = /* @__PURE__ */ ((ChargeStatusType2) => {
|
|
320
|
-
ChargeStatusType2[ChargeStatusType2["Pending"] = 0] = "Pending";
|
|
321
|
-
ChargeStatusType2[ChargeStatusType2["Cancelled"] = 1] = "Cancelled";
|
|
322
|
-
ChargeStatusType2[ChargeStatusType2["Paid"] = 2] = "Paid";
|
|
323
|
-
ChargeStatusType2[ChargeStatusType2["Refunded"] = 3] = "Refunded";
|
|
324
|
-
return ChargeStatusType2;
|
|
325
|
-
})(ChargeStatusType || {});
|
|
326
|
-
|
|
327
318
|
// src/contracts/generated/enum/commentLinkType.ts
|
|
328
319
|
var CommentLinkType = /* @__PURE__ */ ((CommentLinkType2) => {
|
|
329
320
|
CommentLinkType2[CommentLinkType2["Unknown"] = 0] = "Unknown";
|
|
330
321
|
CommentLinkType2[CommentLinkType2["User"] = 1] = "User";
|
|
331
322
|
CommentLinkType2[CommentLinkType2["Pet"] = 2] = "Pet";
|
|
332
323
|
CommentLinkType2[CommentLinkType2["Booking"] = 3] = "Booking";
|
|
333
|
-
CommentLinkType2[CommentLinkType2["
|
|
324
|
+
CommentLinkType2[CommentLinkType2["Invoice"] = 4] = "Invoice";
|
|
334
325
|
return CommentLinkType2;
|
|
335
326
|
})(CommentLinkType || {});
|
|
336
327
|
|
|
328
|
+
// src/contracts/generated/enum/invoiceStatusType.ts
|
|
329
|
+
var InvoiceStatusType = /* @__PURE__ */ ((InvoiceStatusType2) => {
|
|
330
|
+
InvoiceStatusType2[InvoiceStatusType2["Pending"] = 0] = "Pending";
|
|
331
|
+
InvoiceStatusType2[InvoiceStatusType2["Cancelled"] = 1] = "Cancelled";
|
|
332
|
+
InvoiceStatusType2[InvoiceStatusType2["Paid"] = 2] = "Paid";
|
|
333
|
+
InvoiceStatusType2[InvoiceStatusType2["Refunded"] = 3] = "Refunded";
|
|
334
|
+
return InvoiceStatusType2;
|
|
335
|
+
})(InvoiceStatusType || {});
|
|
336
|
+
|
|
337
337
|
// src/contracts/generated/enum/membershipStatus.ts
|
|
338
338
|
var MembershipStatus = /* @__PURE__ */ ((MembershipStatus2) => {
|
|
339
339
|
MembershipStatus2[MembershipStatus2["Unknown"] = 0] = "Unknown";
|
|
@@ -408,9 +408,9 @@ var PermissionType = /* @__PURE__ */ ((PermissionType2) => {
|
|
|
408
408
|
PermissionType2[PermissionType2["UserMembershipView"] = 180] = "UserMembershipView";
|
|
409
409
|
PermissionType2[PermissionType2["UserMembershipManage"] = 181] = "UserMembershipManage";
|
|
410
410
|
PermissionType2[PermissionType2["UserMembershipDelete"] = 182] = "UserMembershipDelete";
|
|
411
|
-
PermissionType2[PermissionType2["
|
|
412
|
-
PermissionType2[PermissionType2["
|
|
413
|
-
PermissionType2[PermissionType2["
|
|
411
|
+
PermissionType2[PermissionType2["InvoiceView"] = 200] = "InvoiceView";
|
|
412
|
+
PermissionType2[PermissionType2["InvoiceManage"] = 201] = "InvoiceManage";
|
|
413
|
+
PermissionType2[PermissionType2["InvoiceDelete"] = 202] = "InvoiceDelete";
|
|
414
414
|
return PermissionType2;
|
|
415
415
|
})(PermissionType || {});
|
|
416
416
|
|
|
@@ -536,12 +536,6 @@ var BookingAddonRestriction = {
|
|
|
536
536
|
quantity: { min: 0, max: 1e3 }
|
|
537
537
|
};
|
|
538
538
|
|
|
539
|
-
// src/contracts/generated/restrictions/chargeRestriction.ts
|
|
540
|
-
var ChargeRestriction = {
|
|
541
|
-
stripeChargeId: { maxLength: 100 },
|
|
542
|
-
notes: { maxLength: 250 }
|
|
543
|
-
};
|
|
544
|
-
|
|
545
539
|
// src/contracts/generated/restrictions/commentRestriction.ts
|
|
546
540
|
var CommentRestriction = {
|
|
547
541
|
name: { maxLength: 80 },
|
|
@@ -553,6 +547,12 @@ var DrivingRouteRestriction = {
|
|
|
553
547
|
notes: { maxLength: 500 }
|
|
554
548
|
};
|
|
555
549
|
|
|
550
|
+
// src/contracts/generated/restrictions/invoiceRestriction.ts
|
|
551
|
+
var InvoiceRestriction = {
|
|
552
|
+
stripeInvoiceId: { maxLength: 100 },
|
|
553
|
+
notes: { maxLength: 250 }
|
|
554
|
+
};
|
|
555
|
+
|
|
556
556
|
// src/contracts/generated/restrictions/membershipRestriction.ts
|
|
557
557
|
var MembershipRestriction = {
|
|
558
558
|
monthlyFee: { minValue: 0, maxValue: 1e3 },
|
|
@@ -614,7 +614,7 @@ var searchColumns = {
|
|
|
614
614
|
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 }],
|
|
615
615
|
address: [{ "property": "name", "type": 2 }, { "property": "street", "type": 2 }, { "property": "city", "type": 2 }, { "property": "postalCode", "type": 2 }, { "property": "country", "type": 2 }],
|
|
616
616
|
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 }],
|
|
617
|
-
|
|
617
|
+
invoice: [{ "property": "userUuid", "type": 2 }, { "property": "bookingUuid", "type": 2 }, { "property": "bookingAddonUuid", "type": 2 }, { "property": "status", "type": 2 }, { "property": "stripeInvoiceId", "type": 2 }, { "property": "dueDate", "type": 5 }, { "property": "notes", "type": 2 }],
|
|
618
618
|
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 }],
|
|
619
619
|
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 }],
|
|
620
620
|
booking: [{ "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }, { "property": "status", "type": 2 }, { "property": "notes", "type": 2 }],
|
|
@@ -1086,7 +1086,10 @@ var getDayElements = (props) => {
|
|
|
1086
1086
|
};
|
|
1087
1087
|
|
|
1088
1088
|
// src/helpers/commonHelper.ts
|
|
1089
|
-
var getUsersName = (details) =>
|
|
1089
|
+
var getUsersName = (details) => {
|
|
1090
|
+
const names = [details?.firstName, details?.lastName];
|
|
1091
|
+
return names.filter((n) => n != null).join(" ");
|
|
1092
|
+
};
|
|
1090
1093
|
|
|
1091
1094
|
// src/helpers/debounceHelper.ts
|
|
1092
1095
|
function debounceLeading(fn, ms) {
|
|
@@ -1581,4 +1584,4 @@ var shouldBeYoutubeUrl = (value) => {
|
|
|
1581
1584
|
};
|
|
1582
1585
|
};
|
|
1583
1586
|
|
|
1584
|
-
export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType,
|
|
1587
|
+
export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, InvoiceRestriction, InvoiceStatusType, 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 };
|