simpo-component-library 3.7.6 → 3.7.8

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.
@@ -42,6 +42,9 @@ interface BookingRow {
42
42
  totalCollectedAtBooking?: number;
43
43
  totalPayable?: number;
44
44
  homeVisitCharge?: number;
45
+ /** Presence (once the booking is COMPLETED) is the signal to show "Download Invoice" - the PDF
46
+ * url itself is fetched on-demand via restService.getBookingInvoiceUrl, not stored on the row. */
47
+ invoiceId?: string;
45
48
  /** Transient, computed on every backend read of this group - see BookingGroup#canReschedule. */
46
49
  canReschedule?: boolean;
47
50
  rescheduleBlockedReason?: string;
@@ -121,6 +124,11 @@ export declare class MyBookingsComponent implements OnInit {
121
124
  servicePriceTotal(b: BookingRow): number;
122
125
  totalDue(b: BookingRow): number;
123
126
  pendingAmount(b: BookingRow): number;
127
+ /** Fetched on click, not pre-cached - ecommerce generates/caches the invoice PDF the first time
128
+ * it's asked for, so there's nothing to gain by fetching it earlier. Same S3 PDF url pattern
129
+ * ecommerce's own order-details.component.ts reads invoiceUrl/receiptUrl from, just resolved
130
+ * live here instead of being present on the row already. */
131
+ downloadInvoice(): void;
124
132
  get canCancelSelected(): boolean;
125
133
  get canRescheduleSelected(): boolean;
126
134
  get canAddServiceSelected(): boolean;
@@ -66,7 +66,11 @@ export declare class AppointmentBookingComponent extends BaseSection implements
66
66
  /** Overrides this component's own --color-accent-gradient CSS variable (scoped to its :host,
67
67
  * see appointment-booking.component.css) when a business has picked a custom accent color -
68
68
  * null when unset, so the [style.--color-accent-gradient] binding removes the inline override
69
- * entirely and the CSS default shows through, rather than forcing an empty value. */
69
+ * entirely and the CSS default shows through, rather than forcing an empty value.
70
+ * The admin quick-booking flow never applies this - it fetches this section's config from a
71
+ * generic template endpoint, which still carries sample/placeholder accent-color data rather
72
+ * than anything the tenant actually chose, so it always falls through to the CSS default
73
+ * instead (which resolves to the tenant's real theme color, var(--primary-bg-color)). */
70
74
  get accentColor(): string | null;
71
75
  get homeVisitCharge(): number;
72
76
  /** Price for one resolved-line service, looked up from `cartServices` (the service-listing
@@ -141,6 +141,9 @@ export declare class RestService implements OnDestroy {
141
141
  resolveCart(payload: any): Observable<Object>;
142
142
  holdBooking(payload: any): Observable<Object>;
143
143
  getBookingGroup(groupId: string): Observable<Object>;
144
+ /** Fetched on click, not pre-cached on the booking - ecommerce generates/caches the invoice PDF
145
+ * the first time it's asked for, so there's nothing to gain by fetching it earlier. */
146
+ getBookingInvoiceUrl(groupId: string): Observable<Object>;
144
147
  generatePaymentToken(groupId: string): Observable<Object>;
145
148
  completeBookingGroup(groupId: string): Observable<Object>;
146
149
  getMyBookings(businessId: string, userId: string): Observable<Object>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.7.6",
3
+ "version": "3.7.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file