@connectedxm/admin-sdk 7.9.3 → 7.9.5

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/api.ts CHANGED
@@ -1006,6 +1006,15 @@ export interface BaseBookingQuestionResponse {
1006
1006
  'questionId': string;
1007
1007
  'question': BaseBookingSpaceQuestion;
1008
1008
  }
1009
+ export interface BaseBookingQuestionResponseChange {
1010
+ 'id': string;
1011
+ 'newValue': string;
1012
+ 'oldValue': string;
1013
+ 'questionId': string;
1014
+ 'responseId': string;
1015
+ 'userId': string | null;
1016
+ 'createdAt': string;
1017
+ }
1009
1018
  export interface BaseBookingSpace {
1010
1019
  'id': string;
1011
1020
  'name': string;
@@ -1994,6 +2003,7 @@ export interface BaseOrganizationModuleSettingsTranslation {
1994
2003
  export interface BasePassAddOn {
1995
2004
  'addOnId': string;
1996
2005
  'addOn': BaseEventAddOn;
2006
+ 'fulfilledAt': string | null;
1997
2007
  'pass': BasePassAddOnPass;
1998
2008
  'createdAt': string;
1999
2009
  }
@@ -2828,9 +2838,21 @@ export interface BookingQuestionResponse {
2828
2838
  'question': BaseBookingSpaceQuestion;
2829
2839
  'fileId': number | null;
2830
2840
  'file': BaseFile | null;
2841
+ 'changeLogs': Array<BaseBookingQuestionResponseChange>;
2831
2842
  'createdAt': string;
2832
2843
  'updatedAt': string;
2833
2844
  }
2845
+ export interface BookingQuestionResponseChange {
2846
+ 'id': string;
2847
+ 'newValue': string;
2848
+ 'oldValue': string;
2849
+ 'questionId': string;
2850
+ 'responseId': string;
2851
+ 'userId': string | null;
2852
+ 'createdAt': string;
2853
+ 'response': BaseBookingQuestionResponse;
2854
+ 'user': BaseUser | null;
2855
+ }
2834
2856
  export interface BookingSlot {
2835
2857
  'time': string;
2836
2858
  'supply': number | null;
@@ -6704,6 +6726,16 @@ export interface FileUpdateInputs {
6704
6726
  }
6705
6727
 
6706
6728
 
6729
+ export interface FulfillEventPassAddOn200Response {
6730
+ 'status': FulfillEventPassAddOn200ResponseStatusEnum;
6731
+ 'message': string;
6732
+ 'data': PassAddOn;
6733
+ }
6734
+
6735
+ export enum FulfillEventPassAddOn200ResponseStatusEnum {
6736
+ Ok = 'ok'
6737
+ }
6738
+
6707
6739
  export interface GetAPILog200Response {
6708
6740
  'status': GetAPILog200ResponseStatusEnum;
6709
6741
  'message': string;
@@ -7103,6 +7135,17 @@ export enum GetBookingPlaces200ResponseStatusEnum {
7103
7135
  Ok = 'ok'
7104
7136
  }
7105
7137
 
7138
+ export interface GetBookingResponseChanges200Response {
7139
+ 'status': GetBookingResponseChanges200ResponseStatusEnum;
7140
+ 'message': string;
7141
+ 'data': Array<BookingQuestionResponseChange>;
7142
+ 'count'?: number;
7143
+ }
7144
+
7145
+ export enum GetBookingResponseChanges200ResponseStatusEnum {
7146
+ Ok = 'ok'
7147
+ }
7148
+
7106
7149
  export interface GetBookingResponses200Response {
7107
7150
  'status': GetBookingResponses200ResponseStatusEnum;
7108
7151
  'message': string;
@@ -11555,6 +11598,7 @@ export enum PageType {
11555
11598
  export interface PassAddOn {
11556
11599
  'addOnId': string;
11557
11600
  'addOn': BaseEventAddOn;
11601
+ 'fulfilledAt': string | null;
11558
11602
  'createdAt': string;
11559
11603
  'pass': BaseEventPass;
11560
11604
  'updatedAt': string;
@@ -14003,6 +14047,9 @@ export interface TriggerUpdateInputs {
14003
14047
  'code'?: string | null;
14004
14048
  'enabled'?: boolean;
14005
14049
  }
14050
+ export interface UpdateBookingResponsesInputs {
14051
+ 'questions': Array<Question>;
14052
+ }
14006
14053
  export interface UpdateBookingSpaceQuestionChoiceTranslation200Response {
14007
14054
  'status': UpdateBookingSpaceQuestionChoiceTranslation200ResponseStatusEnum;
14008
14055
  'message': string;
@@ -32069,6 +32116,289 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
32069
32116
 
32070
32117
 
32071
32118
 
32119
+ /**
32120
+ * BookingsResponsesApi - axios parameter creator
32121
+ */
32122
+ export const BookingsResponsesApiAxiosParamCreator = function (configuration?: Configuration) {
32123
+ return {
32124
+ /**
32125
+ * 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\".
32126
+ * @summary List a booking response\'s edit history
32127
+ * @param {string} bookingId The booking identifier
32128
+ * @param {string} questionId The question identifier
32129
+ * @param {number} [page] Page number
32130
+ * @param {number} [pageSize] Number of items per page
32131
+ * @param {string} [orderBy] Field to order by
32132
+ * @param {string} [search] Search query
32133
+ * @param {*} [options] Override http request option.
32134
+ * @throws {RequiredError}
32135
+ */
32136
+ getBookingResponseChanges: async (bookingId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32137
+ // verify required parameter 'bookingId' is not null or undefined
32138
+ assertParamExists('getBookingResponseChanges', 'bookingId', bookingId)
32139
+ // verify required parameter 'questionId' is not null or undefined
32140
+ assertParamExists('getBookingResponseChanges', 'questionId', questionId)
32141
+ const localVarPath = `/bookings/{bookingId}/responses/{questionId}/changes`
32142
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)))
32143
+ .replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
32144
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32145
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32146
+ let baseOptions;
32147
+ if (configuration) {
32148
+ baseOptions = configuration.baseOptions;
32149
+ }
32150
+
32151
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32152
+ const localVarHeaderParameter = {} as any;
32153
+ const localVarQueryParameter = {} as any;
32154
+
32155
+ // authentication ApiKeyAuth required
32156
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
32157
+
32158
+ // authentication OrganizationId required
32159
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
32160
+
32161
+ if (page !== undefined) {
32162
+ localVarQueryParameter['page'] = page;
32163
+ }
32164
+
32165
+ if (pageSize !== undefined) {
32166
+ localVarQueryParameter['pageSize'] = pageSize;
32167
+ }
32168
+
32169
+ if (orderBy !== undefined) {
32170
+ localVarQueryParameter['orderBy'] = orderBy;
32171
+ }
32172
+
32173
+ if (search !== undefined) {
32174
+ localVarQueryParameter['search'] = search;
32175
+ }
32176
+
32177
+ localVarHeaderParameter['Accept'] = 'application/json';
32178
+
32179
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32180
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32181
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32182
+
32183
+ return {
32184
+ url: toPathString(localVarUrlObj),
32185
+ options: localVarRequestOptions,
32186
+ };
32187
+ },
32188
+ /**
32189
+ * Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
32190
+ * @summary Update a booking\'s question responses
32191
+ * @param {string} placeId The place identifier
32192
+ * @param {string} spaceId The space identifier
32193
+ * @param {string} bookingId The booking identifier
32194
+ * @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
32195
+ * @param {*} [options] Override http request option.
32196
+ * @throws {RequiredError}
32197
+ */
32198
+ updateBookingResponses: async (placeId: string, spaceId: string, bookingId: string, updateBookingResponsesInputs: UpdateBookingResponsesInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32199
+ // verify required parameter 'placeId' is not null or undefined
32200
+ assertParamExists('updateBookingResponses', 'placeId', placeId)
32201
+ // verify required parameter 'spaceId' is not null or undefined
32202
+ assertParamExists('updateBookingResponses', 'spaceId', spaceId)
32203
+ // verify required parameter 'bookingId' is not null or undefined
32204
+ assertParamExists('updateBookingResponses', 'bookingId', bookingId)
32205
+ // verify required parameter 'updateBookingResponsesInputs' is not null or undefined
32206
+ assertParamExists('updateBookingResponses', 'updateBookingResponsesInputs', updateBookingResponsesInputs)
32207
+ const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/responses`
32208
+ .replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
32209
+ .replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
32210
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
32211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32212
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32213
+ let baseOptions;
32214
+ if (configuration) {
32215
+ baseOptions = configuration.baseOptions;
32216
+ }
32217
+
32218
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
32219
+ const localVarHeaderParameter = {} as any;
32220
+ const localVarQueryParameter = {} as any;
32221
+
32222
+ // authentication ApiKeyAuth required
32223
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
32224
+
32225
+ // authentication OrganizationId required
32226
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
32227
+
32228
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32229
+ localVarHeaderParameter['Accept'] = 'application/json';
32230
+
32231
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32232
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32233
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32234
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBookingResponsesInputs, localVarRequestOptions, configuration)
32235
+
32236
+ return {
32237
+ url: toPathString(localVarUrlObj),
32238
+ options: localVarRequestOptions,
32239
+ };
32240
+ },
32241
+ }
32242
+ };
32243
+
32244
+ /**
32245
+ * BookingsResponsesApi - functional programming interface
32246
+ */
32247
+ export const BookingsResponsesApiFp = function(configuration?: Configuration) {
32248
+ const localVarAxiosParamCreator = BookingsResponsesApiAxiosParamCreator(configuration)
32249
+ return {
32250
+ /**
32251
+ * 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\".
32252
+ * @summary List a booking response\'s edit history
32253
+ * @param {string} bookingId The booking identifier
32254
+ * @param {string} questionId The question identifier
32255
+ * @param {number} [page] Page number
32256
+ * @param {number} [pageSize] Number of items per page
32257
+ * @param {string} [orderBy] Field to order by
32258
+ * @param {string} [search] Search query
32259
+ * @param {*} [options] Override http request option.
32260
+ * @throws {RequiredError}
32261
+ */
32262
+ async getBookingResponseChanges(bookingId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingResponseChanges200Response>> {
32263
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingResponseChanges(bookingId, questionId, page, pageSize, orderBy, search, options);
32264
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32265
+ const localVarOperationServerBasePath = operationServerMap['BookingsResponsesApi.getBookingResponseChanges']?.[localVarOperationServerIndex]?.url;
32266
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32267
+ },
32268
+ /**
32269
+ * Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
32270
+ * @summary Update a booking\'s question responses
32271
+ * @param {string} placeId The place identifier
32272
+ * @param {string} spaceId The space identifier
32273
+ * @param {string} bookingId The booking identifier
32274
+ * @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
32275
+ * @param {*} [options] Override http request option.
32276
+ * @throws {RequiredError}
32277
+ */
32278
+ async updateBookingResponses(placeId: string, spaceId: string, bookingId: string, updateBookingResponsesInputs: UpdateBookingResponsesInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
32279
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingResponses(placeId, spaceId, bookingId, updateBookingResponsesInputs, options);
32280
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32281
+ const localVarOperationServerBasePath = operationServerMap['BookingsResponsesApi.updateBookingResponses']?.[localVarOperationServerIndex]?.url;
32282
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32283
+ },
32284
+ }
32285
+ };
32286
+
32287
+ /**
32288
+ * BookingsResponsesApi - factory interface
32289
+ */
32290
+ export const BookingsResponsesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
32291
+ const localVarFp = BookingsResponsesApiFp(configuration)
32292
+ return {
32293
+ /**
32294
+ * 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\".
32295
+ * @summary List a booking response\'s edit history
32296
+ * @param {BookingsResponsesApiGetBookingResponseChangesRequest} requestParameters Request parameters.
32297
+ * @param {*} [options] Override http request option.
32298
+ * @throws {RequiredError}
32299
+ */
32300
+ getBookingResponseChanges(requestParameters: BookingsResponsesApiGetBookingResponseChangesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingResponseChanges200Response> {
32301
+ return localVarFp.getBookingResponseChanges(requestParameters.bookingId, requestParameters.questionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
32302
+ },
32303
+ /**
32304
+ * Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
32305
+ * @summary Update a booking\'s question responses
32306
+ * @param {BookingsResponsesApiUpdateBookingResponsesRequest} requestParameters Request parameters.
32307
+ * @param {*} [options] Override http request option.
32308
+ * @throws {RequiredError}
32309
+ */
32310
+ updateBookingResponses(requestParameters: BookingsResponsesApiUpdateBookingResponsesRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
32311
+ return localVarFp.updateBookingResponses(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(axios, basePath));
32312
+ },
32313
+ };
32314
+ };
32315
+
32316
+ /**
32317
+ * Request parameters for getBookingResponseChanges operation in BookingsResponsesApi.
32318
+ */
32319
+ export interface BookingsResponsesApiGetBookingResponseChangesRequest {
32320
+ /**
32321
+ * The booking identifier
32322
+ */
32323
+ readonly bookingId: string
32324
+
32325
+ /**
32326
+ * The question identifier
32327
+ */
32328
+ readonly questionId: string
32329
+
32330
+ /**
32331
+ * Page number
32332
+ */
32333
+ readonly page?: number
32334
+
32335
+ /**
32336
+ * Number of items per page
32337
+ */
32338
+ readonly pageSize?: number
32339
+
32340
+ /**
32341
+ * Field to order by
32342
+ */
32343
+ readonly orderBy?: string
32344
+
32345
+ /**
32346
+ * Search query
32347
+ */
32348
+ readonly search?: string
32349
+ }
32350
+
32351
+ /**
32352
+ * Request parameters for updateBookingResponses operation in BookingsResponsesApi.
32353
+ */
32354
+ export interface BookingsResponsesApiUpdateBookingResponsesRequest {
32355
+ /**
32356
+ * The place identifier
32357
+ */
32358
+ readonly placeId: string
32359
+
32360
+ /**
32361
+ * The space identifier
32362
+ */
32363
+ readonly spaceId: string
32364
+
32365
+ /**
32366
+ * The booking identifier
32367
+ */
32368
+ readonly bookingId: string
32369
+
32370
+ readonly updateBookingResponsesInputs: UpdateBookingResponsesInputs
32371
+ }
32372
+
32373
+ /**
32374
+ * BookingsResponsesApi - object-oriented interface
32375
+ */
32376
+ export class BookingsResponsesApi extends BaseAPI {
32377
+ /**
32378
+ * 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\".
32379
+ * @summary List a booking response\'s edit history
32380
+ * @param {BookingsResponsesApiGetBookingResponseChangesRequest} requestParameters Request parameters.
32381
+ * @param {*} [options] Override http request option.
32382
+ * @throws {RequiredError}
32383
+ */
32384
+ public getBookingResponseChanges(requestParameters: BookingsResponsesApiGetBookingResponseChangesRequest, options?: RawAxiosRequestConfig) {
32385
+ 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));
32386
+ }
32387
+
32388
+ /**
32389
+ * Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
32390
+ * @summary Update a booking\'s question responses
32391
+ * @param {BookingsResponsesApiUpdateBookingResponsesRequest} requestParameters Request parameters.
32392
+ * @param {*} [options] Override http request option.
32393
+ * @throws {RequiredError}
32394
+ */
32395
+ public updateBookingResponses(requestParameters: BookingsResponsesApiUpdateBookingResponsesRequest, options?: RawAxiosRequestConfig) {
32396
+ return BookingsResponsesApiFp(this.configuration).updateBookingResponses(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(this.axios, this.basePath));
32397
+ }
32398
+ }
32399
+
32400
+
32401
+
32072
32402
  /**
32073
32403
  * BookingsSpacesApi - axios parameter creator
32074
32404
  */
@@ -66255,6 +66585,54 @@ export const EventsPassesAddonsApiAxiosParamCreator = function (configuration?:
66255
66585
  options: localVarRequestOptions,
66256
66586
  };
66257
66587
  },
66588
+ /**
66589
+ * Marks the given pass add-on as fulfilled, requires read permission on events and read/update permission on attendees.
66590
+ * @summary Fulfill an add-on on an attendee\'s pass
66591
+ * @param {string} eventId The event identifier
66592
+ * @param {string} passId The pass identifier
66593
+ * @param {string} addOnId The addOn identifier
66594
+ * @param {*} [options] Override http request option.
66595
+ * @throws {RequiredError}
66596
+ */
66597
+ fulfillEventPassAddOn: async (eventId: string, passId: string, addOnId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
66598
+ // verify required parameter 'eventId' is not null or undefined
66599
+ assertParamExists('fulfillEventPassAddOn', 'eventId', eventId)
66600
+ // verify required parameter 'passId' is not null or undefined
66601
+ assertParamExists('fulfillEventPassAddOn', 'passId', passId)
66602
+ // verify required parameter 'addOnId' is not null or undefined
66603
+ assertParamExists('fulfillEventPassAddOn', 'addOnId', addOnId)
66604
+ const localVarPath = `/events/{eventId}/passes/{passId}/addOns/{addOnId}/fulfill`
66605
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
66606
+ .replace(`{${"passId"}}`, encodeURIComponent(String(passId)))
66607
+ .replace(`{${"addOnId"}}`, encodeURIComponent(String(addOnId)));
66608
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
66609
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
66610
+ let baseOptions;
66611
+ if (configuration) {
66612
+ baseOptions = configuration.baseOptions;
66613
+ }
66614
+
66615
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
66616
+ const localVarHeaderParameter = {} as any;
66617
+ const localVarQueryParameter = {} as any;
66618
+
66619
+ // authentication ApiKeyAuth required
66620
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
66621
+
66622
+ // authentication OrganizationId required
66623
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
66624
+
66625
+ localVarHeaderParameter['Accept'] = 'application/json';
66626
+
66627
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
66628
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66629
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
66630
+
66631
+ return {
66632
+ url: toPathString(localVarUrlObj),
66633
+ options: localVarRequestOptions,
66634
+ };
66635
+ },
66258
66636
  /**
66259
66637
  * Returns a paginated list of add-ons purchased with the specified event pass, supporting search and sorting; requires the \"read\" permission on both the \"events\" and \"attendees\" modules.
66260
66638
  * @summary List an event pass\'s add-ons
@@ -66362,6 +66740,54 @@ export const EventsPassesAddonsApiAxiosParamCreator = function (configuration?:
66362
66740
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66363
66741
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
66364
66742
 
66743
+ return {
66744
+ url: toPathString(localVarUrlObj),
66745
+ options: localVarRequestOptions,
66746
+ };
66747
+ },
66748
+ /**
66749
+ * Reverses a previous fulfillment of the given pass add-on, requires read permission on events and read/update permission on attendees.
66750
+ * @summary Undo an add-on fulfillment
66751
+ * @param {string} eventId The event identifier
66752
+ * @param {string} passId The pass identifier
66753
+ * @param {string} addOnId The addOn identifier
66754
+ * @param {*} [options] Override http request option.
66755
+ * @throws {RequiredError}
66756
+ */
66757
+ unfulfillEventPassAddOn: async (eventId: string, passId: string, addOnId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
66758
+ // verify required parameter 'eventId' is not null or undefined
66759
+ assertParamExists('unfulfillEventPassAddOn', 'eventId', eventId)
66760
+ // verify required parameter 'passId' is not null or undefined
66761
+ assertParamExists('unfulfillEventPassAddOn', 'passId', passId)
66762
+ // verify required parameter 'addOnId' is not null or undefined
66763
+ assertParamExists('unfulfillEventPassAddOn', 'addOnId', addOnId)
66764
+ const localVarPath = `/events/{eventId}/passes/{passId}/addOns/{addOnId}/undo`
66765
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
66766
+ .replace(`{${"passId"}}`, encodeURIComponent(String(passId)))
66767
+ .replace(`{${"addOnId"}}`, encodeURIComponent(String(addOnId)));
66768
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
66769
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
66770
+ let baseOptions;
66771
+ if (configuration) {
66772
+ baseOptions = configuration.baseOptions;
66773
+ }
66774
+
66775
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
66776
+ const localVarHeaderParameter = {} as any;
66777
+ const localVarQueryParameter = {} as any;
66778
+
66779
+ // authentication ApiKeyAuth required
66780
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
66781
+
66782
+ // authentication OrganizationId required
66783
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
66784
+
66785
+ localVarHeaderParameter['Accept'] = 'application/json';
66786
+
66787
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
66788
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66789
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
66790
+
66365
66791
  return {
66366
66792
  url: toPathString(localVarUrlObj),
66367
66793
  options: localVarRequestOptions,
@@ -66391,6 +66817,21 @@ export const EventsPassesAddonsApiFp = function(configuration?: Configuration) {
66391
66817
  const localVarOperationServerBasePath = operationServerMap['EventsPassesAddonsApi.addEventPassAddOn']?.[localVarOperationServerIndex]?.url;
66392
66818
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
66393
66819
  },
66820
+ /**
66821
+ * Marks the given pass add-on as fulfilled, requires read permission on events and read/update permission on attendees.
66822
+ * @summary Fulfill an add-on on an attendee\'s pass
66823
+ * @param {string} eventId The event identifier
66824
+ * @param {string} passId The pass identifier
66825
+ * @param {string} addOnId The addOn identifier
66826
+ * @param {*} [options] Override http request option.
66827
+ * @throws {RequiredError}
66828
+ */
66829
+ async fulfillEventPassAddOn(eventId: string, passId: string, addOnId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FulfillEventPassAddOn200Response>> {
66830
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fulfillEventPassAddOn(eventId, passId, addOnId, options);
66831
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
66832
+ const localVarOperationServerBasePath = operationServerMap['EventsPassesAddonsApi.fulfillEventPassAddOn']?.[localVarOperationServerIndex]?.url;
66833
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
66834
+ },
66394
66835
  /**
66395
66836
  * Returns a paginated list of add-ons purchased with the specified event pass, supporting search and sorting; requires the \"read\" permission on both the \"events\" and \"attendees\" modules.
66396
66837
  * @summary List an event pass\'s add-ons
@@ -66424,6 +66865,21 @@ export const EventsPassesAddonsApiFp = function(configuration?: Configuration) {
66424
66865
  const localVarOperationServerBasePath = operationServerMap['EventsPassesAddonsApi.removeEventPassAddOn']?.[localVarOperationServerIndex]?.url;
66425
66866
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
66426
66867
  },
66868
+ /**
66869
+ * Reverses a previous fulfillment of the given pass add-on, requires read permission on events and read/update permission on attendees.
66870
+ * @summary Undo an add-on fulfillment
66871
+ * @param {string} eventId The event identifier
66872
+ * @param {string} passId The pass identifier
66873
+ * @param {string} addOnId The addOn identifier
66874
+ * @param {*} [options] Override http request option.
66875
+ * @throws {RequiredError}
66876
+ */
66877
+ async unfulfillEventPassAddOn(eventId: string, passId: string, addOnId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FulfillEventPassAddOn200Response>> {
66878
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unfulfillEventPassAddOn(eventId, passId, addOnId, options);
66879
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
66880
+ const localVarOperationServerBasePath = operationServerMap['EventsPassesAddonsApi.unfulfillEventPassAddOn']?.[localVarOperationServerIndex]?.url;
66881
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
66882
+ },
66427
66883
  }
66428
66884
  };
66429
66885
 
@@ -66443,6 +66899,16 @@ export const EventsPassesAddonsApiFactory = function (configuration?: Configurat
66443
66899
  addEventPassAddOn(requestParameters: EventsPassesAddonsApiAddEventPassAddOnRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventPass200Response> {
66444
66900
  return localVarFp.addEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(axios, basePath));
66445
66901
  },
66902
+ /**
66903
+ * Marks the given pass add-on as fulfilled, requires read permission on events and read/update permission on attendees.
66904
+ * @summary Fulfill an add-on on an attendee\'s pass
66905
+ * @param {EventsPassesAddonsApiFulfillEventPassAddOnRequest} requestParameters Request parameters.
66906
+ * @param {*} [options] Override http request option.
66907
+ * @throws {RequiredError}
66908
+ */
66909
+ fulfillEventPassAddOn(requestParameters: EventsPassesAddonsApiFulfillEventPassAddOnRequest, options?: RawAxiosRequestConfig): AxiosPromise<FulfillEventPassAddOn200Response> {
66910
+ return localVarFp.fulfillEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(axios, basePath));
66911
+ },
66446
66912
  /**
66447
66913
  * Returns a paginated list of add-ons purchased with the specified event pass, supporting search and sorting; requires the \"read\" permission on both the \"events\" and \"attendees\" modules.
66448
66914
  * @summary List an event pass\'s add-ons
@@ -66463,6 +66929,16 @@ export const EventsPassesAddonsApiFactory = function (configuration?: Configurat
66463
66929
  removeEventPassAddOn(requestParameters: EventsPassesAddonsApiRemoveEventPassAddOnRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventPass200Response> {
66464
66930
  return localVarFp.removeEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(axios, basePath));
66465
66931
  },
66932
+ /**
66933
+ * Reverses a previous fulfillment of the given pass add-on, requires read permission on events and read/update permission on attendees.
66934
+ * @summary Undo an add-on fulfillment
66935
+ * @param {EventsPassesAddonsApiUnfulfillEventPassAddOnRequest} requestParameters Request parameters.
66936
+ * @param {*} [options] Override http request option.
66937
+ * @throws {RequiredError}
66938
+ */
66939
+ unfulfillEventPassAddOn(requestParameters: EventsPassesAddonsApiUnfulfillEventPassAddOnRequest, options?: RawAxiosRequestConfig): AxiosPromise<FulfillEventPassAddOn200Response> {
66940
+ return localVarFp.unfulfillEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(axios, basePath));
66941
+ },
66466
66942
  };
66467
66943
  };
66468
66944
 
@@ -66486,6 +66962,26 @@ export interface EventsPassesAddonsApiAddEventPassAddOnRequest {
66486
66962
  readonly addOnId: string
66487
66963
  }
66488
66964
 
66965
+ /**
66966
+ * Request parameters for fulfillEventPassAddOn operation in EventsPassesAddonsApi.
66967
+ */
66968
+ export interface EventsPassesAddonsApiFulfillEventPassAddOnRequest {
66969
+ /**
66970
+ * The event identifier
66971
+ */
66972
+ readonly eventId: string
66973
+
66974
+ /**
66975
+ * The pass identifier
66976
+ */
66977
+ readonly passId: string
66978
+
66979
+ /**
66980
+ * The addOn identifier
66981
+ */
66982
+ readonly addOnId: string
66983
+ }
66984
+
66489
66985
  /**
66490
66986
  * Request parameters for getEventPassAddOns operation in EventsPassesAddonsApi.
66491
66987
  */
@@ -66541,6 +67037,26 @@ export interface EventsPassesAddonsApiRemoveEventPassAddOnRequest {
66541
67037
  readonly addOnId: string
66542
67038
  }
66543
67039
 
67040
+ /**
67041
+ * Request parameters for unfulfillEventPassAddOn operation in EventsPassesAddonsApi.
67042
+ */
67043
+ export interface EventsPassesAddonsApiUnfulfillEventPassAddOnRequest {
67044
+ /**
67045
+ * The event identifier
67046
+ */
67047
+ readonly eventId: string
67048
+
67049
+ /**
67050
+ * The pass identifier
67051
+ */
67052
+ readonly passId: string
67053
+
67054
+ /**
67055
+ * The addOn identifier
67056
+ */
67057
+ readonly addOnId: string
67058
+ }
67059
+
66544
67060
  /**
66545
67061
  * EventsPassesAddonsApi - object-oriented interface
66546
67062
  */
@@ -66556,6 +67072,17 @@ export class EventsPassesAddonsApi extends BaseAPI {
66556
67072
  return EventsPassesAddonsApiFp(this.configuration).addEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(this.axios, this.basePath));
66557
67073
  }
66558
67074
 
67075
+ /**
67076
+ * Marks the given pass add-on as fulfilled, requires read permission on events and read/update permission on attendees.
67077
+ * @summary Fulfill an add-on on an attendee\'s pass
67078
+ * @param {EventsPassesAddonsApiFulfillEventPassAddOnRequest} requestParameters Request parameters.
67079
+ * @param {*} [options] Override http request option.
67080
+ * @throws {RequiredError}
67081
+ */
67082
+ public fulfillEventPassAddOn(requestParameters: EventsPassesAddonsApiFulfillEventPassAddOnRequest, options?: RawAxiosRequestConfig) {
67083
+ return EventsPassesAddonsApiFp(this.configuration).fulfillEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(this.axios, this.basePath));
67084
+ }
67085
+
66559
67086
  /**
66560
67087
  * Returns a paginated list of add-ons purchased with the specified event pass, supporting search and sorting; requires the \"read\" permission on both the \"events\" and \"attendees\" modules.
66561
67088
  * @summary List an event pass\'s add-ons
@@ -66577,6 +67104,17 @@ export class EventsPassesAddonsApi extends BaseAPI {
66577
67104
  public removeEventPassAddOn(requestParameters: EventsPassesAddonsApiRemoveEventPassAddOnRequest, options?: RawAxiosRequestConfig) {
66578
67105
  return EventsPassesAddonsApiFp(this.configuration).removeEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(this.axios, this.basePath));
66579
67106
  }
67107
+
67108
+ /**
67109
+ * Reverses a previous fulfillment of the given pass add-on, requires read permission on events and read/update permission on attendees.
67110
+ * @summary Undo an add-on fulfillment
67111
+ * @param {EventsPassesAddonsApiUnfulfillEventPassAddOnRequest} requestParameters Request parameters.
67112
+ * @param {*} [options] Override http request option.
67113
+ * @throws {RequiredError}
67114
+ */
67115
+ public unfulfillEventPassAddOn(requestParameters: EventsPassesAddonsApiUnfulfillEventPassAddOnRequest, options?: RawAxiosRequestConfig) {
67116
+ return EventsPassesAddonsApiFp(this.configuration).unfulfillEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(this.axios, this.basePath));
67117
+ }
66580
67118
  }
66581
67119
 
66582
67120