@bash-app/bash-common 25.1.2 → 25.1.4
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 +19 -18
package/package.json
CHANGED
package/src/definitions.ts
CHANGED
|
@@ -91,16 +91,16 @@ export type ContactOrUser = Contact | PublicUser;
|
|
|
91
91
|
export type UnionFromArray<T extends ReadonlyArray<any>> = T[number];
|
|
92
92
|
export type ValueOf<T> = T[keyof T];
|
|
93
93
|
|
|
94
|
-
export type ValueOfServiceType = ValueOf<typeof
|
|
95
|
-
|
|
96
|
-
export const
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
94
|
+
export type ValueOfServiceType = ValueOf<typeof ServiceType>;
|
|
95
|
+
|
|
96
|
+
export const ServiceType = {
|
|
97
|
+
'EventService': 'eventServices',
|
|
98
|
+
'Organization': 'organizations',
|
|
99
|
+
'Venue': 'venues',
|
|
100
|
+
'Vendor': 'vendors',
|
|
101
|
+
'Sponsor': 'sponsors',
|
|
102
|
+
'Exhibitor': 'exhibitors',
|
|
103
|
+
'EntertainmentService': 'entertainmentServices',
|
|
104
104
|
} satisfies {[key: string]: keyof BusinessExt}
|
|
105
105
|
|
|
106
106
|
export type FilterFields = {
|
|
@@ -234,6 +234,7 @@ export interface StripeAccountLinkArgs {
|
|
|
234
234
|
userId: string;
|
|
235
235
|
returnUrl: string;
|
|
236
236
|
refreshUrl: string;
|
|
237
|
+
businessId: string;
|
|
237
238
|
}
|
|
238
239
|
|
|
239
240
|
export interface StripeConfirmPaymentResult {
|
|
@@ -310,16 +311,16 @@ export const YearsOfExperienceToString: { [key in YearsOfExperience]: string } =
|
|
|
310
311
|
};
|
|
311
312
|
|
|
312
313
|
export type ServiceTypeToStringType = {
|
|
313
|
-
[key in ValueOf<typeof
|
|
314
|
+
[key in ValueOf<typeof ServiceType>]: string;
|
|
314
315
|
};
|
|
315
316
|
export const ServiceTypeToString: ServiceTypeToStringType = {
|
|
316
|
-
[
|
|
317
|
-
[
|
|
318
|
-
[
|
|
319
|
-
[
|
|
320
|
-
[
|
|
321
|
-
[
|
|
322
|
-
[
|
|
317
|
+
[ServiceType.EventService]: "/servicesDefault.webp",
|
|
318
|
+
[ServiceType.EntertainmentService]: "/servicesDefault.webp",
|
|
319
|
+
[ServiceType.Vendor]: "/servicesDefault.webp",
|
|
320
|
+
[ServiceType.Exhibitor]: "/servicesDefault.webp",
|
|
321
|
+
[ServiceType.Sponsor]: "/servicesDefault.webp",
|
|
322
|
+
[ServiceType.Venue]: "/servicesDefault.webp",
|
|
323
|
+
[ServiceType.Organization]: "/servicesDefault.webp"
|
|
323
324
|
}
|
|
324
325
|
|
|
325
326
|
export type BashEventTypeToStringType = {
|