@connectedxm/admin-sdk 10.10.0 → 10.12.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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/AdminApi.ts +3 -0
  3. package/README.md +2 -2
  4. package/api.ts +725 -7
  5. package/base.ts +1 -1
  6. package/common.ts +1 -1
  7. package/configuration.ts +1 -1
  8. package/dist/AdminApi.d.ts +2 -1
  9. package/dist/AdminApi.js +1 -0
  10. package/dist/api.d.ts +428 -7
  11. package/dist/api.js +510 -28
  12. package/dist/base.d.ts +1 -1
  13. package/dist/base.js +1 -1
  14. package/dist/common.d.ts +1 -1
  15. package/dist/common.js +1 -1
  16. package/dist/configuration.d.ts +1 -1
  17. package/dist/configuration.js +1 -1
  18. package/dist/esm/AdminApi.d.ts +2 -1
  19. package/dist/esm/AdminApi.js +2 -1
  20. package/dist/esm/api.d.ts +428 -7
  21. package/dist/esm/api.js +479 -1
  22. package/dist/esm/base.d.ts +1 -1
  23. package/dist/esm/base.js +1 -1
  24. package/dist/esm/common.d.ts +1 -1
  25. package/dist/esm/common.js +1 -1
  26. package/dist/esm/configuration.d.ts +1 -1
  27. package/dist/esm/configuration.js +1 -1
  28. package/docs/BaseBookingSpace.md +4 -0
  29. package/docs/BaseEvent.md +4 -0
  30. package/docs/BaseInvoice.md +4 -0
  31. package/docs/BaseOrganizationEntity.md +30 -0
  32. package/docs/BasePayment.md +7 -3
  33. package/docs/BasePaymentIntent.md +4 -0
  34. package/docs/BaseSeries.md +20 -0
  35. package/docs/BookingSpace.md +4 -0
  36. package/docs/BookingSpaceCreateInputs.md +2 -0
  37. package/docs/BookingSpaceUpdateInputs.md +2 -0
  38. package/docs/CreateOrganizationEntity200Response.md +24 -0
  39. package/docs/Event.md +4 -0
  40. package/docs/EventCreateInputs.md +2 -0
  41. package/docs/EventUpdateInputs.md +2 -0
  42. package/docs/GetOrganizationEntities200Response.md +26 -0
  43. package/docs/Invoice.md +4 -0
  44. package/docs/InvoiceCreateInputs.md +2 -0
  45. package/docs/InvoiceUpdateInputs.md +2 -0
  46. package/docs/OrganizationEntitiesApi.md +333 -0
  47. package/docs/OrganizationEntity.md +54 -0
  48. package/docs/OrganizationEntityCreateInputs.md +44 -0
  49. package/docs/OrganizationEntityUpdateInputs.md +44 -0
  50. package/docs/Payment.md +7 -3
  51. package/docs/PaymentIntent.md +4 -0
  52. package/docs/Series.md +20 -0
  53. package/docs/SeriesCreateInputs.md +16 -0
  54. package/docs/SeriesUpdateInputs.md +16 -0
  55. 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.10.0
7
+ * The version of the OpenAPI document: 10.12.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -454,6 +454,10 @@ export var CreateMeetingLink200ResponseStatusEnum;
454
454
  (function (CreateMeetingLink200ResponseStatusEnum) {
455
455
  CreateMeetingLink200ResponseStatusEnum["Ok"] = "ok";
456
456
  })(CreateMeetingLink200ResponseStatusEnum || (CreateMeetingLink200ResponseStatusEnum = {}));
457
+ export var CreateOrganizationEntity200ResponseStatusEnum;
458
+ (function (CreateOrganizationEntity200ResponseStatusEnum) {
459
+ CreateOrganizationEntity200ResponseStatusEnum["Ok"] = "ok";
460
+ })(CreateOrganizationEntity200ResponseStatusEnum || (CreateOrganizationEntity200ResponseStatusEnum = {}));
457
461
  export var CreateOrganizationPaymentIntegration200ResponseStatusEnum;
