@nanas-home/hub-common 0.31.665 → 0.35.782

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.
@@ -186,10 +186,10 @@ var apiRoute = {
186
186
  address: {
187
187
  prefix: "/address",
188
188
  getAll: "",
189
- getById: apiRouteParam.addressUuid,
189
+ getById: `/${apiRouteParam.addressUuid}`,
190
190
  create: "",
191
- update: apiRouteParam.addressUuid,
192
- delete: apiRouteParam.addressUuid,
191
+ update: `/${apiRouteParam.addressUuid}`,
192
+ delete: `/${apiRouteParam.addressUuid}`,
193
193
  lookup: "/lookup",
194
194
  swagger: { name: "Answers", description: "Endpoints for User to manage their Addresses" }
195
195
  },
@@ -202,17 +202,17 @@ var apiRoute = {
202
202
  booking: {
203
203
  prefix: "/booking",
204
204
  getAll: "",
205
- getById: apiRouteParam.bookingUuid,
205
+ getById: `/${apiRouteParam.bookingUuid}`,
206
206
  create: "",
207
- update: apiRouteParam.bookingUuid,
208
- delete: apiRouteParam.bookingUuid,
207
+ update: `/${apiRouteParam.bookingUuid}`,
208
+ delete: `/${apiRouteParam.bookingUuid}`,
209
209
  swagger: { name: "Bookings", description: "Endpoints for User to manage their Bookings" }
210
210
  },
211
211
  bookingAddon: {
212
212
  prefix: "/booking-addon",
213
- getByBookingId: apiRouteParam.bookingUuid,
214
- addToBooking: apiRouteParam.bookingUuid,
215
- removeToBooking: apiRouteParam.bookingUuid,
213
+ getByBookingId: `/${apiRouteParam.bookingUuid}`,
214
+ addToBooking: `/${apiRouteParam.bookingUuid}`,
215
+ removeToBooking: `/${apiRouteParam.bookingUuid}`,
216
216
  swagger: { name: "BookingAddons", description: "Endpoints for User to manage their Booking Addons" }
217
217
  },
218
218
  membership: {
@@ -516,6 +516,7 @@ var DrivingRouteRestriction = {
516
516
  // src/contracts/generated/restrictions/membershipRestriction.ts
517
517
  var MembershipRestriction = {
518
518
  monthlyFee: { minValue: 0, maxValue: 1e3 },
519
+ yearlyFee: { minValue: 0, maxValue: 1e3 },
519
520
  perNightStay: { minValue: 0, maxValue: 1e3 },
520
521
  additionalPetPerNightStay: { minValue: 0, maxValue: 1e3 },
521
522
  transportFee: { minValue: 0, maxValue: 1e3 },
@@ -571,11 +572,11 @@ var UserRestriction = {
571
572
  // src/contracts/generated/searchColumns.ts
572
573
  var searchColumns = {
573
574
  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 }],
574
- 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 }],
575
575
  address: [{ "property": "name", "type": 2 }, { "property": "street", "type": 2 }, { "property": "city", "type": 2 }, { "property": "postalCode", "type": 2 }, { "property": "country", "type": 2 }],
576
- booking: [{ "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }, { "property": "status", "type": 2 }, { "property": "notes", "type": 2 }],
577
- 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 }],
578
576
  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 }],
577
+ 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 }],
578
+ 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 }],
579
+ booking: [{ "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }, { "property": "status", "type": 2 }, { "property": "notes", "type": 2 }],
579
580
  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 }]
580
581
  };
581
582
 
@@ -658,11 +659,12 @@ var CommonConfigService = class {
658
659
  getHubCoverageUrl = () => this.get("VITE_HUB_COVERAGE_URL");
659
660
  getHubDocsUrl = () => this.get("VITE_HUB_DOCS_URL");
660
661
  getHubStorybookUrl = () => this.get("VITE_HUB_STORYBOOK_URL");
661
- getHubspotId = () => this.get("VITE_HUBSPOT_ID");
662
662
  getFakeApiRequestDelay = () => this.getNumber("VITE_FAKE_API_REQUEST_DELAY");
663
+ // HCaptcha
663
664
  getCaptchaEnabled = () => this.getBool("VITE_ENABLE_CAPTCHA");
664
665
  getHCaptchaSecret = () => this.get("HCAPTCHA_SECRET");
665
666
  getHCaptchaSiteKey = () => this.get("VITE_HCAPTCHA_SITE_KEY");
667
+ // Tolgee
666
668
  getTolgeeApiKey = () => this.get("VITE_TOLGEE_API_KEY");
667
669
  getTolgeeApiUrl = () => this.get("VITE_TOLGEE_API_URL");
668
670
  getTolgeeProjectId = () => this.getNumber("VITE_TOLGEE_PROJECT_ID");