@bash-app/bash-common 29.19.32 → 29.19.34
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/prisma/schema.prisma +3 -3
- package/src/definitions.ts +1 -1
- package/src/extendedSchemas.ts +10 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -1332,10 +1332,10 @@ enum ServiceRateType {
|
|
|
1332
1332
|
//can optionally be associated with a package
|
|
1333
1333
|
model ServiceAddon {
|
|
1334
1334
|
id String @id @default(cuid())
|
|
1335
|
-
name String
|
|
1336
|
-
description String
|
|
1335
|
+
name String?
|
|
1336
|
+
description String?
|
|
1337
1337
|
price Int?
|
|
1338
|
-
quantity Int
|
|
1338
|
+
quantity Int?
|
|
1339
1339
|
|
|
1340
1340
|
servicePackage ServicePackage? @relation(fields: [servicePackageId], references: [id], onDelete: Cascade)
|
|
1341
1341
|
servicePackageId String?
|
package/src/definitions.ts
CHANGED
|
@@ -307,7 +307,7 @@ export type StripeLinkingStatus = {
|
|
|
307
307
|
};
|
|
308
308
|
|
|
309
309
|
export type StripeBusinessDataPublic = {
|
|
310
|
-
|
|
310
|
+
logoUrl?: string; //not possible to fetch logo directly from stripe
|
|
311
311
|
businessName?: string;
|
|
312
312
|
businessNameDBA?: string;
|
|
313
313
|
supportEmail?: string;
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -257,6 +257,16 @@ export const EVENT_TASK_DATA_TO_INCLUDE = {
|
|
|
257
257
|
}
|
|
258
258
|
} satisfies Prisma.EventTaskInclude;
|
|
259
259
|
|
|
260
|
+
|
|
261
|
+
//------------Stripe Accounts--------------
|
|
262
|
+
export const STRIPE_ACCOUNT_DATA_TO_INCLUDE = {
|
|
263
|
+
logo: true
|
|
264
|
+
} satisfies Prisma.StripeAccountInclude;
|
|
265
|
+
|
|
266
|
+
export interface StripeAccountExt extends StripeAccount {
|
|
267
|
+
logo?: Media | null;
|
|
268
|
+
}
|
|
269
|
+
|
|
260
270
|
//---------------Services------------------
|
|
261
271
|
export interface ServiceExt extends Service {
|
|
262
272
|
owner?: PublicUser | null;
|