@nanas-home/hub-common 0.42.947 → 0.43.982
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/{FTJ4R6VS.js → LYY4XCT7.js} +8 -5
- 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-B9dDNzjQ.d.ts → textValidation-B6IuNX8F.d.ts} +11 -7
- package/dist/web/index.d.ts +11 -4
- package/dist/web/index.js +136 -67
- package/dist/web/index.jsx +75 -27
- package/package.json +1 -2
|
@@ -143,6 +143,9 @@ var apiRoute = {
|
|
|
143
143
|
booking: {
|
|
144
144
|
prefix: "/admin/booking",
|
|
145
145
|
byUser: "/user",
|
|
146
|
+
withRelationships: `/with-relationships/${apiRouteParam.bookingUuid}`,
|
|
147
|
+
assignHost: `/assign-host/${apiRouteParam.bookingUuid}/${apiRouteParam.userUuid}`,
|
|
148
|
+
removeHost: `/remove-host/${apiRouteParam.bookingUuid}`,
|
|
146
149
|
swagger: { name: "Bookings", description: "Endpoints for managing bookings" }
|
|
147
150
|
},
|
|
148
151
|
invoice: {
|
|
@@ -667,7 +670,7 @@ var searchColumns = {
|
|
|
667
670
|
address: [{ "property": "name", "type": 2 }, { "property": "street", "type": 2 }, { "property": "city", "type": 2 }, { "property": "postalCode", "type": 2 }, { "property": "country", "type": 2 }],
|
|
668
671
|
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 }],
|
|
669
672
|
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 }],
|
|
670
|
-
userMembership: [{ "property": "status", "type": 1 }, { "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }],
|
|
673
|
+
userMembership: [{ "property": "status", "type": 1, "subType": "MembershipStatus" }, { "property": "billingCycle", "type": 1, "subType": "MembershipBillingCycleType" }, { "property": "stripeSubscriptionId", "type": 2 }, { "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }],
|
|
671
674
|
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 }],
|
|
672
675
|
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 }],
|
|
673
676
|
booking: [{ "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }, { "property": "status", "type": 2 }, { "property": "notes", "type": 2 }],
|
|
@@ -1273,10 +1276,10 @@ var tryParseNumber = (input, opts) => {
|
|
|
1273
1276
|
};
|
|
1274
1277
|
|
|
1275
1278
|
// src/helpers/performanceHelper.ts
|
|
1276
|
-
var getPerformanceTimer = () =>
|
|
1277
|
-
start
|
|
1278
|
-
|
|
1279
|
-
}
|
|
1279
|
+
var getPerformanceTimer = () => {
|
|
1280
|
+
const start = performance.now();
|
|
1281
|
+
return () => performance.now() - start;
|
|
1282
|
+
};
|
|
1280
1283
|
|
|
1281
1284
|
// src/helpers/permissionHelper.ts
|
|
1282
1285
|
var hasRequiredPermissions = (props) => {
|