@connectedxm/admin-sdk 10.9.0 → 10.11.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/.openapi-generator/FILES +14 -0
- package/AdminApi.ts +3 -0
- package/README.md +2 -2
- package/api.ts +1260 -14
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/AdminApi.d.ts +2 -1
- package/dist/AdminApi.js +1 -0
- package/dist/api.d.ts +682 -5
- package/dist/api.js +922 -29
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/AdminApi.d.ts +2 -1
- package/dist/esm/AdminApi.js +2 -1
- package/dist/esm/api.d.ts +682 -5
- package/dist/esm/api.js +890 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/docs/BadgeColorRuleType.md +12 -0
- package/docs/BaseEventOnSiteBadgeColorRule.md +36 -0
- package/docs/BaseOrganizationEntity.md +30 -0
- package/docs/CreateEventBadgeColorRule200Response.md +24 -0
- package/docs/CreateOrganizationEntity200Response.md +24 -0
- package/docs/EventBadgeColorRuleCreateInputs.md +34 -0
- package/docs/EventBadgeColorRuleUpdateInputs.md +34 -0
- package/docs/EventOnSiteBadgeColorRule.md +46 -0
- package/docs/EventPassCreateInputs.md +0 -2
- package/docs/EventPassUpdateInputs.md +0 -2
- package/docs/EventsOnSiteApi.md +289 -0
- package/docs/GetEventBadgeColorRules200Response.md +26 -0
- package/docs/GetOrganizationEntities200Response.md +26 -0
- package/docs/OrganizationEntitiesApi.md +333 -0
- package/docs/OrganizationEntity.md +54 -0
- package/docs/OrganizationEntityCreateInputs.md +44 -0
- package/docs/OrganizationEntityUpdateInputs.md +44 -0
- package/docs/PassTypeCreateInputs.md +0 -2
- package/docs/PassTypeUpdateInputs.md +0 -2
- package/package.json +1 -1
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.
|
|
7
|
+
* The version of the OpenAPI document: 10.11.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";
|
|
@@ -444,6 +454,10 @@ export var CreateMeetingLink200ResponseStatusEnum;
|
|
|
444
454
|
(function (CreateMeetingLink200ResponseStatusEnum) {
|
|
445
455
|
CreateMeetingLink200ResponseStatusEnum["Ok"] = "ok";
|
|
446
456
|
})(CreateMeetingLink200ResponseStatusEnum || (CreateMeetingLink200ResponseStatusEnum = {}));
|
|
457
|
+
export var CreateOrganizationEntity200ResponseStatusEnum;
|
|
458
|
+
(function (CreateOrganizationEntity200ResponseStatusEnum) {
|
|
459
|
+
CreateOrganizationEntity200ResponseStatusEnum["Ok"] = "ok";
|
|
460
|
+
})(CreateOrganizationEntity200ResponseStatusEnum || (CreateOrganizationEntity200ResponseStatusEnum = {}));
|
|
447
461
|
export var CreateOrganizationPaymentIntegration200ResponseStatusEnum;
|
|
448
462
|
(function (CreateOrganizationPaymentIntegration200ResponseStatusEnum) {
|
|
449
463
|
CreateOrganizationPaymentIntegration200ResponseStatusEnum["Ok"] = "ok";
|
|
@@ -1027,6 +1041,10 @@ export var GetEventAttributes200ResponseStatusEnum;
|
|
|
1027
1041
|
(function (GetEventAttributes200ResponseStatusEnum) {
|
|
1028
1042
|
GetEventAttributes200ResponseStatusEnum["Ok"] = "ok";
|
|
1029
1043
|
})(GetEventAttributes200ResponseStatusEnum || (GetEventAttributes200ResponseStatusEnum = {}));
|
|
1044
|
+
export var GetEventBadgeColorRules200ResponseStatusEnum;
|
|
1045
|
+
(function (GetEventBadgeColorRules200ResponseStatusEnum) {
|
|
1046
|
+
GetEventBadgeColorRules200ResponseStatusEnum["Ok"] = "ok";
|
|
1047
|
+
})(GetEventBadgeColorRules200ResponseStatusEnum || (GetEventBadgeColorRules200ResponseStatusEnum = {}));
|
|
1030
1048
|
export var GetEventBlocks200ResponseStatusEnum;
|
|
1031
1049
|
(function (GetEventBlocks200ResponseStatusEnum) {
|
|
1032
1050
|
GetEventBlocks200ResponseStatusEnum["Ok"] = "ok";
|
|
@@ -1631,6 +1649,10 @@ export var GetOrganizationDomain200ResponseStatusEnum;
|
|
|
1631
1649
|
(function (GetOrganizationDomain200ResponseStatusEnum) {
|
|
1632
1650
|
GetOrganizationDomain200ResponseStatusEnum["Ok"] = "ok";
|
|
1633
1651
|
})(GetOrganizationDomain200ResponseStatusEnum || (GetOrganizationDomain200ResponseStatusEnum = {}));
|
|
1652
|
+
export var GetOrganizationEntities200ResponseStatusEnum;
|
|
1653
|
+
(function (GetOrganizationEntities200ResponseStatusEnum) {
|
|
1654
|
+
GetOrganizationEntities200ResponseStatusEnum["Ok"] = "ok";
|
|
1655
|
+
})(GetOrganizationEntities200ResponseStatusEnum || (GetOrganizationEntities200ResponseStatusEnum = {}));
|
|
1634
1656
|
export var GetOrganizationLanguageOverrides200ResponseStatusEnum;
|
|
1635
1657
|
(function (GetOrganizationLanguageOverrides200ResponseStatusEnum) {
|
|
1636
1658
|
GetOrganizationLanguageOverrides200ResponseStatusEnum["Ok"] = "ok";
|
|
@@ -35618,6 +35640,171 @@ export class EventsMediaTranslationsApi extends BaseAPI {
|
|
|
35618
35640
|
*/
|
|
35619
35641
|
export const EventsOnSiteApiAxiosParamCreator = function (configuration) {
|
|
35620
35642
|
return {
|
|
35643
|
+
/**
|
|
35644
|
+
* 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.
|
|
35645
|
+
* @summary Create an event badge color rule
|
|
35646
|
+
* @param {string} eventId The event identifier
|
|
35647
|
+
* @param {EventBadgeColorRuleCreateInputs} eventBadgeColorRuleCreateInputs
|
|
35648
|
+
* @param {*} [options] Override http request option.
|
|
35649
|
+
* @throws {RequiredError}
|
|
35650
|
+
*/
|
|
35651
|
+
createEventBadgeColorRule: (eventId_1, eventBadgeColorRuleCreateInputs_1, ...args_1) => __awaiter(this, [eventId_1, eventBadgeColorRuleCreateInputs_1, ...args_1], void 0, function* (eventId, eventBadgeColorRuleCreateInputs, options = {}) {
|
|
35652
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
35653
|
+
assertParamExists('createEventBadgeColorRule', 'eventId', eventId);
|
|
35654
|
+
// verify required parameter 'eventBadgeColorRuleCreateInputs' is not null or undefined
|
|
35655
|
+
assertParamExists('createEventBadgeColorRule', 'eventBadgeColorRuleCreateInputs', eventBadgeColorRuleCreateInputs);
|
|
35656
|
+
const localVarPath = `/events/{eventId}/on-site/badge-colors`
|
|
35657
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
35658
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35659
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35660
|
+
let baseOptions;
|
|
35661
|
+
if (configuration) {
|
|
35662
|
+
baseOptions = configuration.baseOptions;
|
|
35663
|
+
}
|
|
35664
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
35665
|
+
const localVarHeaderParameter = {};
|
|
35666
|
+
const localVarQueryParameter = {};
|
|
35667
|
+
// authentication ApiKeyAuth required
|
|
35668
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
35669
|
+
// authentication OrganizationId required
|
|
35670
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
35671
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
35672
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
35673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35675
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
35676
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventBadgeColorRuleCreateInputs, localVarRequestOptions, configuration);
|
|
35677
|
+
return {
|
|
35678
|
+
url: toPathString(localVarUrlObj),
|
|
35679
|
+
options: localVarRequestOptions,
|
|
35680
|
+
};
|
|
35681
|
+
}),
|
|
35682
|
+
/**
|
|
35683
|
+
* Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
|
|
35684
|
+
* @summary Delete an event badge color rule
|
|
35685
|
+
* @param {string} eventId The event identifier
|
|
35686
|
+
* @param {string} ruleId The rule identifier
|
|
35687
|
+
* @param {*} [options] Override http request option.
|
|
35688
|
+
* @throws {RequiredError}
|
|
35689
|
+
*/
|
|
35690
|
+
deleteEventBadgeColorRule: (eventId_1, ruleId_1, ...args_1) => __awaiter(this, [eventId_1, ruleId_1, ...args_1], void 0, function* (eventId, ruleId, options = {}) {
|
|
35691
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
35692
|
+
assertParamExists('deleteEventBadgeColorRule', 'eventId', eventId);
|
|
35693
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
35694
|
+
assertParamExists('deleteEventBadgeColorRule', 'ruleId', ruleId);
|
|
35695
|
+
const localVarPath = `/events/{eventId}/on-site/badge-colors/{ruleId}`
|
|
35696
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
35697
|
+
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
35698
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35699
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35700
|
+
let baseOptions;
|
|
35701
|
+
if (configuration) {
|
|
35702
|
+
baseOptions = configuration.baseOptions;
|
|
35703
|
+
}
|
|
35704
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
35705
|
+
const localVarHeaderParameter = {};
|
|
35706
|
+
const localVarQueryParameter = {};
|
|
35707
|
+
// authentication ApiKeyAuth required
|
|
35708
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
35709
|
+
// authentication OrganizationId required
|
|
35710
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
35711
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
35712
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35713
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35714
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
35715
|
+
return {
|
|
35716
|
+
url: toPathString(localVarUrlObj),
|
|
35717
|
+
options: localVarRequestOptions,
|
|
35718
|
+
};
|
|
35719
|
+
}),
|
|
35720
|
+
/**
|
|
35721
|
+
* Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
|
|
35722
|
+
* @summary Get an event badge color rule
|
|
35723
|
+
* @param {string} eventId The event identifier
|
|
35724
|
+
* @param {string} ruleId The rule identifier
|
|
35725
|
+
* @param {*} [options] Override http request option.
|
|
35726
|
+
* @throws {RequiredError}
|
|
35727
|
+
*/
|
|
35728
|
+
getEventBadgeColorRule: (eventId_1, ruleId_1, ...args_1) => __awaiter(this, [eventId_1, ruleId_1, ...args_1], void 0, function* (eventId, ruleId, options = {}) {
|
|
35729
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
35730
|
+
assertParamExists('getEventBadgeColorRule', 'eventId', eventId);
|
|
35731
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
35732
|
+
assertParamExists('getEventBadgeColorRule', 'ruleId', ruleId);
|
|
35733
|
+
const localVarPath = `/events/{eventId}/on-site/badge-colors/{ruleId}`
|
|
35734
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
35735
|
+
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
35736
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35737
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35738
|
+
let baseOptions;
|
|
35739
|
+
if (configuration) {
|
|
35740
|
+
baseOptions = configuration.baseOptions;
|
|
35741
|
+
}
|
|
35742
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
35743
|
+
const localVarHeaderParameter = {};
|
|
35744
|
+
const localVarQueryParameter = {};
|
|
35745
|
+
// authentication ApiKeyAuth required
|
|
35746
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
35747
|
+
// authentication OrganizationId required
|
|
35748
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
35749
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
35750
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35751
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35752
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
35753
|
+
return {
|
|
35754
|
+
url: toPathString(localVarUrlObj),
|
|
35755
|
+
options: localVarRequestOptions,
|
|
35756
|
+
};
|
|
35757
|
+
}),
|
|
35758
|
+
/**
|
|
35759
|
+
* 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.
|
|
35760
|
+
* @summary List an event\'s badge color rules
|
|
35761
|
+
* @param {string} eventId The event identifier
|
|
35762
|
+
* @param {number} [page] Page number
|
|
35763
|
+
* @param {number} [pageSize] Number of items per page
|
|
35764
|
+
* @param {string} [orderBy] Field to order by
|
|
35765
|
+
* @param {string} [search] Search query
|
|
35766
|
+
* @param {*} [options] Override http request option.
|
|
35767
|
+
* @throws {RequiredError}
|
|
35768
|
+
*/
|
|
35769
|
+
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 = {}) {
|
|
35770
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
35771
|
+
assertParamExists('getEventBadgeColorRules', 'eventId', eventId);
|
|
35772
|
+
const localVarPath = `/events/{eventId}/on-site/badge-colors`
|
|
35773
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
35774
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35775
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35776
|
+
let baseOptions;
|
|
35777
|
+
if (configuration) {
|
|
35778
|
+
baseOptions = configuration.baseOptions;
|
|
35779
|
+
}
|
|
35780
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
35781
|
+
const localVarHeaderParameter = {};
|
|
35782
|
+
const localVarQueryParameter = {};
|
|
35783
|
+
// authentication ApiKeyAuth required
|
|
35784
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
35785
|
+
// authentication OrganizationId required
|
|
35786
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
35787
|
+
if (page !== undefined) {
|
|
35788
|
+
localVarQueryParameter['page'] = page;
|
|
35789
|
+
}
|
|
35790
|
+
if (pageSize !== undefined) {
|
|
35791
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
35792
|
+
}
|
|
35793
|
+
if (orderBy !== undefined) {
|
|
35794
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
35795
|
+
}
|
|
35796
|
+
if (search !== undefined) {
|
|
35797
|
+
localVarQueryParameter['search'] = search;
|
|
35798
|
+
}
|
|
35799
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
35800
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35801
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35802
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
35803
|
+
return {
|
|
35804
|
+
url: toPathString(localVarUrlObj),
|
|
35805
|
+
options: localVarRequestOptions,
|
|
35806
|
+
};
|
|
35807
|
+
}),
|
|
35621
35808
|
/**
|
|
35622
35809
|
* 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
35810
|
* @summary Get an event\'s on-site check-in settings
|
|
@@ -35652,6 +35839,49 @@ export const EventsOnSiteApiAxiosParamCreator = function (configuration) {
|
|
|
35652
35839
|
options: localVarRequestOptions,
|
|
35653
35840
|
};
|
|
35654
35841
|
}),
|
|
35842
|
+
/**
|
|
35843
|
+
* 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.
|
|
35844
|
+
* @summary Update an event badge color rule
|
|
35845
|
+
* @param {string} eventId The event identifier
|
|
35846
|
+
* @param {string} ruleId The rule identifier
|
|
35847
|
+
* @param {EventBadgeColorRuleUpdateInputs} eventBadgeColorRuleUpdateInputs
|
|
35848
|
+
* @param {*} [options] Override http request option.
|
|
35849
|
+
* @throws {RequiredError}
|
|
35850
|
+
*/
|
|
35851
|
+
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 = {}) {
|
|
35852
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
35853
|
+
assertParamExists('updateEventBadgeColorRule', 'eventId', eventId);
|
|
35854
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
35855
|
+
assertParamExists('updateEventBadgeColorRule', 'ruleId', ruleId);
|
|
35856
|
+
// verify required parameter 'eventBadgeColorRuleUpdateInputs' is not null or undefined
|
|
35857
|
+
assertParamExists('updateEventBadgeColorRule', 'eventBadgeColorRuleUpdateInputs', eventBadgeColorRuleUpdateInputs);
|
|
35858
|
+
const localVarPath = `/events/{eventId}/on-site/badge-colors/{ruleId}`
|
|
35859
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
35860
|
+
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
35861
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35862
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35863
|
+
let baseOptions;
|
|
35864
|
+
if (configuration) {
|
|
35865
|
+
baseOptions = configuration.baseOptions;
|
|
35866
|
+
}
|
|
35867
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
35868
|
+
const localVarHeaderParameter = {};
|
|
35869
|
+
const localVarQueryParameter = {};
|
|
35870
|
+
// authentication ApiKeyAuth required
|
|
35871
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
35872
|
+
// authentication OrganizationId required
|
|
35873
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
35874
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
35875
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
35876
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35877
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35878
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
35879
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventBadgeColorRuleUpdateInputs, localVarRequestOptions, configuration);
|
|
35880
|
+
return {
|
|
35881
|
+
url: toPathString(localVarUrlObj),
|
|
35882
|
+
options: localVarRequestOptions,
|
|
35883
|
+
};
|
|
35884
|
+
}),
|
|
35655
35885
|
/**
|
|
35656
35886
|
* 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
35887
|
* @summary Update an event\'s badge template
|
|
@@ -35733,6 +35963,77 @@ export const EventsOnSiteApiAxiosParamCreator = function (configuration) {
|
|
|
35733
35963
|
export const EventsOnSiteApiFp = function (configuration) {
|
|
35734
35964
|
const localVarAxiosParamCreator = EventsOnSiteApiAxiosParamCreator(configuration);
|
|
35735
35965
|
return {
|
|
35966
|
+
/**
|
|
35967
|
+
* 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.
|
|
35968
|
+
* @summary Create an event badge color rule
|
|
35969
|
+
* @param {string} eventId The event identifier
|
|
35970
|
+
* @param {EventBadgeColorRuleCreateInputs} eventBadgeColorRuleCreateInputs
|
|
35971
|
+
* @param {*} [options] Override http request option.
|
|
35972
|
+
* @throws {RequiredError}
|
|
35973
|
+
*/
|
|
35974
|
+
createEventBadgeColorRule(eventId, eventBadgeColorRuleCreateInputs, options) {
|
|
35975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35976
|
+
var _a, _b, _c;
|
|
35977
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createEventBadgeColorRule(eventId, eventBadgeColorRuleCreateInputs, options);
|
|
35978
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
35979
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsOnSiteApi.createEventBadgeColorRule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
35980
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35981
|
+
});
|
|
35982
|
+
},
|
|
35983
|
+
/**
|
|
35984
|
+
* Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
|
|
35985
|
+
* @summary Delete an event badge color rule
|
|
35986
|
+
* @param {string} eventId The event identifier
|
|
35987
|
+
* @param {string} ruleId The rule identifier
|
|
35988
|
+
* @param {*} [options] Override http request option.
|
|
35989
|
+
* @throws {RequiredError}
|
|
35990
|
+
*/
|
|
35991
|
+
deleteEventBadgeColorRule(eventId, ruleId, options) {
|
|
35992
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35993
|
+
var _a, _b, _c;
|
|
35994
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEventBadgeColorRule(eventId, ruleId, options);
|
|
35995
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
35996
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsOnSiteApi.deleteEventBadgeColorRule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
35997
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35998
|
+
});
|
|
35999
|
+
},
|
|
36000
|
+
/**
|
|
36001
|
+
* Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
|
|
36002
|
+
* @summary Get an event badge color rule
|
|
36003
|
+
* @param {string} eventId The event identifier
|
|
36004
|
+
* @param {string} ruleId The rule identifier
|
|
36005
|
+
* @param {*} [options] Override http request option.
|
|
36006
|
+
* @throws {RequiredError}
|
|
36007
|
+
*/
|
|
36008
|
+
getEventBadgeColorRule(eventId, ruleId, options) {
|
|
36009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36010
|
+
var _a, _b, _c;
|
|
36011
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventBadgeColorRule(eventId, ruleId, options);
|
|
36012
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
36013
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsOnSiteApi.getEventBadgeColorRule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
36014
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36015
|
+
});
|
|
36016
|
+
},
|
|
36017
|
+
/**
|
|
36018
|
+
* 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.
|
|
36019
|
+
* @summary List an event\'s badge color rules
|
|
36020
|
+
* @param {string} eventId The event identifier
|
|
36021
|
+
* @param {number} [page] Page number
|
|
36022
|
+
* @param {number} [pageSize] Number of items per page
|
|
36023
|
+
* @param {string} [orderBy] Field to order by
|
|
36024
|
+
* @param {string} [search] Search query
|
|
36025
|
+
* @param {*} [options] Override http request option.
|
|
36026
|
+
* @throws {RequiredError}
|
|
36027
|
+
*/
|
|
36028
|
+
getEventBadgeColorRules(eventId, page, pageSize, orderBy, search, options) {
|
|
36029
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36030
|
+
var _a, _b, _c;
|
|
36031
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventBadgeColorRules(eventId, page, pageSize, orderBy, search, options);
|
|
36032
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
36033
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsOnSiteApi.getEventBadgeColorRules']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
36034
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36035
|
+
});
|
|
36036
|
+
},
|
|
35736
36037
|
/**
|
|
35737
36038
|
* 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
36039
|
* @summary Get an event\'s on-site check-in settings
|
|
@@ -35749,6 +36050,24 @@ export const EventsOnSiteApiFp = function (configuration) {
|
|
|
35749
36050
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35750
36051
|
});
|
|
35751
36052
|
},
|
|
36053
|
+
/**
|
|
36054
|
+
* 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.
|
|
36055
|
+
* @summary Update an event badge color rule
|
|
36056
|
+
* @param {string} eventId The event identifier
|
|
36057
|
+
* @param {string} ruleId The rule identifier
|
|
36058
|
+
* @param {EventBadgeColorRuleUpdateInputs} eventBadgeColorRuleUpdateInputs
|
|
36059
|
+
* @param {*} [options] Override http request option.
|
|
36060
|
+
* @throws {RequiredError}
|
|
36061
|
+
*/
|
|
36062
|
+
updateEventBadgeColorRule(eventId, ruleId, eventBadgeColorRuleUpdateInputs, options) {
|
|
36063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36064
|
+
var _a, _b, _c;
|
|
36065
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEventBadgeColorRule(eventId, ruleId, eventBadgeColorRuleUpdateInputs, options);
|
|
36066
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
36067
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsOnSiteApi.updateEventBadgeColorRule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
36068
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36069
|
+
});
|
|
36070
|
+
},
|
|
35752
36071
|
/**
|
|
35753
36072
|
* 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
36073
|
* @summary Update an event\'s badge template
|
|
@@ -35790,6 +36109,46 @@ export const EventsOnSiteApiFp = function (configuration) {
|
|
|
35790
36109
|
export const EventsOnSiteApiFactory = function (configuration, basePath, axios) {
|
|
35791
36110
|
const localVarFp = EventsOnSiteApiFp(configuration);
|
|
35792
36111
|
return {
|
|
36112
|
+
/**
|
|
36113
|
+
* 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.
|
|
36114
|
+
* @summary Create an event badge color rule
|
|
36115
|
+
* @param {EventsOnSiteApiCreateEventBadgeColorRuleRequest} requestParameters Request parameters.
|
|
36116
|
+
* @param {*} [options] Override http request option.
|
|
36117
|
+
* @throws {RequiredError}
|
|
36118
|
+
*/
|
|
36119
|
+
createEventBadgeColorRule(requestParameters, options) {
|
|
36120
|
+
return localVarFp.createEventBadgeColorRule(requestParameters.eventId, requestParameters.eventBadgeColorRuleCreateInputs, options).then((request) => request(axios, basePath));
|
|
36121
|
+
},
|
|
36122
|
+
/**
|
|
36123
|
+
* Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
|
|
36124
|
+
* @summary Delete an event badge color rule
|
|
36125
|
+
* @param {EventsOnSiteApiDeleteEventBadgeColorRuleRequest} requestParameters Request parameters.
|
|
36126
|
+
* @param {*} [options] Override http request option.
|
|
36127
|
+
* @throws {RequiredError}
|
|
36128
|
+
*/
|
|
36129
|
+
deleteEventBadgeColorRule(requestParameters, options) {
|
|
36130
|
+
return localVarFp.deleteEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(axios, basePath));
|
|
36131
|
+
},
|
|
36132
|
+
/**
|
|
36133
|
+
* Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
|
|
36134
|
+
* @summary Get an event badge color rule
|
|
36135
|
+
* @param {EventsOnSiteApiGetEventBadgeColorRuleRequest} requestParameters Request parameters.
|
|
36136
|
+
* @param {*} [options] Override http request option.
|
|
36137
|
+
* @throws {RequiredError}
|
|
36138
|
+
*/
|
|
36139
|
+
getEventBadgeColorRule(requestParameters, options) {
|
|
36140
|
+
return localVarFp.getEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(axios, basePath));
|
|
36141
|
+
},
|
|
36142
|
+
/**
|
|
36143
|
+
* 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.
|
|
36144
|
+
* @summary List an event\'s badge color rules
|
|
36145
|
+
* @param {EventsOnSiteApiGetEventBadgeColorRulesRequest} requestParameters Request parameters.
|
|
36146
|
+
* @param {*} [options] Override http request option.
|
|
36147
|
+
* @throws {RequiredError}
|
|
36148
|
+
*/
|
|
36149
|
+
getEventBadgeColorRules(requestParameters, options) {
|
|
36150
|
+
return localVarFp.getEventBadgeColorRules(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
36151
|
+
},
|
|
35793
36152
|
/**
|
|
35794
36153
|
* 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
36154
|
* @summary Get an event\'s on-site check-in settings
|
|
@@ -35800,6 +36159,16 @@ export const EventsOnSiteApiFactory = function (configuration, basePath, axios)
|
|
|
35800
36159
|
getEventOnSite(requestParameters, options) {
|
|
35801
36160
|
return localVarFp.getEventOnSite(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
35802
36161
|
},
|
|
36162
|
+
/**
|
|
36163
|
+
* 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.
|
|
36164
|
+
* @summary Update an event badge color rule
|
|
36165
|
+
* @param {EventsOnSiteApiUpdateEventBadgeColorRuleRequest} requestParameters Request parameters.
|
|
36166
|
+
* @param {*} [options] Override http request option.
|
|
36167
|
+
* @throws {RequiredError}
|
|
36168
|
+
*/
|
|
36169
|
+
updateEventBadgeColorRule(requestParameters, options) {
|
|
36170
|
+
return localVarFp.updateEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, requestParameters.eventBadgeColorRuleUpdateInputs, options).then((request) => request(axios, basePath));
|
|
36171
|
+
},
|
|
35803
36172
|
/**
|
|
35804
36173
|
* 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
36174
|
* @summary Update an event\'s badge template
|
|
@@ -35826,6 +36195,46 @@ export const EventsOnSiteApiFactory = function (configuration, basePath, axios)
|
|
|
35826
36195
|
* EventsOnSiteApi - object-oriented interface
|
|
35827
36196
|
*/
|
|
35828
36197
|
export class EventsOnSiteApi extends BaseAPI {
|
|
36198
|
+
/**
|
|
36199
|
+
* 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.
|
|
36200
|
+
* @summary Create an event badge color rule
|
|
36201
|
+
* @param {EventsOnSiteApiCreateEventBadgeColorRuleRequest} requestParameters Request parameters.
|
|
36202
|
+
* @param {*} [options] Override http request option.
|
|
36203
|
+
* @throws {RequiredError}
|
|
36204
|
+
*/
|
|
36205
|
+
createEventBadgeColorRule(requestParameters, options) {
|
|
36206
|
+
return EventsOnSiteApiFp(this.configuration).createEventBadgeColorRule(requestParameters.eventId, requestParameters.eventBadgeColorRuleCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
36207
|
+
}
|
|
36208
|
+
/**
|
|
36209
|
+
* Permanently deletes the specified on-site badge color rule from the given event; requires the \"update\" permission on events.
|
|
36210
|
+
* @summary Delete an event badge color rule
|
|
36211
|
+
* @param {EventsOnSiteApiDeleteEventBadgeColorRuleRequest} requestParameters Request parameters.
|
|
36212
|
+
* @param {*} [options] Override http request option.
|
|
36213
|
+
* @throws {RequiredError}
|
|
36214
|
+
*/
|
|
36215
|
+
deleteEventBadgeColorRule(requestParameters, options) {
|
|
36216
|
+
return EventsOnSiteApiFp(this.configuration).deleteEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
36217
|
+
}
|
|
36218
|
+
/**
|
|
36219
|
+
* Returns a single on-site badge color rule belonging to the given event; requires \"read\" permission on events.
|
|
36220
|
+
* @summary Get an event badge color rule
|
|
36221
|
+
* @param {EventsOnSiteApiGetEventBadgeColorRuleRequest} requestParameters Request parameters.
|
|
36222
|
+
* @param {*} [options] Override http request option.
|
|
36223
|
+
* @throws {RequiredError}
|
|
36224
|
+
*/
|
|
36225
|
+
getEventBadgeColorRule(requestParameters, options) {
|
|
36226
|
+
return EventsOnSiteApiFp(this.configuration).getEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
36227
|
+
}
|
|
36228
|
+
/**
|
|
36229
|
+
* 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.
|
|
36230
|
+
* @summary List an event\'s badge color rules
|
|
36231
|
+
* @param {EventsOnSiteApiGetEventBadgeColorRulesRequest} requestParameters Request parameters.
|
|
36232
|
+
* @param {*} [options] Override http request option.
|
|
36233
|
+
* @throws {RequiredError}
|
|
36234
|
+
*/
|
|
36235
|
+
getEventBadgeColorRules(requestParameters, options) {
|
|
36236
|
+
return EventsOnSiteApiFp(this.configuration).getEventBadgeColorRules(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
36237
|
+
}
|
|
35829
36238
|
/**
|
|
35830
36239
|
* 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
36240
|
* @summary Get an event\'s on-site check-in settings
|
|
@@ -35836,6 +36245,16 @@ export class EventsOnSiteApi extends BaseAPI {
|
|
|
35836
36245
|
getEventOnSite(requestParameters, options) {
|
|
35837
36246
|
return EventsOnSiteApiFp(this.configuration).getEventOnSite(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
35838
36247
|
}
|
|
36248
|
+
/**
|
|
36249
|
+
* 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.
|
|
36250
|
+
* @summary Update an event badge color rule
|
|
36251
|
+
* @param {EventsOnSiteApiUpdateEventBadgeColorRuleRequest} requestParameters Request parameters.
|
|
36252
|
+
* @param {*} [options] Override http request option.
|
|
36253
|
+
* @throws {RequiredError}
|
|
36254
|
+
*/
|
|
36255
|
+
updateEventBadgeColorRule(requestParameters, options) {
|
|
36256
|
+
return EventsOnSiteApiFp(this.configuration).updateEventBadgeColorRule(requestParameters.eventId, requestParameters.ruleId, requestParameters.eventBadgeColorRuleUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
36257
|
+
}
|
|
35839
36258
|
/**
|
|
35840
36259
|
* 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
36260
|
* @summary Update an event\'s badge template
|
|
@@ -82207,6 +82626,476 @@ export class OrganizationDomainsApi extends BaseAPI {
|
|
|
82207
82626
|
return OrganizationDomainsApiFp(this.configuration).updateOrganizationDomain(requestParameters.updateOrganizationDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
82208
82627
|
}
|
|
82209
82628
|
}
|
|
82629
|
+
/**
|
|
82630
|
+
* OrganizationEntitiesApi - axios parameter creator
|
|
82631
|
+
*/
|
|
82632
|
+
export const OrganizationEntitiesApiAxiosParamCreator = function (configuration) {
|
|
82633
|
+
return {
|
|
82634
|
+
/**
|
|
82635
|
+
* Creates a legal entity that can sell on behalf of the organization, carrying its own registered address, VAT registration and invoicing configuration. The entity is not made primary on creation - use the set-primary route for that.
|
|
82636
|
+
* @summary Create an organization legal entity
|
|
82637
|
+
* @param {OrganizationEntityCreateInputs} organizationEntityCreateInputs
|
|
82638
|
+
* @param {*} [options] Override http request option.
|
|
82639
|
+
* @throws {RequiredError}
|
|
82640
|
+
*/
|
|
82641
|
+
createOrganizationEntity: (organizationEntityCreateInputs_1, ...args_1) => __awaiter(this, [organizationEntityCreateInputs_1, ...args_1], void 0, function* (organizationEntityCreateInputs, options = {}) {
|
|
82642
|
+
// verify required parameter 'organizationEntityCreateInputs' is not null or undefined
|
|
82643
|
+
assertParamExists('createOrganizationEntity', 'organizationEntityCreateInputs', organizationEntityCreateInputs);
|
|
82644
|
+
const localVarPath = `/organization/entities`;
|
|
82645
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82646
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82647
|
+
let baseOptions;
|
|
82648
|
+
if (configuration) {
|
|
82649
|
+
baseOptions = configuration.baseOptions;
|
|
82650
|
+
}
|
|
82651
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
82652
|
+
const localVarHeaderParameter = {};
|
|
82653
|
+
const localVarQueryParameter = {};
|
|
82654
|
+
// authentication ApiKeyAuth required
|
|
82655
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
82656
|
+
// authentication OrganizationId required
|
|
82657
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
82658
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
82659
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
82660
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82662
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
82663
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationEntityCreateInputs, localVarRequestOptions, configuration);
|
|
82664
|
+
return {
|
|
82665
|
+
url: toPathString(localVarUrlObj),
|
|
82666
|
+
options: localVarRequestOptions,
|
|
82667
|
+
};
|
|
82668
|
+
}),
|
|
82669
|
+
/**
|
|
82670
|
+
* Permanently deletes a legal entity. The organization\'s primary entity can never be deleted - set another entity as primary first, which is also why an organization always retains at least one entity.
|
|
82671
|
+
* @summary Delete an organization legal entity
|
|
82672
|
+
* @param {string} entityId The entity identifier
|
|
82673
|
+
* @param {*} [options] Override http request option.
|
|
82674
|
+
* @throws {RequiredError}
|
|
82675
|
+
*/
|
|
82676
|
+
deleteOrganizationEntity: (entityId_1, ...args_1) => __awaiter(this, [entityId_1, ...args_1], void 0, function* (entityId, options = {}) {
|
|
82677
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
82678
|
+
assertParamExists('deleteOrganizationEntity', 'entityId', entityId);
|
|
82679
|
+
const localVarPath = `/organization/entities/{entityId}`
|
|
82680
|
+
.replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
|
|
82681
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82682
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82683
|
+
let baseOptions;
|
|
82684
|
+
if (configuration) {
|
|
82685
|
+
baseOptions = configuration.baseOptions;
|
|
82686
|
+
}
|
|
82687
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
82688
|
+
const localVarHeaderParameter = {};
|
|
82689
|
+
const localVarQueryParameter = {};
|
|
82690
|
+
// authentication ApiKeyAuth required
|
|
82691
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
82692
|
+
// authentication OrganizationId required
|
|
82693
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
82694
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
82695
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82696
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82697
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
82698
|
+
return {
|
|
82699
|
+
url: toPathString(localVarUrlObj),
|
|
82700
|
+
options: localVarRequestOptions,
|
|
82701
|
+
};
|
|
82702
|
+
}),
|
|
82703
|
+
/**
|
|
82704
|
+
* Returns a paginated, searchable list of the legal entities that sell on behalf of the organization, each carrying its registered address, VAT registration and invoicing configuration.
|
|
82705
|
+
* @summary List an organization\'s legal entities
|
|
82706
|
+
* @param {number} [page] Page number
|
|
82707
|
+
* @param {number} [pageSize] Number of items per page
|
|
82708
|
+
* @param {string} [orderBy] Field to order by
|
|
82709
|
+
* @param {string} [search] Search query
|
|
82710
|
+
* @param {*} [options] Override http request option.
|
|
82711
|
+
* @throws {RequiredError}
|
|
82712
|
+
*/
|
|
82713
|
+
getOrganizationEntities: (page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (page, pageSize, orderBy, search, options = {}) {
|
|
82714
|
+
const localVarPath = `/organization/entities`;
|
|
82715
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82716
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82717
|
+
let baseOptions;
|
|
82718
|
+
if (configuration) {
|
|
82719
|
+
baseOptions = configuration.baseOptions;
|
|
82720
|
+
}
|
|
82721
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
82722
|
+
const localVarHeaderParameter = {};
|
|
82723
|
+
const localVarQueryParameter = {};
|
|
82724
|
+
// authentication ApiKeyAuth required
|
|
82725
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
82726
|
+
// authentication OrganizationId required
|
|
82727
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
82728
|
+
if (page !== undefined) {
|
|
82729
|
+
localVarQueryParameter['page'] = page;
|
|
82730
|
+
}
|
|
82731
|
+
if (pageSize !== undefined) {
|
|
82732
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
82733
|
+
}
|
|
82734
|
+
if (orderBy !== undefined) {
|
|
82735
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
82736
|
+
}
|
|
82737
|
+
if (search !== undefined) {
|
|
82738
|
+
localVarQueryParameter['search'] = search;
|
|
82739
|
+
}
|
|
82740
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
82741
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82742
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82743
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
82744
|
+
return {
|
|
82745
|
+
url: toPathString(localVarUrlObj),
|
|
82746
|
+
options: localVarRequestOptions,
|
|
82747
|
+
};
|
|
82748
|
+
}),
|
|
82749
|
+
/**
|
|
82750
|
+
* Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
|
|
82751
|
+
* @summary Get an organization legal entity
|
|
82752
|
+
* @param {string} entityId The entity identifier
|
|
82753
|
+
* @param {*} [options] Override http request option.
|
|
82754
|
+
* @throws {RequiredError}
|
|
82755
|
+
*/
|
|
82756
|
+
getOrganizationEntity: (entityId_1, ...args_1) => __awaiter(this, [entityId_1, ...args_1], void 0, function* (entityId, options = {}) {
|
|
82757
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
82758
|
+
assertParamExists('getOrganizationEntity', 'entityId', entityId);
|
|
82759
|
+
const localVarPath = `/organization/entities/{entityId}`
|
|
82760
|
+
.replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
|
|
82761
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82762
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82763
|
+
let baseOptions;
|
|
82764
|
+
if (configuration) {
|
|
82765
|
+
baseOptions = configuration.baseOptions;
|
|
82766
|
+
}
|
|
82767
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
82768
|
+
const localVarHeaderParameter = {};
|
|
82769
|
+
const localVarQueryParameter = {};
|
|
82770
|
+
// authentication ApiKeyAuth required
|
|
82771
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
82772
|
+
// authentication OrganizationId required
|
|
82773
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
82774
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
82775
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82776
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82777
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
82778
|
+
return {
|
|
82779
|
+
url: toPathString(localVarUrlObj),
|
|
82780
|
+
options: localVarRequestOptions,
|
|
82781
|
+
};
|
|
82782
|
+
}),
|
|
82783
|
+
/**
|
|
82784
|
+
* Marks the specified entity as the organization\'s primary selling entity, clearing primary status from whichever entity held it before. This is the fallback entity used when an event has no entity of its own.
|
|
82785
|
+
* @summary Set an organization legal entity as primary
|
|
82786
|
+
* @param {string} entityId The entity identifier
|
|
82787
|
+
* @param {*} [options] Override http request option.
|
|
82788
|
+
* @throws {RequiredError}
|
|
82789
|
+
*/
|
|
82790
|
+
setPrimaryOrganizationEntity: (entityId_1, ...args_1) => __awaiter(this, [entityId_1, ...args_1], void 0, function* (entityId, options = {}) {
|
|
82791
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
82792
|
+
assertParamExists('setPrimaryOrganizationEntity', 'entityId', entityId);
|
|
82793
|
+
const localVarPath = `/organization/entities/{entityId}/primary`
|
|
82794
|
+
.replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
|
|
82795
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82796
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82797
|
+
let baseOptions;
|
|
82798
|
+
if (configuration) {
|
|
82799
|
+
baseOptions = configuration.baseOptions;
|
|
82800
|
+
}
|
|
82801
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
82802
|
+
const localVarHeaderParameter = {};
|
|
82803
|
+
const localVarQueryParameter = {};
|
|
82804
|
+
// authentication ApiKeyAuth required
|
|
82805
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
82806
|
+
// authentication OrganizationId required
|
|
82807
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
82808
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
82809
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82810
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82811
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
82812
|
+
return {
|
|
82813
|
+
url: toPathString(localVarUrlObj),
|
|
82814
|
+
options: localVarRequestOptions,
|
|
82815
|
+
};
|
|
82816
|
+
}),
|
|
82817
|
+
/**
|
|
82818
|
+
* Updates the identity, registered address, VAT registration or invoicing configuration of a legal entity. Primary status cannot be changed here - use the set-primary route.
|
|
82819
|
+
* @summary Update an organization legal entity
|
|
82820
|
+
* @param {string} entityId The entity identifier
|
|
82821
|
+
* @param {OrganizationEntityUpdateInputs} organizationEntityUpdateInputs
|
|
82822
|
+
* @param {*} [options] Override http request option.
|
|
82823
|
+
* @throws {RequiredError}
|
|
82824
|
+
*/
|
|
82825
|
+
updateOrganizationEntity: (entityId_1, organizationEntityUpdateInputs_1, ...args_1) => __awaiter(this, [entityId_1, organizationEntityUpdateInputs_1, ...args_1], void 0, function* (entityId, organizationEntityUpdateInputs, options = {}) {
|
|
82826
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
82827
|
+
assertParamExists('updateOrganizationEntity', 'entityId', entityId);
|
|
82828
|
+
// verify required parameter 'organizationEntityUpdateInputs' is not null or undefined
|
|
82829
|
+
assertParamExists('updateOrganizationEntity', 'organizationEntityUpdateInputs', organizationEntityUpdateInputs);
|
|
82830
|
+
const localVarPath = `/organization/entities/{entityId}`
|
|
82831
|
+
.replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
|
|
82832
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82833
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82834
|
+
let baseOptions;
|
|
82835
|
+
if (configuration) {
|
|
82836
|
+
baseOptions = configuration.baseOptions;
|
|
82837
|
+
}
|
|
82838
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
82839
|
+
const localVarHeaderParameter = {};
|
|
82840
|
+
const localVarQueryParameter = {};
|
|
82841
|
+
// authentication ApiKeyAuth required
|
|
82842
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
82843
|
+
// authentication OrganizationId required
|
|
82844
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
82845
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
82846
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
82847
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82848
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82849
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
82850
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationEntityUpdateInputs, localVarRequestOptions, configuration);
|
|
82851
|
+
return {
|
|
82852
|
+
url: toPathString(localVarUrlObj),
|
|
82853
|
+
options: localVarRequestOptions,
|
|
82854
|
+
};
|
|
82855
|
+
}),
|
|
82856
|
+
};
|
|
82857
|
+
};
|
|
82858
|
+
/**
|
|
82859
|
+
* OrganizationEntitiesApi - functional programming interface
|
|
82860
|
+
*/
|
|
82861
|
+
export const OrganizationEntitiesApiFp = function (configuration) {
|
|
82862
|
+
const localVarAxiosParamCreator = OrganizationEntitiesApiAxiosParamCreator(configuration);
|
|
82863
|
+
return {
|
|
82864
|
+
/**
|
|
82865
|
+
* Creates a legal entity that can sell on behalf of the organization, carrying its own registered address, VAT registration and invoicing configuration. The entity is not made primary on creation - use the set-primary route for that.
|
|
82866
|
+
* @summary Create an organization legal entity
|
|
82867
|
+
* @param {OrganizationEntityCreateInputs} organizationEntityCreateInputs
|
|
82868
|
+
* @param {*} [options] Override http request option.
|
|
82869
|
+
* @throws {RequiredError}
|
|
82870
|
+
*/
|
|
82871
|
+
createOrganizationEntity(organizationEntityCreateInputs, options) {
|
|
82872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82873
|
+
var _a, _b, _c;
|
|
82874
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrganizationEntity(organizationEntityCreateInputs, options);
|
|
82875
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82876
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationEntitiesApi.createOrganizationEntity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
82877
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
82878
|
+
});
|
|
82879
|
+
},
|
|
82880
|
+
/**
|
|
82881
|
+
* Permanently deletes a legal entity. The organization\'s primary entity can never be deleted - set another entity as primary first, which is also why an organization always retains at least one entity.
|
|
82882
|
+
* @summary Delete an organization legal entity
|
|
82883
|
+
* @param {string} entityId The entity identifier
|
|
82884
|
+
* @param {*} [options] Override http request option.
|
|
82885
|
+
* @throws {RequiredError}
|
|
82886
|
+
*/
|
|
82887
|
+
deleteOrganizationEntity(entityId, options) {
|
|
82888
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82889
|
+
var _a, _b, _c;
|
|
82890
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOrganizationEntity(entityId, options);
|
|
82891
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82892
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationEntitiesApi.deleteOrganizationEntity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
82893
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
82894
|
+
});
|
|
82895
|
+
},
|
|
82896
|
+
/**
|
|
82897
|
+
* Returns a paginated, searchable list of the legal entities that sell on behalf of the organization, each carrying its registered address, VAT registration and invoicing configuration.
|
|
82898
|
+
* @summary List an organization\'s legal entities
|
|
82899
|
+
* @param {number} [page] Page number
|
|
82900
|
+
* @param {number} [pageSize] Number of items per page
|
|
82901
|
+
* @param {string} [orderBy] Field to order by
|
|
82902
|
+
* @param {string} [search] Search query
|
|
82903
|
+
* @param {*} [options] Override http request option.
|
|
82904
|
+
* @throws {RequiredError}
|
|
82905
|
+
*/
|
|
82906
|
+
getOrganizationEntities(page, pageSize, orderBy, search, options) {
|
|
82907
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82908
|
+
var _a, _b, _c;
|
|
82909
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationEntities(page, pageSize, orderBy, search, options);
|
|
82910
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82911
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationEntitiesApi.getOrganizationEntities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
82912
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
82913
|
+
});
|
|
82914
|
+
},
|
|
82915
|
+
/**
|
|
82916
|
+
* Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
|
|
82917
|
+
* @summary Get an organization legal entity
|
|
82918
|
+
* @param {string} entityId The entity identifier
|
|
82919
|
+
* @param {*} [options] Override http request option.
|
|
82920
|
+
* @throws {RequiredError}
|
|
82921
|
+
*/
|
|
82922
|
+
getOrganizationEntity(entityId, options) {
|
|
82923
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82924
|
+
var _a, _b, _c;
|
|
82925
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationEntity(entityId, options);
|
|
82926
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82927
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationEntitiesApi.getOrganizationEntity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
82928
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
82929
|
+
});
|
|
82930
|
+
},
|
|
82931
|
+
/**
|
|
82932
|
+
* Marks the specified entity as the organization\'s primary selling entity, clearing primary status from whichever entity held it before. This is the fallback entity used when an event has no entity of its own.
|
|
82933
|
+
* @summary Set an organization legal entity as primary
|
|
82934
|
+
* @param {string} entityId The entity identifier
|
|
82935
|
+
* @param {*} [options] Override http request option.
|
|
82936
|
+
* @throws {RequiredError}
|
|
82937
|
+
*/
|
|
82938
|
+
setPrimaryOrganizationEntity(entityId, options) {
|
|
82939
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82940
|
+
var _a, _b, _c;
|
|
82941
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setPrimaryOrganizationEntity(entityId, options);
|
|
82942
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82943
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationEntitiesApi.setPrimaryOrganizationEntity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
82944
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
82945
|
+
});
|
|
82946
|
+
},
|
|
82947
|
+
/**
|
|
82948
|
+
* Updates the identity, registered address, VAT registration or invoicing configuration of a legal entity. Primary status cannot be changed here - use the set-primary route.
|
|
82949
|
+
* @summary Update an organization legal entity
|
|
82950
|
+
* @param {string} entityId The entity identifier
|
|
82951
|
+
* @param {OrganizationEntityUpdateInputs} organizationEntityUpdateInputs
|
|
82952
|
+
* @param {*} [options] Override http request option.
|
|
82953
|
+
* @throws {RequiredError}
|
|
82954
|
+
*/
|
|
82955
|
+
updateOrganizationEntity(entityId, organizationEntityUpdateInputs, options) {
|
|
82956
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82957
|
+
var _a, _b, _c;
|
|
82958
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateOrganizationEntity(entityId, organizationEntityUpdateInputs, options);
|
|
82959
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82960
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationEntitiesApi.updateOrganizationEntity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
82961
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
82962
|
+
});
|
|
82963
|
+
},
|
|
82964
|
+
};
|
|
82965
|
+
};
|
|
82966
|
+
/**
|
|
82967
|
+
* OrganizationEntitiesApi - factory interface
|
|
82968
|
+
*/
|
|
82969
|
+
export const OrganizationEntitiesApiFactory = function (configuration, basePath, axios) {
|
|
82970
|
+
const localVarFp = OrganizationEntitiesApiFp(configuration);
|
|
82971
|
+
return {
|
|
82972
|
+
/**
|
|
82973
|
+
* Creates a legal entity that can sell on behalf of the organization, carrying its own registered address, VAT registration and invoicing configuration. The entity is not made primary on creation - use the set-primary route for that.
|
|
82974
|
+
* @summary Create an organization legal entity
|
|
82975
|
+
* @param {OrganizationEntitiesApiCreateOrganizationEntityRequest} requestParameters Request parameters.
|
|
82976
|
+
* @param {*} [options] Override http request option.
|
|
82977
|
+
* @throws {RequiredError}
|
|
82978
|
+
*/
|
|
82979
|
+
createOrganizationEntity(requestParameters, options) {
|
|
82980
|
+
return localVarFp.createOrganizationEntity(requestParameters.organizationEntityCreateInputs, options).then((request) => request(axios, basePath));
|
|
82981
|
+
},
|
|
82982
|
+
/**
|
|
82983
|
+
* Permanently deletes a legal entity. The organization\'s primary entity can never be deleted - set another entity as primary first, which is also why an organization always retains at least one entity.
|
|
82984
|
+
* @summary Delete an organization legal entity
|
|
82985
|
+
* @param {OrganizationEntitiesApiDeleteOrganizationEntityRequest} requestParameters Request parameters.
|
|
82986
|
+
* @param {*} [options] Override http request option.
|
|
82987
|
+
* @throws {RequiredError}
|
|
82988
|
+
*/
|
|
82989
|
+
deleteOrganizationEntity(requestParameters, options) {
|
|
82990
|
+
return localVarFp.deleteOrganizationEntity(requestParameters.entityId, options).then((request) => request(axios, basePath));
|
|
82991
|
+
},
|
|
82992
|
+
/**
|
|
82993
|
+
* Returns a paginated, searchable list of the legal entities that sell on behalf of the organization, each carrying its registered address, VAT registration and invoicing configuration.
|
|
82994
|
+
* @summary List an organization\'s legal entities
|
|
82995
|
+
* @param {OrganizationEntitiesApiGetOrganizationEntitiesRequest} requestParameters Request parameters.
|
|
82996
|
+
* @param {*} [options] Override http request option.
|
|
82997
|
+
* @throws {RequiredError}
|
|
82998
|
+
*/
|
|
82999
|
+
getOrganizationEntities(requestParameters = {}, options) {
|
|
83000
|
+
return localVarFp.getOrganizationEntities(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
83001
|
+
},
|
|
83002
|
+
/**
|
|
83003
|
+
* Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
|
|
83004
|
+
* @summary Get an organization legal entity
|
|
83005
|
+
* @param {OrganizationEntitiesApiGetOrganizationEntityRequest} requestParameters Request parameters.
|
|
83006
|
+
* @param {*} [options] Override http request option.
|
|
83007
|
+
* @throws {RequiredError}
|
|
83008
|
+
*/
|
|
83009
|
+
getOrganizationEntity(requestParameters, options) {
|
|
83010
|
+
return localVarFp.getOrganizationEntity(requestParameters.entityId, options).then((request) => request(axios, basePath));
|
|
83011
|
+
},
|
|
83012
|
+
/**
|
|
83013
|
+
* Marks the specified entity as the organization\'s primary selling entity, clearing primary status from whichever entity held it before. This is the fallback entity used when an event has no entity of its own.
|
|
83014
|
+
* @summary Set an organization legal entity as primary
|
|
83015
|
+
* @param {OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest} requestParameters Request parameters.
|
|
83016
|
+
* @param {*} [options] Override http request option.
|
|
83017
|
+
* @throws {RequiredError}
|
|
83018
|
+
*/
|
|
83019
|
+
setPrimaryOrganizationEntity(requestParameters, options) {
|
|
83020
|
+
return localVarFp.setPrimaryOrganizationEntity(requestParameters.entityId, options).then((request) => request(axios, basePath));
|
|
83021
|
+
},
|
|
83022
|
+
/**
|
|
83023
|
+
* Updates the identity, registered address, VAT registration or invoicing configuration of a legal entity. Primary status cannot be changed here - use the set-primary route.
|
|
83024
|
+
* @summary Update an organization legal entity
|
|
83025
|
+
* @param {OrganizationEntitiesApiUpdateOrganizationEntityRequest} requestParameters Request parameters.
|
|
83026
|
+
* @param {*} [options] Override http request option.
|
|
83027
|
+
* @throws {RequiredError}
|
|
83028
|
+
*/
|
|
83029
|
+
updateOrganizationEntity(requestParameters, options) {
|
|
83030
|
+
return localVarFp.updateOrganizationEntity(requestParameters.entityId, requestParameters.organizationEntityUpdateInputs, options).then((request) => request(axios, basePath));
|
|
83031
|
+
},
|
|
83032
|
+
};
|
|
83033
|
+
};
|
|
83034
|
+
/**
|
|
83035
|
+
* OrganizationEntitiesApi - object-oriented interface
|
|
83036
|
+
*/
|
|
83037
|
+
export class OrganizationEntitiesApi extends BaseAPI {
|
|
83038
|
+
/**
|
|
83039
|
+
* Creates a legal entity that can sell on behalf of the organization, carrying its own registered address, VAT registration and invoicing configuration. The entity is not made primary on creation - use the set-primary route for that.
|
|
83040
|
+
* @summary Create an organization legal entity
|
|
83041
|
+
* @param {OrganizationEntitiesApiCreateOrganizationEntityRequest} requestParameters Request parameters.
|
|
83042
|
+
* @param {*} [options] Override http request option.
|
|
83043
|
+
* @throws {RequiredError}
|
|
83044
|
+
*/
|
|
83045
|
+
createOrganizationEntity(requestParameters, options) {
|
|
83046
|
+
return OrganizationEntitiesApiFp(this.configuration).createOrganizationEntity(requestParameters.organizationEntityCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
83047
|
+
}
|
|
83048
|
+
/**
|
|
83049
|
+
* Permanently deletes a legal entity. The organization\'s primary entity can never be deleted - set another entity as primary first, which is also why an organization always retains at least one entity.
|
|
83050
|
+
* @summary Delete an organization legal entity
|
|
83051
|
+
* @param {OrganizationEntitiesApiDeleteOrganizationEntityRequest} requestParameters Request parameters.
|
|
83052
|
+
* @param {*} [options] Override http request option.
|
|
83053
|
+
* @throws {RequiredError}
|
|
83054
|
+
*/
|
|
83055
|
+
deleteOrganizationEntity(requestParameters, options) {
|
|
83056
|
+
return OrganizationEntitiesApiFp(this.configuration).deleteOrganizationEntity(requestParameters.entityId, options).then((request) => request(this.axios, this.basePath));
|
|
83057
|
+
}
|
|
83058
|
+
/**
|
|
83059
|
+
* Returns a paginated, searchable list of the legal entities that sell on behalf of the organization, each carrying its registered address, VAT registration and invoicing configuration.
|
|
83060
|
+
* @summary List an organization\'s legal entities
|
|
83061
|
+
* @param {OrganizationEntitiesApiGetOrganizationEntitiesRequest} requestParameters Request parameters.
|
|
83062
|
+
* @param {*} [options] Override http request option.
|
|
83063
|
+
* @throws {RequiredError}
|
|
83064
|
+
*/
|
|
83065
|
+
getOrganizationEntities(requestParameters = {}, options) {
|
|
83066
|
+
return OrganizationEntitiesApiFp(this.configuration).getOrganizationEntities(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
83067
|
+
}
|
|
83068
|
+
/**
|
|
83069
|
+
* Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
|
|
83070
|
+
* @summary Get an organization legal entity
|
|
83071
|
+
* @param {OrganizationEntitiesApiGetOrganizationEntityRequest} requestParameters Request parameters.
|
|
83072
|
+
* @param {*} [options] Override http request option.
|
|
83073
|
+
* @throws {RequiredError}
|
|
83074
|
+
*/
|
|
83075
|
+
getOrganizationEntity(requestParameters, options) {
|
|
83076
|
+
return OrganizationEntitiesApiFp(this.configuration).getOrganizationEntity(requestParameters.entityId, options).then((request) => request(this.axios, this.basePath));
|
|
83077
|
+
}
|
|
83078
|
+
/**
|
|
83079
|
+
* Marks the specified entity as the organization\'s primary selling entity, clearing primary status from whichever entity held it before. This is the fallback entity used when an event has no entity of its own.
|
|
83080
|
+
* @summary Set an organization legal entity as primary
|
|
83081
|
+
* @param {OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest} requestParameters Request parameters.
|
|
83082
|
+
* @param {*} [options] Override http request option.
|
|
83083
|
+
* @throws {RequiredError}
|
|
83084
|
+
*/
|
|
83085
|
+
setPrimaryOrganizationEntity(requestParameters, options) {
|
|
83086
|
+
return OrganizationEntitiesApiFp(this.configuration).setPrimaryOrganizationEntity(requestParameters.entityId, options).then((request) => request(this.axios, this.basePath));
|
|
83087
|
+
}
|
|
83088
|
+
/**
|
|
83089
|
+
* Updates the identity, registered address, VAT registration or invoicing configuration of a legal entity. Primary status cannot be changed here - use the set-primary route.
|
|
83090
|
+
* @summary Update an organization legal entity
|
|
83091
|
+
* @param {OrganizationEntitiesApiUpdateOrganizationEntityRequest} requestParameters Request parameters.
|
|
83092
|
+
* @param {*} [options] Override http request option.
|
|
83093
|
+
* @throws {RequiredError}
|
|
83094
|
+
*/
|
|
83095
|
+
updateOrganizationEntity(requestParameters, options) {
|
|
83096
|
+
return OrganizationEntitiesApiFp(this.configuration).updateOrganizationEntity(requestParameters.entityId, requestParameters.organizationEntityUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
83097
|
+
}
|
|
83098
|
+
}
|
|
82210
83099
|
/**
|
|
82211
83100
|
* OrganizationIntegrationsApi - axios parameter creator
|
|
82212
83101
|
*/
|