@bash-app/bash-common 29.18.8 → 29.18.9
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/definitions.ts +25 -8
package/package.json
CHANGED
package/src/definitions.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
User,
|
|
13
13
|
YearsOfExperience
|
|
14
14
|
} from "@prisma/client";
|
|
15
|
-
import { ServiceExt, CheckoutExt, PublicUser, VolunteerServiceExt} from "./extendedSchemas";
|
|
15
|
+
import { ServiceExt, CheckoutExt, PublicUser, VolunteerServiceExt, BashEventExt} from "./extendedSchemas";
|
|
16
16
|
|
|
17
17
|
export const PASSWORD_MIN_LENGTH = 10 as const;
|
|
18
18
|
export const PASSWORD_REQUIREMENTS_REGEX = new RegExp(String.raw`^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{${PASSWORD_MIN_LENGTH},}$`);
|
|
@@ -285,18 +285,35 @@ export interface StripeCreateBashEventDonationCheckoutSessionArgs {
|
|
|
285
285
|
donationAmount: number;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
export
|
|
288
|
+
export type StripeSessionRedirect = {
|
|
289
289
|
redirectUrl: string;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
export
|
|
292
|
+
export type ServiceStripeSessionRedirect = {
|
|
293
293
|
service: ServiceExt;
|
|
294
|
-
|
|
295
|
-
}
|
|
294
|
+
} & StripeSessionRedirect;
|
|
296
295
|
|
|
297
|
-
export
|
|
298
|
-
|
|
299
|
-
|
|
296
|
+
export type BashEventStripeSessionRedirect = {
|
|
297
|
+
bashEvent: BashEventExt;
|
|
298
|
+
} & StripeSessionRedirect;
|
|
299
|
+
|
|
300
|
+
export type StripeLinkingStatus = "Complete" | "Incomplete";
|
|
301
|
+
|
|
302
|
+
export interface StripeBusinessDataOwned {
|
|
303
|
+
logo?: string;
|
|
304
|
+
businessName?: string;
|
|
305
|
+
businessNameDBA?: string;
|
|
306
|
+
email: string;
|
|
307
|
+
phone: string;
|
|
308
|
+
website: string;
|
|
309
|
+
address: string;
|
|
310
|
+
accountType: string;
|
|
311
|
+
bankAccount: string;
|
|
312
|
+
paymentsEnabled: boolean;
|
|
313
|
+
createdDate: Date;
|
|
314
|
+
updatedDate: Date;
|
|
315
|
+
linkingStatus: StripeLinkingStatus; //enum
|
|
316
|
+
taxMonitoringEnabled: boolean;
|
|
300
317
|
}
|
|
301
318
|
|
|
302
319
|
export interface StripeConfirmPayment {
|