@wix/headless-bookings 1.0.14 → 1.0.16

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.
@@ -65,8 +65,8 @@ function buildBookingRequest(params) {
65
65
  // Participants
66
66
  totalParticipants: item.totalParticipants || 1,
67
67
  // App that created the booking (used to filter bookings by source app).
68
- ...(params.appSourceId && {
69
- bookingSource: { appDefId: params.appSourceId },
68
+ ...(params.sourceAppId && {
69
+ bookingSource: { appDefId: params.sourceAppId },
70
70
  }),
71
71
  // Booked entity slot
72
72
  bookedEntity: {
@@ -47,11 +47,11 @@ export interface BookActionParams {
47
47
  /** Optional app ID override for the catalog reference. Defaults to the bookings app ID. */
48
48
  appId?: string;
49
49
  /**
50
- * Optional app source ID. When provided, sets the created booking's
50
+ * Optional source app ID. When provided, sets the created booking's
51
51
  * `bookingSource.appDefId` (the ID of the app that created the booking),
52
52
  * allowing bookings to be filtered by source app later.
53
53
  */
54
- appSourceId?: string;
54
+ sourceAppId?: string;
55
55
  /**
56
56
  * Optional consumer-selected payment option. When provided, overrides the
57
57
  * heuristic derived from `service.payment.options` in `buildBookingRequest`
@@ -149,11 +149,11 @@ export interface BookingServiceConfig {
149
149
  /** Optional app ID override for the catalog reference. Defaults to the bookings app ID. */
150
150
  appId?: string;
151
151
  /**
152
- * Optional app source ID. When provided, sets the created booking's
152
+ * Optional source app ID. When provided, sets the created booking's
153
153
  * `bookingSource.appDefId` (the ID of the app that created the booking),
154
154
  * allowing bookings to be filtered by source app later.
155
155
  */
156
- appSourceId?: string;
156
+ sourceAppId?: string;
157
157
  }
158
158
  /**
159
159
  * Implementation of BookingService
@@ -203,7 +203,7 @@ exports.BookingService = services_definitions_1.implementService.withConfig()(ex
203
203
  location,
204
204
  timezone,
205
205
  appId: config.appId,
206
- appSourceId: config.appSourceId,
206
+ sourceAppId: config.sourceAppId,
207
207
  selectedPaymentOption,
208
208
  allDay,
209
209
  });
@@ -114,7 +114,7 @@ exports.ServiceListService = services_definitions_1.implementService.withConfig(
114
114
  const queryOptionsSignal = signalsService.signal(initialQueryOptions);
115
115
  // Paging metadata signal - updated after fetches, does NOT trigger effect
116
116
  const pagingMetadataSignal = signalsService.signal(initialPagingMetadata);
117
- const isLoadingSignal = signalsService.signal(false);
117
+ const isLoadingSignal = signalsService.signal(!hasInitialServices);
118
118
  const errorSignal = signalsService.signal(null);
119
119
  // Categories signal - initialized from config
120
120
  const categoriesSignal = signalsService.signal(config.categories || []);
@@ -62,8 +62,8 @@ export function buildBookingRequest(params) {
62
62
  // Participants
63
63
  totalParticipants: item.totalParticipants || 1,
64
64
  // App that created the booking (used to filter bookings by source app).
65
- ...(params.appSourceId && {
66
- bookingSource: { appDefId: params.appSourceId },
65
+ ...(params.sourceAppId && {
66
+ bookingSource: { appDefId: params.sourceAppId },
67
67
  }),
68
68
  // Booked entity slot
69
69
  bookedEntity: {
@@ -47,11 +47,11 @@ export interface BookActionParams {
47
47
  /** Optional app ID override for the catalog reference. Defaults to the bookings app ID. */
48
48
  appId?: string;
49
49
  /**
50
- * Optional app source ID. When provided, sets the created booking's
50
+ * Optional source app ID. When provided, sets the created booking's
51
51
  * `bookingSource.appDefId` (the ID of the app that created the booking),
52
52
  * allowing bookings to be filtered by source app later.
53
53
  */
54
- appSourceId?: string;
54
+ sourceAppId?: string;
55
55
  /**
56
56
  * Optional consumer-selected payment option. When provided, overrides the
57
57
  * heuristic derived from `service.payment.options` in `buildBookingRequest`
@@ -149,11 +149,11 @@ export interface BookingServiceConfig {
149
149
  /** Optional app ID override for the catalog reference. Defaults to the bookings app ID. */
150
150
  appId?: string;
151
151
  /**
152
- * Optional app source ID. When provided, sets the created booking's
152
+ * Optional source app ID. When provided, sets the created booking's
153
153
  * `bookingSource.appDefId` (the ID of the app that created the booking),
154
154
  * allowing bookings to be filtered by source app later.
155
155
  */
156
- appSourceId?: string;
156
+ sourceAppId?: string;
157
157
  }
158
158
  /**
159
159
  * Implementation of BookingService
@@ -200,7 +200,7 @@ export const BookingService = implementService.withConfig()(BookingServiceDefini
200
200
  location,
201
201
  timezone,
202
202
  appId: config.appId,
203
- appSourceId: config.appSourceId,
203
+ sourceAppId: config.sourceAppId,
204
204
  selectedPaymentOption,
205
205
  allDay,
206
206
  });
@@ -110,7 +110,7 @@ export const ServiceListService = implementService.withConfig()(ServiceListServi
110
110
  const queryOptionsSignal = signalsService.signal(initialQueryOptions);
111
111
  // Paging metadata signal - updated after fetches, does NOT trigger effect
112
112
  const pagingMetadataSignal = signalsService.signal(initialPagingMetadata);
113
- const isLoadingSignal = signalsService.signal(false);
113
+ const isLoadingSignal = signalsService.signal(!hasInitialServices);
114
114
  const errorSignal = signalsService.signal(null);
115
115
  // Categories signal - initialized from config
116
116
  const categoriesSignal = signalsService.signal(config.categories || []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/headless-bookings",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -91,5 +91,5 @@
91
91
  "groupId": "com.wixpress.headless-components"
92
92
  }
93
93
  },
94
- "falconPackageHash": "a46181a3961b30abe8eff9e922340b833ee536437f39b21c18667c07"
94
+ "falconPackageHash": "a44adc789e3e848632876173dae3dbb6d3491eb296e0f6250c1d8091"
95
95
  }