@connectedxm/admin 6.23.0 → 6.23.1
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/index.cjs +35 -0
- package/dist/index.d.cts +26 -3
- package/dist/index.d.ts +26 -3
- package/dist/index.js +31 -0
- package/openapi.json +57 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3548,6 +3548,33 @@ var useGetBookingPlaceTranslation = (placeId = "", locale = "", options = {}) =>
|
|
|
3548
3548
|
);
|
|
3549
3549
|
};
|
|
3550
3550
|
|
|
3551
|
+
// src/queries/bookings/useGetBookingResponses.ts
|
|
3552
|
+
var BOOKING_RESPONSES_QUERY_KEY = (bookingId) => [
|
|
3553
|
+
...BOOKING_QUERY_KEY(bookingId),
|
|
3554
|
+
"RESPONSES"
|
|
3555
|
+
];
|
|
3556
|
+
var SET_BOOKING_RESPONSES_QUERY_DATA = (client, keyParams, response) => {
|
|
3557
|
+
client.setQueryData(BOOKING_RESPONSES_QUERY_KEY(...keyParams), response);
|
|
3558
|
+
};
|
|
3559
|
+
var GetBookingResponses = async ({
|
|
3560
|
+
bookingId,
|
|
3561
|
+
adminApiParams
|
|
3562
|
+
}) => {
|
|
3563
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
3564
|
+
const { data } = await adminApi.get(`/bookings/${bookingId}/responses`);
|
|
3565
|
+
return data;
|
|
3566
|
+
};
|
|
3567
|
+
var useGetBookingResponses = (bookingId = "", options = {}) => {
|
|
3568
|
+
return useConnectedSingleQuery(
|
|
3569
|
+
BOOKING_RESPONSES_QUERY_KEY(bookingId),
|
|
3570
|
+
(params) => GetBookingResponses({ bookingId, ...params }),
|
|
3571
|
+
{
|
|
3572
|
+
...options,
|
|
3573
|
+
enabled: !!bookingId && (options?.enabled ?? true)
|
|
3574
|
+
}
|
|
3575
|
+
);
|
|
3576
|
+
};
|
|
3577
|
+
|
|
3551
3578
|
// src/queries/bookings/useGetBookingSpaceAvailabilities.ts
|
|
3552
3579
|
var BOOKING_SPACE_AVAILABILITIES_QUERY_KEY = (placeId, spaceId) => [...BOOKING_SPACE_QUERY_KEY(placeId, spaceId), "AVAILABILITIES"];
|
|
3553
3580
|
var SET_BOOKING_SPACE_AVAILABILITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -39060,6 +39087,7 @@ export {
|
|
|
39060
39087
|
BOOKING_PLACE_TRANSLATIONS_QUERY_KEY,
|
|
39061
39088
|
BOOKING_PLACE_TRANSLATION_QUERY_KEY,
|
|
39062
39089
|
BOOKING_QUERY_KEY,
|
|
39090
|
+
BOOKING_RESPONSES_QUERY_KEY,
|
|
39063
39091
|
BOOKING_SPACES_QUERY_KEY,
|
|
39064
39092
|
BOOKING_SPACE_AVAILABILITIES_QUERY_KEY,
|
|
39065
39093
|
BOOKING_SPACE_AVAILABILITY_QUERY_KEY,
|
|
@@ -39715,6 +39743,7 @@ export {
|
|
|
39715
39743
|
GetBookingPlaceTranslation,
|
|
39716
39744
|
GetBookingPlaceTranslations,
|
|
39717
39745
|
GetBookingPlaces,
|
|
39746
|
+
GetBookingResponses,
|
|
39718
39747
|
GetBookingSpace,
|
|
39719
39748
|
GetBookingSpaceAvailabilities,
|
|
39720
39749
|
GetBookingSpaceAvailability,
|
|
@@ -40477,6 +40506,7 @@ export {
|
|
|
40477
40506
|
SET_BOOKING_PLACE_TRANSLATIONS_QUERY_DATA,
|
|
40478
40507
|
SET_BOOKING_PLACE_TRANSLATION_QUERY_DATA,
|
|
40479
40508
|
SET_BOOKING_QUERY_DATA,
|
|
40509
|
+
SET_BOOKING_RESPONSES_QUERY_DATA,
|
|
40480
40510
|
SET_BOOKING_SPACES_QUERY_DATA,
|
|
40481
40511
|
SET_BOOKING_SPACE_AVAILABILITIES_QUERY_DATA,
|
|
40482
40512
|
SET_BOOKING_SPACE_AVAILABILITY_QUERY_DATA,
|
|
@@ -41645,6 +41675,7 @@ export {
|
|
|
41645
41675
|
useGetBookingPlaceTranslation,
|
|
41646
41676
|
useGetBookingPlaceTranslations,
|
|
41647
41677
|
useGetBookingPlaces,
|
|
41678
|
+
useGetBookingResponses,
|
|
41648
41679
|
useGetBookingSpace,
|
|
41649
41680
|
useGetBookingSpaceAvailabilities,
|
|
41650
41681
|
useGetBookingSpaceAvailability,
|
package/openapi.json
CHANGED
|
@@ -12049,6 +12049,62 @@
|
|
|
12049
12049
|
]
|
|
12050
12050
|
}
|
|
12051
12051
|
},
|
|
12052
|
+
"/bookings/{bookingId}/responses": {
|
|
12053
|
+
"get": {
|
|
12054
|
+
"operationId": "GetBookingResponses",
|
|
12055
|
+
"summary": "Get Booking Responses",
|
|
12056
|
+
"description": "Get Booking Responses endpoint",
|
|
12057
|
+
"parameters": [
|
|
12058
|
+
{
|
|
12059
|
+
"in": "path",
|
|
12060
|
+
"name": "bookingId",
|
|
12061
|
+
"schema": {
|
|
12062
|
+
"type": "string"
|
|
12063
|
+
},
|
|
12064
|
+
"description": "The booking identifier",
|
|
12065
|
+
"required": true
|
|
12066
|
+
}
|
|
12067
|
+
],
|
|
12068
|
+
"responses": {
|
|
12069
|
+
"200": {
|
|
12070
|
+
"description": "Successful response",
|
|
12071
|
+
"content": {
|
|
12072
|
+
"application/json": {
|
|
12073
|
+
"schema": {
|
|
12074
|
+
"type": "object",
|
|
12075
|
+
"properties": {
|
|
12076
|
+
"status": {
|
|
12077
|
+
"type": "string",
|
|
12078
|
+
"enum": [
|
|
12079
|
+
"ok"
|
|
12080
|
+
]
|
|
12081
|
+
},
|
|
12082
|
+
"message": {
|
|
12083
|
+
"type": "string",
|
|
12084
|
+
"example": "Success message."
|
|
12085
|
+
},
|
|
12086
|
+
"data": {
|
|
12087
|
+
"type": "array",
|
|
12088
|
+
"items": {
|
|
12089
|
+
"$ref": "#/components/schemas/BaseBookingQuestionResponse"
|
|
12090
|
+
}
|
|
12091
|
+
}
|
|
12092
|
+
},
|
|
12093
|
+
"required": [
|
|
12094
|
+
"status",
|
|
12095
|
+
"message",
|
|
12096
|
+
"data"
|
|
12097
|
+
]
|
|
12098
|
+
}
|
|
12099
|
+
}
|
|
12100
|
+
}
|
|
12101
|
+
}
|
|
12102
|
+
},
|
|
12103
|
+
"tags": [
|
|
12104
|
+
"Bookings"
|
|
12105
|
+
]
|
|
12106
|
+
}
|
|
12107
|
+
},
|
|
12052
12108
|
"/channels": {
|
|
12053
12109
|
"get": {
|
|
12054
12110
|
"operationId": "GetChannels",
|
|
@@ -106347,12 +106403,6 @@
|
|
|
106347
106403
|
},
|
|
106348
106404
|
"space": {
|
|
106349
106405
|
"$ref": "#/components/schemas/BaseBookingSpace"
|
|
106350
|
-
},
|
|
106351
|
-
"responses": {
|
|
106352
|
-
"type": "array",
|
|
106353
|
-
"items": {
|
|
106354
|
-
"$ref": "#/components/schemas/BaseBookingQuestionResponse"
|
|
106355
|
-
}
|
|
106356
106406
|
}
|
|
106357
106407
|
},
|
|
106358
106408
|
"required": [
|
|
@@ -106392,7 +106442,7 @@
|
|
|
106392
106442
|
"responses": {
|
|
106393
106443
|
"type": "array",
|
|
106394
106444
|
"items": {
|
|
106395
|
-
"$ref": "#/components/schemas/
|
|
106445
|
+
"$ref": "#/components/schemas/BaseBookingQuestionResponse"
|
|
106396
106446
|
}
|
|
106397
106447
|
}
|
|
106398
106448
|
},
|