458
462
  (function (CreateOrganizationPaymentIntegration200ResponseStatusEnum) {
459
463
  CreateOrganizationPaymentIntegration200ResponseStatusEnum["Ok"] = "ok";
@@ -1645,6 +1649,10 @@ export var GetOrganizationDomain200ResponseStatusEnum;
1645
1649
  (function (GetOrganizationDomain200ResponseStatusEnum) {
1646
1650
  GetOrganizationDomain200ResponseStatusEnum["Ok"] = "ok";
1647
1651
  })(GetOrganizationDomain200ResponseStatusEnum || (GetOrganizationDomain200ResponseStatusEnum = {}));
1652
+ export var GetOrganizationEntities200ResponseStatusEnum;
1653
+ (function (GetOrganizationEntities200ResponseStatusEnum) {
1654
+ GetOrganizationEntities200ResponseStatusEnum["Ok"] = "ok";
1655
+ })(GetOrganizationEntities200ResponseStatusEnum || (GetOrganizationEntities200ResponseStatusEnum = {}));
1648
1656
  export var GetOrganizationLanguageOverrides200ResponseStatusEnum;
1649
1657
  (function (GetOrganizationLanguageOverrides200ResponseStatusEnum) {
1650
1658
  GetOrganizationLanguageOverrides200ResponseStatusEnum["Ok"] = "ok";
@@ -82618,6 +82626,476 @@ export class OrganizationDomainsApi extends BaseAPI {
82618
82626
  return OrganizationDomainsApiFp(this.configuration).updateOrganizationDomain(requestParameters.updateOrganizationDomainRequest, options).then((request) => request(this.axios, this.basePath));
82619
82627
  }
82620
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
+ }
82621
83099
  /**
82622
83100
  * OrganizationIntegrationsApi - axios parameter creator
82623
83101
  */
@@ -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.10.0
5
+ * The version of the OpenAPI document: 10.12.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.10.0
7
+ * The version of the OpenAPI document: 10.12.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.10.0
5
+ * The version of the OpenAPI document: 10.12.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.10.0
7
+ * The version of the OpenAPI document: 10.12.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.10.0
5
+ * The version of the OpenAPI document: 10.12.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.10.0
6
+ * The version of the OpenAPI document: 10.12.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,6 +24,8 @@ Name | Type | Description | Notes
24
24
  **timezone** | **string** | | [default to undefined]
25
25
  **paymentIntegrationId** | **string** | | [default to undefined]
26
26
  **paymentIntegration** | [**BasePaymentIntegration**](BasePaymentIntegration.md) | | [default to undefined]
27
+ **entityId** | **string** | | [default to undefined]
28
+ **entity** | [**BaseOrganizationEntity**](BaseOrganizationEntity.md) | | [default to undefined]
27
29
  **placeId** | **string** | | [default to undefined]
28
30
  **eventId** | **string** | | [default to undefined]
29
31
  **groupId** | **string** | | [default to undefined]
@@ -58,6 +60,8 @@ const instance: BaseBookingSpace = {
58
60
  timezone,
59
61
  paymentIntegrationId,
60
62
  paymentIntegration,
63
+ entityId,
64
+ entity,
61
65
  placeId,
62
66
  eventId,
63
67
  groupId,
package/docs/BaseEvent.md CHANGED
@@ -42,6 +42,8 @@ Name | Type | Description | Notes
42
42
  **series** | [**BaseSeries**](BaseSeries.md) | | [default to undefined]
43
43
  **paymentIntegrationId** | **string** | | [default to undefined]
44
44
  **paymentIntegration** | [**BasePaymentIntegration**](BasePaymentIntegration.md) | | [default to undefined]
45
+ **entityId** | **string** | | [default to undefined]
46
+ **entity** | [**BaseOrganizationEntity**](BaseOrganizationEntity.md) | | [default to undefined]
45
47
  **archived** | **boolean** | | [default to undefined]
46
48
  **clientTemplate** | **boolean** | | [default to undefined]
47
49
 
@@ -88,6 +90,8 @@ const instance: BaseEvent = {
88
90
  series,
89
91
  paymentIntegrationId,
90
92
  paymentIntegration,
93
+ entityId,
94
+ entity,
91
95
  archived,
92
96
  clientTemplate,
93
97
  };
@@ -14,6 +14,8 @@ Name | Type | Description | Notes
14
14
  **notes** | **string** | | [default to undefined]
15
15
  **paymentIntegrationId** | **string** | | [default to undefined]
16
16
  **paymentIntegration** | [**BasePaymentIntegration**](BasePaymentIntegration.md) | | [default to undefined]
17
+ **entityId** | **string** | | [default to undefined]
18
+ **entity** | [**BaseOrganizationEntity**](BaseOrganizationEntity.md) | | [default to undefined]
17
19
 
18
20
  ## Example
19
21
 
@@ -30,6 +32,8 @@ const instance: BaseInvoice = {
30
32
  notes,
31
33
  paymentIntegrationId,
32
34
  paymentIntegration,
35
+ entityId,
36
+ entity,
33
37
  };
34
38
  ```
35
39