@bash-app/bash-common 29.19.24 → 29.19.26
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 +1 -1
- package/src/extendedSchemas.ts +7 -4
package/package.json
CHANGED
package/src/extendedSchemas.ts
CHANGED
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
ServiceDailyRates,
|
|
36
36
|
ServiceSpecialRates,
|
|
37
37
|
ServiceAddon,
|
|
38
|
+
ServicePackage,
|
|
38
39
|
} from "@prisma/client";
|
|
39
40
|
import { SERVICE_LINK_DATA_TO_INCLUDE, UnionFromArray } from "./definitions";
|
|
40
41
|
|
|
@@ -176,7 +177,7 @@ export const SERVICE_FULL_DATA_TO_INCLUDE = {
|
|
|
176
177
|
...createAllTrueObject(serviceKeysArray)
|
|
177
178
|
} satisfies Prisma.ServiceInclude;
|
|
178
179
|
|
|
179
|
-
export const
|
|
180
|
+
export const SERVICE_PACKAGE_DATA_TO_INCLUDE = {
|
|
180
181
|
serviceAddons: true
|
|
181
182
|
} satisfies Prisma.ServicePackageInclude;
|
|
182
183
|
|
|
@@ -193,7 +194,9 @@ export const SERVICE_RATES_ASSOCIATION_DATA_TO_INCLUDE = {
|
|
|
193
194
|
serviceDailyRates: true,
|
|
194
195
|
serviceSpecialRates: true,
|
|
195
196
|
addons: true,
|
|
196
|
-
packages:
|
|
197
|
+
packages: {
|
|
198
|
+
include: SERVICE_PACKAGE_DATA_TO_INCLUDE
|
|
199
|
+
},
|
|
197
200
|
} satisfies Prisma.ServiceRatesAssociationInclude;
|
|
198
201
|
|
|
199
202
|
export interface BashNotificationExt extends BashNotification {
|
|
@@ -276,14 +279,14 @@ export interface ServiceExt extends Service {
|
|
|
276
279
|
|
|
277
280
|
// googleReviews: GoogleReview[];
|
|
278
281
|
}
|
|
279
|
-
export interface ServicePackageExt extends
|
|
282
|
+
export interface ServicePackageExt extends ServicePackage {
|
|
280
283
|
serviceAddons: ServiceAddon[]
|
|
281
284
|
}
|
|
282
285
|
|
|
283
286
|
export interface ServiceDailyRatesExt extends ServiceDailyRates {
|
|
284
287
|
serviceRate?: ServiceRate;
|
|
285
288
|
}
|
|
286
|
-
export interface ServiceSpecialRatesExt extends
|
|
289
|
+
export interface ServiceSpecialRatesExt extends ServiceSpecialRates {
|
|
287
290
|
serviceRate?: ServiceRate;
|
|
288
291
|
}
|
|
289
292
|
|