@connectedxm/admin-sdk 16.14.0 → 16.15.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/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Connected Admin API
5
5
  * The Admin API allows you to manage your Connected community programmatically.
6
6
  *
7
- * The version of the OpenAPI document: 16.14.0
7
+ * The version of the OpenAPI document: 16.15.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -43201,6 +43201,701 @@ export enum GetContentsTypeEnum {
43201
43201
  }
43202
43202
 
43203
43203
 
43204
+ /**
43205
+ * ChannelsInterestsApi - axios parameter creator
43206
+ */
43207
+ export const ChannelsInterestsApiAxiosParamCreator = function (configuration?: Configuration) {
43208
+ return {
43209
+ /**
43210
+ * Associates an existing interest with a content item within a channel, requiring read permission on channels and update permission on both contents and interests; the content\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43211
+ * @summary Add an interest to a content item
43212
+ * @param {string} channelId The channel identifier
43213
+ * @param {string} contentId The content identifier
43214
+ * @param {string} interestId The interest identifier
43215
+ * @param {*} [options] Override http request option.
43216
+ * @throws {RequiredError}
43217
+ */
43218
+ addChannelContentInterest: async (channelId: string, contentId: string, interestId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
43219
+ // verify required parameter 'channelId' is not null or undefined
43220
+ assertParamExists('addChannelContentInterest', 'channelId', channelId)
43221
+ // verify required parameter 'contentId' is not null or undefined
43222
+ assertParamExists('addChannelContentInterest', 'contentId', contentId)
43223
+ // verify required parameter 'interestId' is not null or undefined
43224
+ assertParamExists('addChannelContentInterest', 'interestId', interestId)
43225
+ const localVarPath = `/channels/{channelId}/contents/{contentId}/interests/{interestId}`
43226
+ .replace('{channelId}', encodeURIComponent(String(channelId)))
43227
+ .replace('{contentId}', encodeURIComponent(String(contentId)))
43228
+ .replace('{interestId}', encodeURIComponent(String(interestId)));
43229
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43230
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43231
+ let baseOptions;
43232
+ if (configuration) {
43233
+ baseOptions = configuration.baseOptions;
43234
+ }
43235
+
43236
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
43237
+ const localVarHeaderParameter = {} as any;
43238
+ const localVarQueryParameter = {} as any;
43239
+
43240
+ // authentication ApiKeyAuth required
43241
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
43242
+
43243
+ // authentication OrganizationId required
43244
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
43245
+
43246
+ localVarHeaderParameter['Accept'] = 'application/json';
43247
+
43248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43250
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43251
+
43252
+ return {
43253
+ url: toPathString(localVarUrlObj),
43254
+ options: localVarRequestOptions,
43255
+ };
43256
+ },
43257
+ /**
43258
+ * Associates an existing interest with a channel, requiring update permission on both channels and interests; the channel\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43259
+ * @summary Add an interest to a channel
43260
+ * @param {string} channelId The channel identifier
43261
+ * @param {string} interestId The interest identifier
43262
+ * @param {*} [options] Override http request option.
43263
+ * @throws {RequiredError}
43264
+ */
43265
+ addChannelInterest: async (channelId: string, interestId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
43266
+ // verify required parameter 'channelId' is not null or undefined
43267
+ assertParamExists('addChannelInterest', 'channelId', channelId)
43268
+ // verify required parameter 'interestId' is not null or undefined
43269
+ assertParamExists('addChannelInterest', 'interestId', interestId)
43270
+ const localVarPath = `/channels/{channelId}/interests/{interestId}`
43271
+ .replace('{channelId}', encodeURIComponent(String(channelId)))
43272
+ .replace('{interestId}', encodeURIComponent(String(interestId)));
43273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43274
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43275
+ let baseOptions;
43276
+ if (configuration) {
43277
+ baseOptions = configuration.baseOptions;
43278
+ }
43279
+
43280
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
43281
+ const localVarHeaderParameter = {} as any;
43282
+ const localVarQueryParameter = {} as any;
43283
+
43284
+ // authentication ApiKeyAuth required
43285
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
43286
+
43287
+ // authentication OrganizationId required
43288
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
43289
+
43290
+ localVarHeaderParameter['Accept'] = 'application/json';
43291
+
43292
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43293
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43294
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43295
+
43296
+ return {
43297
+ url: toPathString(localVarUrlObj),
43298
+ options: localVarRequestOptions,
43299
+ };
43300
+ },
43301
+ /**
43302
+ * Returns a paginated list of interest tags associated with the given content item, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on channels, contents and interests.
43303
+ * @summary List a content item\'s interests
43304
+ * @param {string} channelId The channel identifier
43305
+ * @param {string} contentId The content identifier
43306
+ * @param {number} [page] Page number
43307
+ * @param {number} [pageSize] Number of items per page
43308
+ * @param {string} [orderBy] Field to order by
43309
+ * @param {string} [search] Search query
43310
+ * @param {*} [options] Override http request option.
43311
+ * @throws {RequiredError}
43312
+ */
43313
+ getChannelContentInterests: async (channelId: string, contentId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
43314
+ // verify required parameter 'channelId' is not null or undefined
43315
+ assertParamExists('getChannelContentInterests', 'channelId', channelId)
43316
+ // verify required parameter 'contentId' is not null or undefined
43317
+ assertParamExists('getChannelContentInterests', 'contentId', contentId)
43318
+ const localVarPath = `/channels/{channelId}/contents/{contentId}/interests`
43319
+ .replace('{channelId}', encodeURIComponent(String(channelId)))
43320
+ .replace('{contentId}', encodeURIComponent(String(contentId)));
43321
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43322
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43323
+ let baseOptions;
43324
+ if (configuration) {
43325
+ baseOptions = configuration.baseOptions;
43326
+ }
43327
+
43328
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
43329
+ const localVarHeaderParameter = {} as any;
43330
+ const localVarQueryParameter = {} as any;
43331
+
43332
+ // authentication ApiKeyAuth required
43333
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
43334
+
43335
+ // authentication OrganizationId required
43336
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
43337
+
43338
+ if (page !== undefined) {
43339
+ localVarQueryParameter['page'] = page;
43340
+ }
43341
+
43342
+ if (pageSize !== undefined) {
43343
+ localVarQueryParameter['pageSize'] = pageSize;
43344
+ }
43345
+
43346
+ if (orderBy !== undefined) {
43347
+ localVarQueryParameter['orderBy'] = orderBy;
43348
+ }
43349
+
43350
+ if (search !== undefined) {
43351
+ localVarQueryParameter['search'] = search;
43352
+ }
43353
+
43354
+ localVarHeaderParameter['Accept'] = 'application/json';
43355
+
43356
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43357
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43358
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43359
+
43360
+ return {
43361
+ url: toPathString(localVarUrlObj),
43362
+ options: localVarRequestOptions,
43363
+ };
43364
+ },
43365
+ /**
43366
+ * Returns a paginated list of interest tags associated with the given channel, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on channels and interests.
43367
+ * @summary List a channel\'s interests
43368
+ * @param {string} channelId The channel identifier
43369
+ * @param {number} [page] Page number
43370
+ * @param {number} [pageSize] Number of items per page
43371
+ * @param {string} [orderBy] Field to order by
43372
+ * @param {string} [search] Search query
43373
+ * @param {*} [options] Override http request option.
43374
+ * @throws {RequiredError}
43375
+ */
43376
+ getChannelInterests: async (channelId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
43377
+ // verify required parameter 'channelId' is not null or undefined
43378
+ assertParamExists('getChannelInterests', 'channelId', channelId)
43379
+ const localVarPath = `/channels/{channelId}/interests`
43380
+ .replace('{channelId}', encodeURIComponent(String(channelId)));
43381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43382
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43383
+ let baseOptions;
43384
+ if (configuration) {
43385
+ baseOptions = configuration.baseOptions;
43386
+ }
43387
+
43388
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
43389
+ const localVarHeaderParameter = {} as any;
43390
+ const localVarQueryParameter = {} as any;
43391
+
43392
+ // authentication ApiKeyAuth required
43393
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
43394
+
43395
+ // authentication OrganizationId required
43396
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
43397
+
43398
+ if (page !== undefined) {
43399
+ localVarQueryParameter['page'] = page;
43400
+ }
43401
+
43402
+ if (pageSize !== undefined) {
43403
+ localVarQueryParameter['pageSize'] = pageSize;
43404
+ }
43405
+
43406
+ if (orderBy !== undefined) {
43407
+ localVarQueryParameter['orderBy'] = orderBy;
43408
+ }
43409
+
43410
+ if (search !== undefined) {
43411
+ localVarQueryParameter['search'] = search;
43412
+ }
43413
+
43414
+ localVarHeaderParameter['Accept'] = 'application/json';
43415
+
43416
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43417
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43418
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43419
+
43420
+ return {
43421
+ url: toPathString(localVarUrlObj),
43422
+ options: localVarRequestOptions,
43423
+ };
43424
+ },
43425
+ /**
43426
+ * Removes an interest from a content item within a channel, requiring read permission on channels and update permission on both contents and interests; the content\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43427
+ * @summary Remove an interest from a content item
43428
+ * @param {string} channelId The channel identifier
43429
+ * @param {string} contentId The content identifier
43430
+ * @param {string} interestId The interest identifier
43431
+ * @param {*} [options] Override http request option.
43432
+ * @throws {RequiredError}
43433
+ */
43434
+ removeChannelContentInterest: async (channelId: string, contentId: string, interestId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
43435
+ // verify required parameter 'channelId' is not null or undefined
43436
+ assertParamExists('removeChannelContentInterest', 'channelId', channelId)
43437
+ // verify required parameter 'contentId' is not null or undefined
43438
+ assertParamExists('removeChannelContentInterest', 'contentId', contentId)
43439
+ // verify required parameter 'interestId' is not null or undefined
43440
+ assertParamExists('removeChannelContentInterest', 'interestId', interestId)
43441
+ const localVarPath = `/channels/{channelId}/contents/{contentId}/interests/{interestId}`
43442
+ .replace('{channelId}', encodeURIComponent(String(channelId)))
43443
+ .replace('{contentId}', encodeURIComponent(String(contentId)))
43444
+ .replace('{interestId}', encodeURIComponent(String(interestId)));
43445
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43446
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43447
+ let baseOptions;
43448
+ if (configuration) {
43449
+ baseOptions = configuration.baseOptions;
43450
+ }
43451
+
43452
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
43453
+ const localVarHeaderParameter = {} as any;
43454
+ const localVarQueryParameter = {} as any;
43455
+
43456
+ // authentication ApiKeyAuth required
43457
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
43458
+
43459
+ // authentication OrganizationId required
43460
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
43461
+
43462
+ localVarHeaderParameter['Accept'] = 'application/json';
43463
+
43464
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43466
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43467
+
43468
+ return {
43469
+ url: toPathString(localVarUrlObj),
43470
+ options: localVarRequestOptions,
43471
+ };
43472
+ },
43473
+ /**
43474
+ * Removes an interest from a channel, requiring update permission on both channels and interests; the channel\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43475
+ * @summary Remove an interest from a channel
43476
+ * @param {string} channelId The channel identifier
43477
+ * @param {string} interestId The interest identifier
43478
+ * @param {*} [options] Override http request option.
43479
+ * @throws {RequiredError}
43480
+ */
43481
+ removeChannelInterest: async (channelId: string, interestId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
43482
+ // verify required parameter 'channelId' is not null or undefined
43483
+ assertParamExists('removeChannelInterest', 'channelId', channelId)
43484
+ // verify required parameter 'interestId' is not null or undefined
43485
+ assertParamExists('removeChannelInterest', 'interestId', interestId)
43486
+ const localVarPath = `/channels/{channelId}/interests/{interestId}`
43487
+ .replace('{channelId}', encodeURIComponent(String(channelId)))
43488
+ .replace('{interestId}', encodeURIComponent(String(interestId)));
43489
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43490
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43491
+ let baseOptions;
43492
+ if (configuration) {
43493
+ baseOptions = configuration.baseOptions;
43494
+ }
43495
+
43496
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
43497
+ const localVarHeaderParameter = {} as any;
43498
+ const localVarQueryParameter = {} as any;
43499
+
43500
+ // authentication ApiKeyAuth required
43501
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
43502
+
43503
+ // authentication OrganizationId required
43504
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
43505
+
43506
+ localVarHeaderParameter['Accept'] = 'application/json';
43507
+
43508
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43509
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43510
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43511
+
43512
+ return {
43513
+ url: toPathString(localVarUrlObj),
43514
+ options: localVarRequestOptions,
43515
+ };
43516
+ },
43517
+ }
43518
+ };
43519
+
43520
+ /**
43521
+ * ChannelsInterestsApi - functional programming interface
43522
+ */
43523
+ export const ChannelsInterestsApiFp = function(configuration?: Configuration) {
43524
+ const localVarAxiosParamCreator = ChannelsInterestsApiAxiosParamCreator(configuration)
43525
+ return {
43526
+ /**
43527
+ * Associates an existing interest with a content item within a channel, requiring read permission on channels and update permission on both contents and interests; the content\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43528
+ * @summary Add an interest to a content item
43529
+ * @param {string} channelId The channel identifier
43530
+ * @param {string} contentId The content identifier
43531
+ * @param {string} interestId The interest identifier
43532
+ * @param {*} [options] Override http request option.
43533
+ * @throws {RequiredError}
43534
+ */
43535
+ async addChannelContentInterest(channelId: string, contentId: string, interestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateChannelContent200Response>> {
43536
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addChannelContentInterest(channelId, contentId, interestId, options);
43537
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43538
+ const localVarOperationServerBasePath = operationServerMap['ChannelsInterestsApi.addChannelContentInterest']?.[localVarOperationServerIndex]?.url;
43539
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
43540
+ },
43541
+ /**
43542
+ * Associates an existing interest with a channel, requiring update permission on both channels and interests; the channel\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43543
+ * @summary Add an interest to a channel
43544
+ * @param {string} channelId The channel identifier
43545
+ * @param {string} interestId The interest identifier
43546
+ * @param {*} [options] Override http request option.
43547
+ * @throws {RequiredError}
43548
+ */
43549
+ async addChannelInterest(channelId: string, interestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateChannel200Response>> {
43550
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addChannelInterest(channelId, interestId, options);
43551
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43552
+ const localVarOperationServerBasePath = operationServerMap['ChannelsInterestsApi.addChannelInterest']?.[localVarOperationServerIndex]?.url;
43553
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
43554
+ },
43555
+ /**
43556
+ * Returns a paginated list of interest tags associated with the given content item, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on channels, contents and interests.
43557
+ * @summary List a content item\'s interests
43558
+ * @param {string} channelId The channel identifier
43559
+ * @param {string} contentId The content identifier
43560
+ * @param {number} [page] Page number
43561
+ * @param {number} [pageSize] Number of items per page
43562
+ * @param {string} [orderBy] Field to order by
43563
+ * @param {string} [search] Search query
43564
+ * @param {*} [options] Override http request option.
43565
+ * @throws {RequiredError}
43566
+ */
43567
+ async getChannelContentInterests(channelId: string, contentId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountInterests200Response>> {
43568
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getChannelContentInterests(channelId, contentId, page, pageSize, orderBy, search, options);
43569
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43570
+ const localVarOperationServerBasePath = operationServerMap['ChannelsInterestsApi.getChannelContentInterests']?.[localVarOperationServerIndex]?.url;
43571
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
43572
+ },
43573
+ /**
43574
+ * Returns a paginated list of interest tags associated with the given channel, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on channels and interests.
43575
+ * @summary List a channel\'s interests
43576
+ * @param {string} channelId The channel identifier
43577
+ * @param {number} [page] Page number
43578
+ * @param {number} [pageSize] Number of items per page
43579
+ * @param {string} [orderBy] Field to order by
43580
+ * @param {string} [search] Search query
43581
+ * @param {*} [options] Override http request option.
43582
+ * @throws {RequiredError}
43583
+ */
43584
+ async getChannelInterests(channelId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountInterests200Response>> {
43585
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getChannelInterests(channelId, page, pageSize, orderBy, search, options);
43586
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43587
+ const localVarOperationServerBasePath = operationServerMap['ChannelsInterestsApi.getChannelInterests']?.[localVarOperationServerIndex]?.url;
43588
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
43589
+ },
43590
+ /**
43591
+ * Removes an interest from a content item within a channel, requiring read permission on channels and update permission on both contents and interests; the content\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43592
+ * @summary Remove an interest from a content item
43593
+ * @param {string} channelId The channel identifier
43594
+ * @param {string} contentId The content identifier
43595
+ * @param {string} interestId The interest identifier
43596
+ * @param {*} [options] Override http request option.
43597
+ * @throws {RequiredError}
43598
+ */
43599
+ async removeChannelContentInterest(channelId: string, contentId: string, interestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateChannelContent200Response>> {
43600
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeChannelContentInterest(channelId, contentId, interestId, options);
43601
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43602
+ const localVarOperationServerBasePath = operationServerMap['ChannelsInterestsApi.removeChannelContentInterest']?.[localVarOperationServerIndex]?.url;
43603
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
43604
+ },
43605
+ /**
43606
+ * Removes an interest from a channel, requiring update permission on both channels and interests; the channel\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43607
+ * @summary Remove an interest from a channel
43608
+ * @param {string} channelId The channel identifier
43609
+ * @param {string} interestId The interest identifier
43610
+ * @param {*} [options] Override http request option.
43611
+ * @throws {RequiredError}
43612
+ */
43613
+ async removeChannelInterest(channelId: string, interestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateChannel200Response>> {
43614
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeChannelInterest(channelId, interestId, options);
43615
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43616
+ const localVarOperationServerBasePath = operationServerMap['ChannelsInterestsApi.removeChannelInterest']?.[localVarOperationServerIndex]?.url;
43617
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
43618
+ },
43619
+ }
43620
+ };
43621
+
43622
+ /**
43623
+ * ChannelsInterestsApi - factory interface
43624
+ */
43625
+ export const ChannelsInterestsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
43626
+ const localVarFp = ChannelsInterestsApiFp(configuration)
43627
+ return {
43628
+ /**
43629
+ * Associates an existing interest with a content item within a channel, requiring read permission on channels and update permission on both contents and interests; the content\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43630
+ * @summary Add an interest to a content item
43631
+ * @param {ChannelsInterestsApiAddChannelContentInterestRequest} requestParameters Request parameters.
43632
+ * @param {*} [options] Override http request option.
43633
+ * @throws {RequiredError}
43634
+ */
43635
+ addChannelContentInterest(requestParameters: ChannelsInterestsApiAddChannelContentInterestRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateChannelContent200Response> {
43636
+ return localVarFp.addChannelContentInterest(requestParameters.channelId, requestParameters.contentId, requestParameters.interestId, options).then((request) => request(axios, basePath));
43637
+ },
43638
+ /**
43639
+ * Associates an existing interest with a channel, requiring update permission on both channels and interests; the channel\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43640
+ * @summary Add an interest to a channel
43641
+ * @param {ChannelsInterestsApiAddChannelInterestRequest} requestParameters Request parameters.
43642
+ * @param {*} [options] Override http request option.
43643
+ * @throws {RequiredError}
43644
+ */
43645
+ addChannelInterest(requestParameters: ChannelsInterestsApiAddChannelInterestRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateChannel200Response> {
43646
+ return localVarFp.addChannelInterest(requestParameters.channelId, requestParameters.interestId, options).then((request) => request(axios, basePath));
43647
+ },
43648
+ /**
43649
+ * Returns a paginated list of interest tags associated with the given content item, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on channels, contents and interests.
43650
+ * @summary List a content item\'s interests
43651
+ * @param {ChannelsInterestsApiGetChannelContentInterestsRequest} requestParameters Request parameters.
43652
+ * @param {*} [options] Override http request option.
43653
+ * @throws {RequiredError}
43654
+ */
43655
+ getChannelContentInterests(requestParameters: ChannelsInterestsApiGetChannelContentInterestsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountInterests200Response> {
43656
+ return localVarFp.getChannelContentInterests(requestParameters.channelId, requestParameters.contentId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
43657
+ },
43658
+ /**
43659
+ * Returns a paginated list of interest tags associated with the given channel, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on channels and interests.
43660
+ * @summary List a channel\'s interests
43661
+ * @param {ChannelsInterestsApiGetChannelInterestsRequest} requestParameters Request parameters.
43662
+ * @param {*} [options] Override http request option.
43663
+ * @throws {RequiredError}
43664
+ */
43665
+ getChannelInterests(requestParameters: ChannelsInterestsApiGetChannelInterestsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountInterests200Response> {
43666
+ return localVarFp.getChannelInterests(requestParameters.channelId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
43667
+ },
43668
+ /**
43669
+ * Removes an interest from a content item within a channel, requiring read permission on channels and update permission on both contents and interests; the content\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43670
+ * @summary Remove an interest from a content item
43671
+ * @param {ChannelsInterestsApiRemoveChannelContentInterestRequest} requestParameters Request parameters.
43672
+ * @param {*} [options] Override http request option.
43673
+ * @throws {RequiredError}
43674
+ */
43675
+ removeChannelContentInterest(requestParameters: ChannelsInterestsApiRemoveChannelContentInterestRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateChannelContent200Response> {
43676
+ return localVarFp.removeChannelContentInterest(requestParameters.channelId, requestParameters.contentId, requestParameters.interestId, options).then((request) => request(axios, basePath));
43677
+ },
43678
+ /**
43679
+ * Removes an interest from a channel, requiring update permission on both channels and interests; the channel\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43680
+ * @summary Remove an interest from a channel
43681
+ * @param {ChannelsInterestsApiRemoveChannelInterestRequest} requestParameters Request parameters.
43682
+ * @param {*} [options] Override http request option.
43683
+ * @throws {RequiredError}
43684
+ */
43685
+ removeChannelInterest(requestParameters: ChannelsInterestsApiRemoveChannelInterestRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateChannel200Response> {
43686
+ return localVarFp.removeChannelInterest(requestParameters.channelId, requestParameters.interestId, options).then((request) => request(axios, basePath));
43687
+ },
43688
+ };
43689
+ };
43690
+
43691
+ /**
43692
+ * Request parameters for addChannelContentInterest operation in ChannelsInterestsApi.
43693
+ */
43694
+ export interface ChannelsInterestsApiAddChannelContentInterestRequest {
43695
+ /**
43696
+ * The channel identifier
43697
+ */
43698
+ readonly channelId: string
43699
+
43700
+ /**
43701
+ * The content identifier
43702
+ */
43703
+ readonly contentId: string
43704
+
43705
+ /**
43706
+ * The interest identifier
43707
+ */
43708
+ readonly interestId: string
43709
+ }
43710
+
43711
+ /**
43712
+ * Request parameters for addChannelInterest operation in ChannelsInterestsApi.
43713
+ */
43714
+ export interface ChannelsInterestsApiAddChannelInterestRequest {
43715
+ /**
43716
+ * The channel identifier
43717
+ */
43718
+ readonly channelId: string
43719
+
43720
+ /**
43721
+ * The interest identifier
43722
+ */
43723
+ readonly interestId: string
43724
+ }
43725
+
43726
+ /**
43727
+ * Request parameters for getChannelContentInterests operation in ChannelsInterestsApi.
43728
+ */
43729
+ export interface ChannelsInterestsApiGetChannelContentInterestsRequest {
43730
+ /**
43731
+ * The channel identifier
43732
+ */
43733
+ readonly channelId: string
43734
+
43735
+ /**
43736
+ * The content identifier
43737
+ */
43738
+ readonly contentId: string
43739
+
43740
+ /**
43741
+ * Page number
43742
+ */
43743
+ readonly page?: number
43744
+
43745
+ /**
43746
+ * Number of items per page
43747
+ */
43748
+ readonly pageSize?: number
43749
+
43750
+ /**
43751
+ * Field to order by
43752
+ */
43753
+ readonly orderBy?: string
43754
+
43755
+ /**
43756
+ * Search query
43757
+ */
43758
+ readonly search?: string
43759
+ }
43760
+
43761
+ /**
43762
+ * Request parameters for getChannelInterests operation in ChannelsInterestsApi.
43763
+ */
43764
+ export interface ChannelsInterestsApiGetChannelInterestsRequest {
43765
+ /**
43766
+ * The channel identifier
43767
+ */
43768
+ readonly channelId: string
43769
+
43770
+ /**
43771
+ * Page number
43772
+ */
43773
+ readonly page?: number
43774
+
43775
+ /**
43776
+ * Number of items per page
43777
+ */
43778
+ readonly pageSize?: number
43779
+
43780
+ /**
43781
+ * Field to order by
43782
+ */
43783
+ readonly orderBy?: string
43784
+
43785
+ /**
43786
+ * Search query
43787
+ */
43788
+ readonly search?: string
43789
+ }
43790
+
43791
+ /**
43792
+ * Request parameters for removeChannelContentInterest operation in ChannelsInterestsApi.
43793
+ */
43794
+ export interface ChannelsInterestsApiRemoveChannelContentInterestRequest {
43795
+ /**
43796
+ * The channel identifier
43797
+ */
43798
+ readonly channelId: string
43799
+
43800
+ /**
43801
+ * The content identifier
43802
+ */
43803
+ readonly contentId: string
43804
+
43805
+ /**
43806
+ * The interest identifier
43807
+ */
43808
+ readonly interestId: string
43809
+ }
43810
+
43811
+ /**
43812
+ * Request parameters for removeChannelInterest operation in ChannelsInterestsApi.
43813
+ */
43814
+ export interface ChannelsInterestsApiRemoveChannelInterestRequest {
43815
+ /**
43816
+ * The channel identifier
43817
+ */
43818
+ readonly channelId: string
43819
+
43820
+ /**
43821
+ * The interest identifier
43822
+ */
43823
+ readonly interestId: string
43824
+ }
43825
+
43826
+ /**
43827
+ * ChannelsInterestsApi - object-oriented interface
43828
+ */
43829
+ export class ChannelsInterestsApi extends BaseAPI {
43830
+ /**
43831
+ * Associates an existing interest with a content item within a channel, requiring read permission on channels and update permission on both contents and interests; the content\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43832
+ * @summary Add an interest to a content item
43833
+ * @param {ChannelsInterestsApiAddChannelContentInterestRequest} requestParameters Request parameters.
43834
+ * @param {*} [options] Override http request option.
43835
+ * @throws {RequiredError}
43836
+ */
43837
+ public addChannelContentInterest(requestParameters: ChannelsInterestsApiAddChannelContentInterestRequest, options?: RawAxiosRequestConfig) {
43838
+ return ChannelsInterestsApiFp(this.configuration).addChannelContentInterest(requestParameters.channelId, requestParameters.contentId, requestParameters.interestId, options).then((request) => request(this.axios, this.basePath));
43839
+ }
43840
+
43841
+ /**
43842
+ * Associates an existing interest with a channel, requiring update permission on both channels and interests; the channel\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43843
+ * @summary Add an interest to a channel
43844
+ * @param {ChannelsInterestsApiAddChannelInterestRequest} requestParameters Request parameters.
43845
+ * @param {*} [options] Override http request option.
43846
+ * @throws {RequiredError}
43847
+ */
43848
+ public addChannelInterest(requestParameters: ChannelsInterestsApiAddChannelInterestRequest, options?: RawAxiosRequestConfig) {
43849
+ return ChannelsInterestsApiFp(this.configuration).addChannelInterest(requestParameters.channelId, requestParameters.interestId, options).then((request) => request(this.axios, this.basePath));
43850
+ }
43851
+
43852
+ /**
43853
+ * Returns a paginated list of interest tags associated with the given content item, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on channels, contents and interests.
43854
+ * @summary List a content item\'s interests
43855
+ * @param {ChannelsInterestsApiGetChannelContentInterestsRequest} requestParameters Request parameters.
43856
+ * @param {*} [options] Override http request option.
43857
+ * @throws {RequiredError}
43858
+ */
43859
+ public getChannelContentInterests(requestParameters: ChannelsInterestsApiGetChannelContentInterestsRequest, options?: RawAxiosRequestConfig) {
43860
+ return ChannelsInterestsApiFp(this.configuration).getChannelContentInterests(requestParameters.channelId, requestParameters.contentId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
43861
+ }
43862
+
43863
+ /**
43864
+ * Returns a paginated list of interest tags associated with the given channel, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on channels and interests.
43865
+ * @summary List a channel\'s interests
43866
+ * @param {ChannelsInterestsApiGetChannelInterestsRequest} requestParameters Request parameters.
43867
+ * @param {*} [options] Override http request option.
43868
+ * @throws {RequiredError}
43869
+ */
43870
+ public getChannelInterests(requestParameters: ChannelsInterestsApiGetChannelInterestsRequest, options?: RawAxiosRequestConfig) {
43871
+ return ChannelsInterestsApiFp(this.configuration).getChannelInterests(requestParameters.channelId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
43872
+ }
43873
+
43874
+ /**
43875
+ * Removes an interest from a content item within a channel, requiring read permission on channels and update permission on both contents and interests; the content\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43876
+ * @summary Remove an interest from a content item
43877
+ * @param {ChannelsInterestsApiRemoveChannelContentInterestRequest} requestParameters Request parameters.
43878
+ * @param {*} [options] Override http request option.
43879
+ * @throws {RequiredError}
43880
+ */
43881
+ public removeChannelContentInterest(requestParameters: ChannelsInterestsApiRemoveChannelContentInterestRequest, options?: RawAxiosRequestConfig) {
43882
+ return ChannelsInterestsApiFp(this.configuration).removeChannelContentInterest(requestParameters.channelId, requestParameters.contentId, requestParameters.interestId, options).then((request) => request(this.axios, this.basePath));
43883
+ }
43884
+
43885
+ /**
43886
+ * Removes an interest from a channel, requiring update permission on both channels and interests; the channel\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
43887
+ * @summary Remove an interest from a channel
43888
+ * @param {ChannelsInterestsApiRemoveChannelInterestRequest} requestParameters Request parameters.
43889
+ * @param {*} [options] Override http request option.
43890
+ * @throws {RequiredError}
43891
+ */
43892
+ public removeChannelInterest(requestParameters: ChannelsInterestsApiRemoveChannelInterestRequest, options?: RawAxiosRequestConfig) {
43893
+ return ChannelsInterestsApiFp(this.configuration).removeChannelInterest(requestParameters.channelId, requestParameters.interestId, options).then((request) => request(this.axios, this.basePath));
43894
+ }
43895
+ }
43896
+
43897
+
43898
+
43204
43899
  /**
43205
43900
  * ChannelsTranslationsApi - axios parameter creator
43206
43901
  */
@@ -61405,6 +62100,355 @@ export class EventsGroupcouponreminderApi extends BaseAPI {
61405
62100
 
61406
62101
 
61407
62102
 
62103
+ /**
62104
+ * EventsInterestsApi - axios parameter creator
62105
+ */
62106
+ export const EventsInterestsApiAxiosParamCreator = function (configuration?: Configuration) {
62107
+ return {
62108
+ /**
62109
+ * Associates an existing interest with an event, requiring update permission on both events and interests; the event\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
62110
+ * @summary Add an interest to an event
62111
+ * @param {string} eventId The event identifier
62112
+ * @param {string} interestId The interest identifier
62113
+ * @param {*} [options] Override http request option.
62114
+ * @throws {RequiredError}
62115
+ */
62116
+ addEventInterest: async (eventId: string, interestId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
62117
+ // verify required parameter 'eventId' is not null or undefined
62118
+ assertParamExists('addEventInterest', 'eventId', eventId)
62119
+ // verify required parameter 'interestId' is not null or undefined
62120
+ assertParamExists('addEventInterest', 'interestId', interestId)
62121
+ const localVarPath = `/events/{eventId}/interests/{interestId}`
62122
+ .replace('{eventId}', encodeURIComponent(String(eventId)))
62123
+ .replace('{interestId}', encodeURIComponent(String(interestId)));
62124
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
62125
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
62126
+ let baseOptions;
62127
+ if (configuration) {
62128
+ baseOptions = configuration.baseOptions;
62129
+ }
62130
+
62131
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
62132
+ const localVarHeaderParameter = {} as any;
62133
+ const localVarQueryParameter = {} as any;
62134
+
62135
+ // authentication ApiKeyAuth required
62136
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
62137
+
62138
+ // authentication OrganizationId required
62139
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
62140
+
62141
+ localVarHeaderParameter['Accept'] = 'application/json';
62142
+
62143
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
62144
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
62145
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
62146
+
62147
+ return {
62148
+ url: toPathString(localVarUrlObj),
62149
+ options: localVarRequestOptions,
62150
+ };
62151
+ },
62152
+ /**
62153
+ * Returns a paginated list of interest tags associated with the given event, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on events and interests.
62154
+ * @summary List an event\'s interests
62155
+ * @param {string} eventId The event identifier
62156
+ * @param {number} [page] Page number
62157
+ * @param {number} [pageSize] Number of items per page
62158
+ * @param {string} [orderBy] Field to order by
62159
+ * @param {string} [search] Search query
62160
+ * @param {*} [options] Override http request option.
62161
+ * @throws {RequiredError}
62162
+ */
62163
+ getEventInterests: async (eventId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
62164
+ // verify required parameter 'eventId' is not null or undefined
62165
+ assertParamExists('getEventInterests', 'eventId', eventId)
62166
+ const localVarPath = `/events/{eventId}/interests`
62167
+ .replace('{eventId}', encodeURIComponent(String(eventId)));
62168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
62169
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
62170
+ let baseOptions;
62171
+ if (configuration) {
62172
+ baseOptions = configuration.baseOptions;
62173
+ }
62174
+
62175
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
62176
+ const localVarHeaderParameter = {} as any;
62177
+ const localVarQueryParameter = {} as any;
62178
+
62179
+ // authentication ApiKeyAuth required
62180
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
62181
+
62182
+ // authentication OrganizationId required
62183
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
62184
+
62185
+ if (page !== undefined) {
62186
+ localVarQueryParameter['page'] = page;
62187
+ }
62188
+
62189
+ if (pageSize !== undefined) {
62190
+ localVarQueryParameter['pageSize'] = pageSize;
62191
+ }
62192
+
62193
+ if (orderBy !== undefined) {
62194
+ localVarQueryParameter['orderBy'] = orderBy;
62195
+ }
62196
+
62197
+ if (search !== undefined) {
62198
+ localVarQueryParameter['search'] = search;
62199
+ }
62200
+
62201
+ localVarHeaderParameter['Accept'] = 'application/json';
62202
+
62203
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
62204
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
62205
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
62206
+
62207
+ return {
62208
+ url: toPathString(localVarUrlObj),
62209
+ options: localVarRequestOptions,
62210
+ };
62211
+ },
62212
+ /**
62213
+ * Removes an interest from an event, requiring update permission on both events and interests; the event\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
62214
+ * @summary Remove an interest from an event
62215
+ * @param {string} eventId The event identifier
62216
+ * @param {string} interestId The interest identifier
62217
+ * @param {*} [options] Override http request option.
62218
+ * @throws {RequiredError}
62219
+ */
62220
+ removeEventInterest: async (eventId: string, interestId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
62221
+ // verify required parameter 'eventId' is not null or undefined
62222
+ assertParamExists('removeEventInterest', 'eventId', eventId)
62223
+ // verify required parameter 'interestId' is not null or undefined
62224
+ assertParamExists('removeEventInterest', 'interestId', interestId)
62225
+ const localVarPath = `/events/{eventId}/interests/{interestId}`
62226
+ .replace('{eventId}', encodeURIComponent(String(eventId)))
62227
+ .replace('{interestId}', encodeURIComponent(String(interestId)));
62228
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
62229
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
62230
+ let baseOptions;
62231
+ if (configuration) {
62232
+ baseOptions = configuration.baseOptions;
62233
+ }
62234
+
62235
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
62236
+ const localVarHeaderParameter = {} as any;
62237
+ const localVarQueryParameter = {} as any;
62238
+
62239
+ // authentication ApiKeyAuth required
62240
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
62241
+
62242
+ // authentication OrganizationId required
62243
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
62244
+
62245
+ localVarHeaderParameter['Accept'] = 'application/json';
62246
+
62247
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
62248
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
62249
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
62250
+
62251
+ return {
62252
+ url: toPathString(localVarUrlObj),
62253
+ options: localVarRequestOptions,
62254
+ };
62255
+ },
62256
+ }
62257
+ };
62258
+
62259
+ /**
62260
+ * EventsInterestsApi - functional programming interface
62261
+ */
62262
+ export const EventsInterestsApiFp = function(configuration?: Configuration) {
62263
+ const localVarAxiosParamCreator = EventsInterestsApiAxiosParamCreator(configuration)
62264
+ return {
62265
+ /**
62266
+ * Associates an existing interest with an event, requiring update permission on both events and interests; the event\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
62267
+ * @summary Add an interest to an event
62268
+ * @param {string} eventId The event identifier
62269
+ * @param {string} interestId The interest identifier
62270
+ * @param {*} [options] Override http request option.
62271
+ * @throws {RequiredError}
62272
+ */
62273
+ async addEventInterest(eventId: string, interestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEvent200Response>> {
62274
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addEventInterest(eventId, interestId, options);
62275
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
62276
+ const localVarOperationServerBasePath = operationServerMap['EventsInterestsApi.addEventInterest']?.[localVarOperationServerIndex]?.url;
62277
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
62278
+ },
62279
+ /**
62280
+ * Returns a paginated list of interest tags associated with the given event, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on events and interests.
62281
+ * @summary List an event\'s interests
62282
+ * @param {string} eventId The event identifier
62283
+ * @param {number} [page] Page number
62284
+ * @param {number} [pageSize] Number of items per page
62285
+ * @param {string} [orderBy] Field to order by
62286
+ * @param {string} [search] Search query
62287
+ * @param {*} [options] Override http request option.
62288
+ * @throws {RequiredError}
62289
+ */
62290
+ async getEventInterests(eventId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountInterests200Response>> {
62291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventInterests(eventId, page, pageSize, orderBy, search, options);
62292
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
62293
+ const localVarOperationServerBasePath = operationServerMap['EventsInterestsApi.getEventInterests']?.[localVarOperationServerIndex]?.url;
62294
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
62295
+ },
62296
+ /**
62297
+ * Removes an interest from an event, requiring update permission on both events and interests; the event\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
62298
+ * @summary Remove an interest from an event
62299
+ * @param {string} eventId The event identifier
62300
+ * @param {string} interestId The interest identifier
62301
+ * @param {*} [options] Override http request option.
62302
+ * @throws {RequiredError}
62303
+ */
62304
+ async removeEventInterest(eventId: string, interestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEvent200Response>> {
62305
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeEventInterest(eventId, interestId, options);
62306
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
62307
+ const localVarOperationServerBasePath = operationServerMap['EventsInterestsApi.removeEventInterest']?.[localVarOperationServerIndex]?.url;
62308
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
62309
+ },
62310
+ }
62311
+ };
62312
+
62313
+ /**
62314
+ * EventsInterestsApi - factory interface
62315
+ */
62316
+ export const EventsInterestsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
62317
+ const localVarFp = EventsInterestsApiFp(configuration)
62318
+ return {
62319
+ /**
62320
+ * Associates an existing interest with an event, requiring update permission on both events and interests; the event\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
62321
+ * @summary Add an interest to an event
62322
+ * @param {EventsInterestsApiAddEventInterestRequest} requestParameters Request parameters.
62323
+ * @param {*} [options] Override http request option.
62324
+ * @throws {RequiredError}
62325
+ */
62326
+ addEventInterest(requestParameters: EventsInterestsApiAddEventInterestRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEvent200Response> {
62327
+ return localVarFp.addEventInterest(requestParameters.eventId, requestParameters.interestId, options).then((request) => request(axios, basePath));
62328
+ },
62329
+ /**
62330
+ * Returns a paginated list of interest tags associated with the given event, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on events and interests.
62331
+ * @summary List an event\'s interests
62332
+ * @param {EventsInterestsApiGetEventInterestsRequest} requestParameters Request parameters.
62333
+ * @param {*} [options] Override http request option.
62334
+ * @throws {RequiredError}
62335
+ */
62336
+ getEventInterests(requestParameters: EventsInterestsApiGetEventInterestsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountInterests200Response> {
62337
+ return localVarFp.getEventInterests(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
62338
+ },
62339
+ /**
62340
+ * Removes an interest from an event, requiring update permission on both events and interests; the event\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
62341
+ * @summary Remove an interest from an event
62342
+ * @param {EventsInterestsApiRemoveEventInterestRequest} requestParameters Request parameters.
62343
+ * @param {*} [options] Override http request option.
62344
+ * @throws {RequiredError}
62345
+ */
62346
+ removeEventInterest(requestParameters: EventsInterestsApiRemoveEventInterestRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEvent200Response> {
62347
+ return localVarFp.removeEventInterest(requestParameters.eventId, requestParameters.interestId, options).then((request) => request(axios, basePath));
62348
+ },
62349
+ };
62350
+ };
62351
+
62352
+ /**
62353
+ * Request parameters for addEventInterest operation in EventsInterestsApi.
62354
+ */
62355
+ export interface EventsInterestsApiAddEventInterestRequest {
62356
+ /**
62357
+ * The event identifier
62358
+ */
62359
+ readonly eventId: string
62360
+
62361
+ /**
62362
+ * The interest identifier
62363
+ */
62364
+ readonly interestId: string
62365
+ }
62366
+
62367
+ /**
62368
+ * Request parameters for getEventInterests operation in EventsInterestsApi.
62369
+ */
62370
+ export interface EventsInterestsApiGetEventInterestsRequest {
62371
+ /**
62372
+ * The event identifier
62373
+ */
62374
+ readonly eventId: string
62375
+
62376
+ /**
62377
+ * Page number
62378
+ */
62379
+ readonly page?: number
62380
+
62381
+ /**
62382
+ * Number of items per page
62383
+ */
62384
+ readonly pageSize?: number
62385
+
62386
+ /**
62387
+ * Field to order by
62388
+ */
62389
+ readonly orderBy?: string
62390
+
62391
+ /**
62392
+ * Search query
62393
+ */
62394
+ readonly search?: string
62395
+ }
62396
+
62397
+ /**
62398
+ * Request parameters for removeEventInterest operation in EventsInterestsApi.
62399
+ */
62400
+ export interface EventsInterestsApiRemoveEventInterestRequest {
62401
+ /**
62402
+ * The event identifier
62403
+ */
62404
+ readonly eventId: string
62405
+
62406
+ /**
62407
+ * The interest identifier
62408
+ */
62409
+ readonly interestId: string
62410
+ }
62411
+
62412
+ /**
62413
+ * EventsInterestsApi - object-oriented interface
62414
+ */
62415
+ export class EventsInterestsApi extends BaseAPI {
62416
+ /**
62417
+ * Associates an existing interest with an event, requiring update permission on both events and interests; the event\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
62418
+ * @summary Add an interest to an event
62419
+ * @param {EventsInterestsApiAddEventInterestRequest} requestParameters Request parameters.
62420
+ * @param {*} [options] Override http request option.
62421
+ * @throws {RequiredError}
62422
+ */
62423
+ public addEventInterest(requestParameters: EventsInterestsApiAddEventInterestRequest, options?: RawAxiosRequestConfig) {
62424
+ return EventsInterestsApiFp(this.configuration).addEventInterest(requestParameters.eventId, requestParameters.interestId, options).then((request) => request(this.axios, this.basePath));
62425
+ }
62426
+
62427
+ /**
62428
+ * Returns a paginated list of interest tags associated with the given event, optionally filtered by a search term on the interest name and sorted via orderBy; requires \"read\" permission on events and interests.
62429
+ * @summary List an event\'s interests
62430
+ * @param {EventsInterestsApiGetEventInterestsRequest} requestParameters Request parameters.
62431
+ * @param {*} [options] Override http request option.
62432
+ * @throws {RequiredError}
62433
+ */
62434
+ public getEventInterests(requestParameters: EventsInterestsApiGetEventInterestsRequest, options?: RawAxiosRequestConfig) {
62435
+ return EventsInterestsApiFp(this.configuration).getEventInterests(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
62436
+ }
62437
+
62438
+ /**
62439
+ * Removes an interest from an event, requiring update permission on both events and interests; the event\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
62440
+ * @summary Remove an interest from an event
62441
+ * @param {EventsInterestsApiRemoveEventInterestRequest} requestParameters Request parameters.
62442
+ * @param {*} [options] Override http request option.
62443
+ * @throws {RequiredError}
62444
+ */
62445
+ public removeEventInterest(requestParameters: EventsInterestsApiRemoveEventInterestRequest, options?: RawAxiosRequestConfig) {
62446
+ return EventsInterestsApiFp(this.configuration).removeEventInterest(requestParameters.eventId, requestParameters.interestId, options).then((request) => request(this.axios, this.basePath));
62447
+ }
62448
+ }
62449
+
62450
+
62451
+
61408
62452
  /**
61409
62453
  * EventsMatchesApi - axios parameter creator
61410
62454
  */
@@ -117216,7 +118260,7 @@ export class GroupsEventsApi extends BaseAPI {
117216
118260
  export const GroupsInterestsApiAxiosParamCreator = function (configuration?: Configuration) {
117217
118261
  return {
117218
118262
  /**
117219
- * Associates an existing interest with a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list is invalidated.
118263
+ * Associates an existing interest with a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
117220
118264
  * @summary Add an interest to a group
117221
118265
  * @param {string} groupId The group identifier
117222
118266
  * @param {string} interestId The interest identifier
@@ -117320,7 +118364,7 @@ export const GroupsInterestsApiAxiosParamCreator = function (configuration?: Con
117320
118364
  };
117321
118365
  },
117322
118366
  /**
117323
- * Disassociates an interest from a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list is invalidated.
118367
+ * Disassociates an interest from a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
117324
118368
  * @summary Remove an interest from a group
117325
118369
  * @param {string} groupId The group identifier
117326
118370
  * @param {string} accountId The account identifier
@@ -117373,7 +118417,7 @@ export const GroupsInterestsApiFp = function(configuration?: Configuration) {
117373
118417
  const localVarAxiosParamCreator = GroupsInterestsApiAxiosParamCreator(configuration)
117374
118418
  return {
117375
118419
  /**
117376
- * Associates an existing interest with a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list is invalidated.
118420
+ * Associates an existing interest with a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
117377
118421
  * @summary Add an interest to a group
117378
118422
  * @param {string} groupId The group identifier
117379
118423
  * @param {string} interestId The interest identifier
@@ -117404,7 +118448,7 @@ export const GroupsInterestsApiFp = function(configuration?: Configuration) {
117404
118448
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
117405
118449
  },
117406
118450
  /**
117407
- * Disassociates an interest from a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list is invalidated.
118451
+ * Disassociates an interest from a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
117408
118452
  * @summary Remove an interest from a group
117409
118453
  * @param {string} groupId The group identifier
117410
118454
  * @param {string} accountId The account identifier
@@ -117427,7 +118471,7 @@ export const GroupsInterestsApiFactory = function (configuration?: Configuration
117427
118471
  const localVarFp = GroupsInterestsApiFp(configuration)
117428
118472
  return {
117429
118473
  /**
117430
- * Associates an existing interest with a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list is invalidated.
118474
+ * Associates an existing interest with a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
117431
118475
  * @summary Add an interest to a group
117432
118476
  * @param {GroupsInterestsApiAddGroupInterestRequest} requestParameters Request parameters.
117433
118477
  * @param {*} [options] Override http request option.
@@ -117447,7 +118491,7 @@ export const GroupsInterestsApiFactory = function (configuration?: Configuration
117447
118491
  return localVarFp.getGroupInterests(requestParameters.groupId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
117448
118492
  },
117449
118493
  /**
117450
- * Disassociates an interest from a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list is invalidated.
118494
+ * Disassociates an interest from a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
117451
118495
  * @summary Remove an interest from a group
117452
118496
  * @param {GroupsInterestsApiRemoveGroupInterestRequest} requestParameters Request parameters.
117453
118497
  * @param {*} [options] Override http request option.
@@ -117524,7 +118568,7 @@ export interface GroupsInterestsApiRemoveGroupInterestRequest {
117524
118568
  */
117525
118569
  export class GroupsInterestsApi extends BaseAPI {
117526
118570
  /**
117527
- * Associates an existing interest with a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list is invalidated.
118571
+ * Associates an existing interest with a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
117528
118572
  * @summary Add an interest to a group
117529
118573
  * @param {GroupsInterestsApiAddGroupInterestRequest} requestParameters Request parameters.
117530
118574
  * @param {*} [options] Override http request option.
@@ -117546,7 +118590,7 @@ export class GroupsInterestsApi extends BaseAPI {
117546
118590
  }
117547
118591
 
117548
118592
  /**
117549
- * Disassociates an interest from a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list is invalidated.
118593
+ * Disassociates an interest from a group, requiring update permission on both groups and interests; the group\'s cached data is refreshed and its interests list and the interest\'s cached detail and lists are invalidated.
117550
118594
  * @summary Remove an interest from a group
117551
118595
  * @param {GroupsInterestsApiRemoveGroupInterestRequest} requestParameters Request parameters.
117552
118596
  * @param {*} [options] Override http request option.