@bash-app/bash-common 29.22.2 → 29.22.3

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.2",
3
+ "version": "29.22.3",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -108,6 +108,32 @@ export const BASH_EVENT_DATA_TO_REMOVE: RemoveCommonProperties<BashEvent, BashEv
108
108
  'amountOfGuests',
109
109
  ];
110
110
 
111
+ export const SERVICE_PACKAGE_DATA_TO_INCLUDE = {
112
+ serviceAddons: true
113
+ } satisfies Prisma.ServicePackageInclude;
114
+
115
+ export const SERVICE_DAILYRATES_DATA_TO_INCLUDE = {
116
+ serviceRate: true
117
+ } satisfies Prisma.ServiceDailyRatesInclude;
118
+
119
+ export const SERVICE_SPECIALRATES_DATA_TO_INCLUDE = {
120
+ serviceRate: true
121
+ } satisfies Prisma.ServiceSpecialRatesInclude;
122
+
123
+ export const SERVICE_RATES_ASSOCIATION_DATA_TO_INCLUDE = {
124
+ serviceGeneralRates: true,
125
+ serviceDailyRates: {
126
+ include: SERVICE_DAILYRATES_DATA_TO_INCLUDE
127
+ },
128
+ serviceSpecialRates: {
129
+ include: SERVICE_SPECIALRATES_DATA_TO_INCLUDE
130
+ },
131
+ addons: true,
132
+ packages: {
133
+ include: SERVICE_PACKAGE_DATA_TO_INCLUDE
134
+ },
135
+ } satisfies Prisma.ServiceRatesAssociationInclude;
136
+
111
137
  export const SERVICE_DATA_TO_INCLUDE = {
112
138
  creator: {
113
139
  select: FRONT_END_USER_DATA_TO_SELECT
@@ -128,7 +154,9 @@ export const SERVICE_DATA_TO_INCLUDE = {
128
154
  serviceLinks: {
129
155
  include: SERVICE_LINK_DATA_TO_INCLUDE
130
156
  },
131
- serviceRatesAssociation: true
157
+ serviceRatesAssociation: {
158
+ include: SERVICE_RATES_ASSOCIATION_DATA_TO_INCLUDE
159
+ }
132
160
  } satisfies Prisma.ServiceInclude;
133
161
 
134
162
  // Create the final object dynamically
@@ -177,32 +205,6 @@ export const SERVICE_FULL_DATA_TO_INCLUDE = {
177
205
  ...createAllTrueObject(serviceKeysArray)
178
206
  } satisfies Prisma.ServiceInclude;
179
207
 
180
- export const SERVICE_PACKAGE_DATA_TO_INCLUDE = {
181
- serviceAddons: true
182
- } satisfies Prisma.ServicePackageInclude;
183
-
184
- export const SERVICE_DAILYRATES_DATA_TO_INCLUDE = {
185
- serviceRate: true
186
- } satisfies Prisma.ServiceDailyRatesInclude;
187
-
188
- export const SERVICE_SPECIALRATES_DATA_TO_INCLUDE = {
189
- serviceRate: true
190
- } satisfies Prisma.ServiceSpecialRatesInclude;
191
-
192
- export const SERVICE_RATES_ASSOCIATION_DATA_TO_INCLUDE = {
193
- serviceGeneralRates: true,
194
- serviceDailyRates: {
195
- include: SERVICE_DAILYRATES_DATA_TO_INCLUDE
196
- },
197
- serviceSpecialRates: {
198
- include: SERVICE_SPECIALRATES_DATA_TO_INCLUDE
199
- },
200
- addons: true,
201
- packages: {
202
- include: SERVICE_PACKAGE_DATA_TO_INCLUDE
203
- },
204
- } satisfies Prisma.ServiceRatesAssociationInclude;
205
-
206
208
  export interface BashNotificationExt extends BashNotification {
207
209
  creator?: PublicUser;
208
210
  bashEvent?: BashEvent;