@connectedxm/admin-sdk 7.5.1 → 7.8.0

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.js CHANGED
@@ -21410,6 +21410,40 @@ const EventsApiAxiosParamCreator = function (configuration) {
21410
21410
  options: localVarRequestOptions,
21411
21411
  };
21412
21412
  }),
21413
+ /**
21414
+ * Clears the location details of an existing event, requiring the update events permission.
21415
+ * @summary Delete an event\'s location
21416
+ * @param {string} eventId The event identifier
21417
+ * @param {*} [options] Override http request option.
21418
+ * @throws {RequiredError}
21419
+ */
21420
+ deleteEventLocation: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
21421
+ // verify required parameter 'eventId' is not null or undefined
21422
+ (0, common_1.assertParamExists)('deleteEventLocation', 'eventId', eventId);
21423
+ const localVarPath = `/events/{eventId}/location`
21424
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
21425
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21426
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21427
+ let baseOptions;
21428
+ if (configuration) {
21429
+ baseOptions = configuration.baseOptions;
21430
+ }
21431
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
21432
+ const localVarHeaderParameter = {};
21433
+ const localVarQueryParameter = {};
21434
+ // authentication ApiKeyAuth required
21435
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
21436
+ // authentication OrganizationId required
21437
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
21438
+ localVarHeaderParameter['Accept'] = 'application/json';
21439
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
21440
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21441
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21442
+ return {
21443
+ url: (0, common_1.toPathString)(localVarUrlObj),
21444
+ options: localVarRequestOptions,
21445
+ };
21446
+ }),
21413
21447
  /**
21414
21448
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
21415
21449
  * @summary Disable build mode for an event
@@ -21710,6 +21744,45 @@ const EventsApiAxiosParamCreator = function (configuration) {
21710
21744
  options: localVarRequestOptions,
21711
21745
  };
21712
21746
  }),
21747
+ /**
21748
+ * Sets or updates the location details of an existing event, requiring the update events permission.
21749
+ * @summary Set an event\'s location
21750
+ * @param {string} eventId The event identifier
21751
+ * @param {EventLocationInputs} eventLocationInputs
21752
+ * @param {*} [options] Override http request option.
21753
+ * @throws {RequiredError}
21754
+ */
21755
+ setEventLocation: (eventId_1, eventLocationInputs_1, ...args_1) => __awaiter(this, [eventId_1, eventLocationInputs_1, ...args_1], void 0, function* (eventId, eventLocationInputs, options = {}) {
21756
+ // verify required parameter 'eventId' is not null or undefined
21757
+ (0, common_1.assertParamExists)('setEventLocation', 'eventId', eventId);
21758
+ // verify required parameter 'eventLocationInputs' is not null or undefined
21759
+ (0, common_1.assertParamExists)('setEventLocation', 'eventLocationInputs', eventLocationInputs);
21760
+ const localVarPath = `/events/{eventId}/location`
21761
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
21762
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21763
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21764
+ let baseOptions;
21765
+ if (configuration) {
21766
+ baseOptions = configuration.baseOptions;
21767
+ }
21768
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
21769
+ const localVarHeaderParameter = {};
21770
+ const localVarQueryParameter = {};
21771
+ // authentication ApiKeyAuth required
21772
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
21773
+ // authentication OrganizationId required
21774
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
21775
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21776
+ localVarHeaderParameter['Accept'] = 'application/json';
21777
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
21778
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21779
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21780
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(eventLocationInputs, localVarRequestOptions, configuration);
21781
+ return {
21782
+ url: (0, common_1.toPathString)(localVarUrlObj),
21783
+ options: localVarRequestOptions,
21784
+ };
21785
+ }),
21713
21786
  /**
21714
21787
  * Updates the details of an existing event with the given fields, requiring the update events permission.
21715
21788
  * @summary Update an event
@@ -21807,6 +21880,22 @@ const EventsApiFp = function (configuration) {
21807
21880
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21808
21881
  });
21809
21882
  },
21883
+ /**
21884
+ * Clears the location details of an existing event, requiring the update events permission.
21885
+ * @summary Delete an event\'s location
21886
+ * @param {string} eventId The event identifier
21887
+ * @param {*} [options] Override http request option.
21888
+ * @throws {RequiredError}
21889
+ */
21890
+ deleteEventLocation(eventId, options) {
21891
+ return __awaiter(this, void 0, void 0, function* () {
21892
+ var _a, _b, _c;
21893
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEventLocation(eventId, options);
21894
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
21895
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.deleteEventLocation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
21896
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21897
+ });
21898
+ },
21810
21899
  /**
21811
21900
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
21812
21901
  * @summary Disable build mode for an event
@@ -21934,6 +22023,23 @@ const EventsApiFp = function (configuration) {
21934
22023
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21935
22024
  });
21936
22025
  },
22026
+ /**
22027
+ * Sets or updates the location details of an existing event, requiring the update events permission.
22028
+ * @summary Set an event\'s location
22029
+ * @param {string} eventId The event identifier
22030
+ * @param {EventLocationInputs} eventLocationInputs
22031
+ * @param {*} [options] Override http request option.
22032
+ * @throws {RequiredError}
22033
+ */
22034
+ setEventLocation(eventId, eventLocationInputs, options) {
22035
+ return __awaiter(this, void 0, void 0, function* () {
22036
+ var _a, _b, _c;
22037
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setEventLocation(eventId, eventLocationInputs, options);
22038
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
22039
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.setEventLocation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
22040
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22041
+ });
22042
+ },
21937
22043
  /**
21938
22044
  * Updates the details of an existing event with the given fields, requiring the update events permission.
21939
22045
  * @summary Update an event
@@ -21990,6 +22096,16 @@ const EventsApiFactory = function (configuration, basePath, axios) {
21990
22096
  deleteEvent(requestParameters, options) {
21991
22097
  return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
21992
22098
  },
22099
+ /**
22100
+ * Clears the location details of an existing event, requiring the update events permission.
22101
+ * @summary Delete an event\'s location
22102
+ * @param {EventsApiDeleteEventLocationRequest} requestParameters Request parameters.
22103
+ * @param {*} [options] Override http request option.
22104
+ * @throws {RequiredError}
22105
+ */
22106
+ deleteEventLocation(requestParameters, options) {
22107
+ return localVarFp.deleteEventLocation(requestParameters.eventId, options).then((request) => request(axios, basePath));
22108
+ },
21993
22109
  /**
21994
22110
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
21995
22111
  * @summary Disable build mode for an event
@@ -22060,6 +22176,16 @@ const EventsApiFactory = function (configuration, basePath, axios) {
22060
22176
  getEvents(requestParameters = {}, options) {
22061
22177
  return localVarFp.getEvents(requestParameters.past, requestParameters.featured, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
22062
22178
  },
22179
+ /**
22180
+ * Sets or updates the location details of an existing event, requiring the update events permission.
22181
+ * @summary Set an event\'s location
22182
+ * @param {EventsApiSetEventLocationRequest} requestParameters Request parameters.
22183
+ * @param {*} [options] Override http request option.
22184
+ * @throws {RequiredError}
22185
+ */
22186
+ setEventLocation(requestParameters, options) {
22187
+ return localVarFp.setEventLocation(requestParameters.eventId, requestParameters.eventLocationInputs, options).then((request) => request(axios, basePath));
22188
+ },
22063
22189
  /**
22064
22190
  * Updates the details of an existing event with the given fields, requiring the update events permission.
22065
22191
  * @summary Update an event
@@ -22107,6 +22233,16 @@ class EventsApi extends base_1.BaseAPI {
22107
22233
  deleteEvent(requestParameters, options) {
22108
22234
  return (0, exports.EventsApiFp)(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
22109
22235
  }
22236
+ /**
22237
+ * Clears the location details of an existing event, requiring the update events permission.
22238
+ * @summary Delete an event\'s location
22239
+ * @param {EventsApiDeleteEventLocationRequest} requestParameters Request parameters.
22240
+ * @param {*} [options] Override http request option.
22241
+ * @throws {RequiredError}
22242
+ */
22243
+ deleteEventLocation(requestParameters, options) {
22244
+ return (0, exports.EventsApiFp)(this.configuration).deleteEventLocation(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
22245
+ }
22110
22246
  /**
22111
22247
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
22112
22248
  * @summary Disable build mode for an event
@@ -22177,6 +22313,16 @@ class EventsApi extends base_1.BaseAPI {
22177
22313
  getEvents(requestParameters = {}, options) {
22178
22314
  return (0, exports.EventsApiFp)(this.configuration).getEvents(requestParameters.past, requestParameters.featured, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
22179
22315
  }
22316
+ /**
22317
+ * Sets or updates the location details of an existing event, requiring the update events permission.
22318
+ * @summary Set an event\'s location
22319
+ * @param {EventsApiSetEventLocationRequest} requestParameters Request parameters.
22320
+ * @param {*} [options] Override http request option.
22321
+ * @throws {RequiredError}
22322
+ */
22323
+ setEventLocation(requestParameters, options) {
22324
+ return (0, exports.EventsApiFp)(this.configuration).setEventLocation(requestParameters.eventId, requestParameters.eventLocationInputs, options).then((request) => request(this.axios, this.basePath));
22325
+ }
22180
22326
  /**
22181
22327
  * Updates the details of an existing event with the given fields, requiring the update events permission.
22182
22328
  * @summary Update an event
package/dist/esm/api.d.ts CHANGED
@@ -1124,6 +1124,9 @@ export interface BaseEvent {
1124
1124
  'state': string | null;
1125
1125
  'country': string | null;
1126
1126
  'zip': string | null;
1127
+ 'location': string | null;
1128
+ 'latitude': number | null;
1129
+ 'longitude': number | null;
1127
1130
  'imageId': string | null;
1128
1131
  'image': BaseImage | null;
1129
1132
  'squareImageId': string | null;
@@ -1425,6 +1428,7 @@ export interface BaseEventSessionLocation {
1425
1428
  'city': string | null;
1426
1429
  'state': string | null;
1427
1430
  'country': string | null;
1431
+ 'location': string | null;
1428
1432
  'image': BaseImage | null;
1429
1433
  }
1430
1434
  export interface BaseEventSessionQuestion {
@@ -4231,6 +4235,9 @@ export interface Event {
4231
4235
  'state': string | null;
4232
4236
  'country': string | null;
4233
4237
  'zip': string | null;
4238
+ 'location': string | null;
4239
+ 'latitude': number | null;
4240
+ 'longitude': number | null;
4234
4241
  'imageId': string | null;
4235
4242
  'image': BaseImage | null;
4236
4243
  'squareImageId': string | null;
@@ -4245,6 +4252,8 @@ export interface Event {
4245
4252
  'paymentIntegrationId': string | null;
4246
4253
  'paymentIntegration': BasePaymentIntegration | null;
4247
4254
  'archived': boolean;
4255
+ 'mapImageLightUrl': string | null;
4256
+ 'mapImageDarkUrl': string | null;
4248
4257
  'roundName': string | null;
4249
4258
  'matchName': string | null;
4250
4259
  'passSupply': number | null;
@@ -4592,13 +4601,6 @@ export interface EventCreateInputs {
4592
4601
  'imageId'?: string | null;
4593
4602
  'squareImageId'?: string | null;
4594
4603
  'backgroundImageId'?: string | null;
4595
- 'venue'?: string | null;
4596
- 'address1'?: string | null;
4597
- 'address2'?: string | null;
4598
- 'city'?: string | null;
4599
- 'state'?: string | null;
4600
- 'country'?: string | null;
4601
- 'zip'?: string | null;
4602
4604
  'creatorId'?: string | null;
4603
4605
  'seriesId'?: string | null;
4604
4606
  'registration'?: boolean;
@@ -4726,6 +4728,18 @@ export interface EventFollowupUpdateInputs {
4726
4728
  'guestDescription'?: string | null;
4727
4729
  'sortOrder'?: AdvertisementCreateInputsWeight | null;
4728
4730
  }
4731
+ export interface EventLocationInputs {
4732
+ 'venue'?: string | null;
4733
+ 'location'?: string | null;
4734
+ 'address1'?: string | null;
4735
+ 'address2'?: string | null;
4736
+ 'city'?: string | null;
4737
+ 'state'?: string | null;
4738
+ 'country'?: string | null;
4739
+ 'zip'?: string | null;
4740
+ 'latitude'?: number | null;
4741
+ 'longitude'?: number | null;
4742
+ }
4729
4743
  export interface EventMediaItem {
4730
4744
  'id': string;
4731
4745
  'name': string | null;
@@ -5375,12 +5389,16 @@ export interface EventSessionLocation {
5375
5389
  'city': string | null;
5376
5390
  'state': string | null;
5377
5391
  'country': string | null;
5392
+ 'location': string | null;
5378
5393
  'image': BaseImage | null;
5394
+ 'latitude': number | null;
5395
+ 'longitude': number | null;
5379
5396
  'description': string | null;
5380
5397
  'createdAt': string;
5381
5398
  'updatedAt': string;
5382
5399
  }
5383
5400
  export interface EventSessionLocationCreateInputs {
5401
+ 'location'?: string | null;
5384
5402
  'name': string;
5385
5403
  'description'?: string | null;
5386
5404
  'imageId'?: string | null;
@@ -5404,6 +5422,7 @@ export interface EventSessionLocationTranslationUpdateInputs {
5404
5422
  'description'?: string | null;
5405
5423
  }
5406
5424
  export interface EventSessionLocationUpdateInputs {
5425
+ 'location'?: string | null;
5407
5426
  'name'?: string;
5408
5427
  'description'?: string | null;
5409
5428
  'imageId'?: string | null;
@@ -5975,13 +5994,6 @@ export interface EventUpdateInputs {
5975
5994
  'imageId'?: string | null;
5976
5995
  'squareImageId'?: string | null;
5977
5996
  'backgroundImageId'?: string | null;
5978
- 'venue'?: string | null;
5979
- 'address1'?: string | null;
5980
- 'address2'?: string | null;
5981
- 'city'?: string | null;
5982
- 'state'?: string | null;
5983
- 'country'?: string | null;
5984
- 'zip'?: string | null;
5985
5997
  'creatorId'?: string | null;
5986
5998
  'seriesId'?: string | null;
5987
5999
  'registration'?: boolean;
@@ -24893,6 +24905,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
24893
24905
  * @throws {RequiredError}
24894
24906
  */
24895
24907
  deleteEvent: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24908
+ /**
24909
+ * Clears the location details of an existing event, requiring the update events permission.
24910
+ * @summary Delete an event\'s location
24911
+ * @param {string} eventId The event identifier
24912
+ * @param {*} [options] Override http request option.
24913
+ * @throws {RequiredError}
24914
+ */
24915
+ deleteEventLocation: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24896
24916
  /**
24897
24917
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
24898
24918
  * @summary Disable build mode for an event
@@ -24964,6 +24984,15 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
24964
24984
  * @throws {RequiredError}
24965
24985
  */
24966
24986
  getEvents: (past?: boolean, featured?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24987
+ /**
24988
+ * Sets or updates the location details of an existing event, requiring the update events permission.
24989
+ * @summary Set an event\'s location
24990
+ * @param {string} eventId The event identifier
24991
+ * @param {EventLocationInputs} eventLocationInputs
24992
+ * @param {*} [options] Override http request option.
24993
+ * @throws {RequiredError}
24994
+ */
24995
+ setEventLocation: (eventId: string, eventLocationInputs: EventLocationInputs, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24967
24996
  /**
24968
24997
  * Updates the details of an existing event with the given fields, requiring the update events permission.
24969
24998
  * @summary Update an event
@@ -25003,6 +25032,14 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
25003
25032
  * @throws {RequiredError}
25004
25033
  */
25005
25034
  deleteEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>>;
25035
+ /**
25036
+ * Clears the location details of an existing event, requiring the update events permission.
25037
+ * @summary Delete an event\'s location
25038
+ * @param {string} eventId The event identifier
25039
+ * @param {*} [options] Override http request option.
25040
+ * @throws {RequiredError}
25041
+ */
25042
+ deleteEventLocation(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEvent200Response>>;
25006
25043
  /**
25007
25044
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
25008
25045
  * @summary Disable build mode for an event
@@ -25074,6 +25111,15 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
25074
25111
  * @throws {RequiredError}
25075
25112
  */
25076
25113
  getEvents(past?: boolean, featured?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvents200Response>>;
25114
+ /**
25115
+ * Sets or updates the location details of an existing event, requiring the update events permission.
25116
+ * @summary Set an event\'s location
25117
+ * @param {string} eventId The event identifier
25118
+ * @param {EventLocationInputs} eventLocationInputs
25119
+ * @param {*} [options] Override http request option.
25120
+ * @throws {RequiredError}
25121
+ */
25122
+ setEventLocation(eventId: string, eventLocationInputs: EventLocationInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEvent200Response>>;
25077
25123
  /**
25078
25124
  * Updates the details of an existing event with the given fields, requiring the update events permission.
25079
25125
  * @summary Update an event
@@ -25112,6 +25158,14 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
25112
25158
  * @throws {RequiredError}
25113
25159
  */
25114
25160
  deleteEvent(requestParameters: EventsApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response>;
25161
+ /**
25162
+ * Clears the location details of an existing event, requiring the update events permission.
25163
+ * @summary Delete an event\'s location
25164
+ * @param {EventsApiDeleteEventLocationRequest} requestParameters Request parameters.
25165
+ * @param {*} [options] Override http request option.
25166
+ * @throws {RequiredError}
25167
+ */
25168
+ deleteEventLocation(requestParameters: EventsApiDeleteEventLocationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEvent200Response>;
25115
25169
  /**
25116
25170
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
25117
25171
  * @summary Disable build mode for an event
@@ -25168,6 +25222,14 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
25168
25222
  * @throws {RequiredError}
25169
25223
  */
25170
25224
  getEvents(requestParameters?: EventsApiGetEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetEvents200Response>;
25225
+ /**
25226
+ * Sets or updates the location details of an existing event, requiring the update events permission.
25227
+ * @summary Set an event\'s location
25228
+ * @param {EventsApiSetEventLocationRequest} requestParameters Request parameters.
25229
+ * @param {*} [options] Override http request option.
25230
+ * @throws {RequiredError}
25231
+ */
25232
+ setEventLocation(requestParameters: EventsApiSetEventLocationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEvent200Response>;
25171
25233
  /**
25172
25234
  * Updates the details of an existing event with the given fields, requiring the update events permission.
25173
25235
  * @summary Update an event
@@ -25202,6 +25264,15 @@ export interface EventsApiDeleteEventRequest {
25202
25264
  */
25203
25265
  readonly eventId: string;
25204
25266
  }
25267
+ /**
25268
+ * Request parameters for deleteEventLocation operation in EventsApi.
25269
+ */
25270
+ export interface EventsApiDeleteEventLocationRequest {
25271
+ /**
25272
+ * The event identifier
25273
+ */
25274
+ readonly eventId: string;
25275
+ }
25205
25276
  /**
25206
25277
  * Request parameters for disableEventBuildMode operation in EventsApi.
25207
25278
  */
@@ -25325,6 +25396,16 @@ export interface EventsApiGetEventsRequest {
25325
25396
  */
25326
25397
  readonly search?: string;
25327
25398
  }
25399
+ /**
25400
+ * Request parameters for setEventLocation operation in EventsApi.
25401
+ */
25402
+ export interface EventsApiSetEventLocationRequest {
25403
+ /**
25404
+ * The event identifier
25405
+ */
25406
+ readonly eventId: string;
25407
+ readonly eventLocationInputs: EventLocationInputs;
25408
+ }
25328
25409
  /**
25329
25410
  * Request parameters for updateEvent operation in EventsApi.
25330
25411
  */
@@ -25363,6 +25444,14 @@ export declare class EventsApi extends BaseAPI {
25363
25444
  * @throws {RequiredError}
25364
25445
  */
25365
25446
  deleteEvent(requestParameters: EventsApiDeleteEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccountInvitations200Response, any, {}>>;
25447
+ /**
25448
+ * Clears the location details of an existing event, requiring the update events permission.
25449
+ * @summary Delete an event\'s location
25450
+ * @param {EventsApiDeleteEventLocationRequest} requestParameters Request parameters.
25451
+ * @param {*} [options] Override http request option.
25452
+ * @throws {RequiredError}
25453
+ */
25454
+ deleteEventLocation(requestParameters: EventsApiDeleteEventLocationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEvent200Response, any, {}>>;
25366
25455
  /**
25367
25456
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
25368
25457
  * @summary Disable build mode for an event
@@ -25419,6 +25508,14 @@ export declare class EventsApi extends BaseAPI {
25419
25508
  * @throws {RequiredError}
25420
25509
  */
25421
25510
  getEvents(requestParameters?: EventsApiGetEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEvents200Response, any, {}>>;
25511
+ /**
25512
+ * Sets or updates the location details of an existing event, requiring the update events permission.
25513
+ * @summary Set an event\'s location
25514
+ * @param {EventsApiSetEventLocationRequest} requestParameters Request parameters.
25515
+ * @param {*} [options] Override http request option.
25516
+ * @throws {RequiredError}
25517
+ */
25518
+ setEventLocation(requestParameters: EventsApiSetEventLocationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEvent200Response, any, {}>>;
25422
25519
  /**
25423
25520
  * Updates the details of an existing event with the given fields, requiring the update events permission.
25424
25521
  * @summary Update an event
package/dist/esm/api.js CHANGED
@@ -21240,6 +21240,40 @@ export const EventsApiAxiosParamCreator = function (configuration) {
21240
21240
  options: localVarRequestOptions,
21241
21241
  };
21242
21242
  }),
21243
+ /**
21244
+ * Clears the location details of an existing event, requiring the update events permission.
21245
+ * @summary Delete an event\'s location
21246
+ * @param {string} eventId The event identifier
21247
+ * @param {*} [options] Override http request option.
21248
+ * @throws {RequiredError}
21249
+ */
21250
+ deleteEventLocation: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
21251
+ // verify required parameter 'eventId' is not null or undefined
21252
+ assertParamExists('deleteEventLocation', 'eventId', eventId);
21253
+ const localVarPath = `/events/{eventId}/location`
21254
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
21255
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21256
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21257
+ let baseOptions;
21258
+ if (configuration) {
21259
+ baseOptions = configuration.baseOptions;
21260
+ }
21261
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
21262
+ const localVarHeaderParameter = {};
21263
+ const localVarQueryParameter = {};
21264
+ // authentication ApiKeyAuth required
21265
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
21266
+ // authentication OrganizationId required
21267
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
21268
+ localVarHeaderParameter['Accept'] = 'application/json';
21269
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21270
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21271
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21272
+ return {
21273
+ url: toPathString(localVarUrlObj),
21274
+ options: localVarRequestOptions,
21275
+ };
21276
+ }),
21243
21277
  /**
21244
21278
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
21245
21279
  * @summary Disable build mode for an event
@@ -21540,6 +21574,45 @@ export const EventsApiAxiosParamCreator = function (configuration) {
21540
21574
  options: localVarRequestOptions,
21541
21575
  };
21542
21576
  }),
21577
+ /**
21578
+ * Sets or updates the location details of an existing event, requiring the update events permission.
21579
+ * @summary Set an event\'s location
21580
+ * @param {string} eventId The event identifier
21581
+ * @param {EventLocationInputs} eventLocationInputs
21582
+ * @param {*} [options] Override http request option.
21583
+ * @throws {RequiredError}
21584
+ */
21585
+ setEventLocation: (eventId_1, eventLocationInputs_1, ...args_1) => __awaiter(this, [eventId_1, eventLocationInputs_1, ...args_1], void 0, function* (eventId, eventLocationInputs, options = {}) {
21586
+ // verify required parameter 'eventId' is not null or undefined
21587
+ assertParamExists('setEventLocation', 'eventId', eventId);
21588
+ // verify required parameter 'eventLocationInputs' is not null or undefined
21589
+ assertParamExists('setEventLocation', 'eventLocationInputs', eventLocationInputs);
21590
+ const localVarPath = `/events/{eventId}/location`
21591
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
21592
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21593
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21594
+ let baseOptions;
21595
+ if (configuration) {
21596
+ baseOptions = configuration.baseOptions;
21597
+ }
21598
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
21599
+ const localVarHeaderParameter = {};
21600
+ const localVarQueryParameter = {};
21601
+ // authentication ApiKeyAuth required
21602
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
21603
+ // authentication OrganizationId required
21604
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
21605
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21606
+ localVarHeaderParameter['Accept'] = 'application/json';
21607
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21608
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21609
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21610
+ localVarRequestOptions.data = serializeDataIfNeeded(eventLocationInputs, localVarRequestOptions, configuration);
21611
+ return {
21612
+ url: toPathString(localVarUrlObj),
21613
+ options: localVarRequestOptions,
21614
+ };
21615
+ }),
21543
21616
  /**
21544
21617
  * Updates the details of an existing event with the given fields, requiring the update events permission.
21545
21618
  * @summary Update an event
@@ -21636,6 +21709,22 @@ export const EventsApiFp = function (configuration) {
21636
21709
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21637
21710
  });
21638
21711
  },
21712
+ /**
21713
+ * Clears the location details of an existing event, requiring the update events permission.
21714
+ * @summary Delete an event\'s location
21715
+ * @param {string} eventId The event identifier
21716
+ * @param {*} [options] Override http request option.
21717
+ * @throws {RequiredError}
21718
+ */
21719
+ deleteEventLocation(eventId, options) {
21720
+ return __awaiter(this, void 0, void 0, function* () {
21721
+ var _a, _b, _c;
21722
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEventLocation(eventId, options);
21723
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
21724
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.deleteEventLocation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
21725
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21726
+ });
21727
+ },
21639
21728
  /**
21640
21729
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
21641
21730
  * @summary Disable build mode for an event
@@ -21763,6 +21852,23 @@ export const EventsApiFp = function (configuration) {
21763
21852
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21764
21853
  });
21765
21854
  },
21855
+ /**
21856
+ * Sets or updates the location details of an existing event, requiring the update events permission.
21857
+ * @summary Set an event\'s location
21858
+ * @param {string} eventId The event identifier
21859
+ * @param {EventLocationInputs} eventLocationInputs
21860
+ * @param {*} [options] Override http request option.
21861
+ * @throws {RequiredError}
21862
+ */
21863
+ setEventLocation(eventId, eventLocationInputs, options) {
21864
+ return __awaiter(this, void 0, void 0, function* () {
21865
+ var _a, _b, _c;
21866
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setEventLocation(eventId, eventLocationInputs, options);
21867
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
21868
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.setEventLocation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
21869
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21870
+ });
21871
+ },
21766
21872
  /**
21767
21873
  * Updates the details of an existing event with the given fields, requiring the update events permission.
21768
21874
  * @summary Update an event
@@ -21818,6 +21924,16 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
21818
21924
  deleteEvent(requestParameters, options) {
21819
21925
  return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
21820
21926
  },
21927
+ /**
21928
+ * Clears the location details of an existing event, requiring the update events permission.
21929
+ * @summary Delete an event\'s location
21930
+ * @param {EventsApiDeleteEventLocationRequest} requestParameters Request parameters.
21931
+ * @param {*} [options] Override http request option.
21932
+ * @throws {RequiredError}
21933
+ */
21934
+ deleteEventLocation(requestParameters, options) {
21935
+ return localVarFp.deleteEventLocation(requestParameters.eventId, options).then((request) => request(axios, basePath));
21936
+ },
21821
21937
  /**
21822
21938
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
21823
21939
  * @summary Disable build mode for an event
@@ -21888,6 +22004,16 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
21888
22004
  getEvents(requestParameters = {}, options) {
21889
22005
  return localVarFp.getEvents(requestParameters.past, requestParameters.featured, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
21890
22006
  },
22007
+ /**
22008
+ * Sets or updates the location details of an existing event, requiring the update events permission.
22009
+ * @summary Set an event\'s location
22010
+ * @param {EventsApiSetEventLocationRequest} requestParameters Request parameters.
22011
+ * @param {*} [options] Override http request option.
22012
+ * @throws {RequiredError}
22013
+ */
22014
+ setEventLocation(requestParameters, options) {
22015
+ return localVarFp.setEventLocation(requestParameters.eventId, requestParameters.eventLocationInputs, options).then((request) => request(axios, basePath));
22016
+ },
21891
22017
  /**
21892
22018
  * Updates the details of an existing event with the given fields, requiring the update events permission.
21893
22019
  * @summary Update an event
@@ -21934,6 +22060,16 @@ export class EventsApi extends BaseAPI {
21934
22060
  deleteEvent(requestParameters, options) {
21935
22061
  return EventsApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
21936
22062
  }
22063
+ /**
22064
+ * Clears the location details of an existing event, requiring the update events permission.
22065
+ * @summary Delete an event\'s location
22066
+ * @param {EventsApiDeleteEventLocationRequest} requestParameters Request parameters.
22067
+ * @param {*} [options] Override http request option.
22068
+ * @throws {RequiredError}
22069
+ */
22070
+ deleteEventLocation(requestParameters, options) {
22071
+ return EventsApiFp(this.configuration).deleteEventLocation(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
22072
+ }
21937
22073
  /**
21938
22074
  * Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
21939
22075
  * @summary Disable build mode for an event
@@ -22004,6 +22140,16 @@ export class EventsApi extends BaseAPI {
22004
22140
  getEvents(requestParameters = {}, options) {
22005
22141
  return EventsApiFp(this.configuration).getEvents(requestParameters.past, requestParameters.featured, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
22006
22142
  }
22143
+ /**
22144
+ * Sets or updates the location details of an existing event, requiring the update events permission.
22145
+ * @summary Set an event\'s location
22146
+ * @param {EventsApiSetEventLocationRequest} requestParameters Request parameters.
22147
+ * @param {*} [options] Override http request option.
22148
+ * @throws {RequiredError}
22149
+ */
22150
+ setEventLocation(requestParameters, options) {
22151
+ return EventsApiFp(this.configuration).setEventLocation(requestParameters.eventId, requestParameters.eventLocationInputs, options).then((request) => request(this.axios, this.basePath));
22152
+ }
22007
22153
  /**
22008
22154
  * Updates the details of an existing event with the given fields, requiring the update events permission.
22009
22155
  * @summary Update an event