@bash-app/bash-common 29.22.3 → 29.22.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "29.22.3",
3
+ "version": "29.22.5",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -881,7 +881,6 @@ model User {
881
881
  userSubscription UserSubscription?
882
882
  serviceSubcriptions ServiceSubscription[]
883
883
  volunteerService VolunteerService[]
884
- // rate Rate[]
885
884
  stripeAccounts StripeAccount[]
886
885
  }
887
886
 
@@ -471,6 +471,8 @@ export interface UserExt extends User {
471
471
  reviews?: ReviewExt[] | null;
472
472
  contacts?: Contact[] | null;
473
473
  ticketsIOwn?: TicketExt[] | null;
474
+ ownedServices?: ServiceExt[];
475
+ createdServices?: ServiceExt[];
474
476
  }
475
477
 
476
478
  export const USER_DATA_SELECT_REVIEWS_COMMENTS = {
@@ -167,6 +167,12 @@ export function formatDateTimeToTimeString(date: Date | string | undefined | nul
167
167
  return result;
168
168
  }
169
169
 
170
+ export function formatDateTimeToTimeString24hr(date: Date | string | undefined | null): string {
171
+ date = new Date(date ?? Date.now());
172
+ const result = dayjs(date).format("h:mm");
173
+ return result;
174
+ }
175
+
170
176
  export function parseTimeString(timeStr: string): ITime | null {
171
177
  const match = timeStr.match(PARSE_TIME_REG);
172
178