simpo-component-library 3.7.6 → 3.7.7

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;
@@ -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.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file