@connectedxm/admin-sdk 10.9.0 → 10.10.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: 10.9.0
7
+ * The version of the OpenAPI document: 10.10.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -739,6 +739,14 @@ export interface AuthorizeNetActivationFormParams {
739
739
  'currencyCode': string;
740
740
  'name': string;
741
741
  }
742
+
743
+ export enum BadgeColorRuleType {
744
+ Attribute = 'attribute',
745
+ Tier = 'tier',
746
+ PassType = 'passType'
747
+ }
748
+
749
+
742
750
  export interface BarChartSummaryData {
743
751
  'type': BarChartSummaryDataTypeEnum;
744
752
  'data': Array<BarChartSummaryDataDataInner>;
@@ -1358,6 +1366,19 @@ export interface BaseEventOnSite {
1358
1366
  'createdAt': string;
1359
1367
  'updatedAt': string;
1360
1368
  }
1369
+ export interface BaseEventOnSiteBadgeColorRule {
1370
+ 'id': string;
1371
+ 'name': string;
1372
+ 'type': BadgeColorRuleType;
1373
+ 'color': string;
1374
+ 'sortOrder': number;
1375
+ 'attributeId': string | null;
1376
+ 'attributeValue': string | null;
1377
+ 'tierId': string | null;
1378
+ 'passTypeId': string | null;
1379
+ }
1380
+
1381
+
1361
1382
  export interface BaseEventPackage {
1362
1383
  'id': string;
1363
1384
  'name': string;
@@ -3956,6 +3977,16 @@ export enum CreateEventAttribute200ResponseStatusEnum {
3956
3977
  Ok = 'ok'
3957
3978
  }
3958
3979
 
3980
+ export interface CreateEventBadgeColorRule200Response {
3981
+ 'status': CreateEventBadgeColorRule200ResponseStatusEnum;
3982
+ 'message': string;
3983
+ 'data': EventOnSiteBadgeColorRule;
3984
+ }
3985
+
3986
+ export enum CreateEventBadgeColorRule200ResponseStatusEnum {
3987
+ Ok = 'ok'
3988
+ }
3989
+
3959
3990
  export interface CreateEventBlock200Response {
3960
3991
  'status': CreateEventBlock200ResponseStatusEnum;
3961
3992
  'message': string;
@@ -5155,6 +5186,30 @@ export interface EventAttributeCreateInputs {
5155
5186
  export interface EventAttributeUpdateInputs {
5156
5187
  'name'?: string | null;
5157
5188
  }
5189
+ export interface EventBadgeColorRuleCreateInputs {
5190
+ 'name': string;
5191
+ 'type': BadgeColorRuleType;
5192
+ 'color': string;
5193
+ 'sortOrder'?: number;
5194
+ 'attributeId'?: string | null;
5195
+ 'attributeValue'?: string | null;
5196
+ 'tierId'?: string | null;
5197
+ 'passTypeId'?: string | null;
5198
+ }
5199
+
5200
+
5201
+ export interface EventBadgeColorRuleUpdateInputs {
5202
+ 'name'?: string;
5203
+ 'type'?: BadgeColorRuleType;
5204
+ 'color'?: string;
5205
+ 'sortOrder'?: number;
5206
+ 'attributeId'?: string | null;
5207
+ 'attributeValue'?: string | null;
5208
+ 'tierId'?: string | null;
5209
+ 'passTypeId'?: string | null;
5210
+ }
5211
+
5212
+
5158
5213
  export interface EventBlock {
5159
5214
  'id': string;
5160
5215
  'name': string;
@@ -5433,6 +5488,24 @@ export interface EventOnSite {
5433
5488
  'createdAt': string;
5434
5489
  'updatedAt': string;
5435
5490
  }
5491
+ export interface EventOnSiteBadgeColorRule {
5492
+ 'id': string;
5493
+ 'name': string;
5494
+ 'type': BadgeColorRuleType;
5495
+ 'color': string;
5496
+ 'sortOrder': number;
5497
+ 'attributeId': string | null;
5498
+ 'attributeValue': string | null;
5499
+ 'tierId': string | null;
5500
+ 'passTypeId': string | null;
5501
+ 'attribute': BaseAccountAttribute | null;
5502
+ 'tier': BaseTier | null;
5503
+ 'passType': BaseEventPassType | null;
5504
+ 'createdAt': string;
5505
+ 'updatedAt': string;
5506
+ }
5507
+
5508
+
5436
5509
  export interface EventPackage {
5437
5510
  'id': string;
5438
5511
  'name': string;
@@ -5582,7 +5655,6 @@ export interface EventPassCreateInputs {
5582
5655
  'location'?: string | null;
5583
5656
  'ticketId'?: string | null;
5584
5657
  'usedAt'?: string | null;
5585
- 'badgeColor'?: string | null;
5586
5658
  }
5587
5659
 
5588
5660
 
@@ -5680,7 +5752,6 @@ export interface EventPassUpdateInputs {
5680
5752
  'ticketId'?: string | null;
5681
5753
  'couponId'?: string | null;
5682
5754
  'usedAt'?: string | null;
5683
- 'badgeColor'?: string | null;
5684
5755
  }
5685
5756
 
5686
5757
 
@@ -7823,6 +7894,17 @@ export enum GetEventAttributes200ResponseStatusEnum {
7823
7894
  Ok = 'ok'
7824
7895
  }
7825
7896
 
7897
+ export interface GetEventBadgeColorRules200Response {
7898
+ 'status': GetEventBadgeColorRules200ResponseStatusEnum;
7899
+ 'message': string;
7900
+ 'data': Array<EventOnSiteBadgeColorRule>;
7901
+ 'count'?: number;
7902
+ }
7903
+
7904
+ export enum GetEventBadgeColorRules200ResponseStatusEnum {
7905
+ Ok = 'ok'
7906
+ }
7907
+
7826
7908
  export interface GetEventBlocks200Response {
7827
7909
  'status': GetEventBlocks200ResponseStatusEnum;
7828
7910
  'message': string;
@@ -11923,7 +12005,6 @@ export interface PassTypeCreateInputs {
11923
12005
  'taxIncluded'?: boolean;
11924
12006
  'taxLocation'?: TaxLocationType;
11925
12007
  'printable'?: boolean;
11926
- 'badgeColor'?: string | null;
11927
12008
  'requiresApproval'?: boolean;
11928
12009
  }
11929
12010
 
@@ -12002,7 +12083,6 @@ export interface PassTypeUpdateInputs {
12002
12083
  'taxIncluded'?: boolean;
12003
12084
  'taxLocation'?: TaxLocationType;
12004
12085
  'printable'?: boolean;
12005
- 'badgeColor'?: string | null;
12006
12086
  'requiresApproval'?: boolean | null;
12007
12087
  }
12008
12088
 
@@ -57787,6 +57867,199 @@ export class EventsMediaTranslationsApi extends BaseAPI {
57787
57867
  */
57788
57868
  export const EventsOnSiteApiAxiosParamCreator = function (configuration?: Configuration) {
57789
57869
  return {
57870
+ /**
57871
+ * Creates a new on-site badge color rule for the given event. Omitting sortOrder appends the rule after the last existing one; requires the \"update\" permission on events.
57872
+ * @summary Create an event badge color rule
57873
+ * @param {string} eventId The event identifier
57874
+ * @param {EventBadgeColorRuleCreateInputs} eventBadgeColorRuleCreateInputs
57875
+ * @param {*} [options] Override http request option.
57876
+ * @throws {RequiredError}
57877
+ */
57878
+ createEventBadgeColorRule: async (eventId: string, eventBadgeColorRuleCreateInputs: EventBadgeColorRuleCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57879
+ // verify required parameter 'eventId' is not null or undefined
57880
+ assertParamExists('createEventBadgeColorRule', 'eventId', eventId)
57881
+ // verify required parameter 'eventBadgeColorRuleCreateInputs' is not null or undefined
57882
+ assertParamExists('createEventBadgeColorRule', 'eventBadgeColorRuleCreateInputs', eventBadgeColorRuleCreateInputs)
57883
+ const localVarPath = `/events/{eventId}/on-site/badge-colors`
57884
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
57885
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57886
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57887
+ let baseOptions;
57888
+ if (configuration) {
57889
+ baseOptions = configuration.baseOptions;
57890
+ }
57891
+
57892
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
57893
+ const localVarHeaderParameter = {} as any;
57894
+ const localVarQueryParameter = {} as any;
57895
+
57896
+ // authentication ApiKeyAuth required
57897
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
57898
+
57899
+ // authentication OrganizationId required
57900
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
57901
+
57902
+ localVarHeaderParameter['Content-Type'] = 'application/json';
57903
+ localVarHeaderParameter['Accept'] = 'application/json';
57904
+
57905
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57906
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57907
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57908
+ localVarRequestOptions.data = serializeDataIfNeeded(eventBadgeColorRuleCreateInputs, localVarRequestOptions, configuration)
57909
+
57910
+ return {
57911
+ url: toPathString(localVarUrlObj),
57912
+ options: localVarRequestOptions,
57913
+ };
57914
+ },
57915
+ /**
57916
+ * Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
57917
+ * @summary Delete an event badge color rule
57918
+ * @param {string} eventId The event identifier
57919
+ * @param {string} ruleId The rule identifier
57920
+ * @param {*} [options] Override http request option.
57921
+ * @throws {RequiredError}
57922
+ */
57923
+ deleteEventBadgeColorRule: async (eventId: string, ruleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57924
+ // verify required parameter 'eventId' is not null or undefined
57925
+ assertParamExists('deleteEventBadgeColorRule', 'eventId', eventId)
57926
+ // verify required parameter 'ruleId' is not null or undefined
57927
+ assertParamExists('deleteEventBadgeColorRule', 'ruleId', ruleId)
57928
+ const localVarPath = `/events/{eventId}/on-site/badge-colors/{ruleId}`
57929
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
57930
+ .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
57931
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57932
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57933
+ let baseOptions;
57934
+ if (configuration) {
57935
+ baseOptions = configuration.baseOptions;
57936
+ }
57937
+
57938
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
57939
+ const localVarHeaderParameter = {} as any;
57940
+ const localVarQueryParameter = {} as any;
57941
+
57942
+ // authentication ApiKeyAuth required
57943
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
57944
+
57945
+ // authentication OrganizationId required
57946
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
57947
+
57948
+ localVarHeaderParameter['Accept'] = 'application/json';
57949
+
57950
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57951
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57952
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57953
+
57954
+ return {
57955
+ url: toPathString(localVarUrlObj),
57956
+ options: localVarRequestOptions,
57957
+ };
57958
+ },
57959
+ /**
57960
+ * Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
57961
+ * @summary Get an event badge color rule
57962
+ * @param {string} eventId The event identifier
57963
+ * @param {string} ruleId The rule identifier
57964
+ * @param {*} [options] Override http request option.
57965
+ * @throws {RequiredError}
57966
+ */
57967
+ getEventBadgeColorRule: async (eventId: string, ruleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57968
+ // verify required parameter 'eventId' is not null or undefined
57969
+ assertParamExists('getEventBadgeColorRule', 'eventId', eventId)
57970
+ // verify required parameter 'ruleId' is not null or undefined
57971
+ assertParamExists('getEventBadgeColorRule', 'ruleId', ruleId)
57972
+ const localVarPath = `/events/{eventId}/on-site/badge-colors/{ruleId}`
57973
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
57974
+ .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
57975
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57976
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57977
+ let baseOptions;
57978
+ if (configuration) {
57979
+ baseOptions = configuration.baseOptions;
57980
+ }
57981
+
57982
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
57983
+ const localVarHeaderParameter = {} as any;
57984
+ const localVarQueryParameter = {} as any;
57985
+
57986
+ // authentication ApiKeyAuth required
57987
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
57988
+
57989
+ // authentication OrganizationId required
57990
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
57991
+
57992
+ localVarHeaderParameter['Accept'] = 'application/json';
57993
+
57994
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57995
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57996
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57997
+
57998
+ return {
57999
+ url: toPathString(localVarUrlObj),
58000
+ options: localVarRequestOptions,
58001
+ };
58002
+ },
58003
+ /**
58004
+ * Returns a paginated list of on-site badge color rules configured for the given event, with optional search and sort order; requires \"read\" permission on events.
58005
+ * @summary List an event\'s badge color rules
58006
+ * @param {string} eventId The event identifier
58007
+ * @param {number} [page] Page number
58008
+ * @param {number} [pageSize] Number of items per page
58009
+ * @param {string} [orderBy] Field to order by
58010
+ * @param {string} [search] Search query
58011
+ * @param {*} [options] Override http request option.
58012
+ * @throws {RequiredError}
58013
+ */
58014
+ getEventBadgeColorRules: async (eventId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58015
+ // verify required parameter 'eventId' is not null or undefined
58016
+ assertParamExists('getEventBadgeColorRules', 'eventId', eventId)
58017
+ const localVarPath = `/events/{eventId}/on-site/badge-colors`
58018
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
58019
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58020
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58021
+ let baseOptions;
58022
+ if (configuration) {
58023
+ baseOptions = configuration.baseOptions;
58024
+ }
58025
+
58026
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
58027
+ const localVarHeaderParameter = {} as any;
58028
+ const localVarQueryParameter = {} as any;
58029
+
58030
+ // authentication ApiKeyAuth required
58031
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
58032
+
58033
+ // authentication OrganizationId required
58034
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
58035
+
58036
+ if (page !== undefined) {
58037
+ localVarQueryParameter['page'] = page;
58038
+ }
58039
+
58040
+ if (pageSize !== undefined) {
58041
+ localVarQueryParameter['pageSize'] = pageSize;
58042
+ }
58043
+
58044
+ if (orderBy !== undefined) {
58045
+ localVarQueryParameter['orderBy'] = orderBy;
58046
+ }
58047
+
58048
+ if (search !== undefined) {
58049
+ localVarQueryParameter['search'] = search;
58050
+ }
58051
+
58052
+ localVarHeaderParameter['Accept'] = 'application/json';
58053
+
58054
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58055
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58056
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58057
+
58058
+ return {
58059
+ url: toPathString(localVarUrlObj),
58060
+ options: localVarRequestOptions,
58061
+ };
58062
+ },
57790
58063
  /**
57791
58064
  * Returns the on-site check-in configuration for the given event, including its authentication code, or null if on-site check-in has not been set up yet; requires read access to events.
57792
58065
  * @summary Get an event\'s on-site check-in settings
@@ -57827,6 +58100,55 @@ export const EventsOnSiteApiAxiosParamCreator = function (configuration?: Config
57827
58100
  options: localVarRequestOptions,
57828
58101
  };
57829
58102
  },
58103
+ /**
58104
+ * Partially updates the specified on-site badge color rule. Changing type still nulls unused match branches on the backend, so send the new branch\'s ids when the type changes; requires the \"update\" permission on events.
58105
+ * @summary Update an event badge color rule
58106
+ * @param {string} eventId The event identifier
58107
+ * @param {string} ruleId The rule identifier
58108
+ * @param {EventBadgeColorRuleUpdateInputs} eventBadgeColorRuleUpdateInputs
58109
+ * @param {*} [options] Override http request option.
58110
+ * @throws {RequiredError}
58111
+ */
58112
+ updateEventBadgeColorRule: async (eventId: string, ruleId: string, eventBadgeColorRuleUpdateInputs: EventBadgeColorRuleUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58113
+ // verify required parameter 'eventId' is not null or undefined
58114
+ assertParamExists('updateEventBadgeColorRule', 'eventId', eventId)
58115
+ // verify required parameter 'ruleId' is not null or undefined
58116
+ assertParamExists('updateEventBadgeColorRule', 'ruleId', ruleId)
58117
+ // verify required parameter 'eventBadgeColorRuleUpdateInputs' is not null or undefined
58118
+ assertParamExists('updateEventBadgeColorRule', 'eventBadgeColorRuleUpdateInputs', eventBadgeColorRuleUpdateInputs)
58119
+ const localVarPath = `/events/{eventId}/on-site/badge-colors/{ruleId}`
58120
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
58121
+ .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
58122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58123
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58124
+ let baseOptions;
58125
+ if (configuration) {
58126
+ baseOptions = configuration.baseOptions;
58127
+ }
58128
+
58129
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
58130
+ const localVarHeaderParameter = {} as any;
58131
+ const localVarQueryParameter = {} as any;
58132
+
58133
+ // authentication ApiKeyAuth required
58134
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
58135
+
58136
+ // authentication OrganizationId required
58137
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
58138
+
58139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58140
+ localVarHeaderParameter['Accept'] = 'application/json';
58141
+
58142
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58143
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58144
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58145
+ localVarRequestOptions.data = serializeDataIfNeeded(eventBadgeColorRuleUpdateInputs, localVarRequestOptions, configuration)
58146
+
58147
+ return {
58148
+ url: toPathString(localVarUrlObj),
58149
+ options: localVarRequestOptions,
58150
+ };
58151
+ },
57830
58152
  /**
57831
58153
  * Replaces the on-site check-in badge template design for the given event, used to render printed attendee badges; requires read and update permission on events.
57832
58154
  * @summary Update an event\'s badge template
@@ -57921,6 +58243,65 @@ export const EventsOnSiteApiAxiosParamCreator = function (configuration?: Config
57921
58243
  export const EventsOnSiteApiFp = function(configuration?: Configuration) {
57922
58244
  const localVarAxiosParamCreator = EventsOnSiteApiAxiosParamCreator(configuration)
57923
58245
  return {
58246
+ /**
58247
+ * Creates a new on-site badge color rule for the given event. Omitting sortOrder appends the rule after the last existing one; requires the \"update\" permission on events.
58248
+ * @summary Create an event badge color rule
58249
+ * @param {string} eventId The event identifier
58250
+ * @param {EventBadgeColorRuleCreateInputs} eventBadgeColorRuleCreateInputs
58251
+ * @param {*} [options] Override http request option.
58252
+ * @throws {RequiredError}
58253
+ */
58254
+ async createEventBadgeColorRule(eventId: string, eventBadgeColorRuleCreateInputs: EventBadgeColorRuleCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEventBadgeColorRule200Response>> {
58255
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createEventBadgeColorRule(eventId, eventBadgeColorRuleCreateInputs, options);
58256
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58257
+ const localVarOperationServerBasePath = operationServerMap['EventsOnSiteApi.createEventBadgeColorRule']?.[localVarOperationServerIndex]?.url;
58258
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58259
+ },
58260
+ /**
58261
+ * Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
58262
+ * @summary Delete an event badge color rule
58263
+ * @param {string} eventId The event identifier
58264
+ * @param {string} ruleId The rule identifier
58265
+ * @param {*} [options] Override http request option.
58266
+ * @throws {RequiredError}
58267
+ */
58268
+ async deleteEventBadgeColorRule(eventId: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
58269
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEventBadgeColorRule(eventId, ruleId, options);
58270
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58271
+ const localVarOperationServerBasePath = operationServerMap['EventsOnSiteApi.deleteEventBadgeColorRule']?.[localVarOperationServerIndex]?.url;
58272
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58273
+ },
58274
+ /**
58275
+ * Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
58276
+ * @summary Get an event badge color rule
58277
+ * @param {string} eventId The event identifier
58278
+ * @param {string} ruleId The rule identifier
58279
+ * @param {*} [options] Override http request option.
58280
+ * @throws {RequiredError}
58281
+ */
58282
+ async getEventBadgeColorRule(eventId: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEventBadgeColorRule200Response>> {
58283
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventBadgeColorRule(eventId, ruleId, options);
58284
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58285
+ const localVarOperationServerBasePath = operationServerMap['EventsOnSiteApi.getEventBadgeColorRule']?.[localVarOperationServerIndex]?.url;
58286
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58287
+ },
58288
+ /**
58289
+ * Returns a paginated list of on-site badge color rules configured for the given event, with optional search and sort order; requires \"read\" permission on events.
58290
+ * @summary List an event\'s badge color rules
58291
+ * @param {string} eventId The event identifier
58292
+ * @param {number} [page] Page number
58293
+ * @param {number} [pageSize] Number of items per page
58294
+ * @param {string} [orderBy] Field to order by
58295
+ * @param {string} [search] Search query
58296
+ * @param {*} [options] Override http request option.
58297
+ * @throws {RequiredError}
58298
+ */
58299
+ async getEventBadgeColorRules(eventId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEventBadgeColorRules200Response>> {
58300
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventBadgeColorRules(eventId, page, pageSize, orderBy, search, options);
58301
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58302
+ const localVarOperationServerBasePath = operationServerMap['EventsOnSiteApi.getEventBadgeColorRules']?.[localVarOperationServerIndex]?.url;
58303
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58304
+ },
57924
58305
  /**
57925
58306
  * Returns the on-site check-in configuration for the given event, including its authentication code, or null if on-site check-in has not been set up yet; requires read access to events.
57926
58307
  * @summary Get an event\'s on-site check-in settings
@@ -57934,6 +58315,21 @@ export const EventsOnSiteApiFp = function(configuration?: Configuration) {
57934
58315
  const localVarOperationServerBasePath = operationServerMap['EventsOnSiteApi.getEventOnSite']?.[localVarOperationServerIndex]?.url;
57935
58316
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
57936
58317
  },
58318
+ /**
58319
+ * Partially updates the specified on-site badge color rule. Changing type still nulls unused match branches on the backend, so send the new branch\'s ids when the type changes; requires the \"update\" permission on events.
58320
+ * @summary Update an event badge color rule
58321
+ * @param {string} eventId The event identifier
58322
+ * @param {string} ruleId The rule identifier
58323
+ * @param {EventBadgeColorRuleUpdateInputs} eventBadgeColorRuleUpdateInputs
58324
+ * @param {*} [options] Override http request option.
58325
+ * @throws {RequiredError}
58326
+ */
58327
+ async updateEventBadgeColorRule(eventId: string, ruleId: string, eventBadgeColorRuleUpdateInputs: EventBadgeColorRuleUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEventBadgeColorRule200Response>> {
58328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateEventBadgeColorRule(eventId, ruleId, eventBadgeColorRuleUpdateInputs, options);
58329
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58330
+ const localVarOperationServerBasePath = operationServerMap['EventsOnSiteApi.updateEventBadgeColorRule']?.[localVarOperationServerIndex]?.url;
58331
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58332
+ },
57937
58333
  /**
57938
58334
  * Replaces the on-site check-in badge template design for the given event, used to render printed attendee badges; requires read and update permission on events.
57939
58335
  * @summary Update an event\'s badge template
@@ -57970,6 +58366,46 @@ export const EventsOnSiteApiFp = function(configuration?: Configuration) {
57970
58366
  export const EventsOnSiteApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
57971
58367
  const localVarFp = EventsOnSiteApiFp(configuration)
57972
58368
  return {
58369
+ /**
58370
+ * Creates a new on-site badge color rule for the given event. Omitting sortOrder appends the rule after the last existing one; requires the \"update\" permission on events.
58371
+ * @summary Create an event badge color rule
58372
+ * @param {EventsOnSiteApiCreateEventBadgeColorRuleRequest} requestParameters Request parameters.
58373
+ * @param {*} [options] Override http request option.
58374
+ * @throws {RequiredError}
58375
+ */
58376
+ createEventBadgeColorRule(requestParameters: EventsOnSiteApiCreateEventBadgeColorRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventBadgeColorRule200Response> {
58377
+ return localVarFp.createEventBadgeColorRule(requestParameters.eventId, requestParameters.eventBadgeColorRuleCreateInputs, options).then((request) => request(axios, basePath));
58378
+ },
58379
+ /**
58380
+ * Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
58381
+ * @summary Delete an event badge color rule
58382
+ * @param {EventsOnSiteApiDeleteEventBadgeColorRuleRequest} requestParameters Request parameters.
58383
+ * @param {*} [options] Override http request option.
58384
+ * @throws {RequiredError}
58385
+ */
58386
+ deleteEventBadgeColorRule(requestParameters: EventsOnSiteApiDeleteEventBadgeColorRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
58387
+ return localVarFp.deleteEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(axios, basePath));
58388
+ },
58389
+ /**
58390
+ * Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
58391
+ * @summary Get an event badge color rule
58392
+ * @param {EventsOnSiteApiGetEventBadgeColorRuleRequest} requestParameters Request parameters.
58393
+ * @param {*} [options] Override http request option.
58394
+ * @throws {RequiredError}
58395
+ */
58396
+ getEventBadgeColorRule(requestParameters: EventsOnSiteApiGetEventBadgeColorRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventBadgeColorRule200Response> {
58397
+ return localVarFp.getEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(axios, basePath));
58398
+ },
58399
+ /**
58400
+ * Returns a paginated list of on-site badge color rules configured for the given event, with optional search and sort order; requires \"read\" permission on events.
58401
+ * @summary List an event\'s badge color rules
58402
+ * @param {EventsOnSiteApiGetEventBadgeColorRulesRequest} requestParameters Request parameters.
58403
+ * @param {*} [options] Override http request option.
58404
+ * @throws {RequiredError}
58405
+ */
58406
+ getEventBadgeColorRules(requestParameters: EventsOnSiteApiGetEventBadgeColorRulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetEventBadgeColorRules200Response> {
58407
+ return localVarFp.getEventBadgeColorRules(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
58408
+ },
57973
58409
  /**
57974
58410
  * Returns the on-site check-in configuration for the given event, including its authentication code, or null if on-site check-in has not been set up yet; requires read access to events.
57975
58411
  * @summary Get an event\'s on-site check-in settings
@@ -57980,6 +58416,16 @@ export const EventsOnSiteApiFactory = function (configuration?: Configuration, b
57980
58416
  getEventOnSite(requestParameters: EventsOnSiteApiGetEventOnSiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetEventOnSite200Response> {
57981
58417
  return localVarFp.getEventOnSite(requestParameters.eventId, options).then((request) => request(axios, basePath));
57982
58418
  },
58419
+ /**
58420
+ * Partially updates the specified on-site badge color rule. Changing type still nulls unused match branches on the backend, so send the new branch\'s ids when the type changes; requires the \"update\" permission on events.
58421
+ * @summary Update an event badge color rule
58422
+ * @param {EventsOnSiteApiUpdateEventBadgeColorRuleRequest} requestParameters Request parameters.
58423
+ * @param {*} [options] Override http request option.
58424
+ * @throws {RequiredError}
58425
+ */
58426
+ updateEventBadgeColorRule(requestParameters: EventsOnSiteApiUpdateEventBadgeColorRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventBadgeColorRule200Response> {
58427
+ return localVarFp.updateEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, requestParameters.eventBadgeColorRuleUpdateInputs, options).then((request) => request(axios, basePath));
58428
+ },
57983
58429
  /**
57984
58430
  * Replaces the on-site check-in badge template design for the given event, used to render printed attendee badges; requires read and update permission on events.
57985
58431
  * @summary Update an event\'s badge template
@@ -58003,6 +58449,78 @@ export const EventsOnSiteApiFactory = function (configuration?: Configuration, b
58003
58449
  };
58004
58450
  };
58005
58451
 
58452
+ /**
58453
+ * Request parameters for createEventBadgeColorRule operation in EventsOnSiteApi.
58454
+ */
58455
+ export interface EventsOnSiteApiCreateEventBadgeColorRuleRequest {
58456
+ /**
58457
+ * The event identifier
58458
+ */
58459
+ readonly eventId: string
58460
+
58461
+ readonly eventBadgeColorRuleCreateInputs: EventBadgeColorRuleCreateInputs
58462
+ }
58463
+
58464
+ /**
58465
+ * Request parameters for deleteEventBadgeColorRule operation in EventsOnSiteApi.
58466
+ */
58467
+ export interface EventsOnSiteApiDeleteEventBadgeColorRuleRequest {
58468
+ /**
58469
+ * The event identifier
58470
+ */
58471
+ readonly eventId: string
58472
+
58473
+ /**
58474
+ * The rule identifier
58475
+ */
58476
+ readonly ruleId: string
58477
+ }
58478
+
58479
+ /**
58480
+ * Request parameters for getEventBadgeColorRule operation in EventsOnSiteApi.
58481
+ */
58482
+ export interface EventsOnSiteApiGetEventBadgeColorRuleRequest {
58483
+ /**
58484
+ * The event identifier
58485
+ */
58486
+ readonly eventId: string
58487
+
58488
+ /**
58489
+ * The rule identifier
58490
+ */
58491
+ readonly ruleId: string
58492
+ }
58493
+
58494
+ /**
58495
+ * Request parameters for getEventBadgeColorRules operation in EventsOnSiteApi.
58496
+ */
58497
+ export interface EventsOnSiteApiGetEventBadgeColorRulesRequest {
58498
+ /**
58499
+ * The event identifier
58500
+ */
58501
+ readonly eventId: string
58502
+
58503
+ /**
58504
+ * Page number
58505
+ */
58506
+ readonly page?: number
58507
+
58508
+ /**
58509
+ * Number of items per page
58510
+ */
58511
+ readonly pageSize?: number
58512
+
58513
+ /**
58514
+ * Field to order by
58515
+ */
58516
+ readonly orderBy?: string
58517
+
58518
+ /**
58519
+ * Search query
58520
+ */
58521
+ readonly search?: string
58522
+ }
58523
+
58006
58524
  /**
58007
58525
  * Request parameters for getEventOnSite operation in EventsOnSiteApi.
58008
58526
  */
@@ -58013,6 +58531,23 @@ export interface EventsOnSiteApiGetEventOnSiteRequest {
58013
58531
  readonly eventId: string
58014
58532
  }
58015
58533
 
58534
+ /**
58535
+ * Request parameters for updateEventBadgeColorRule operation in EventsOnSiteApi.
58536
+ */
58537
+ export interface EventsOnSiteApiUpdateEventBadgeColorRuleRequest {
58538
+ /**
58539
+ * The event identifier
58540
+ */
58541
+ readonly eventId: string
58542
+
58543
+ /**
58544
+ * The rule identifier
58545
+ */
58546
+ readonly ruleId: string
58547
+
58548
+ readonly eventBadgeColorRuleUpdateInputs: EventBadgeColorRuleUpdateInputs
58549
+ }
58550
+
58016
58551
  /**
58017
58552
  * Request parameters for updateEventBadgeTemplate operation in EventsOnSiteApi.
58018
58553
  */
@@ -58039,6 +58574,50 @@ export interface EventsOnSiteApiUpdateEventCheckinCodeRequest {
58039
58574
  * EventsOnSiteApi - object-oriented interface
58040
58575
  */
58041
58576
  export class EventsOnSiteApi extends BaseAPI {
58577
+ /**
58578
+ * Creates a new on-site badge color rule for the given event. Omitting sortOrder appends the rule after the last existing one; requires the \"update\" permission on events.
58579
+ * @summary Create an event badge color rule
58580
+ * @param {EventsOnSiteApiCreateEventBadgeColorRuleRequest} requestParameters Request parameters.
58581
+ * @param {*} [options] Override http request option.
58582
+ * @throws {RequiredError}
58583
+ */
58584
+ public createEventBadgeColorRule(requestParameters: EventsOnSiteApiCreateEventBadgeColorRuleRequest, options?: RawAxiosRequestConfig) {
58585
+ return EventsOnSiteApiFp(this.configuration).createEventBadgeColorRule(requestParameters.eventId, requestParameters.eventBadgeColorRuleCreateInputs, options).then((request) => request(this.axios, this.basePath));
58586
+ }
58587
+
58588
+ /**
58589
+ * Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
58590
+ * @summary Delete an event badge color rule
58591
+ * @param {EventsOnSiteApiDeleteEventBadgeColorRuleRequest} requestParameters Request parameters.
58592
+ * @param {*} [options] Override http request option.
58593
+ * @throws {RequiredError}
58594
+ */
58595
+ public deleteEventBadgeColorRule(requestParameters: EventsOnSiteApiDeleteEventBadgeColorRuleRequest, options?: RawAxiosRequestConfig) {
58596
+ return EventsOnSiteApiFp(this.configuration).deleteEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(this.axios, this.basePath));
58597
+ }
58598
+
58599
+ /**
58600
+ * Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
58601
+ * @summary Get an event badge color rule
58602
+ * @param {EventsOnSiteApiGetEventBadgeColorRuleRequest} requestParameters Request parameters.
58603
+ * @param {*} [options] Override http request option.
58604
+ * @throws {RequiredError}
58605
+ */
58606
+ public getEventBadgeColorRule(requestParameters: EventsOnSiteApiGetEventBadgeColorRuleRequest, options?: RawAxiosRequestConfig) {
58607
+ return EventsOnSiteApiFp(this.configuration).getEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(this.axios, this.basePath));
58608
+ }
58609
+
58610
+ /**
58611
+ * Returns a paginated list of on-site badge color rules configured for the given event, with optional search and sort order; requires \"read\" permission on events.
58612
+ * @summary List an event\'s badge color rules
58613
+ * @param {EventsOnSiteApiGetEventBadgeColorRulesRequest} requestParameters Request parameters.
58614
+ * @param {*} [options] Override http request option.
58615
+ * @throws {RequiredError}
58616
+ */
58617
+ public getEventBadgeColorRules(requestParameters: EventsOnSiteApiGetEventBadgeColorRulesRequest, options?: RawAxiosRequestConfig) {
58618
+ return EventsOnSiteApiFp(this.configuration).getEventBadgeColorRules(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
58619
+ }
58620
+
58042
58621
  /**
58043
58622
  * Returns the on-site check-in configuration for the given event, including its authentication code, or null if on-site check-in has not been set up yet; requires read access to events.
58044
58623
  * @summary Get an event\'s on-site check-in settings
@@ -58050,6 +58629,17 @@ export class EventsOnSiteApi extends BaseAPI {
58050
58629
  return EventsOnSiteApiFp(this.configuration).getEventOnSite(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
58051
58630
  }
58052
58631
 
58632
+ /**
58633
+ * Partially updates the specified on-site badge color rule. Changing type still nulls unused match branches on the backend, so send the new branch\'s ids when the type changes; requires the \"update\" permission on events.
58634
+ * @summary Update an event badge color rule
58635
+ * @param {EventsOnSiteApiUpdateEventBadgeColorRuleRequest} requestParameters Request parameters.
58636
+ * @param {*} [options] Override http request option.
58637
+ * @throws {RequiredError}
58638
+ */
58639
+ public updateEventBadgeColorRule(requestParameters: EventsOnSiteApiUpdateEventBadgeColorRuleRequest, options?: RawAxiosRequestConfig) {
58640
+ return EventsOnSiteApiFp(this.configuration).updateEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, requestParameters.eventBadgeColorRuleUpdateInputs, options).then((request) => request(this.axios, this.basePath));
58641
+ }
58642
+
58053
58643
  /**
58054
58644
  * Replaces the on-site check-in badge template design for the given event, used to render printed attendee badges; requires read and update permission on events.
58055
58645
  * @summary Update an event\'s badge template