@connectedxm/admin-sdk 11.18.0 → 11.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Connected Admin API
5
5
  * The Admin API allows you to manage your Connected community programmatically.
6
6
  *
7
- * The version of the OpenAPI document: 11.18.0
7
+ * The version of the OpenAPI document: 11.20.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -53,6 +53,13 @@ export var AccountAttributeType;
53
53
  AccountAttributeType["Select"] = "select";
54
54
  AccountAttributeType["Location"] = "location";
55
55
  })(AccountAttributeType || (AccountAttributeType = {}));
56
+ export var AccountMergeStatus;
57
+ (function (AccountMergeStatus) {
58
+ AccountMergeStatus["Pending"] = "pending";
59
+ AccountMergeStatus["Processing"] = "processing";
60
+ AccountMergeStatus["Completed"] = "completed";
61
+ AccountMergeStatus["Failed"] = "failed";
62
+ })(AccountMergeStatus || (AccountMergeStatus = {}));
56
63
  export var ActivityEntityType;
57
64
  (function (ActivityEntityType) {
58
65
  ActivityEntityType["Mention"] = "mention";
@@ -756,6 +763,18 @@ export var GetAccountLikes200ResponseStatusEnum;
756
763
  (function (GetAccountLikes200ResponseStatusEnum) {
757
764
  GetAccountLikes200ResponseStatusEnum["Ok"] = "ok";
758
765
  })(GetAccountLikes200ResponseStatusEnum || (GetAccountLikes200ResponseStatusEnum = {}));
766
+ export var GetAccountMerge200ResponseStatusEnum;
767
+ (function (GetAccountMerge200ResponseStatusEnum) {
768
+ GetAccountMerge200ResponseStatusEnum["Ok"] = "ok";
769
+ })(GetAccountMerge200ResponseStatusEnum || (GetAccountMerge200ResponseStatusEnum = {}));
770
+ export var GetAccountMergePreview200ResponseStatusEnum;
771
+ (function (GetAccountMergePreview200ResponseStatusEnum) {
772
+ GetAccountMergePreview200ResponseStatusEnum["Ok"] = "ok";
773
+ })(GetAccountMergePreview200ResponseStatusEnum || (GetAccountMergePreview200ResponseStatusEnum = {}));
774
+ export var GetAccountMerges200ResponseStatusEnum;
775
+ (function (GetAccountMerges200ResponseStatusEnum) {
776
+ GetAccountMerges200ResponseStatusEnum["Ok"] = "ok";
777
+ })(GetAccountMerges200ResponseStatusEnum || (GetAccountMerges200ResponseStatusEnum = {}));
759
778
  export var GetAccountNotificationPreferences200ResponseStatusEnum;
760
779
  (function (GetAccountNotificationPreferences200ResponseStatusEnum) {
761
780
  GetAccountNotificationPreferences200ResponseStatusEnum["Ok"] = "ok";
@@ -6831,6 +6850,397 @@ export class AccountsLeadsApi extends BaseAPI {
6831
6850
  return AccountsLeadsApiFp(this.configuration).updateAccountLead(requestParameters.accountId, requestParameters.leadId, requestParameters.leadUpdateInputs, options).then((request) => request(this.axios, this.basePath));
6832
6851
  }
6833
6852
  }
6853
+ /**
6854
+ * AccountsMergesApi - axios parameter creator
6855
+ */
6856
+ export const AccountsMergesApiAxiosParamCreator = function (configuration) {
6857
+ return {
6858
+ /**
6859
+ * Returns a single account merge with its status (pending, processing, completed, or failed), failure message, and per-phase counts of what moved; poll it while the merge runs. Requires read access to accounts.
6860
+ * @summary Get an account merge
6861
+ * @param {string} mergeId The merge identifier
6862
+ * @param {*} [options] Override http request option.
6863
+ * @throws {RequiredError}
6864
+ */
6865
+ getAccountMerge: (mergeId_1, ...args_1) => __awaiter(this, [mergeId_1, ...args_1], void 0, function* (mergeId, options = {}) {
6866
+ // verify required parameter 'mergeId' is not null or undefined
6867
+ assertParamExists('getAccountMerge', 'mergeId', mergeId);
6868
+ const localVarPath = `/accounts/merges/{mergeId}`
6869
+ .replace('{mergeId}', encodeURIComponent(String(mergeId)));
6870
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6871
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6872
+ let baseOptions;
6873
+ if (configuration) {
6874
+ baseOptions = configuration.baseOptions;
6875
+ }
6876
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6877
+ const localVarHeaderParameter = {};
6878
+ const localVarQueryParameter = {};
6879
+ // authentication ApiKeyAuth required
6880
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
6881
+ // authentication OrganizationId required
6882
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
6883
+ localVarHeaderParameter['Accept'] = 'application/json';
6884
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6885
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6886
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6887
+ return {
6888
+ url: toPathString(localVarUrlObj),
6889
+ options: localVarRequestOptions,
6890
+ };
6891
+ }),
6892
+ /**
6893
+ * Returns what merging mergeAccountId into the given surviving account would move, the profile fields the survivor would take from it, and any warnings or blocking conflicts; requires read access to accounts.
6894
+ * @summary Preview an account merge
6895
+ * @param {string} accountId The account identifier
6896
+ * @param {string} mergeAccountId Filter by mergeAccountId
6897
+ * @param {*} [options] Override http request option.
6898
+ * @throws {RequiredError}
6899
+ */
6900
+ getAccountMergePreview: (accountId_1, mergeAccountId_1, ...args_1) => __awaiter(this, [accountId_1, mergeAccountId_1, ...args_1], void 0, function* (accountId, mergeAccountId, options = {}) {
6901
+ // verify required parameter 'accountId' is not null or undefined
6902
+ assertParamExists('getAccountMergePreview', 'accountId', accountId);
6903
+ // verify required parameter 'mergeAccountId' is not null or undefined
6904
+ assertParamExists('getAccountMergePreview', 'mergeAccountId', mergeAccountId);
6905
+ const localVarPath = `/accounts/{accountId}/merge/preview`
6906
+ .replace('{accountId}', encodeURIComponent(String(accountId)));
6907
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6908
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6909
+ let baseOptions;
6910
+ if (configuration) {
6911
+ baseOptions = configuration.baseOptions;
6912
+ }
6913
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6914
+ const localVarHeaderParameter = {};
6915
+ const localVarQueryParameter = {};
6916
+ // authentication ApiKeyAuth required
6917
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
6918
+ // authentication OrganizationId required
6919
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
6920
+ if (mergeAccountId !== undefined) {
6921
+ localVarQueryParameter['mergeAccountId'] = mergeAccountId;
6922
+ }
6923
+ localVarHeaderParameter['Accept'] = 'application/json';
6924
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6925
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6926
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6927
+ return {
6928
+ url: toPathString(localVarUrlObj),
6929
+ options: localVarRequestOptions,
6930
+ };
6931
+ }),
6932
+ /**
6933
+ * Returns every merge in which the given account was the surviving or the merged account, newest first; requires read access to accounts.
6934
+ * @summary List an account\'s merges
6935
+ * @param {string} accountId The account identifier
6936
+ * @param {*} [options] Override http request option.
6937
+ * @throws {RequiredError}
6938
+ */
6939
+ getAccountMerges: (accountId_1, ...args_1) => __awaiter(this, [accountId_1, ...args_1], void 0, function* (accountId, options = {}) {
6940
+ // verify required parameter 'accountId' is not null or undefined
6941
+ assertParamExists('getAccountMerges', 'accountId', accountId);
6942
+ const localVarPath = `/accounts/{accountId}/merges`
6943
+ .replace('{accountId}', encodeURIComponent(String(accountId)));
6944
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6945
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6946
+ let baseOptions;
6947
+ if (configuration) {
6948
+ baseOptions = configuration.baseOptions;
6949
+ }
6950
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6951
+ const localVarHeaderParameter = {};
6952
+ const localVarQueryParameter = {};
6953
+ // authentication ApiKeyAuth required
6954
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
6955
+ // authentication OrganizationId required
6956
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
6957
+ localVarHeaderParameter['Accept'] = 'application/json';
6958
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6959
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6960
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6961
+ return {
6962
+ url: toPathString(localVarUrlObj),
6963
+ options: localVarRequestOptions,
6964
+ };
6965
+ }),
6966
+ /**
6967
+ * Starts a background merge of mergeAccountId into the surviving account accountId: its logins, registrations, payments, and other related data move to the survivor and the merged account is then deleted. Returns the merge record to poll; requires read, create, update and delete permission on accounts.
6968
+ * @summary Merge an account into another
6969
+ * @param {string} accountId The account identifier
6970
+ * @param {MergeAccountRequest} mergeAccountRequest
6971
+ * @param {*} [options] Override http request option.
6972
+ * @throws {RequiredError}
6973
+ */
6974
+ mergeAccount: (accountId_1, mergeAccountRequest_1, ...args_1) => __awaiter(this, [accountId_1, mergeAccountRequest_1, ...args_1], void 0, function* (accountId, mergeAccountRequest, options = {}) {
6975
+ // verify required parameter 'accountId' is not null or undefined
6976
+ assertParamExists('mergeAccount', 'accountId', accountId);
6977
+ // verify required parameter 'mergeAccountRequest' is not null or undefined
6978
+ assertParamExists('mergeAccount', 'mergeAccountRequest', mergeAccountRequest);
6979
+ const localVarPath = `/accounts/{accountId}/merge`
6980
+ .replace('{accountId}', encodeURIComponent(String(accountId)));
6981
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6982
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6983
+ let baseOptions;
6984
+ if (configuration) {
6985
+ baseOptions = configuration.baseOptions;
6986
+ }
6987
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6988
+ const localVarHeaderParameter = {};
6989
+ const localVarQueryParameter = {};
6990
+ // authentication ApiKeyAuth required
6991
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
6992
+ // authentication OrganizationId required
6993
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
6994
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6995
+ localVarHeaderParameter['Accept'] = 'application/json';
6996
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6997
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6998
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6999
+ localVarRequestOptions.data = serializeDataIfNeeded(mergeAccountRequest, localVarRequestOptions, configuration);
7000
+ return {
7001
+ url: toPathString(localVarUrlObj),
7002
+ options: localVarRequestOptions,
7003
+ };
7004
+ }),
7005
+ /**
7006
+ * Restarts a failed or stalled account merge from the beginning; every step is safe to run again. Requires read, create, update and delete permission on accounts.
7007
+ * @summary Retry an account merge
7008
+ * @param {string} mergeId The merge identifier
7009
+ * @param {*} [options] Override http request option.
7010
+ * @throws {RequiredError}
7011
+ */
7012
+ retryAccountMerge: (mergeId_1, ...args_1) => __awaiter(this, [mergeId_1, ...args_1], void 0, function* (mergeId, options = {}) {
7013
+ // verify required parameter 'mergeId' is not null or undefined
7014
+ assertParamExists('retryAccountMerge', 'mergeId', mergeId);
7015
+ const localVarPath = `/accounts/merges/{mergeId}/retry`
7016
+ .replace('{mergeId}', encodeURIComponent(String(mergeId)));
7017
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7018
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7019
+ let baseOptions;
7020
+ if (configuration) {
7021
+ baseOptions = configuration.baseOptions;
7022
+ }
7023
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7024
+ const localVarHeaderParameter = {};
7025
+ const localVarQueryParameter = {};
7026
+ // authentication ApiKeyAuth required
7027
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
7028
+ // authentication OrganizationId required
7029
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
7030
+ localVarHeaderParameter['Accept'] = 'application/json';
7031
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7032
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7033
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7034
+ return {
7035
+ url: toPathString(localVarUrlObj),
7036
+ options: localVarRequestOptions,
7037
+ };
7038
+ }),
7039
+ };
7040
+ };
7041
+ /**
7042
+ * AccountsMergesApi - functional programming interface
7043
+ */
7044
+ export const AccountsMergesApiFp = function (configuration) {
7045
+ const localVarAxiosParamCreator = AccountsMergesApiAxiosParamCreator(configuration);
7046
+ return {
7047
+ /**
7048
+ * Returns a single account merge with its status (pending, processing, completed, or failed), failure message, and per-phase counts of what moved; poll it while the merge runs. Requires read access to accounts.
7049
+ * @summary Get an account merge
7050
+ * @param {string} mergeId The merge identifier
7051
+ * @param {*} [options] Override http request option.
7052
+ * @throws {RequiredError}
7053
+ */
7054
+ getAccountMerge(mergeId, options) {
7055
+ return __awaiter(this, void 0, void 0, function* () {
7056
+ var _a, _b, _c;
7057
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountMerge(mergeId, options);
7058
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7059
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountsMergesApi.getAccountMerge']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7060
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7061
+ });
7062
+ },
7063
+ /**
7064
+ * Returns what merging mergeAccountId into the given surviving account would move, the profile fields the survivor would take from it, and any warnings or blocking conflicts; requires read access to accounts.
7065
+ * @summary Preview an account merge
7066
+ * @param {string} accountId The account identifier
7067
+ * @param {string} mergeAccountId Filter by mergeAccountId
7068
+ * @param {*} [options] Override http request option.
7069
+ * @throws {RequiredError}
7070
+ */
7071
+ getAccountMergePreview(accountId, mergeAccountId, options) {
7072
+ return __awaiter(this, void 0, void 0, function* () {
7073
+ var _a, _b, _c;
7074
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountMergePreview(accountId, mergeAccountId, options);
7075
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7076
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountsMergesApi.getAccountMergePreview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7077
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7078
+ });
7079
+ },
7080
+ /**
7081
+ * Returns every merge in which the given account was the surviving or the merged account, newest first; requires read access to accounts.
7082
+ * @summary List an account\'s merges
7083
+ * @param {string} accountId The account identifier
7084
+ * @param {*} [options] Override http request option.
7085
+ * @throws {RequiredError}
7086
+ */
7087
+ getAccountMerges(accountId, options) {
7088
+ return __awaiter(this, void 0, void 0, function* () {
7089
+ var _a, _b, _c;
7090
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountMerges(accountId, options);
7091
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7092
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountsMergesApi.getAccountMerges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7093
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7094
+ });
7095
+ },
7096
+ /**
7097
+ * Starts a background merge of mergeAccountId into the surviving account accountId: its logins, registrations, payments, and other related data move to the survivor and the merged account is then deleted. Returns the merge record to poll; requires read, create, update and delete permission on accounts.
7098
+ * @summary Merge an account into another
7099
+ * @param {string} accountId The account identifier
7100
+ * @param {MergeAccountRequest} mergeAccountRequest
7101
+ * @param {*} [options] Override http request option.
7102
+ * @throws {RequiredError}
7103
+ */
7104
+ mergeAccount(accountId, mergeAccountRequest, options) {
7105
+ return __awaiter(this, void 0, void 0, function* () {
7106
+ var _a, _b, _c;
7107
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.mergeAccount(accountId, mergeAccountRequest, options);
7108
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7109
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountsMergesApi.mergeAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7110
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7111
+ });
7112
+ },
7113
+ /**
7114
+ * Restarts a failed or stalled account merge from the beginning; every step is safe to run again. Requires read, create, update and delete permission on accounts.
7115
+ * @summary Retry an account merge
7116
+ * @param {string} mergeId The merge identifier
7117
+ * @param {*} [options] Override http request option.
7118
+ * @throws {RequiredError}
7119
+ */
7120
+ retryAccountMerge(mergeId, options) {
7121
+ return __awaiter(this, void 0, void 0, function* () {
7122
+ var _a, _b, _c;
7123
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.retryAccountMerge(mergeId, options);
7124
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7125
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountsMergesApi.retryAccountMerge']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7126
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7127
+ });
7128
+ },
7129
+ };
7130
+ };
7131
+ /**
7132
+ * AccountsMergesApi - factory interface
7133
+ */
7134
+ export const AccountsMergesApiFactory = function (configuration, basePath, axios) {
7135
+ const localVarFp = AccountsMergesApiFp(configuration);
7136
+ return {
7137
+ /**
7138
+ * Returns a single account merge with its status (pending, processing, completed, or failed), failure message, and per-phase counts of what moved; poll it while the merge runs. Requires read access to accounts.
7139
+ * @summary Get an account merge
7140
+ * @param {AccountsMergesApiGetAccountMergeRequest} requestParameters Request parameters.
7141
+ * @param {*} [options] Override http request option.
7142
+ * @throws {RequiredError}
7143
+ */
7144
+ getAccountMerge(requestParameters, options) {
7145
+ return localVarFp.getAccountMerge(requestParameters.mergeId, options).then((request) => request(axios, basePath));
7146
+ },
7147
+ /**
7148
+ * Returns what merging mergeAccountId into the given surviving account would move, the profile fields the survivor would take from it, and any warnings or blocking conflicts; requires read access to accounts.
7149
+ * @summary Preview an account merge
7150
+ * @param {AccountsMergesApiGetAccountMergePreviewRequest} requestParameters Request parameters.
7151
+ * @param {*} [options] Override http request option.
7152
+ * @throws {RequiredError}
7153
+ */
7154
+ getAccountMergePreview(requestParameters, options) {
7155
+ return localVarFp.getAccountMergePreview(requestParameters.accountId, requestParameters.mergeAccountId, options).then((request) => request(axios, basePath));
7156
+ },
7157
+ /**
7158
+ * Returns every merge in which the given account was the surviving or the merged account, newest first; requires read access to accounts.
7159
+ * @summary List an account\'s merges
7160
+ * @param {AccountsMergesApiGetAccountMergesRequest} requestParameters Request parameters.
7161
+ * @param {*} [options] Override http request option.
7162
+ * @throws {RequiredError}
7163
+ */
7164
+ getAccountMerges(requestParameters, options) {
7165
+ return localVarFp.getAccountMerges(requestParameters.accountId, options).then((request) => request(axios, basePath));
7166
+ },
7167
+ /**
7168
+ * Starts a background merge of mergeAccountId into the surviving account accountId: its logins, registrations, payments, and other related data move to the survivor and the merged account is then deleted. Returns the merge record to poll; requires read, create, update and delete permission on accounts.
7169
+ * @summary Merge an account into another
7170
+ * @param {AccountsMergesApiMergeAccountRequest} requestParameters Request parameters.
7171
+ * @param {*} [options] Override http request option.
7172
+ * @throws {RequiredError}
7173
+ */
7174
+ mergeAccount(requestParameters, options) {
7175
+ return localVarFp.mergeAccount(requestParameters.accountId, requestParameters.mergeAccountRequest, options).then((request) => request(axios, basePath));
7176
+ },
7177
+ /**
7178
+ * Restarts a failed or stalled account merge from the beginning; every step is safe to run again. Requires read, create, update and delete permission on accounts.
7179
+ * @summary Retry an account merge
7180
+ * @param {AccountsMergesApiRetryAccountMergeRequest} requestParameters Request parameters.
7181
+ * @param {*} [options] Override http request option.
7182
+ * @throws {RequiredError}
7183
+ */
7184
+ retryAccountMerge(requestParameters, options) {
7185
+ return localVarFp.retryAccountMerge(requestParameters.mergeId, options).then((request) => request(axios, basePath));
7186
+ },
7187
+ };
7188
+ };
7189
+ /**
7190
+ * AccountsMergesApi - object-oriented interface
7191
+ */
7192
+ export class AccountsMergesApi extends BaseAPI {
7193
+ /**
7194
+ * Returns a single account merge with its status (pending, processing, completed, or failed), failure message, and per-phase counts of what moved; poll it while the merge runs. Requires read access to accounts.
7195
+ * @summary Get an account merge
7196
+ * @param {AccountsMergesApiGetAccountMergeRequest} requestParameters Request parameters.
7197
+ * @param {*} [options] Override http request option.
7198
+ * @throws {RequiredError}
7199
+ */
7200
+ getAccountMerge(requestParameters, options) {
7201
+ return AccountsMergesApiFp(this.configuration).getAccountMerge(requestParameters.mergeId, options).then((request) => request(this.axios, this.basePath));
7202
+ }
7203
+ /**
7204
+ * Returns what merging mergeAccountId into the given surviving account would move, the profile fields the survivor would take from it, and any warnings or blocking conflicts; requires read access to accounts.
7205
+ * @summary Preview an account merge
7206
+ * @param {AccountsMergesApiGetAccountMergePreviewRequest} requestParameters Request parameters.
7207
+ * @param {*} [options] Override http request option.
7208
+ * @throws {RequiredError}
7209
+ */
7210
+ getAccountMergePreview(requestParameters, options) {
7211
+ return AccountsMergesApiFp(this.configuration).getAccountMergePreview(requestParameters.accountId, requestParameters.mergeAccountId, options).then((request) => request(this.axios, this.basePath));
7212
+ }
7213
+ /**
7214
+ * Returns every merge in which the given account was the surviving or the merged account, newest first; requires read access to accounts.
7215
+ * @summary List an account\'s merges
7216
+ * @param {AccountsMergesApiGetAccountMergesRequest} requestParameters Request parameters.
7217
+ * @param {*} [options] Override http request option.
7218
+ * @throws {RequiredError}
7219
+ */
7220
+ getAccountMerges(requestParameters, options) {
7221
+ return AccountsMergesApiFp(this.configuration).getAccountMerges(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
7222
+ }
7223
+ /**
7224
+ * Starts a background merge of mergeAccountId into the surviving account accountId: its logins, registrations, payments, and other related data move to the survivor and the merged account is then deleted. Returns the merge record to poll; requires read, create, update and delete permission on accounts.
7225
+ * @summary Merge an account into another
7226
+ * @param {AccountsMergesApiMergeAccountRequest} requestParameters Request parameters.
7227
+ * @param {*} [options] Override http request option.
7228
+ * @throws {RequiredError}
7229
+ */
7230
+ mergeAccount(requestParameters, options) {
7231
+ return AccountsMergesApiFp(this.configuration).mergeAccount(requestParameters.accountId, requestParameters.mergeAccountRequest, options).then((request) => request(this.axios, this.basePath));
7232
+ }
7233
+ /**
7234
+ * Restarts a failed or stalled account merge from the beginning; every step is safe to run again. Requires read, create, update and delete permission on accounts.
7235
+ * @summary Retry an account merge
7236
+ * @param {AccountsMergesApiRetryAccountMergeRequest} requestParameters Request parameters.
7237
+ * @param {*} [options] Override http request option.
7238
+ * @throws {RequiredError}
7239
+ */
7240
+ retryAccountMerge(requestParameters, options) {
7241
+ return AccountsMergesApiFp(this.configuration).retryAccountMerge(requestParameters.mergeId, options).then((request) => request(this.axios, this.basePath));
7242
+ }
7243
+ }
6834
7244
  /**
6835
7245
  * AccountsTiersApi - axios parameter creator
6836
7246
  */
@@ -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: 11.18.0
5
+ * The version of the OpenAPI document: 11.20.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: 11.18.0
7
+ * The version of the OpenAPI document: 11.20.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: 11.18.0
5
+ * The version of the OpenAPI document: 11.20.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: 11.18.0
7
+ * The version of the OpenAPI document: 11.20.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: 11.18.0
5
+ * The version of the OpenAPI document: 11.20.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: 11.18.0
6
+ * The version of the OpenAPI document: 11.20.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Account.md CHANGED
@@ -40,6 +40,7 @@ Name | Type | Description | Notes
40
40
  **youtube** | **string** | | [default to undefined]
41
41
  **dietaryRestrictions** | **string** | | [default to undefined]
42
42
  **taxEntityUseCode** | **string** | | [default to undefined]
43
+ **doNotContact** | **boolean** | | [default to undefined]
43
44
  **updatedAt** | **string** | | [default to undefined]
44
45
 
45
46
  ## Example
@@ -83,6 +84,7 @@ const instance: Account = {
83
84
  youtube,
84
85
  dietaryRestrictions,
85
86
  taxEntityUseCode,
87
+ doNotContact,
86
88
  updatedAt,
87
89
  };
88
90
  ```
@@ -0,0 +1,48 @@
1
+ # AccountMerge
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **survivorAccountId** | **string** | | [default to undefined]
10
+ **survivorAccount** | [**BaseAccount**](BaseAccount.md) | | [default to undefined]
11
+ **mergedAccountId** | **string** | | [default to undefined]
12
+ **mergedEmail** | **string** | | [default to undefined]
13
+ **mergedName** | **string** | | [default to undefined]
14
+ **mergedUsername** | **string** | | [default to undefined]
15
+ **status** | [**AccountMergeStatus**](AccountMergeStatus.md) | | [default to undefined]
16
+ **message** | **string** | | [default to undefined]
17
+ **counts** | **{ [key: string]: any; }** | | [default to undefined]
18
+ **user** | [**BaseUser**](BaseUser.md) | | [default to undefined]
19
+ **startedAt** | **string** | | [default to undefined]
20
+ **completedAt** | **string** | | [default to undefined]
21
+ **createdAt** | **string** | | [default to undefined]
22
+ **updatedAt** | **string** | | [default to undefined]
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import { AccountMerge } from '@connectedxm/admin-sdk';
28
+
29
+ const instance: AccountMerge = {
30
+ id,
31
+ survivorAccountId,
32
+ survivorAccount,
33
+ mergedAccountId,
34
+ mergedEmail,
35
+ mergedName,
36
+ mergedUsername,
37
+ status,
38
+ message,
39
+ counts,
40
+ user,
41
+ startedAt,
42
+ completedAt,
43
+ createdAt,
44
+ updatedAt,
45
+ };
46
+ ```
47
+
48
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,30 @@
1
+ # AccountMergePreview
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **survivorAccount** | [**BaseAccount**](BaseAccount.md) | | [default to undefined]
9
+ **mergedAccount** | [**BaseAccount**](BaseAccount.md) | | [default to undefined]
10
+ **counts** | [**AccountMergePreviewCounts**](AccountMergePreviewCounts.md) | | [default to undefined]
11
+ **filledFields** | **Array<string>** | | [default to undefined]
12
+ **blocking** | [**Array<AccountMergeWarning>**](AccountMergeWarning.md) | | [default to undefined]
13
+ **warnings** | [**Array<AccountMergeWarning>**](AccountMergeWarning.md) | | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { AccountMergePreview } from '@connectedxm/admin-sdk';
19
+
20
+ const instance: AccountMergePreview = {
21
+ survivorAccount,
22
+ mergedAccount,
23
+ counts,
24
+ filledFields,
25
+ blocking,
26
+ warnings,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,54 @@
1
+ # AccountMergePreviewCounts
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **logins** | **number** | | [default to undefined]
9
+ **registrations** | **number** | | [default to undefined]
10
+ **seriesRegistrations** | **number** | | [default to undefined]
11
+ **bookings** | **number** | | [default to undefined]
12
+ **payments** | **number** | | [default to undefined]
13
+ **invoices** | **number** | | [default to undefined]
14
+ **paymentIntents** | **number** | | [default to undefined]
15
+ **groups** | **number** | | [default to undefined]
16
+ **threadAccounts** | **number** | | [default to undefined]
17
+ **activities** | **number** | | [default to undefined]
18
+ **followers** | **number** | | [default to undefined]
19
+ **following** | **number** | | [default to undefined]
20
+ **leads** | **number** | | [default to undefined]
21
+ **accountTiers** | **number** | | [default to undefined]
22
+ **supportTickets** | **number** | | [default to undefined]
23
+ **surveySubmissions** | **number** | | [default to undefined]
24
+ **sponsorshipLevels** | **number** | | [default to undefined]
25
+ **addresses** | **number** | | [default to undefined]
26
+
27
+ ## Example
28
+
29
+ ```typescript
30
+ import { AccountMergePreviewCounts } from '@connectedxm/admin-sdk';
31
+
32
+ const instance: AccountMergePreviewCounts = {
33
+ logins,
34
+ registrations,
35
+ seriesRegistrations,
36
+ bookings,
37
+ payments,
38
+ invoices,
39
+ paymentIntents,
40
+ groups,
41
+ threadAccounts,
42
+ activities,
43
+ followers,
44
+ following,
45
+ leads,
46
+ accountTiers,
47
+ supportTickets,
48
+ surveySubmissions,
49
+ sponsorshipLevels,
50
+ addresses,
51
+ };
52
+ ```
53
+
54
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)