@connectedxm/admin-sdk 7.9.2 → 7.9.4
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/.openapi-generator/FILES +5 -0
- package/AdminApi.ts +3 -0
- package/README.md +6 -0
- package/api.ts +320 -0
- package/dist/AdminApi.d.ts +2 -1
- package/dist/AdminApi.js +1 -0
- package/dist/api.d.ts +182 -0
- package/dist/api.js +242 -25
- package/dist/esm/AdminApi.d.ts +2 -1
- package/dist/esm/AdminApi.js +2 -1
- package/dist/esm/api.d.ts +182 -0
- package/dist/esm/api.js +213 -0
- package/docs/BaseBookingQuestionResponseChange.md +32 -0
- package/docs/BookingQuestionResponse.md +2 -0
- package/docs/BookingQuestionResponseChange.md +36 -0
- package/docs/BookingsResponsesApi.md +136 -0
- package/docs/GetBookingResponseChanges200Response.md +26 -0
- package/docs/Organization.md +2 -0
- package/docs/OrganizationUpdateInputs.md +2 -0
- package/docs/UpdateBookingResponsesInputs.md +20 -0
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
|
@@ -911,6 +911,15 @@ export interface BaseBookingQuestionResponse {
|
|
|
911
911
|
'questionId': string;
|
|
912
912
|
'question': BaseBookingSpaceQuestion;
|
|
913
913
|
}
|
|
914
|
+
export interface BaseBookingQuestionResponseChange {
|
|
915
|
+
'id': string;
|
|
916
|
+
'newValue': string;
|
|
917
|
+
'oldValue': string;
|
|
918
|
+
'questionId': string;
|
|
919
|
+
'responseId': string;
|
|
920
|
+
'userId': string | null;
|
|
921
|
+
'createdAt': string;
|
|
922
|
+
}
|
|
914
923
|
export interface BaseBookingSpace {
|
|
915
924
|
'id': string;
|
|
916
925
|
'name': string;
|
|
@@ -2634,9 +2643,21 @@ export interface BookingQuestionResponse {
|
|
|
2634
2643
|
'question': BaseBookingSpaceQuestion;
|
|
2635
2644
|
'fileId': number | null;
|
|
2636
2645
|
'file': BaseFile | null;
|
|
2646
|
+
'changeLogs': Array<BaseBookingQuestionResponseChange>;
|
|
2637
2647
|
'createdAt': string;
|
|
2638
2648
|
'updatedAt': string;
|
|
2639
2649
|
}
|
|
2650
|
+
export interface BookingQuestionResponseChange {
|
|
2651
|
+
'id': string;
|
|
2652
|
+
'newValue': string;
|
|
2653
|
+
'oldValue': string;
|
|
2654
|
+
'questionId': string;
|
|
2655
|
+
'responseId': string;
|
|
2656
|
+
'userId': string | null;
|
|
2657
|
+
'createdAt': string;
|
|
2658
|
+
'response': BaseBookingQuestionResponse;
|
|
2659
|
+
'user': BaseUser | null;
|
|
2660
|
+
}
|
|
2640
2661
|
export interface BookingSlot {
|
|
2641
2662
|
'time': string;
|
|
2642
2663
|
'supply': number | null;
|
|
@@ -6478,6 +6499,15 @@ export interface GetBookingPlaces200Response {
|
|
|
6478
6499
|
export declare enum GetBookingPlaces200ResponseStatusEnum {
|
|
6479
6500
|
Ok = "ok"
|
|
6480
6501
|
}
|
|
6502
|
+
export interface GetBookingResponseChanges200Response {
|
|
6503
|
+
'status': GetBookingResponseChanges200ResponseStatusEnum;
|
|
6504
|
+
'message': string;
|
|
6505
|
+
'data': Array<BookingQuestionResponseChange>;
|
|
6506
|
+
'count'?: number;
|
|
6507
|
+
}
|
|
6508
|
+
export declare enum GetBookingResponseChanges200ResponseStatusEnum {
|
|
6509
|
+
Ok = "ok"
|
|
6510
|
+
}
|
|
6481
6511
|
export interface GetBookingResponses200Response {
|
|
6482
6512
|
'status': GetBookingResponses200ResponseStatusEnum;
|
|
6483
6513
|
'message': string;
|
|
@@ -9952,6 +9982,7 @@ export interface Organization {
|
|
|
9952
9982
|
'inviteOnly': boolean;
|
|
9953
9983
|
'autoTranslate': boolean;
|
|
9954
9984
|
'googleTagManagerId': string | null;
|
|
9985
|
+
'googleMapsApiKey': string | null;
|
|
9955
9986
|
'options': object | null;
|
|
9956
9987
|
'modulesOrder': Array<ModulesOrder>;
|
|
9957
9988
|
}
|
|
@@ -10221,6 +10252,7 @@ export interface OrganizationUpdateInputs {
|
|
|
10221
10252
|
'inviteOnly'?: boolean;
|
|
10222
10253
|
'autoTranslate'?: boolean;
|
|
10223
10254
|
'googleTagManagerId'?: string | null;
|
|
10255
|
+
'googleMapsApiKey'?: string | null;
|
|
10224
10256
|
'options'?: object | null;
|
|
10225
10257
|
'modulesOrder'?: Array<ModulesOrder>;
|
|
10226
10258
|
}
|
|
@@ -12474,6 +12506,9 @@ export interface TriggerUpdateInputs {
|
|
|
12474
12506
|
'code'?: string | null;
|
|
12475
12507
|
'enabled'?: boolean;
|
|
12476
12508
|
}
|
|
12509
|
+
export interface UpdateBookingResponsesInputs {
|
|
12510
|
+
'questions': Array<Question>;
|
|
12511
|
+
}
|
|
12477
12512
|
export interface UpdateBookingSpaceQuestionChoiceTranslation200Response {
|
|
12478
12513
|
'status': UpdateBookingSpaceQuestionChoiceTranslation200ResponseStatusEnum;
|
|
12479
12514
|
'message': string;
|
|
@@ -21732,6 +21767,153 @@ export declare class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
21732
21767
|
*/
|
|
21733
21768
|
updateBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiUpdateBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBookingSpaceQuestionTranslation200Response, any, {}>>;
|
|
21734
21769
|
}
|
|
21770
|
+
/**
|
|
21771
|
+
* BookingsResponsesApi - axios parameter creator
|
|
21772
|
+
*/
|
|
21773
|
+
export declare const BookingsResponsesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21774
|
+
/**
|
|
21775
|
+
* Returns a paginated list of edits made to a single question response on a booking, including the old and new values for each change; requires the \"read\" permission on \"bookings\".
|
|
21776
|
+
* @summary List a booking response\'s edit history
|
|
21777
|
+
* @param {string} bookingId The booking identifier
|
|
21778
|
+
* @param {string} questionId The question identifier
|
|
21779
|
+
* @param {number} [page] Page number
|
|
21780
|
+
* @param {number} [pageSize] Number of items per page
|
|
21781
|
+
* @param {string} [orderBy] Field to order by
|
|
21782
|
+
* @param {string} [search] Search query
|
|
21783
|
+
* @param {*} [options] Override http request option.
|
|
21784
|
+
* @throws {RequiredError}
|
|
21785
|
+
*/
|
|
21786
|
+
getBookingResponseChanges: (bookingId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
21787
|
+
/**
|
|
21788
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
21789
|
+
* @summary Update a booking\'s question responses
|
|
21790
|
+
* @param {string} placeId The place identifier
|
|
21791
|
+
* @param {string} spaceId The space identifier
|
|
21792
|
+
* @param {string} bookingId The booking identifier
|
|
21793
|
+
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
21794
|
+
* @param {*} [options] Override http request option.
|
|
21795
|
+
* @throws {RequiredError}
|
|
21796
|
+
*/
|
|
21797
|
+
updateBookingResponses: (placeId: string, spaceId: string, bookingId: string, updateBookingResponsesInputs: UpdateBookingResponsesInputs, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
21798
|
+
};
|
|
21799
|
+
/**
|
|
21800
|
+
* BookingsResponsesApi - functional programming interface
|
|
21801
|
+
*/
|
|
21802
|
+
export declare const BookingsResponsesApiFp: (configuration?: Configuration) => {
|
|
21803
|
+
/**
|
|
21804
|
+
* Returns a paginated list of edits made to a single question response on a booking, including the old and new values for each change; requires the \"read\" permission on \"bookings\".
|
|
21805
|
+
* @summary List a booking response\'s edit history
|
|
21806
|
+
* @param {string} bookingId The booking identifier
|
|
21807
|
+
* @param {string} questionId The question identifier
|
|
21808
|
+
* @param {number} [page] Page number
|
|
21809
|
+
* @param {number} [pageSize] Number of items per page
|
|
21810
|
+
* @param {string} [orderBy] Field to order by
|
|
21811
|
+
* @param {string} [search] Search query
|
|
21812
|
+
* @param {*} [options] Override http request option.
|
|
21813
|
+
* @throws {RequiredError}
|
|
21814
|
+
*/
|
|
21815
|
+
getBookingResponseChanges(bookingId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingResponseChanges200Response>>;
|
|
21816
|
+
/**
|
|
21817
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
21818
|
+
* @summary Update a booking\'s question responses
|
|
21819
|
+
* @param {string} placeId The place identifier
|
|
21820
|
+
* @param {string} spaceId The space identifier
|
|
21821
|
+
* @param {string} bookingId The booking identifier
|
|
21822
|
+
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
21823
|
+
* @param {*} [options] Override http request option.
|
|
21824
|
+
* @throws {RequiredError}
|
|
21825
|
+
*/
|
|
21826
|
+
updateBookingResponses(placeId: string, spaceId: string, bookingId: string, updateBookingResponsesInputs: UpdateBookingResponsesInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>>;
|
|
21827
|
+
};
|
|
21828
|
+
/**
|
|
21829
|
+
* BookingsResponsesApi - factory interface
|
|
21830
|
+
*/
|
|
21831
|
+
export declare const BookingsResponsesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
21832
|
+
/**
|
|
21833
|
+
* Returns a paginated list of edits made to a single question response on a booking, including the old and new values for each change; requires the \"read\" permission on \"bookings\".
|
|
21834
|
+
* @summary List a booking response\'s edit history
|
|
21835
|
+
* @param {BookingsResponsesApiGetBookingResponseChangesRequest} requestParameters Request parameters.
|
|
21836
|
+
* @param {*} [options] Override http request option.
|
|
21837
|
+
* @throws {RequiredError}
|
|
21838
|
+
*/
|
|
21839
|
+
getBookingResponseChanges(requestParameters: BookingsResponsesApiGetBookingResponseChangesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingResponseChanges200Response>;
|
|
21840
|
+
/**
|
|
21841
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
21842
|
+
* @summary Update a booking\'s question responses
|
|
21843
|
+
* @param {BookingsResponsesApiUpdateBookingResponsesRequest} requestParameters Request parameters.
|
|
21844
|
+
* @param {*} [options] Override http request option.
|
|
21845
|
+
* @throws {RequiredError}
|
|
21846
|
+
*/
|
|
21847
|
+
updateBookingResponses(requestParameters: BookingsResponsesApiUpdateBookingResponsesRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response>;
|
|
21848
|
+
};
|
|
21849
|
+
/**
|
|
21850
|
+
* Request parameters for getBookingResponseChanges operation in BookingsResponsesApi.
|
|
21851
|
+
*/
|
|
21852
|
+
export interface BookingsResponsesApiGetBookingResponseChangesRequest {
|
|
21853
|
+
/**
|
|
21854
|
+
* The booking identifier
|
|
21855
|
+
*/
|
|
21856
|
+
readonly bookingId: string;
|
|
21857
|
+
/**
|
|
21858
|
+
* The question identifier
|
|
21859
|
+
*/
|
|
21860
|
+
readonly questionId: string;
|
|
21861
|
+
/**
|
|
21862
|
+
* Page number
|
|
21863
|
+
*/
|
|
21864
|
+
readonly page?: number;
|
|
21865
|
+
/**
|
|
21866
|
+
* Number of items per page
|
|
21867
|
+
*/
|
|
21868
|
+
readonly pageSize?: number;
|
|
21869
|
+
/**
|
|
21870
|
+
* Field to order by
|
|
21871
|
+
*/
|
|
21872
|
+
readonly orderBy?: string;
|
|
21873
|
+
/**
|
|
21874
|
+
* Search query
|
|
21875
|
+
*/
|
|
21876
|
+
readonly search?: string;
|
|
21877
|
+
}
|
|
21878
|
+
/**
|
|
21879
|
+
* Request parameters for updateBookingResponses operation in BookingsResponsesApi.
|
|
21880
|
+
*/
|
|
21881
|
+
export interface BookingsResponsesApiUpdateBookingResponsesRequest {
|
|
21882
|
+
/**
|
|
21883
|
+
* The place identifier
|
|
21884
|
+
*/
|
|
21885
|
+
readonly placeId: string;
|
|
21886
|
+
/**
|
|
21887
|
+
* The space identifier
|
|
21888
|
+
*/
|
|
21889
|
+
readonly spaceId: string;
|
|
21890
|
+
/**
|
|
21891
|
+
* The booking identifier
|
|
21892
|
+
*/
|
|
21893
|
+
readonly bookingId: string;
|
|
21894
|
+
readonly updateBookingResponsesInputs: UpdateBookingResponsesInputs;
|
|
21895
|
+
}
|
|
21896
|
+
/**
|
|
21897
|
+
* BookingsResponsesApi - object-oriented interface
|
|
21898
|
+
*/
|
|
21899
|
+
export declare class BookingsResponsesApi extends BaseAPI {
|
|
21900
|
+
/**
|
|
21901
|
+
* Returns a paginated list of edits made to a single question response on a booking, including the old and new values for each change; requires the \"read\" permission on \"bookings\".
|
|
21902
|
+
* @summary List a booking response\'s edit history
|
|
21903
|
+
* @param {BookingsResponsesApiGetBookingResponseChangesRequest} requestParameters Request parameters.
|
|
21904
|
+
* @param {*} [options] Override http request option.
|
|
21905
|
+
* @throws {RequiredError}
|
|
21906
|
+
*/
|
|
21907
|
+
getBookingResponseChanges(requestParameters: BookingsResponsesApiGetBookingResponseChangesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingResponseChanges200Response, any, {}>>;
|
|
21908
|
+
/**
|
|
21909
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
21910
|
+
* @summary Update a booking\'s question responses
|
|
21911
|
+
* @param {BookingsResponsesApiUpdateBookingResponsesRequest} requestParameters Request parameters.
|
|
21912
|
+
* @param {*} [options] Override http request option.
|
|
21913
|
+
* @throws {RequiredError}
|
|
21914
|
+
*/
|
|
21915
|
+
updateBookingResponses(requestParameters: BookingsResponsesApiUpdateBookingResponsesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccountInvitations200Response, any, {}>>;
|
|
21916
|
+
}
|
|
21735
21917
|
/**
|
|
21736
21918
|
* BookingsSpacesApi - axios parameter creator
|
|
21737
21919
|
*/
|
package/dist/esm/api.js
CHANGED
|
@@ -822,6 +822,10 @@ export var GetBookingPlaces200ResponseStatusEnum;
|
|
|
822
822
|
(function (GetBookingPlaces200ResponseStatusEnum) {
|
|
823
823
|
GetBookingPlaces200ResponseStatusEnum["Ok"] = "ok";
|
|
824
824
|
})(GetBookingPlaces200ResponseStatusEnum || (GetBookingPlaces200ResponseStatusEnum = {}));
|
|
825
|
+
export var GetBookingResponseChanges200ResponseStatusEnum;
|
|
826
|
+
(function (GetBookingResponseChanges200ResponseStatusEnum) {
|
|
827
|
+
GetBookingResponseChanges200ResponseStatusEnum["Ok"] = "ok";
|
|
828
|
+
})(GetBookingResponseChanges200ResponseStatusEnum || (GetBookingResponseChanges200ResponseStatusEnum = {}));
|
|
825
829
|
export var GetBookingResponses200ResponseStatusEnum;
|
|
826
830
|
(function (GetBookingResponses200ResponseStatusEnum) {
|
|
827
831
|
GetBookingResponses200ResponseStatusEnum["Ok"] = "ok";
|
|
@@ -16206,6 +16210,215 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
16206
16210
|
return BookingsQuestionsTranslationsApiFp(this.configuration).updateBookingSpaceQuestionTranslation(requestParameters.placeId, requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, requestParameters.bookingSpaceQuestionTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16207
16211
|
}
|
|
16208
16212
|
}
|
|
16213
|
+
/**
|
|
16214
|
+
* BookingsResponsesApi - axios parameter creator
|
|
16215
|
+
*/
|
|
16216
|
+
export const BookingsResponsesApiAxiosParamCreator = function (configuration) {
|
|
16217
|
+
return {
|
|
16218
|
+
/**
|
|
16219
|
+
* Returns a paginated list of edits made to a single question response on a booking, including the old and new values for each change; requires the \"read\" permission on \"bookings\".
|
|
16220
|
+
* @summary List a booking response\'s edit history
|
|
16221
|
+
* @param {string} bookingId The booking identifier
|
|
16222
|
+
* @param {string} questionId The question identifier
|
|
16223
|
+
* @param {number} [page] Page number
|
|
16224
|
+
* @param {number} [pageSize] Number of items per page
|
|
16225
|
+
* @param {string} [orderBy] Field to order by
|
|
16226
|
+
* @param {string} [search] Search query
|
|
16227
|
+
* @param {*} [options] Override http request option.
|
|
16228
|
+
* @throws {RequiredError}
|
|
16229
|
+
*/
|
|
16230
|
+
getBookingResponseChanges: (bookingId_1, questionId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [bookingId_1, questionId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (bookingId, questionId, page, pageSize, orderBy, search, options = {}) {
|
|
16231
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
16232
|
+
assertParamExists('getBookingResponseChanges', 'bookingId', bookingId);
|
|
16233
|
+
// verify required parameter 'questionId' is not null or undefined
|
|
16234
|
+
assertParamExists('getBookingResponseChanges', 'questionId', questionId);
|
|
16235
|
+
const localVarPath = `/bookings/{bookingId}/responses/{questionId}/changes`
|
|
16236
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)))
|
|
16237
|
+
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
16238
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16239
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16240
|
+
let baseOptions;
|
|
16241
|
+
if (configuration) {
|
|
16242
|
+
baseOptions = configuration.baseOptions;
|
|
16243
|
+
}
|
|
16244
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16245
|
+
const localVarHeaderParameter = {};
|
|
16246
|
+
const localVarQueryParameter = {};
|
|
16247
|
+
// authentication ApiKeyAuth required
|
|
16248
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
16249
|
+
// authentication OrganizationId required
|
|
16250
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
16251
|
+
if (page !== undefined) {
|
|
16252
|
+
localVarQueryParameter['page'] = page;
|
|
16253
|
+
}
|
|
16254
|
+
if (pageSize !== undefined) {
|
|
16255
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
16256
|
+
}
|
|
16257
|
+
if (orderBy !== undefined) {
|
|
16258
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
16259
|
+
}
|
|
16260
|
+
if (search !== undefined) {
|
|
16261
|
+
localVarQueryParameter['search'] = search;
|
|
16262
|
+
}
|
|
16263
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
16264
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16265
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16266
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16267
|
+
return {
|
|
16268
|
+
url: toPathString(localVarUrlObj),
|
|
16269
|
+
options: localVarRequestOptions,
|
|
16270
|
+
};
|
|
16271
|
+
}),
|
|
16272
|
+
/**
|
|
16273
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16274
|
+
* @summary Update a booking\'s question responses
|
|
16275
|
+
* @param {string} placeId The place identifier
|
|
16276
|
+
* @param {string} spaceId The space identifier
|
|
16277
|
+
* @param {string} bookingId The booking identifier
|
|
16278
|
+
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
16279
|
+
* @param {*} [options] Override http request option.
|
|
16280
|
+
* @throws {RequiredError}
|
|
16281
|
+
*/
|
|
16282
|
+
updateBookingResponses: (placeId_1, spaceId_1, bookingId_1, updateBookingResponsesInputs_1, ...args_1) => __awaiter(this, [placeId_1, spaceId_1, bookingId_1, updateBookingResponsesInputs_1, ...args_1], void 0, function* (placeId, spaceId, bookingId, updateBookingResponsesInputs, options = {}) {
|
|
16283
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
16284
|
+
assertParamExists('updateBookingResponses', 'placeId', placeId);
|
|
16285
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
16286
|
+
assertParamExists('updateBookingResponses', 'spaceId', spaceId);
|
|
16287
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
16288
|
+
assertParamExists('updateBookingResponses', 'bookingId', bookingId);
|
|
16289
|
+
// verify required parameter 'updateBookingResponsesInputs' is not null or undefined
|
|
16290
|
+
assertParamExists('updateBookingResponses', 'updateBookingResponsesInputs', updateBookingResponsesInputs);
|
|
16291
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/responses`
|
|
16292
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16293
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16294
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
16295
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16296
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16297
|
+
let baseOptions;
|
|
16298
|
+
if (configuration) {
|
|
16299
|
+
baseOptions = configuration.baseOptions;
|
|
16300
|
+
}
|
|
16301
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
16302
|
+
const localVarHeaderParameter = {};
|
|
16303
|
+
const localVarQueryParameter = {};
|
|
16304
|
+
// authentication ApiKeyAuth required
|
|
16305
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
16306
|
+
// authentication OrganizationId required
|
|
16307
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
16308
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16309
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
16310
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16311
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16312
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16313
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBookingResponsesInputs, localVarRequestOptions, configuration);
|
|
16314
|
+
return {
|
|
16315
|
+
url: toPathString(localVarUrlObj),
|
|
16316
|
+
options: localVarRequestOptions,
|
|
16317
|
+
};
|
|
16318
|
+
}),
|
|
16319
|
+
};
|
|
16320
|
+
};
|
|
16321
|
+
/**
|
|
16322
|
+
* BookingsResponsesApi - functional programming interface
|
|
16323
|
+
*/
|
|
16324
|
+
export const BookingsResponsesApiFp = function (configuration) {
|
|
16325
|
+
const localVarAxiosParamCreator = BookingsResponsesApiAxiosParamCreator(configuration);
|
|
16326
|
+
return {
|
|
16327
|
+
/**
|
|
16328
|
+
* Returns a paginated list of edits made to a single question response on a booking, including the old and new values for each change; requires the \"read\" permission on \"bookings\".
|
|
16329
|
+
* @summary List a booking response\'s edit history
|
|
16330
|
+
* @param {string} bookingId The booking identifier
|
|
16331
|
+
* @param {string} questionId The question identifier
|
|
16332
|
+
* @param {number} [page] Page number
|
|
16333
|
+
* @param {number} [pageSize] Number of items per page
|
|
16334
|
+
* @param {string} [orderBy] Field to order by
|
|
16335
|
+
* @param {string} [search] Search query
|
|
16336
|
+
* @param {*} [options] Override http request option.
|
|
16337
|
+
* @throws {RequiredError}
|
|
16338
|
+
*/
|
|
16339
|
+
getBookingResponseChanges(bookingId, questionId, page, pageSize, orderBy, search, options) {
|
|
16340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16341
|
+
var _a, _b, _c;
|
|
16342
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingResponseChanges(bookingId, questionId, page, pageSize, orderBy, search, options);
|
|
16343
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16344
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsResponsesApi.getBookingResponseChanges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16345
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16346
|
+
});
|
|
16347
|
+
},
|
|
16348
|
+
/**
|
|
16349
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16350
|
+
* @summary Update a booking\'s question responses
|
|
16351
|
+
* @param {string} placeId The place identifier
|
|
16352
|
+
* @param {string} spaceId The space identifier
|
|
16353
|
+
* @param {string} bookingId The booking identifier
|
|
16354
|
+
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
16355
|
+
* @param {*} [options] Override http request option.
|
|
16356
|
+
* @throws {RequiredError}
|
|
16357
|
+
*/
|
|
16358
|
+
updateBookingResponses(placeId, spaceId, bookingId, updateBookingResponsesInputs, options) {
|
|
16359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16360
|
+
var _a, _b, _c;
|
|
16361
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingResponses(placeId, spaceId, bookingId, updateBookingResponsesInputs, options);
|
|
16362
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16363
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsResponsesApi.updateBookingResponses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16364
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16365
|
+
});
|
|
16366
|
+
},
|
|
16367
|
+
};
|
|
16368
|
+
};
|
|
16369
|
+
/**
|
|
16370
|
+
* BookingsResponsesApi - factory interface
|
|
16371
|
+
*/
|
|
16372
|
+
export const BookingsResponsesApiFactory = function (configuration, basePath, axios) {
|
|
16373
|
+
const localVarFp = BookingsResponsesApiFp(configuration);
|
|
16374
|
+
return {
|
|
16375
|
+
/**
|
|
16376
|
+
* Returns a paginated list of edits made to a single question response on a booking, including the old and new values for each change; requires the \"read\" permission on \"bookings\".
|
|
16377
|
+
* @summary List a booking response\'s edit history
|
|
16378
|
+
* @param {BookingsResponsesApiGetBookingResponseChangesRequest} requestParameters Request parameters.
|
|
16379
|
+
* @param {*} [options] Override http request option.
|
|
16380
|
+
* @throws {RequiredError}
|
|
16381
|
+
*/
|
|
16382
|
+
getBookingResponseChanges(requestParameters, options) {
|
|
16383
|
+
return localVarFp.getBookingResponseChanges(requestParameters.bookingId, requestParameters.questionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
16384
|
+
},
|
|
16385
|
+
/**
|
|
16386
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16387
|
+
* @summary Update a booking\'s question responses
|
|
16388
|
+
* @param {BookingsResponsesApiUpdateBookingResponsesRequest} requestParameters Request parameters.
|
|
16389
|
+
* @param {*} [options] Override http request option.
|
|
16390
|
+
* @throws {RequiredError}
|
|
16391
|
+
*/
|
|
16392
|
+
updateBookingResponses(requestParameters, options) {
|
|
16393
|
+
return localVarFp.updateBookingResponses(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(axios, basePath));
|
|
16394
|
+
},
|
|
16395
|
+
};
|
|
16396
|
+
};
|
|
16397
|
+
/**
|
|
16398
|
+
* BookingsResponsesApi - object-oriented interface
|
|
16399
|
+
*/
|
|
16400
|
+
export class BookingsResponsesApi extends BaseAPI {
|
|
16401
|
+
/**
|
|
16402
|
+
* Returns a paginated list of edits made to a single question response on a booking, including the old and new values for each change; requires the \"read\" permission on \"bookings\".
|
|
16403
|
+
* @summary List a booking response\'s edit history
|
|
16404
|
+
* @param {BookingsResponsesApiGetBookingResponseChangesRequest} requestParameters Request parameters.
|
|
16405
|
+
* @param {*} [options] Override http request option.
|
|
16406
|
+
* @throws {RequiredError}
|
|
16407
|
+
*/
|
|
16408
|
+
getBookingResponseChanges(requestParameters, options) {
|
|
16409
|
+
return BookingsResponsesApiFp(this.configuration).getBookingResponseChanges(requestParameters.bookingId, requestParameters.questionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
16410
|
+
}
|
|
16411
|
+
/**
|
|
16412
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16413
|
+
* @summary Update a booking\'s question responses
|
|
16414
|
+
* @param {BookingsResponsesApiUpdateBookingResponsesRequest} requestParameters Request parameters.
|
|
16415
|
+
* @param {*} [options] Override http request option.
|
|
16416
|
+
* @throws {RequiredError}
|
|
16417
|
+
*/
|
|
16418
|
+
updateBookingResponses(requestParameters, options) {
|
|
16419
|
+
return BookingsResponsesApiFp(this.configuration).updateBookingResponses(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16420
|
+
}
|
|
16421
|
+
}
|
|
16209
16422
|
/**
|
|
16210
16423
|
* BookingsSpacesApi - axios parameter creator
|
|
16211
16424
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# BaseBookingQuestionResponseChange
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**newValue** | **string** | | [default to undefined]
|
|
10
|
+
**oldValue** | **string** | | [default to undefined]
|
|
11
|
+
**questionId** | **string** | | [default to undefined]
|
|
12
|
+
**responseId** | **string** | | [default to undefined]
|
|
13
|
+
**userId** | **string** | | [default to undefined]
|
|
14
|
+
**createdAt** | **string** | | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { BaseBookingQuestionResponseChange } from '@connectedxm/admin-sdk';
|
|
20
|
+
|
|
21
|
+
const instance: BaseBookingQuestionResponseChange = {
|
|
22
|
+
id,
|
|
23
|
+
newValue,
|
|
24
|
+
oldValue,
|
|
25
|
+
questionId,
|
|
26
|
+
responseId,
|
|
27
|
+
userId,
|
|
28
|
+
createdAt,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**question** | [**BaseBookingSpaceQuestion**](BaseBookingSpaceQuestion.md) | | [default to undefined]
|
|
12
12
|
**fileId** | **number** | | [default to undefined]
|
|
13
13
|
**file** | [**BaseFile**](BaseFile.md) | | [default to undefined]
|
|
14
|
+
**changeLogs** | [**Array<BaseBookingQuestionResponseChange>**](BaseBookingQuestionResponseChange.md) | | [default to undefined]
|
|
14
15
|
**createdAt** | **string** | | [default to undefined]
|
|
15
16
|
**updatedAt** | **string** | | [default to undefined]
|
|
16
17
|
|
|
@@ -26,6 +27,7 @@ const instance: BookingQuestionResponse = {
|
|
|
26
27
|
question,
|
|
27
28
|
fileId,
|
|
28
29
|
file,
|
|
30
|
+
changeLogs,
|
|
29
31
|
createdAt,
|
|
30
32
|
updatedAt,
|
|
31
33
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# BookingQuestionResponseChange
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**newValue** | **string** | | [default to undefined]
|
|
10
|
+
**oldValue** | **string** | | [default to undefined]
|
|
11
|
+
**questionId** | **string** | | [default to undefined]
|
|
12
|
+
**responseId** | **string** | | [default to undefined]
|
|
13
|
+
**userId** | **string** | | [default to undefined]
|
|
14
|
+
**createdAt** | **string** | | [default to undefined]
|
|
15
|
+
**response** | [**BaseBookingQuestionResponse**](BaseBookingQuestionResponse.md) | | [default to undefined]
|
|
16
|
+
**user** | [**BaseUser**](BaseUser.md) | | [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { BookingQuestionResponseChange } from '@connectedxm/admin-sdk';
|
|
22
|
+
|
|
23
|
+
const instance: BookingQuestionResponseChange = {
|
|
24
|
+
id,
|
|
25
|
+
newValue,
|
|
26
|
+
oldValue,
|
|
27
|
+
questionId,
|
|
28
|
+
responseId,
|
|
29
|
+
userId,
|
|
30
|
+
createdAt,
|
|
31
|
+
response,
|
|
32
|
+
user,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|