@connectedxm/admin-sdk 10.8.2 → 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/dist/esm/api.js 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.8.2
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).
@@ -115,6 +115,12 @@ export var AuthLayout;
115
115
  AuthLayout["Default"] = "default";
116
116
  AuthLayout["Social"] = "social";
117
117
  })(AuthLayout || (AuthLayout = {}));
118
+ export var BadgeColorRuleType;
119
+ (function (BadgeColorRuleType) {
120
+ BadgeColorRuleType["Attribute"] = "attribute";
121
+ BadgeColorRuleType["Tier"] = "tier";
122
+ BadgeColorRuleType["PassType"] = "passType";
123
+ })(BadgeColorRuleType || (BadgeColorRuleType = {}));
118
124
  export var BarChartSummaryDataTypeEnum;
119
125
  (function (BarChartSummaryDataTypeEnum) {
120
126
  BarChartSummaryDataTypeEnum["Bar"] = "bar";
@@ -284,6 +290,10 @@ export var CreateEventAttribute200ResponseStatusEnum;
284
290
  (function (CreateEventAttribute200ResponseStatusEnum) {
285
291
  CreateEventAttribute200ResponseStatusEnum["Ok"] = "ok";
286
292
  })(CreateEventAttribute200ResponseStatusEnum || (CreateEventAttribute200ResponseStatusEnum = {}));
293
+ export var CreateEventBadgeColorRule200ResponseStatusEnum;
294
+ (function (CreateEventBadgeColorRule200ResponseStatusEnum) {
295
+ CreateEventBadgeColorRule200ResponseStatusEnum["Ok"] = "ok";
296
+ })(CreateEventBadgeColorRule200ResponseStatusEnum || (CreateEventBadgeColorRule200ResponseStatusEnum = {}));
287
297
  export var CreateEventBlock200ResponseStatusEnum;
288
298
  (function (CreateEventBlock200ResponseStatusEnum) {
289
299
  CreateEventBlock200ResponseStatusEnum["Ok"] = "ok";
@@ -1027,6 +1037,10 @@ export var GetEventAttributes200ResponseStatusEnum;
1027
1037
  (function (GetEventAttributes200ResponseStatusEnum) {
1028
1038
  GetEventAttributes200ResponseStatusEnum["Ok"] = "ok";
1029
1039
  })(GetEventAttributes200ResponseStatusEnum || (GetEventAttributes200ResponseStatusEnum = {}));
1040
+ export var GetEventBadgeColorRules200ResponseStatusEnum;
1041
+ (function (GetEventBadgeColorRules200ResponseStatusEnum) {
1042
+ GetEventBadgeColorRules200ResponseStatusEnum["Ok"] = "ok";
1043
+ })(GetEventBadgeColorRules200ResponseStatusEnum || (GetEventBadgeColorRules200ResponseStatusEnum = {}));
1030
1044
  export var GetEventBlocks200ResponseStatusEnum;
1031
1045
  (function (GetEventBlocks200ResponseStatusEnum) {
1032
1046
  GetEventBlocks200ResponseStatusEnum["Ok"] = "ok";
@@ -35618,6 +35632,171 @@ export class EventsMediaTranslationsApi extends BaseAPI {
35618
35632
  */
35619
35633
  export const EventsOnSiteApiAxiosParamCreator = function (configuration) {
35620
35634
  return {
35635
+ /**
35636
+ * 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.
35637
+ * @summary Create an event badge color rule
35638
+ * @param {string} eventId The event identifier
35639
+ * @param {EventBadgeColorRuleCreateInputs} eventBadgeColorRuleCreateInputs
35640
+ * @param {*} [options] Override http request option.
35641
+ * @throws {RequiredError}
35642
+ */
35643
+ createEventBadgeColorRule: (eventId_1, eventBadgeColorRuleCreateInputs_1, ...args_1) => __awaiter(this, [eventId_1, eventBadgeColorRuleCreateInputs_1, ...args_1], void 0, function* (eventId, eventBadgeColorRuleCreateInputs, options = {}) {
35644
+ // verify required parameter 'eventId' is not null or undefined
35645
+ assertParamExists('createEventBadgeColorRule', 'eventId', eventId);
35646
+ // verify required parameter 'eventBadgeColorRuleCreateInputs' is not null or undefined
35647
+ assertParamExists('createEventBadgeColorRule', 'eventBadgeColorRuleCreateInputs', eventBadgeColorRuleCreateInputs);
35648
+ const localVarPath = `/events/{eventId}/on-site/badge-colors`
35649
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
35650
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35651
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35652
+ let baseOptions;
35653
+ if (configuration) {
35654
+ baseOptions = configuration.baseOptions;
35655
+ }
35656
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
35657
+ const localVarHeaderParameter = {};
35658
+ const localVarQueryParameter = {};
35659
+ // authentication ApiKeyAuth required
35660
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
35661
+ // authentication OrganizationId required
35662
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
35663
+ localVarHeaderParameter['Content-Type'] = 'application/json';
35664
+ localVarHeaderParameter['Accept'] = 'application/json';
35665
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35666
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35667
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
35668
+ localVarRequestOptions.data = serializeDataIfNeeded(eventBadgeColorRuleCreateInputs, localVarRequestOptions, configuration);
35669
+ return {
35670
+ url: toPathString(localVarUrlObj),
35671
+ options: localVarRequestOptions,
35672
+ };
35673
+ }),
35674
+ /**
35675
+ * Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
35676
+ * @summary Delete an event badge color rule
35677
+ * @param {string} eventId The event identifier
35678
+ * @param {string} ruleId The rule identifier
35679
+ * @param {*} [options] Override http request option.
35680
+ * @throws {RequiredError}
35681
+ */
35682
+ deleteEventBadgeColorRule: (eventId_1, ruleId_1, ...args_1) => __awaiter(this, [eventId_1, ruleId_1, ...args_1], void 0, function* (eventId, ruleId, options = {}) {
35683
+ // verify required parameter 'eventId' is not null or undefined
35684
+ assertParamExists('deleteEventBadgeColorRule', 'eventId', eventId);
35685
+ // verify required parameter 'ruleId' is not null or undefined
35686
+ assertParamExists('deleteEventBadgeColorRule', 'ruleId', ruleId);
35687
+ const localVarPath = `/events/{eventId}/on-site/badge-colors/{ruleId}`
35688
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
35689
+ .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
35690
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35691
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35692
+ let baseOptions;
35693
+ if (configuration) {
35694
+ baseOptions = configuration.baseOptions;
35695
+ }
35696
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
35697
+ const localVarHeaderParameter = {};
35698
+ const localVarQueryParameter = {};
35699
+ // authentication ApiKeyAuth required
35700
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
35701
+ // authentication OrganizationId required
35702
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
35703
+ localVarHeaderParameter['Accept'] = 'application/json';
35704
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35705
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35706
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
35707
+ return {
35708
+ url: toPathString(localVarUrlObj),
35709
+ options: localVarRequestOptions,
35710
+ };
35711
+ }),
35712
+ /**
35713
+ * Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
35714
+ * @summary Get an event badge color rule
35715
+ * @param {string} eventId The event identifier
35716
+ * @param {string} ruleId The rule identifier
35717
+ * @param {*} [options] Override http request option.
35718
+ * @throws {RequiredError}
35719
+ */
35720
+ getEventBadgeColorRule: (eventId_1, ruleId_1, ...args_1) => __awaiter(this, [eventId_1, ruleId_1, ...args_1], void 0, function* (eventId, ruleId, options = {}) {
35721
+ // verify required parameter 'eventId' is not null or undefined
35722
+ assertParamExists('getEventBadgeColorRule', 'eventId', eventId);
35723
+ // verify required parameter 'ruleId' is not null or undefined
35724
+ assertParamExists('getEventBadgeColorRule', 'ruleId', ruleId);
35725
+ const localVarPath = `/events/{eventId}/on-site/badge-colors/{ruleId}`
35726
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
35727
+ .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
35728
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35729
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35730
+ let baseOptions;
35731
+ if (configuration) {
35732
+ baseOptions = configuration.baseOptions;
35733
+ }
35734
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
35735
+ const localVarHeaderParameter = {};
35736
+ const localVarQueryParameter = {};
35737
+ // authentication ApiKeyAuth required
35738
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
35739
+ // authentication OrganizationId required
35740
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
35741
+ localVarHeaderParameter['Accept'] = 'application/json';
35742
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35743
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35744
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
35745
+ return {
35746
+ url: toPathString(localVarUrlObj),
35747
+ options: localVarRequestOptions,
35748
+ };
35749
+ }),
35750
+ /**
35751
+ * 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.
35752
+ * @summary List an event\'s badge color rules
35753
+ * @param {string} eventId The event identifier
35754
+ * @param {number} [page] Page number
35755
+ * @param {number} [pageSize] Number of items per page
35756
+ * @param {string} [orderBy] Field to order by
35757
+ * @param {string} [search] Search query
35758
+ * @param {*} [options] Override http request option.
35759
+ * @throws {RequiredError}
35760
+ */
35761
+ getEventBadgeColorRules: (eventId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [eventId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (eventId, page, pageSize, orderBy, search, options = {}) {
35762
+ // verify required parameter 'eventId' is not null or undefined
35763
+ assertParamExists('getEventBadgeColorRules', 'eventId', eventId);
35764
+ const localVarPath = `/events/{eventId}/on-site/badge-colors`
35765
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
35766
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35767
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35768
+ let baseOptions;
35769
+ if (configuration) {
35770
+ baseOptions = configuration.baseOptions;
35771
+ }
35772
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
35773
+ const localVarHeaderParameter = {};
35774
+ const localVarQueryParameter = {};
35775
+ // authentication ApiKeyAuth required
35776
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
35777
+ // authentication OrganizationId required
35778
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
35779
+ if (page !== undefined) {
35780
+ localVarQueryParameter['page'] = page;
35781
+ }
35782
+ if (pageSize !== undefined) {
35783
+ localVarQueryParameter['pageSize'] = pageSize;
35784
+ }
35785
+ if (orderBy !== undefined) {
35786
+ localVarQueryParameter['orderBy'] = orderBy;
35787
+ }
35788
+ if (search !== undefined) {
35789
+ localVarQueryParameter['search'] = search;
35790
+ }
35791
+ localVarHeaderParameter['Accept'] = 'application/json';
35792
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35793
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35794
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
35795
+ return {
35796
+ url: toPathString(localVarUrlObj),
35797
+ options: localVarRequestOptions,
35798
+ };
35799
+ }),
35621
35800
  /**
35622
35801
  * 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.
35623
35802
  * @summary Get an event\'s on-site check-in settings
@@ -35652,6 +35831,49 @@ export const EventsOnSiteApiAxiosParamCreator = function (configuration) {
35652
35831
  options: localVarRequestOptions,
35653
35832
  };
35654
35833
  }),
35834
+ /**
35835
+ * 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.
35836
+ * @summary Update an event badge color rule
35837
+ * @param {string} eventId The event identifier
35838
+ * @param {string} ruleId The rule identifier
35839
+ * @param {EventBadgeColorRuleUpdateInputs} eventBadgeColorRuleUpdateInputs
35840
+ * @param {*} [options] Override http request option.
35841
+ * @throws {RequiredError}
35842
+ */
35843
+ updateEventBadgeColorRule: (eventId_1, ruleId_1, eventBadgeColorRuleUpdateInputs_1, ...args_1) => __awaiter(this, [eventId_1, ruleId_1, eventBadgeColorRuleUpdateInputs_1, ...args_1], void 0, function* (eventId, ruleId, eventBadgeColorRuleUpdateInputs, options = {}) {
35844
+ // verify required parameter 'eventId' is not null or undefined
35845
+ assertParamExists('updateEventBadgeColorRule', 'eventId', eventId);
35846
+ // verify required parameter 'ruleId' is not null or undefined
35847
+ assertParamExists('updateEventBadgeColorRule', 'ruleId', ruleId);
35848
+ // verify required parameter 'eventBadgeColorRuleUpdateInputs' is not null or undefined
35849
+ assertParamExists('updateEventBadgeColorRule', 'eventBadgeColorRuleUpdateInputs', eventBadgeColorRuleUpdateInputs);
35850
+ const localVarPath = `/events/{eventId}/on-site/badge-colors/{ruleId}`
35851
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
35852
+ .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
35853
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35854
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35855
+ let baseOptions;
35856
+ if (configuration) {
35857
+ baseOptions = configuration.baseOptions;
35858
+ }
35859
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
35860
+ const localVarHeaderParameter = {};
35861
+ const localVarQueryParameter = {};
35862
+ // authentication ApiKeyAuth required
35863
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
35864
+ // authentication OrganizationId required
35865
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
35866
+ localVarHeaderParameter['Content-Type'] = 'application/json';
35867
+ localVarHeaderParameter['Accept'] = 'application/json';
35868
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35869
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35870
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
35871
+ localVarRequestOptions.data = serializeDataIfNeeded(eventBadgeColorRuleUpdateInputs, localVarRequestOptions, configuration);
35872
+ return {
35873
+ url: toPathString(localVarUrlObj),
35874
+ options: localVarRequestOptions,
35875
+ };
35876
+ }),
35655
35877
  /**
35656
35878
  * 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.
35657
35879
  * @summary Update an event\'s badge template
@@ -35733,6 +35955,77 @@ export const EventsOnSiteApiAxiosParamCreator = function (configuration) {
35733
35955
  export const EventsOnSiteApiFp = function (configuration) {
35734
35956
  const localVarAxiosParamCreator = EventsOnSiteApiAxiosParamCreator(configuration);
35735
35957
  return {
35958
+ /**
35959
+ * 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.
35960
+ * @summary Create an event badge color rule
35961
+ * @param {string} eventId The event identifier
35962
+ * @param {EventBadgeColorRuleCreateInputs} eventBadgeColorRuleCreateInputs
35963
+ * @param {*} [options] Override http request option.
35964
+ * @throws {RequiredError}
35965
+ */
35966
+ createEventBadgeColorRule(eventId, eventBadgeColorRuleCreateInputs, options) {
35967
+ return __awaiter(this, void 0, void 0, function* () {
35968
+ var _a, _b, _c;
35969
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createEventBadgeColorRule(eventId, eventBadgeColorRuleCreateInputs, options);
35970
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
35971
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsOnSiteApi.createEventBadgeColorRule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
35972
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35973
+ });
35974
+ },
35975
+ /**
35976
+ * Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
35977
+ * @summary Delete an event badge color rule
35978
+ * @param {string} eventId The event identifier
35979
+ * @param {string} ruleId The rule identifier
35980
+ * @param {*} [options] Override http request option.
35981
+ * @throws {RequiredError}
35982
+ */
35983
+ deleteEventBadgeColorRule(eventId, ruleId, options) {
35984
+ return __awaiter(this, void 0, void 0, function* () {
35985
+ var _a, _b, _c;
35986
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEventBadgeColorRule(eventId, ruleId, options);
35987
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
35988
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsOnSiteApi.deleteEventBadgeColorRule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
35989
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35990
+ });
35991
+ },
35992
+ /**
35993
+ * Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
35994
+ * @summary Get an event badge color rule
35995
+ * @param {string} eventId The event identifier
35996
+ * @param {string} ruleId The rule identifier
35997
+ * @param {*} [options] Override http request option.
35998
+ * @throws {RequiredError}
35999
+ */
36000
+ getEventBadgeColorRule(eventId, ruleId, options) {
36001
+ return __awaiter(this, void 0, void 0, function* () {
36002
+ var _a, _b, _c;
36003
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventBadgeColorRule(eventId, ruleId, options);
36004
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
36005
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsOnSiteApi.getEventBadgeColorRule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
36006
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36007
+ });
36008
+ },
36009
+ /**
36010
+ * 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.
36011
+ * @summary List an event\'s badge color rules
36012
+ * @param {string} eventId The event identifier
36013
+ * @param {number} [page] Page number
36014
+ * @param {number} [pageSize] Number of items per page
36015
+ * @param {string} [orderBy] Field to order by
36016
+ * @param {string} [search] Search query
36017
+ * @param {*} [options] Override http request option.
36018
+ * @throws {RequiredError}
36019
+ */
36020
+ getEventBadgeColorRules(eventId, page, pageSize, orderBy, search, options) {
36021
+ return __awaiter(this, void 0, void 0, function* () {
36022
+ var _a, _b, _c;
36023
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventBadgeColorRules(eventId, page, pageSize, orderBy, search, options);
36024
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
36025
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsOnSiteApi.getEventBadgeColorRules']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
36026
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36027
+ });
36028
+ },
35736
36029
  /**
35737
36030
  * 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.
35738
36031
  * @summary Get an event\'s on-site check-in settings
@@ -35749,6 +36042,24 @@ export const EventsOnSiteApiFp = function (configuration) {
35749
36042
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35750
36043
  });
35751
36044
  },
36045
+ /**
36046
+ * 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.
36047
+ * @summary Update an event badge color rule
36048
+ * @param {string} eventId The event identifier
36049
+ * @param {string} ruleId The rule identifier
36050
+ * @param {EventBadgeColorRuleUpdateInputs} eventBadgeColorRuleUpdateInputs
36051
+ * @param {*} [options] Override http request option.
36052
+ * @throws {RequiredError}
36053
+ */
36054
+ updateEventBadgeColorRule(eventId, ruleId, eventBadgeColorRuleUpdateInputs, options) {
36055
+ return __awaiter(this, void 0, void 0, function* () {
36056
+ var _a, _b, _c;
36057
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEventBadgeColorRule(eventId, ruleId, eventBadgeColorRuleUpdateInputs, options);
36058
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
36059
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsOnSiteApi.updateEventBadgeColorRule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
36060
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36061
+ });
36062
+ },
35752
36063
  /**
35753
36064
  * 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.
35754
36065
  * @summary Update an event\'s badge template
@@ -35790,6 +36101,46 @@ export const EventsOnSiteApiFp = function (configuration) {
35790
36101
  export const EventsOnSiteApiFactory = function (configuration, basePath, axios) {
35791
36102
  const localVarFp = EventsOnSiteApiFp(configuration);
35792
36103
  return {
36104
+ /**
36105
+ * 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.
36106
+ * @summary Create an event badge color rule
36107
+ * @param {EventsOnSiteApiCreateEventBadgeColorRuleRequest} requestParameters Request parameters.
36108
+ * @param {*} [options] Override http request option.
36109
+ * @throws {RequiredError}
36110
+ */
36111
+ createEventBadgeColorRule(requestParameters, options) {
36112
+ return localVarFp.createEventBadgeColorRule(requestParameters.eventId, requestParameters.eventBadgeColorRuleCreateInputs, options).then((request) => request(axios, basePath));
36113
+ },
36114
+ /**
36115
+ * Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
36116
+ * @summary Delete an event badge color rule
36117
+ * @param {EventsOnSiteApiDeleteEventBadgeColorRuleRequest} requestParameters Request parameters.
36118
+ * @param {*} [options] Override http request option.
36119
+ * @throws {RequiredError}
36120
+ */
36121
+ deleteEventBadgeColorRule(requestParameters, options) {
36122
+ return localVarFp.deleteEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(axios, basePath));
36123
+ },
36124
+ /**
36125
+ * Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
36126
+ * @summary Get an event badge color rule
36127
+ * @param {EventsOnSiteApiGetEventBadgeColorRuleRequest} requestParameters Request parameters.
36128
+ * @param {*} [options] Override http request option.
36129
+ * @throws {RequiredError}
36130
+ */
36131
+ getEventBadgeColorRule(requestParameters, options) {
36132
+ return localVarFp.getEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(axios, basePath));
36133
+ },
36134
+ /**
36135
+ * 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.
36136
+ * @summary List an event\'s badge color rules
36137
+ * @param {EventsOnSiteApiGetEventBadgeColorRulesRequest} requestParameters Request parameters.
36138
+ * @param {*} [options] Override http request option.
36139
+ * @throws {RequiredError}
36140
+ */
36141
+ getEventBadgeColorRules(requestParameters, options) {
36142
+ return localVarFp.getEventBadgeColorRules(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
36143
+ },
35793
36144
  /**
35794
36145
  * 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.
35795
36146
  * @summary Get an event\'s on-site check-in settings
@@ -35800,6 +36151,16 @@ export const EventsOnSiteApiFactory = function (configuration, basePath, axios)
35800
36151
  getEventOnSite(requestParameters, options) {
35801
36152
  return localVarFp.getEventOnSite(requestParameters.eventId, options).then((request) => request(axios, basePath));
35802
36153
  },
36154
+ /**
36155
+ * 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.
36156
+ * @summary Update an event badge color rule
36157
+ * @param {EventsOnSiteApiUpdateEventBadgeColorRuleRequest} requestParameters Request parameters.
36158
+ * @param {*} [options] Override http request option.
36159
+ * @throws {RequiredError}
36160
+ */
36161
+ updateEventBadgeColorRule(requestParameters, options) {
36162
+ return localVarFp.updateEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, requestParameters.eventBadgeColorRuleUpdateInputs, options).then((request) => request(axios, basePath));
36163
+ },
35803
36164
  /**
35804
36165
  * 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.
35805
36166
  * @summary Update an event\'s badge template
@@ -35826,6 +36187,46 @@ export const EventsOnSiteApiFactory = function (configuration, basePath, axios)
35826
36187
  * EventsOnSiteApi - object-oriented interface
35827
36188
  */
35828
36189
  export class EventsOnSiteApi extends BaseAPI {
36190
+ /**
36191
+ * 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.
36192
+ * @summary Create an event badge color rule
36193
+ * @param {EventsOnSiteApiCreateEventBadgeColorRuleRequest} requestParameters Request parameters.
36194
+ * @param {*} [options] Override http request option.
36195
+ * @throws {RequiredError}
36196
+ */
36197
+ createEventBadgeColorRule(requestParameters, options) {
36198
+ return EventsOnSiteApiFp(this.configuration).createEventBadgeColorRule(requestParameters.eventId, requestParameters.eventBadgeColorRuleCreateInputs, options).then((request) => request(this.axios, this.basePath));
36199
+ }
36200
+ /**
36201
+ * Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
36202
+ * @summary Delete an event badge color rule
36203
+ * @param {EventsOnSiteApiDeleteEventBadgeColorRuleRequest} requestParameters Request parameters.
36204
+ * @param {*} [options] Override http request option.
36205
+ * @throws {RequiredError}
36206
+ */
36207
+ deleteEventBadgeColorRule(requestParameters, options) {
36208
+ return EventsOnSiteApiFp(this.configuration).deleteEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(this.axios, this.basePath));
36209
+ }
36210
+ /**
36211
+ * Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
36212
+ * @summary Get an event badge color rule
36213
+ * @param {EventsOnSiteApiGetEventBadgeColorRuleRequest} requestParameters Request parameters.
36214
+ * @param {*} [options] Override http request option.
36215
+ * @throws {RequiredError}
36216
+ */
36217
+ getEventBadgeColorRule(requestParameters, options) {
36218
+ return EventsOnSiteApiFp(this.configuration).getEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(this.axios, this.basePath));
36219
+ }
36220
+ /**
36221
+ * 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.
36222
+ * @summary List an event\'s badge color rules
36223
+ * @param {EventsOnSiteApiGetEventBadgeColorRulesRequest} requestParameters Request parameters.
36224
+ * @param {*} [options] Override http request option.
36225
+ * @throws {RequiredError}
36226
+ */
36227
+ getEventBadgeColorRules(requestParameters, options) {
36228
+ return EventsOnSiteApiFp(this.configuration).getEventBadgeColorRules(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
36229
+ }
35829
36230
  /**
35830
36231
  * 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.
35831
36232
  * @summary Get an event\'s on-site check-in settings
@@ -35836,6 +36237,16 @@ export class EventsOnSiteApi extends BaseAPI {
35836
36237
  getEventOnSite(requestParameters, options) {
35837
36238
  return EventsOnSiteApiFp(this.configuration).getEventOnSite(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
35838
36239
  }
36240
+ /**
36241
+ * 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.
36242
+ * @summary Update an event badge color rule
36243
+ * @param {EventsOnSiteApiUpdateEventBadgeColorRuleRequest} requestParameters Request parameters.
36244
+ * @param {*} [options] Override http request option.
36245
+ * @throws {RequiredError}
36246
+ */
36247
+ updateEventBadgeColorRule(requestParameters, options) {
36248
+ return EventsOnSiteApiFp(this.configuration).updateEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, requestParameters.eventBadgeColorRuleUpdateInputs, options).then((request) => request(this.axios, this.basePath));
36249
+ }
35839
36250
  /**
35840
36251
  * 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.
35841
36252
  * @summary Update an event\'s badge template
@@ -2,7 +2,7 @@
2
2
  * Connected Admin API
3
3
  * The Admin API allows you to manage your Connected community programmatically.
4
4
  *
5
- * The version of the OpenAPI document: 10.8.2
5
+ * The version of the OpenAPI document: 10.10.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js 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.8.2
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).
@@ -2,7 +2,7 @@
2
2
  * Connected Admin API
3
3
  * The Admin API allows you to manage your Connected community programmatically.
4
4
  *
5
- * The version of the OpenAPI document: 10.8.2
5
+ * The version of the OpenAPI document: 10.10.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.8.2
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).
@@ -2,7 +2,7 @@
2
2
  * Connected Admin API
3
3
  * The Admin API allows you to manage your Connected community programmatically.
4
4
  *
5
- * The version of the OpenAPI document: 10.8.2
5
+ * The version of the OpenAPI document: 10.10.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,7 +3,7 @@
3
3
  * Connected Admin API
4
4
  * The Admin API allows you to manage your Connected community programmatically.
5
5
  *
6
- * The version of the OpenAPI document: 10.8.2
6
+ * The version of the OpenAPI document: 10.10.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,12 @@
1
+ # BadgeColorRuleType
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Attribute` (value: `'attribute'`)
7
+
8
+ * `Tier` (value: `'tier'`)
9
+
10
+ * `PassType` (value: `'passType'`)
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,36 @@
1
+ # BaseEventOnSiteBadgeColorRule
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **name** | **string** | | [default to undefined]
10
+ **type** | [**BadgeColorRuleType**](BadgeColorRuleType.md) | | [default to undefined]
11
+ **color** | **string** | | [default to undefined]
12
+ **sortOrder** | **number** | | [default to undefined]
13
+ **attributeId** | **string** | | [default to undefined]
14
+ **attributeValue** | **string** | | [default to undefined]
15
+ **tierId** | **string** | | [default to undefined]
16
+ **passTypeId** | **string** | | [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { BaseEventOnSiteBadgeColorRule } from '@connectedxm/admin-sdk';
22
+
23
+ const instance: BaseEventOnSiteBadgeColorRule = {
24
+ id,
25
+ name,
26
+ type,
27
+ color,
28
+ sortOrder,
29
+ attributeId,
30
+ attributeValue,
31
+ tierId,
32
+ passTypeId,
33
+ };
34
+ ```
35
+
36
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # CreateEventBadgeColorRule200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+ **data** | [**EventOnSiteBadgeColorRule**](EventOnSiteBadgeColorRule.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { CreateEventBadgeColorRule200Response } from '@connectedxm/admin-sdk';
16
+
17
+ const instance: CreateEventBadgeColorRule200Response = {
18
+ status,
19
+ message,
20
+ data,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)