simpo-component-library 3.6.996 → 3.6.999

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.
@@ -9,7 +9,7 @@ interface BookingRow {
9
9
  bookingDate: string;
10
10
  startTime?: string;
11
11
  endTime?: string;
12
- status: 'PENDING' | 'BOOKED' | 'HOLD' | 'COMPLETED' | 'CANCELLED';
12
+ status: 'PENDING' | 'BOOKED' | 'HOLD' | 'ONGOING' | 'COMPLETED' | 'CANCELLED';
13
13
  storeName?: string;
14
14
  customerDetail?: {
15
15
  name: string;
@@ -45,9 +45,10 @@ export declare class AppointmentBookingComponent extends BaseSection implements
45
45
  content?: BannerContentModel;
46
46
  edit?: boolean;
47
47
  /** Set by the admin panel's "Book New Appointment" tool - a staff member creating a booking on
48
- * a customer's behalf, not a live customer self-service flow. Skips the customer-facing
49
- * availableOnline/homeAppointmentAvailable service filters, which only make sense for what a
50
- * customer can self-serve book on the live website. */
48
+ * a customer's behalf, not a live customer self-service flow. Still respects every service's
49
+ * mode-capability flags (homeAppointmentAvailable/videoCallAvailable/storeIds) same as the live
50
+ * website, since those are about what a service can actually be delivered as, not who's
51
+ * allowed to book it; only skips the login requirement and customer-account prefill. */
51
52
  isAdminBooking?: boolean;
52
53
  delete?: boolean;
53
54
  customClass?: string;
@@ -75,6 +76,19 @@ export declare class AppointmentBookingComponent extends BaseSection implements
75
76
  lineServiceTotal(line: ResolvedLine): number;
76
77
  get servicesSubtotal(): number;
77
78
  get reviewTotal(): number;
79
+ /** Mirrors appointment_service's DepositUtils#getServiceDepositAmount exactly, so this preview
80
+ * matches what BookingGroupService#holdBooking will actually compute into serviceDepositTotal.
81
+ * Uses priceDetails.totalPrice (tax-inclusive), same as the backend - not servicePrice()'s
82
+ * pre-tax `.price`, which would understate a percent-based deposit. */
83
+ private serviceDepositAmount;
84
+ get depositTotal(): number;
85
+ /** What's actually due at booking time for a live customer (serviceDepositTotal + home visit
86
+ * charge, matching BookingGroupService#holdBooking's totalCollectedAtBooking) - shown as an
87
+ * informational preview for admin bookings too, even though those collect ₹0 online and record
88
+ * the full amount in person later; this still previews the same policy that'll land on the
89
+ * booking's own detail page once created. */
90
+ get dueAtBookingTotal(): number;
91
+ get pendingAtAppointmentTotal(): number;
78
92
  get bookingTotal(): number;
79
93
  get bookingPaid(): number;
80
94
  get bookingDue(): number;
@@ -130,6 +144,7 @@ export declare class AppointmentBookingComponent extends BaseSection implements
130
144
  getAllServices(): void;
131
145
  locationData: any[];
132
146
  getAllLocations(): void;
147
+ cameFromStaffListing: boolean;
133
148
  goToDateSelection(): void;
134
149
  staffSearchQuery: string;
135
150
  get filteredStaff(): any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.996",
3
+ "version": "3.6.999",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file