@bash-app/bash-common 30.201.0 → 30.208.0
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/dist/extendedSchemas.d.ts +40 -3
- package/dist/extendedSchemas.d.ts.map +1 -1
- package/dist/extendedSchemas.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/__tests__/eventTimezoneIana.test.d.ts +2 -0
- package/dist/utils/__tests__/eventTimezoneIana.test.d.ts.map +1 -0
- package/dist/utils/__tests__/eventTimezoneIana.test.js +60 -0
- package/dist/utils/__tests__/eventTimezoneIana.test.js.map +1 -0
- package/dist/utils/eventTimezoneIana.d.ts +38 -0
- package/dist/utils/eventTimezoneIana.d.ts.map +1 -0
- package/dist/utils/eventTimezoneIana.js +277 -0
- package/dist/utils/eventTimezoneIana.js.map +1 -0
- package/dist/utils/service/serviceUtils.d.ts +8 -0
- package/dist/utils/service/serviceUtils.d.ts.map +1 -1
- package/dist/utils/service/serviceUtils.js +16 -0
- package/dist/utils/service/serviceUtils.js.map +1 -1
- package/package.json +1 -1
- package/prisma/schema.prisma +37 -0
- package/src/extendedSchemas.ts +45 -2
- package/src/index.ts +241 -7
- package/src/utils/__tests__/eventTimezoneIana.test.ts +92 -0
- package/src/utils/eventTimezoneIana.ts +331 -0
- package/src/utils/service/serviceUtils.ts +32 -0
|
@@ -477,6 +477,38 @@ export function partnerServiceProfileWizardPaymentMethodUrl(
|
|
|
477
477
|
);
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
+
/** Venue wizard: major step index for Loyalty Builder (before Finish). */
|
|
481
|
+
export const VENUE_WIZARD_LOYALTY_MAJOR_STEP = 7;
|
|
482
|
+
/** Venue wizard: major step index for Finish (after Loyalty Builder). */
|
|
483
|
+
export const VENUE_WIZARD_FINISH_MAJOR_STEP = 8;
|
|
484
|
+
|
|
485
|
+
export function venueWizardLoyaltyBuilderUrl(
|
|
486
|
+
serviceId: string,
|
|
487
|
+
serviceType: string,
|
|
488
|
+
venueId: string
|
|
489
|
+
): string {
|
|
490
|
+
return serviceWizardUrl(
|
|
491
|
+
serviceId,
|
|
492
|
+
serviceType,
|
|
493
|
+
venueId,
|
|
494
|
+
VENUE_WIZARD_LOYALTY_MAJOR_STEP,
|
|
495
|
+
0
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/** Stable ids for Venue loyalty template chips (stored in Venue.loyaltyTemplateIds). */
|
|
500
|
+
export const VENUE_LOYALTY_TEMPLATE_IDS = [
|
|
501
|
+
"booking_discount",
|
|
502
|
+
"vip_access",
|
|
503
|
+
"early_access",
|
|
504
|
+
"parking",
|
|
505
|
+
"merch",
|
|
506
|
+
"custom",
|
|
507
|
+
] as const;
|
|
508
|
+
|
|
509
|
+
export type VenueLoyaltyTemplateId =
|
|
510
|
+
(typeof VENUE_LOYALTY_TEMPLATE_IDS)[number];
|
|
511
|
+
|
|
480
512
|
export function serviceCheckoutUrl(
|
|
481
513
|
serviceId: string,
|
|
482
514
|
serviceType: string,
|