@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
package/prisma/schema.prisma
CHANGED
package/src/extendedSchemas.ts
CHANGED
|
@@ -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
|
|