@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/.openapi-generator/FILES +6 -0
- package/AdminApi.ts +3 -0
- package/README.md +9 -0
- package/api.ts +538 -0
- package/dist/AdminApi.d.ts +2 -1
- package/dist/AdminApi.js +1 -0
- package/dist/api.d.ts +296 -0
- package/dist/api.js +407 -26
- package/dist/esm/AdminApi.d.ts +2 -1
- package/dist/esm/AdminApi.js +2 -1
- package/dist/esm/api.d.ts +296 -0
- package/dist/esm/api.js +377 -0
- package/docs/BaseBookingQuestionResponseChange.md +32 -0
- package/docs/BasePassAddOn.md +2 -0
- package/docs/BookingQuestionResponse.md +2 -0
- package/docs/BookingQuestionResponseChange.md +36 -0
- package/docs/BookingsResponsesApi.md +136 -0
- package/docs/EventsPassesAddonsApi.md +116 -0
- package/docs/FulfillEventPassAddOn200Response.md +24 -0
- package/docs/GetBookingResponseChanges200Response.md +26 -0
- package/docs/PassAddOn.md +2 -0
- package/docs/UpdateBookingResponsesInputs.md +20 -0
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -674,6 +674,10 @@ export var FileSource;
|
|
|
674
674
|
FileSource["Content"] = "content";
|
|
675
675
|
FileSource["Thread"] = "thread";
|
|
676
676
|
})(FileSource || (FileSource = {}));
|
|
677
|
+
export var FulfillEventPassAddOn200ResponseStatusEnum;
|
|
678
|
+
(function (FulfillEventPassAddOn200ResponseStatusEnum) {
|
|
679
|
+
FulfillEventPassAddOn200ResponseStatusEnum["Ok"] = "ok";
|
|
680
|
+
})(FulfillEventPassAddOn200ResponseStatusEnum || (FulfillEventPassAddOn200ResponseStatusEnum = {}));
|
|
677
681
|
export var GetAPILog200ResponseStatusEnum;
|
|
678
682
|
(function (GetAPILog200ResponseStatusEnum) {
|
|
679
683
|
GetAPILog200ResponseStatusEnum["Ok"] = "ok";
|
|
@@ -822,6 +826,10 @@ export var GetBookingPlaces200ResponseStatusEnum;
|
|
|
822
826
|
(function (GetBookingPlaces200ResponseStatusEnum) {
|
|
823
827
|
GetBookingPlaces200ResponseStatusEnum["Ok"] = "ok";
|
|
824
828
|
})(GetBookingPlaces200ResponseStatusEnum || (GetBookingPlaces200ResponseStatusEnum = {}));
|
|
829
|
+
export var GetBookingResponseChanges200ResponseStatusEnum;
|
|
830
|
+
(function (GetBookingResponseChanges200ResponseStatusEnum) {
|
|
831
|
+
GetBookingResponseChanges200ResponseStatusEnum["Ok"] = "ok";
|
|
832
|
+
})(GetBookingResponseChanges200ResponseStatusEnum || (GetBookingResponseChanges200ResponseStatusEnum = {}));
|
|
825
833
|
export var GetBookingResponses200ResponseStatusEnum;
|
|
826
834
|
(function (GetBookingResponses200ResponseStatusEnum) {
|
|
827
835
|
GetBookingResponses200ResponseStatusEnum["Ok"] = "ok";
|
|
@@ -16206,6 +16214,215 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
16206
16214
|
return BookingsQuestionsTranslationsApiFp(this.configuration).updateBookingSpaceQuestionTranslation(requestParameters.placeId, requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, requestParameters.bookingSpaceQuestionTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16207
16215
|
}
|
|
16208
16216
|
}
|
|
16217
|
+
/**
|
|
16218
|
+
* BookingsResponsesApi - axios parameter creator
|
|
16219
|
+
*/
|
|
16220
|
+
export const BookingsResponsesApiAxiosParamCreator = function (configuration) {
|
|
16221
|
+
return {
|
|
16222
|
+
/**
|
|
16223
|
+
* 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\".
|
|
16224
|
+
* @summary List a booking response\'s edit history
|
|
16225
|
+
* @param {string} bookingId The booking identifier
|
|
16226
|
+
* @param {string} questionId The question identifier
|
|
16227
|
+
* @param {number} [page] Page number
|
|
16228
|
+
* @param {number} [pageSize] Number of items per page
|
|
16229
|
+
* @param {string} [orderBy] Field to order by
|
|
16230
|
+
* @param {string} [search] Search query
|
|
16231
|
+
* @param {*} [options] Override http request option.
|
|
16232
|
+
* @throws {RequiredError}
|
|
16233
|
+
*/
|
|
16234
|
+
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 = {}) {
|
|
16235
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
16236
|
+
assertParamExists('getBookingResponseChanges', 'bookingId', bookingId);
|
|
16237
|
+
// verify required parameter 'questionId' is not null or undefined
|
|
16238
|
+
assertParamExists('getBookingResponseChanges', 'questionId', questionId);
|
|
16239
|
+
const localVarPath = `/bookings/{bookingId}/responses/{questionId}/changes`
|
|
16240
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)))
|
|
16241
|
+
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
16242
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16243
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16244
|
+
let baseOptions;
|
|
16245
|
+
if (configuration) {
|
|
16246
|
+
baseOptions = configuration.baseOptions;
|
|
16247
|
+
}
|
|
16248
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16249
|
+
const localVarHeaderParameter = {};
|
|
16250
|
+
const localVarQueryParameter = {};
|
|
16251
|
+
// authentication ApiKeyAuth required
|
|
16252
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
16253
|
+
// authentication OrganizationId required
|
|
16254
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
16255
|
+
if (page !== undefined) {
|
|
16256
|
+
localVarQueryParameter['page'] = page;
|
|
16257
|
+
}
|
|
16258
|
+
if (pageSize !== undefined) {
|
|
16259
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
16260
|
+
}
|
|
16261
|
+
if (orderBy !== undefined) {
|
|
16262
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
16263
|
+
}
|
|
16264
|
+
if (search !== undefined) {
|
|
16265
|
+
localVarQueryParameter['search'] = search;
|
|
16266
|
+
}
|
|
16267
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
16268
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16269
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16270
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16271
|
+
return {
|
|
16272
|
+
url: toPathString(localVarUrlObj),
|
|
16273
|
+
options: localVarRequestOptions,
|
|
16274
|
+
};
|
|
16275
|
+
}),
|
|
16276
|
+
/**
|
|
16277
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16278
|
+
* @summary Update a booking\'s question responses
|
|
16279
|
+
* @param {string} placeId The place identifier
|
|
16280
|
+
* @param {string} spaceId The space identifier
|
|
16281
|
+
* @param {string} bookingId The booking identifier
|
|
16282
|
+
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
16283
|
+
* @param {*} [options] Override http request option.
|
|
16284
|
+
* @throws {RequiredError}
|
|
16285
|
+
*/
|
|
16286
|
+
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 = {}) {
|
|
16287
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
16288
|
+
assertParamExists('updateBookingResponses', 'placeId', placeId);
|
|
16289
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
16290
|
+
assertParamExists('updateBookingResponses', 'spaceId', spaceId);
|
|
16291
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
16292
|
+
assertParamExists('updateBookingResponses', 'bookingId', bookingId);
|
|
16293
|
+
// verify required parameter 'updateBookingResponsesInputs' is not null or undefined
|
|
16294
|
+
assertParamExists('updateBookingResponses', 'updateBookingResponsesInputs', updateBookingResponsesInputs);
|
|
16295
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/responses`
|
|
16296
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16297
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16298
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
16299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16300
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16301
|
+
let baseOptions;
|
|
16302
|
+
if (configuration) {
|
|
16303
|
+
baseOptions = configuration.baseOptions;
|
|
16304
|
+
}
|
|
16305
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
16306
|
+
const localVarHeaderParameter = {};
|
|
16307
|
+
const localVarQueryParameter = {};
|
|
16308
|
+
// authentication ApiKeyAuth required
|
|
16309
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
16310
|
+
// authentication OrganizationId required
|
|
16311
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
16312
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16313
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
16314
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16315
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16316
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16317
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBookingResponsesInputs, localVarRequestOptions, configuration);
|
|
16318
|
+
return {
|
|
16319
|
+
url: toPathString(localVarUrlObj),
|
|
16320
|
+
options: localVarRequestOptions,
|
|
16321
|
+
};
|
|
16322
|
+
}),
|
|
16323
|
+
};
|
|
16324
|
+
};
|
|
16325
|
+
/**
|
|
16326
|
+
* BookingsResponsesApi - functional programming interface
|
|
16327
|
+
*/
|
|
16328
|
+
export const BookingsResponsesApiFp = function (configuration) {
|
|
16329
|
+
const localVarAxiosParamCreator = BookingsResponsesApiAxiosParamCreator(configuration);
|
|
16330
|
+
return {
|
|
16331
|
+
/**
|
|
16332
|
+
* 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\".
|
|
16333
|
+
* @summary List a booking response\'s edit history
|
|
16334
|
+
* @param {string} bookingId The booking identifier
|
|
16335
|
+
* @param {string} questionId The question identifier
|
|
16336
|
+
* @param {number} [page] Page number
|
|
16337
|
+
* @param {number} [pageSize] Number of items per page
|
|
16338
|
+
* @param {string} [orderBy] Field to order by
|
|
16339
|
+
* @param {string} [search] Search query
|
|
16340
|
+
* @param {*} [options] Override http request option.
|
|
16341
|
+
* @throws {RequiredError}
|
|
16342
|
+
*/
|
|
16343
|
+
getBookingResponseChanges(bookingId, questionId, page, pageSize, orderBy, search, options) {
|
|
16344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16345
|
+
var _a, _b, _c;
|
|
16346
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingResponseChanges(bookingId, questionId, page, pageSize, orderBy, search, options);
|
|
16347
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16348
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsResponsesApi.getBookingResponseChanges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16349
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16350
|
+
});
|
|
16351
|
+
},
|
|
16352
|
+
/**
|
|
16353
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16354
|
+
* @summary Update a booking\'s question responses
|
|
16355
|
+
* @param {string} placeId The place identifier
|
|
16356
|
+
* @param {string} spaceId The space identifier
|
|
16357
|
+
* @param {string} bookingId The booking identifier
|
|
16358
|
+
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
16359
|
+
* @param {*} [options] Override http request option.
|
|
16360
|
+
* @throws {RequiredError}
|
|
16361
|
+
*/
|
|
16362
|
+
updateBookingResponses(placeId, spaceId, bookingId, updateBookingResponsesInputs, options) {
|
|
16363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16364
|
+
var _a, _b, _c;
|
|
16365
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingResponses(placeId, spaceId, bookingId, updateBookingResponsesInputs, options);
|
|
16366
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16367
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsResponsesApi.updateBookingResponses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16368
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16369
|
+
});
|
|
16370
|
+
},
|
|
16371
|
+
};
|
|
16372
|
+
};
|
|
16373
|
+
/**
|
|
16374
|
+
* BookingsResponsesApi - factory interface
|
|
16375
|
+
*/
|
|
16376
|
+
export const BookingsResponsesApiFactory = function (configuration, basePath, axios) {
|
|
16377
|
+
const localVarFp = BookingsResponsesApiFp(configuration);
|
|
16378
|
+
return {
|
|
16379
|
+
/**
|
|
16380
|
+
* 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\".
|
|
16381
|
+
* @summary List a booking response\'s edit history
|
|
16382
|
+
* @param {BookingsResponsesApiGetBookingResponseChangesRequest} requestParameters Request parameters.
|
|
16383
|
+
* @param {*} [options] Override http request option.
|
|
16384
|
+
* @throws {RequiredError}
|
|
16385
|
+
*/
|
|
16386
|
+
getBookingResponseChanges(requestParameters, options) {
|
|
16387
|
+
return localVarFp.getBookingResponseChanges(requestParameters.bookingId, requestParameters.questionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
16388
|
+
},
|
|
16389
|
+
/**
|
|
16390
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16391
|
+
* @summary Update a booking\'s question responses
|
|
16392
|
+
* @param {BookingsResponsesApiUpdateBookingResponsesRequest} requestParameters Request parameters.
|
|
16393
|
+
* @param {*} [options] Override http request option.
|
|
16394
|
+
* @throws {RequiredError}
|
|
16395
|
+
*/
|
|
16396
|
+
updateBookingResponses(requestParameters, options) {
|
|
16397
|
+
return localVarFp.updateBookingResponses(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(axios, basePath));
|
|
16398
|
+
},
|
|
16399
|
+
};
|
|
16400
|
+
};
|
|
16401
|
+
/**
|
|
16402
|
+
* BookingsResponsesApi - object-oriented interface
|
|
16403
|
+
*/
|
|
16404
|
+
export class BookingsResponsesApi extends BaseAPI {
|
|
16405
|
+
/**
|
|
16406
|
+
* 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\".
|
|
16407
|
+
* @summary List a booking response\'s edit history
|
|
16408
|
+
* @param {BookingsResponsesApiGetBookingResponseChangesRequest} requestParameters Request parameters.
|
|
16409
|
+
* @param {*} [options] Override http request option.
|
|
16410
|
+
* @throws {RequiredError}
|
|
16411
|
+
*/
|
|
16412
|
+
getBookingResponseChanges(requestParameters, options) {
|
|
16413
|
+
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));
|
|
16414
|
+
}
|
|
16415
|
+
/**
|
|
16416
|
+
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16417
|
+
* @summary Update a booking\'s question responses
|
|
16418
|
+
* @param {BookingsResponsesApiUpdateBookingResponsesRequest} requestParameters Request parameters.
|
|
16419
|
+
* @param {*} [options] Override http request option.
|
|
16420
|
+
* @throws {RequiredError}
|
|
16421
|
+
*/
|
|
16422
|
+
updateBookingResponses(requestParameters, options) {
|
|
16423
|
+
return BookingsResponsesApiFp(this.configuration).updateBookingResponses(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16424
|
+
}
|
|
16425
|
+
}
|
|
16209
16426
|
/**
|
|
16210
16427
|
* BookingsSpacesApi - axios parameter creator
|
|
16211
16428
|
*/
|
|
@@ -42113,6 +42330,48 @@ export const EventsPassesAddonsApiAxiosParamCreator = function (configuration) {
|
|
|
42113
42330
|
options: localVarRequestOptions,
|
|
42114
42331
|
};
|
|
42115
42332
|
}),
|
|
42333
|
+
/**
|
|
42334
|
+
* Marks the given pass add-on as fulfilled, requires read permission on events and read/update permission on attendees.
|
|
42335
|
+
* @summary Fulfill an add-on on an attendee\'s pass
|
|
42336
|
+
* @param {string} eventId The event identifier
|
|
42337
|
+
* @param {string} passId The pass identifier
|
|
42338
|
+
* @param {string} addOnId The addOn identifier
|
|
42339
|
+
* @param {*} [options] Override http request option.
|
|
42340
|
+
* @throws {RequiredError}
|
|
42341
|
+
*/
|
|
42342
|
+
fulfillEventPassAddOn: (eventId_1, passId_1, addOnId_1, ...args_1) => __awaiter(this, [eventId_1, passId_1, addOnId_1, ...args_1], void 0, function* (eventId, passId, addOnId, options = {}) {
|
|
42343
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
42344
|
+
assertParamExists('fulfillEventPassAddOn', 'eventId', eventId);
|
|
42345
|
+
// verify required parameter 'passId' is not null or undefined
|
|
42346
|
+
assertParamExists('fulfillEventPassAddOn', 'passId', passId);
|
|
42347
|
+
// verify required parameter 'addOnId' is not null or undefined
|
|
42348
|
+
assertParamExists('fulfillEventPassAddOn', 'addOnId', addOnId);
|
|
42349
|
+
const localVarPath = `/events/{eventId}/passes/{passId}/addOns/{addOnId}/fulfill`
|
|
42350
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
42351
|
+
.replace(`{${"passId"}}`, encodeURIComponent(String(passId)))
|
|
42352
|
+
.replace(`{${"addOnId"}}`, encodeURIComponent(String(addOnId)));
|
|
42353
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42354
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42355
|
+
let baseOptions;
|
|
42356
|
+
if (configuration) {
|
|
42357
|
+
baseOptions = configuration.baseOptions;
|
|
42358
|
+
}
|
|
42359
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
42360
|
+
const localVarHeaderParameter = {};
|
|
42361
|
+
const localVarQueryParameter = {};
|
|
42362
|
+
// authentication ApiKeyAuth required
|
|
42363
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
42364
|
+
// authentication OrganizationId required
|
|
42365
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
42366
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
42367
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42368
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42369
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
42370
|
+
return {
|
|
42371
|
+
url: toPathString(localVarUrlObj),
|
|
42372
|
+
options: localVarRequestOptions,
|
|
42373
|
+
};
|
|
42374
|
+
}),
|
|
42116
42375
|
/**
|
|
42117
42376
|
* 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.
|
|
42118
42377
|
* @summary List an event pass\'s add-ons
|
|
@@ -42209,6 +42468,48 @@ export const EventsPassesAddonsApiAxiosParamCreator = function (configuration) {
|
|
|
42209
42468
|
options: localVarRequestOptions,
|
|
42210
42469
|
};
|
|
42211
42470
|
}),
|
|
42471
|
+
/**
|
|
42472
|
+
* Reverses a previous fulfillment of the given pass add-on, requires read permission on events and read/update permission on attendees.
|
|
42473
|
+
* @summary Undo an add-on fulfillment
|
|
42474
|
+
* @param {string} eventId The event identifier
|
|
42475
|
+
* @param {string} passId The pass identifier
|
|
42476
|
+
* @param {string} addOnId The addOn identifier
|
|
42477
|
+
* @param {*} [options] Override http request option.
|
|
42478
|
+
* @throws {RequiredError}
|
|
42479
|
+
*/
|
|
42480
|
+
unfulfillEventPassAddOn: (eventId_1, passId_1, addOnId_1, ...args_1) => __awaiter(this, [eventId_1, passId_1, addOnId_1, ...args_1], void 0, function* (eventId, passId, addOnId, options = {}) {
|
|
42481
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
42482
|
+
assertParamExists('unfulfillEventPassAddOn', 'eventId', eventId);
|
|
42483
|
+
// verify required parameter 'passId' is not null or undefined
|
|
42484
|
+
assertParamExists('unfulfillEventPassAddOn', 'passId', passId);
|
|
42485
|
+
// verify required parameter 'addOnId' is not null or undefined
|
|
42486
|
+
assertParamExists('unfulfillEventPassAddOn', 'addOnId', addOnId);
|
|
42487
|
+
const localVarPath = `/events/{eventId}/passes/{passId}/addOns/{addOnId}/undo`
|
|
42488
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
42489
|
+
.replace(`{${"passId"}}`, encodeURIComponent(String(passId)))
|
|
42490
|
+
.replace(`{${"addOnId"}}`, encodeURIComponent(String(addOnId)));
|
|
42491
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42492
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42493
|
+
let baseOptions;
|
|
42494
|
+
if (configuration) {
|
|
42495
|
+
baseOptions = configuration.baseOptions;
|
|
42496
|
+
}
|
|
42497
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
42498
|
+
const localVarHeaderParameter = {};
|
|
42499
|
+
const localVarQueryParameter = {};
|
|
42500
|
+
// authentication ApiKeyAuth required
|
|
42501
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
42502
|
+
// authentication OrganizationId required
|
|
42503
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
42504
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
42505
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42506
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42507
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
42508
|
+
return {
|
|
42509
|
+
url: toPathString(localVarUrlObj),
|
|
42510
|
+
options: localVarRequestOptions,
|
|
42511
|
+
};
|
|
42512
|
+
}),
|
|
42212
42513
|
};
|
|
42213
42514
|
};
|
|
42214
42515
|
/**
|
|
@@ -42235,6 +42536,24 @@ export const EventsPassesAddonsApiFp = function (configuration) {
|
|
|
42235
42536
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42236
42537
|
});
|
|
42237
42538
|
},
|
|
42539
|
+
/**
|
|
42540
|
+
* Marks the given pass add-on as fulfilled, requires read permission on events and read/update permission on attendees.
|
|
42541
|
+
* @summary Fulfill an add-on on an attendee\'s pass
|
|
42542
|
+
* @param {string} eventId The event identifier
|
|
42543
|
+
* @param {string} passId The pass identifier
|
|
42544
|
+
* @param {string} addOnId The addOn identifier
|
|
42545
|
+
* @param {*} [options] Override http request option.
|
|
42546
|
+
* @throws {RequiredError}
|
|
42547
|
+
*/
|
|
42548
|
+
fulfillEventPassAddOn(eventId, passId, addOnId, options) {
|
|
42549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42550
|
+
var _a, _b, _c;
|
|
42551
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.fulfillEventPassAddOn(eventId, passId, addOnId, options);
|
|
42552
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
42553
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsPassesAddonsApi.fulfillEventPassAddOn']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
42554
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42555
|
+
});
|
|
42556
|
+
},
|
|
42238
42557
|
/**
|
|
42239
42558
|
* 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.
|
|
42240
42559
|
* @summary List an event pass\'s add-ons
|
|
@@ -42274,6 +42593,24 @@ export const EventsPassesAddonsApiFp = function (configuration) {
|
|
|
42274
42593
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42275
42594
|
});
|
|
42276
42595
|
},
|
|
42596
|
+
/**
|
|
42597
|
+
* Reverses a previous fulfillment of the given pass add-on, requires read permission on events and read/update permission on attendees.
|
|
42598
|
+
* @summary Undo an add-on fulfillment
|
|
42599
|
+
* @param {string} eventId The event identifier
|
|
42600
|
+
* @param {string} passId The pass identifier
|
|
42601
|
+
* @param {string} addOnId The addOn identifier
|
|
42602
|
+
* @param {*} [options] Override http request option.
|
|
42603
|
+
* @throws {RequiredError}
|
|
42604
|
+
*/
|
|
42605
|
+
unfulfillEventPassAddOn(eventId, passId, addOnId, options) {
|
|
42606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42607
|
+
var _a, _b, _c;
|
|
42608
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.unfulfillEventPassAddOn(eventId, passId, addOnId, options);
|
|
42609
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
42610
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsPassesAddonsApi.unfulfillEventPassAddOn']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
42611
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42612
|
+
});
|
|
42613
|
+
},
|
|
42277
42614
|
};
|
|
42278
42615
|
};
|
|
42279
42616
|
/**
|
|
@@ -42292,6 +42629,16 @@ export const EventsPassesAddonsApiFactory = function (configuration, basePath, a
|
|
|
42292
42629
|
addEventPassAddOn(requestParameters, options) {
|
|
42293
42630
|
return localVarFp.addEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(axios, basePath));
|
|
42294
42631
|
},
|
|
42632
|
+
/**
|
|
42633
|
+
* Marks the given pass add-on as fulfilled, requires read permission on events and read/update permission on attendees.
|
|
42634
|
+
* @summary Fulfill an add-on on an attendee\'s pass
|
|
42635
|
+
* @param {EventsPassesAddonsApiFulfillEventPassAddOnRequest} requestParameters Request parameters.
|
|
42636
|
+
* @param {*} [options] Override http request option.
|
|
42637
|
+
* @throws {RequiredError}
|
|
42638
|
+
*/
|
|
42639
|
+
fulfillEventPassAddOn(requestParameters, options) {
|
|
42640
|
+
return localVarFp.fulfillEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(axios, basePath));
|
|
42641
|
+
},
|
|
42295
42642
|
/**
|
|
42296
42643
|
* 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.
|
|
42297
42644
|
* @summary List an event pass\'s add-ons
|
|
@@ -42312,6 +42659,16 @@ export const EventsPassesAddonsApiFactory = function (configuration, basePath, a
|
|
|
42312
42659
|
removeEventPassAddOn(requestParameters, options) {
|
|
42313
42660
|
return localVarFp.removeEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(axios, basePath));
|
|
42314
42661
|
},
|
|
42662
|
+
/**
|
|
42663
|
+
* Reverses a previous fulfillment of the given pass add-on, requires read permission on events and read/update permission on attendees.
|
|
42664
|
+
* @summary Undo an add-on fulfillment
|
|
42665
|
+
* @param {EventsPassesAddonsApiUnfulfillEventPassAddOnRequest} requestParameters Request parameters.
|
|
42666
|
+
* @param {*} [options] Override http request option.
|
|
42667
|
+
* @throws {RequiredError}
|
|
42668
|
+
*/
|
|
42669
|
+
unfulfillEventPassAddOn(requestParameters, options) {
|
|
42670
|
+
return localVarFp.unfulfillEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(axios, basePath));
|
|
42671
|
+
},
|
|
42315
42672
|
};
|
|
42316
42673
|
};
|
|
42317
42674
|
/**
|
|
@@ -42328,6 +42685,16 @@ export class EventsPassesAddonsApi extends BaseAPI {
|
|
|
42328
42685
|
addEventPassAddOn(requestParameters, options) {
|
|
42329
42686
|
return EventsPassesAddonsApiFp(this.configuration).addEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(this.axios, this.basePath));
|
|
42330
42687
|
}
|
|
42688
|
+
/**
|
|
42689
|
+
* Marks the given pass add-on as fulfilled, requires read permission on events and read/update permission on attendees.
|
|
42690
|
+
* @summary Fulfill an add-on on an attendee\'s pass
|
|
42691
|
+
* @param {EventsPassesAddonsApiFulfillEventPassAddOnRequest} requestParameters Request parameters.
|
|
42692
|
+
* @param {*} [options] Override http request option.
|
|
42693
|
+
* @throws {RequiredError}
|
|
42694
|
+
*/
|
|
42695
|
+
fulfillEventPassAddOn(requestParameters, options) {
|
|
42696
|
+
return EventsPassesAddonsApiFp(this.configuration).fulfillEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(this.axios, this.basePath));
|
|
42697
|
+
}
|
|
42331
42698
|
/**
|
|
42332
42699
|
* 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.
|
|
42333
42700
|
* @summary List an event pass\'s add-ons
|
|
@@ -42348,6 +42715,16 @@ export class EventsPassesAddonsApi extends BaseAPI {
|
|
|
42348
42715
|
removeEventPassAddOn(requestParameters, options) {
|
|
42349
42716
|
return EventsPassesAddonsApiFp(this.configuration).removeEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(this.axios, this.basePath));
|
|
42350
42717
|
}
|
|
42718
|
+
/**
|
|
42719
|
+
* Reverses a previous fulfillment of the given pass add-on, requires read permission on events and read/update permission on attendees.
|
|
42720
|
+
* @summary Undo an add-on fulfillment
|
|
42721
|
+
* @param {EventsPassesAddonsApiUnfulfillEventPassAddOnRequest} requestParameters Request parameters.
|
|
42722
|
+
* @param {*} [options] Override http request option.
|
|
42723
|
+
* @throws {RequiredError}
|
|
42724
|
+
*/
|
|
42725
|
+
unfulfillEventPassAddOn(requestParameters, options) {
|
|
42726
|
+
return EventsPassesAddonsApiFp(this.configuration).unfulfillEventPassAddOn(requestParameters.eventId, requestParameters.passId, requestParameters.addOnId, options).then((request) => request(this.axios, this.basePath));
|
|
42727
|
+
}
|
|
42351
42728
|
}
|
|
42352
42729
|
/**
|
|
42353
42730
|
* EventsPassesAttributesApi - axios parameter creator
|
|
@@ -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)
|
package/docs/BasePassAddOn.md
CHANGED
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**addOnId** | **string** | | [default to undefined]
|
|
9
9
|
**addOn** | [**BaseEventAddOn**](BaseEventAddOn.md) | | [default to undefined]
|
|
10
|
+
**fulfilledAt** | **string** | | [default to undefined]
|
|
10
11
|
**pass** | [**BasePassAddOnPass**](BasePassAddOnPass.md) | | [default to undefined]
|
|
11
12
|
**createdAt** | **string** | | [default to undefined]
|
|
12
13
|
|
|
@@ -18,6 +19,7 @@ import { BasePassAddOn } from '@connectedxm/admin-sdk';
|
|
|
18
19
|
const instance: BasePassAddOn = {
|
|
19
20
|
addOnId,
|
|
20
21
|
addOn,
|
|
22
|
+
fulfilledAt,
|
|
21
23
|
pass,
|
|
22
24
|
createdAt,
|
|
23
25
|
};
|
|
@@ -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)
|