@connectedxm/admin-sdk 7.9.3 → 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/dist/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;
@@ -12476,6 +12506,9 @@ export interface TriggerUpdateInputs {
12476
12506
  'code'?: string | null;
12477
12507
  'enabled'?: boolean;
12478
12508
  }
12509
+ export interface UpdateBookingResponsesInputs {
12510
+ 'questions': Array<Question>;
12511
+ }
12479
12512
  export interface UpdateBookingSpaceQuestionChoiceTranslation200Response {
12480
12513
  'status': UpdateBookingSpaceQuestionChoiceTranslation200ResponseStatusEnum;
12481
12514
  'message': string;
@@ -21734,6 +21767,153 @@ export declare class BookingsQuestionsTranslationsApi extends BaseAPI {
21734
21767
  */
21735
21768
  updateBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiUpdateBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBookingSpaceQuestionTranslation200Response, any, {}>>;
21736
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
+ }
21737
21917
  /**
21738
21918
  * BookingsSpacesApi - axios parameter creator
21739
21919
  */