@connectedxm/admin-sdk 7.5.1 → 7.8.1
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 +1 -0
- package/README.md +3 -0
- package/api.ts +210 -14
- package/dist/api.d.ts +119 -14
- package/dist/api.js +146 -0
- package/dist/esm/api.d.ts +119 -14
- package/dist/esm/api.js +146 -0
- package/docs/BaseEvent.md +6 -0
- package/docs/BaseEventSessionLocation.md +4 -0
- package/docs/Event.md +10 -0
- package/docs/EventCreateInputs.md +0 -14
- package/docs/EventLocationInputs.md +38 -0
- package/docs/EventSessionLocation.md +8 -0
- package/docs/EventSessionLocationCreateInputs.md +8 -0
- package/docs/EventSessionLocationUpdateInputs.md +8 -0
- package/docs/EventUpdateInputs.md +0 -14
- package/docs/EventsApi.md +108 -0
- package/package.json +1 -1
package/dist/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;
|
|
@@ -1419,12 +1422,14 @@ export interface BaseEventSessionAccess {
|
|
|
1419
1422
|
export interface BaseEventSessionLocation {
|
|
1420
1423
|
'id': string;
|
|
1421
1424
|
'name': string;
|
|
1425
|
+
'room': string | null;
|
|
1422
1426
|
'address1': string | null;
|
|
1423
1427
|
'address2': string | null;
|
|
1424
1428
|
'zip': string | null;
|
|
1425
1429
|
'city': string | null;
|
|
1426
1430
|
'state': string | null;
|
|
1427
1431
|
'country': string | null;
|
|
1432
|
+
'location': string | null;
|
|
1428
1433
|
'image': BaseImage | null;
|
|
1429
1434
|
}
|
|
1430
1435
|
export interface BaseEventSessionQuestion {
|
|
@@ -4231,6 +4236,9 @@ export interface Event {
|
|
|
4231
4236
|
'state': string | null;
|
|
4232
4237
|
'country': string | null;
|
|
4233
4238
|
'zip': string | null;
|
|
4239
|
+
'location': string | null;
|
|
4240
|
+
'latitude': number | null;
|
|
4241
|
+
'longitude': number | null;
|
|
4234
4242
|
'imageId': string | null;
|
|
4235
4243
|
'image': BaseImage | null;
|
|
4236
4244
|
'squareImageId': string | null;
|
|
@@ -4245,6 +4253,8 @@ export interface Event {
|
|
|
4245
4253
|
'paymentIntegrationId': string | null;
|
|
4246
4254
|
'paymentIntegration': BasePaymentIntegration | null;
|
|
4247
4255
|
'archived': boolean;
|
|
4256
|
+
'mapImageLightUrl': string | null;
|
|
4257
|
+
'mapImageDarkUrl': string | null;
|
|
4248
4258
|
'roundName': string | null;
|
|
4249
4259
|
'matchName': string | null;
|
|
4250
4260
|
'passSupply': number | null;
|
|
@@ -4592,13 +4602,6 @@ export interface EventCreateInputs {
|
|
|
4592
4602
|
'imageId'?: string | null;
|
|
4593
4603
|
'squareImageId'?: string | null;
|
|
4594
4604
|
'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
4605
|
'creatorId'?: string | null;
|
|
4603
4606
|
'seriesId'?: string | null;
|
|
4604
4607
|
'registration'?: boolean;
|
|
@@ -4726,6 +4729,18 @@ export interface EventFollowupUpdateInputs {
|
|
|
4726
4729
|
'guestDescription'?: string | null;
|
|
4727
4730
|
'sortOrder'?: AdvertisementCreateInputsWeight | null;
|
|
4728
4731
|
}
|
|
4732
|
+
export interface EventLocationInputs {
|
|
4733
|
+
'venue'?: string | null;
|
|
4734
|
+
'location'?: string | null;
|
|
4735
|
+
'address1'?: string | null;
|
|
4736
|
+
'address2'?: string | null;
|
|
4737
|
+
'city'?: string | null;
|
|
4738
|
+
'state'?: string | null;
|
|
4739
|
+
'country'?: string | null;
|
|
4740
|
+
'zip'?: string | null;
|
|
4741
|
+
'latitude'?: number | null;
|
|
4742
|
+
'longitude'?: number | null;
|
|
4743
|
+
}
|
|
4729
4744
|
export interface EventMediaItem {
|
|
4730
4745
|
'id': string;
|
|
4731
4746
|
'name': string | null;
|
|
@@ -5369,19 +5384,25 @@ export interface EventSessionCreateInputs {
|
|
|
5369
5384
|
export interface EventSessionLocation {
|
|
5370
5385
|
'id': string;
|
|
5371
5386
|
'name': string;
|
|
5387
|
+
'room': string | null;
|
|
5372
5388
|
'address1': string | null;
|
|
5373
5389
|
'address2': string | null;
|
|
5374
5390
|
'zip': string | null;
|
|
5375
5391
|
'city': string | null;
|
|
5376
5392
|
'state': string | null;
|
|
5377
5393
|
'country': string | null;
|
|
5394
|
+
'location': string | null;
|
|
5378
5395
|
'image': BaseImage | null;
|
|
5396
|
+
'latitude': number | null;
|
|
5397
|
+
'longitude': number | null;
|
|
5379
5398
|
'description': string | null;
|
|
5380
5399
|
'createdAt': string;
|
|
5381
5400
|
'updatedAt': string;
|
|
5382
5401
|
}
|
|
5383
5402
|
export interface EventSessionLocationCreateInputs {
|
|
5403
|
+
'location'?: string | null;
|
|
5384
5404
|
'name': string;
|
|
5405
|
+
'room'?: string | null;
|
|
5385
5406
|
'description'?: string | null;
|
|
5386
5407
|
'imageId'?: string | null;
|
|
5387
5408
|
'address1'?: string | null;
|
|
@@ -5390,6 +5411,8 @@ export interface EventSessionLocationCreateInputs {
|
|
|
5390
5411
|
'state'?: string | null;
|
|
5391
5412
|
'country'?: string | null;
|
|
5392
5413
|
'zip'?: string | null;
|
|
5414
|
+
'latitude'?: number | null;
|
|
5415
|
+
'longitude'?: number | null;
|
|
5393
5416
|
}
|
|
5394
5417
|
export interface EventSessionLocationTranslation {
|
|
5395
5418
|
'id': string;
|
|
@@ -5404,7 +5427,9 @@ export interface EventSessionLocationTranslationUpdateInputs {
|
|
|
5404
5427
|
'description'?: string | null;
|
|
5405
5428
|
}
|
|
5406
5429
|
export interface EventSessionLocationUpdateInputs {
|
|
5430
|
+
'location'?: string | null;
|
|
5407
5431
|
'name'?: string;
|
|
5432
|
+
'room'?: string | null;
|
|
5408
5433
|
'description'?: string | null;
|
|
5409
5434
|
'imageId'?: string | null;
|
|
5410
5435
|
'address1'?: string | null;
|
|
@@ -5413,6 +5438,8 @@ export interface EventSessionLocationUpdateInputs {
|
|
|
5413
5438
|
'state'?: string | null;
|
|
5414
5439
|
'country'?: string | null;
|
|
5415
5440
|
'zip'?: string | null;
|
|
5441
|
+
'latitude'?: number | null;
|
|
5442
|
+
'longitude'?: number | null;
|
|
5416
5443
|
}
|
|
5417
5444
|
export interface EventSessionPrice {
|
|
5418
5445
|
'id': string;
|
|
@@ -5975,13 +6002,6 @@ export interface EventUpdateInputs {
|
|
|
5975
6002
|
'imageId'?: string | null;
|
|
5976
6003
|
'squareImageId'?: string | null;
|
|
5977
6004
|
'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
6005
|
'creatorId'?: string | null;
|
|
5986
6006
|
'seriesId'?: string | null;
|
|
5987
6007
|
'registration'?: boolean;
|
|
@@ -24893,6 +24913,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
24893
24913
|
* @throws {RequiredError}
|
|
24894
24914
|
*/
|
|
24895
24915
|
deleteEvent: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24916
|
+
/**
|
|
24917
|
+
* Clears the location details of an existing event, requiring the update events permission.
|
|
24918
|
+
* @summary Delete an event\'s location
|
|
24919
|
+
* @param {string} eventId The event identifier
|
|
24920
|
+
* @param {*} [options] Override http request option.
|
|
24921
|
+
* @throws {RequiredError}
|
|
24922
|
+
*/
|
|
24923
|
+
deleteEventLocation: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24896
24924
|
/**
|
|
24897
24925
|
* Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
|
|
24898
24926
|
* @summary Disable build mode for an event
|
|
@@ -24964,6 +24992,15 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
24964
24992
|
* @throws {RequiredError}
|
|
24965
24993
|
*/
|
|
24966
24994
|
getEvents: (past?: boolean, featured?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24995
|
+
/**
|
|
24996
|
+
* Sets or updates the location details of an existing event, requiring the update events permission.
|
|
24997
|
+
* @summary Set an event\'s location
|
|
24998
|
+
* @param {string} eventId The event identifier
|
|
24999
|
+
* @param {EventLocationInputs} eventLocationInputs
|
|
25000
|
+
* @param {*} [options] Override http request option.
|
|
25001
|
+
* @throws {RequiredError}
|
|
25002
|
+
*/
|
|
25003
|
+
setEventLocation: (eventId: string, eventLocationInputs: EventLocationInputs, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24967
25004
|
/**
|
|
24968
25005
|
* Updates the details of an existing event with the given fields, requiring the update events permission.
|
|
24969
25006
|
* @summary Update an event
|
|
@@ -25003,6 +25040,14 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
|
|
|
25003
25040
|
* @throws {RequiredError}
|
|
25004
25041
|
*/
|
|
25005
25042
|
deleteEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>>;
|
|
25043
|
+
/**
|
|
25044
|
+
* Clears the location details of an existing event, requiring the update events permission.
|
|
25045
|
+
* @summary Delete an event\'s location
|
|
25046
|
+
* @param {string} eventId The event identifier
|
|
25047
|
+
* @param {*} [options] Override http request option.
|
|
25048
|
+
* @throws {RequiredError}
|
|
25049
|
+
*/
|
|
25050
|
+
deleteEventLocation(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEvent200Response>>;
|
|
25006
25051
|
/**
|
|
25007
25052
|
* Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
|
|
25008
25053
|
* @summary Disable build mode for an event
|
|
@@ -25074,6 +25119,15 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
|
|
|
25074
25119
|
* @throws {RequiredError}
|
|
25075
25120
|
*/
|
|
25076
25121
|
getEvents(past?: boolean, featured?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvents200Response>>;
|
|
25122
|
+
/**
|
|
25123
|
+
* Sets or updates the location details of an existing event, requiring the update events permission.
|
|
25124
|
+
* @summary Set an event\'s location
|
|
25125
|
+
* @param {string} eventId The event identifier
|
|
25126
|
+
* @param {EventLocationInputs} eventLocationInputs
|
|
25127
|
+
* @param {*} [options] Override http request option.
|
|
25128
|
+
* @throws {RequiredError}
|
|
25129
|
+
*/
|
|
25130
|
+
setEventLocation(eventId: string, eventLocationInputs: EventLocationInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEvent200Response>>;
|
|
25077
25131
|
/**
|
|
25078
25132
|
* Updates the details of an existing event with the given fields, requiring the update events permission.
|
|
25079
25133
|
* @summary Update an event
|
|
@@ -25112,6 +25166,14 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
|
|
|
25112
25166
|
* @throws {RequiredError}
|
|
25113
25167
|
*/
|
|
25114
25168
|
deleteEvent(requestParameters: EventsApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response>;
|
|
25169
|
+
/**
|
|
25170
|
+
* Clears the location details of an existing event, requiring the update events permission.
|
|
25171
|
+
* @summary Delete an event\'s location
|
|
25172
|
+
* @param {EventsApiDeleteEventLocationRequest} requestParameters Request parameters.
|
|
25173
|
+
* @param {*} [options] Override http request option.
|
|
25174
|
+
* @throws {RequiredError}
|
|
25175
|
+
*/
|
|
25176
|
+
deleteEventLocation(requestParameters: EventsApiDeleteEventLocationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEvent200Response>;
|
|
25115
25177
|
/**
|
|
25116
25178
|
* Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
|
|
25117
25179
|
* @summary Disable build mode for an event
|
|
@@ -25168,6 +25230,14 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
|
|
|
25168
25230
|
* @throws {RequiredError}
|
|
25169
25231
|
*/
|
|
25170
25232
|
getEvents(requestParameters?: EventsApiGetEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetEvents200Response>;
|
|
25233
|
+
/**
|
|
25234
|
+
* Sets or updates the location details of an existing event, requiring the update events permission.
|
|
25235
|
+
* @summary Set an event\'s location
|
|
25236
|
+
* @param {EventsApiSetEventLocationRequest} requestParameters Request parameters.
|
|
25237
|
+
* @param {*} [options] Override http request option.
|
|
25238
|
+
* @throws {RequiredError}
|
|
25239
|
+
*/
|
|
25240
|
+
setEventLocation(requestParameters: EventsApiSetEventLocationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEvent200Response>;
|
|
25171
25241
|
/**
|
|
25172
25242
|
* Updates the details of an existing event with the given fields, requiring the update events permission.
|
|
25173
25243
|
* @summary Update an event
|
|
@@ -25202,6 +25272,15 @@ export interface EventsApiDeleteEventRequest {
|
|
|
25202
25272
|
*/
|
|
25203
25273
|
readonly eventId: string;
|
|
25204
25274
|
}
|
|
25275
|
+
/**
|
|
25276
|
+
* Request parameters for deleteEventLocation operation in EventsApi.
|
|
25277
|
+
*/
|
|
25278
|
+
export interface EventsApiDeleteEventLocationRequest {
|
|
25279
|
+
/**
|
|
25280
|
+
* The event identifier
|
|
25281
|
+
*/
|
|
25282
|
+
readonly eventId: string;
|
|
25283
|
+
}
|
|
25205
25284
|
/**
|
|
25206
25285
|
* Request parameters for disableEventBuildMode operation in EventsApi.
|
|
25207
25286
|
*/
|
|
@@ -25325,6 +25404,16 @@ export interface EventsApiGetEventsRequest {
|
|
|
25325
25404
|
*/
|
|
25326
25405
|
readonly search?: string;
|
|
25327
25406
|
}
|
|
25407
|
+
/**
|
|
25408
|
+
* Request parameters for setEventLocation operation in EventsApi.
|
|
25409
|
+
*/
|
|
25410
|
+
export interface EventsApiSetEventLocationRequest {
|
|
25411
|
+
/**
|
|
25412
|
+
* The event identifier
|
|
25413
|
+
*/
|
|
25414
|
+
readonly eventId: string;
|
|
25415
|
+
readonly eventLocationInputs: EventLocationInputs;
|
|
25416
|
+
}
|
|
25328
25417
|
/**
|
|
25329
25418
|
* Request parameters for updateEvent operation in EventsApi.
|
|
25330
25419
|
*/
|
|
@@ -25363,6 +25452,14 @@ export declare class EventsApi extends BaseAPI {
|
|
|
25363
25452
|
* @throws {RequiredError}
|
|
25364
25453
|
*/
|
|
25365
25454
|
deleteEvent(requestParameters: EventsApiDeleteEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccountInvitations200Response, any, {}>>;
|
|
25455
|
+
/**
|
|
25456
|
+
* Clears the location details of an existing event, requiring the update events permission.
|
|
25457
|
+
* @summary Delete an event\'s location
|
|
25458
|
+
* @param {EventsApiDeleteEventLocationRequest} requestParameters Request parameters.
|
|
25459
|
+
* @param {*} [options] Override http request option.
|
|
25460
|
+
* @throws {RequiredError}
|
|
25461
|
+
*/
|
|
25462
|
+
deleteEventLocation(requestParameters: EventsApiDeleteEventLocationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEvent200Response, any, {}>>;
|
|
25366
25463
|
/**
|
|
25367
25464
|
* Turns off build mode for an event ahead of its scheduled expiration, restoring normal access restrictions; requires the update events permission.
|
|
25368
25465
|
* @summary Disable build mode for an event
|
|
@@ -25419,6 +25516,14 @@ export declare class EventsApi extends BaseAPI {
|
|
|
25419
25516
|
* @throws {RequiredError}
|
|
25420
25517
|
*/
|
|
25421
25518
|
getEvents(requestParameters?: EventsApiGetEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEvents200Response, any, {}>>;
|
|
25519
|
+
/**
|
|
25520
|
+
* Sets or updates the location details of an existing event, requiring the update events permission.
|
|
25521
|
+
* @summary Set an event\'s location
|
|
25522
|
+
* @param {EventsApiSetEventLocationRequest} requestParameters Request parameters.
|
|
25523
|
+
* @param {*} [options] Override http request option.
|
|
25524
|
+
* @throws {RequiredError}
|
|
25525
|
+
*/
|
|
25526
|
+
setEventLocation(requestParameters: EventsApiSetEventLocationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEvent200Response, any, {}>>;
|
|
25422
25527
|
/**
|
|
25423
25528
|
* Updates the details of an existing event with the given fields, requiring the update events permission.
|
|
25424
25529
|
* @summary Update an event
|
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
|