@nexgencloud/hyperstack-sdk-typescript 1.51.2-alpha → 1.52.0-alpha
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/README.md +2 -2
- package/api.ts +841 -0
- package/dist/api.d.ts +564 -0
- package/dist/api.js +519 -5
- package/dist/esm/api.d.ts +564 -0
- package/dist/esm/api.js +506 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,11 +22,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.VouchersApi = exports.VouchersApiFactory = exports.VouchersApiFp = exports.VouchersApiAxiosParamCreator = exports.VolumeAttachmentApi = exports.VolumeAttachmentApiFactory = exports.VolumeAttachmentApiFp = exports.VolumeAttachmentApiAxiosParamCreator = exports.VolumeApi = exports.VolumeApiFactory = exports.VolumeApiFp = exports.VolumeApiAxiosParamCreator = exports.VncUrlApi = exports.VncUrlApiFactory = exports.VncUrlApiFp = exports.VncUrlApiAxiosParamCreator = exports.VirtualMachineEventsApi = exports.VirtualMachineEventsApiFactory = exports.VirtualMachineEventsApiFp = exports.VirtualMachineEventsApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.CalculateApiAxiosParamCreator = exports.BucketsApi = exports.BucketsApiFactory = exports.BucketsApiFp = exports.BucketsApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.BetaAccessApi = exports.BetaAccessApiFactory = exports.BetaAccessApiFp = exports.BetaAccessApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AssigningMemberRoleApi = exports.AssigningMemberRoleApiFactory = exports.AssigningMemberRoleApiFp = exports.AssigningMemberRoleApiAxiosParamCreator = exports.ApiKeyApi = exports.ApiKeyApiFactory = exports.ApiKeyApiFp = exports.ApiKeyApiAxiosParamCreator = exports.AliveApi = exports.AliveApiFactory = exports.AliveApiFp = exports.AliveApiAxiosParamCreator = exports.AccessKeysApi = exports.AccessKeysApiFactory = exports.AccessKeysApiFp = exports.AccessKeysApiAxiosParamCreator = exports.UpdateConsentRequestConsentMethodEnum = exports.UpdateConsentRequestActionEnum = exports.RegionFieldsGreenStatusEnum = exports.RecordConsentRequestConsentTypeEnum = exports.RecordConsentRequestConsentMethodEnum = exports.RecordConsentRequestActionEnum = exports.ObjectStorageRegionsEnum = exports.KeypairEnvironmentFeaturesGreenStatusEnum = exports.EnvironmentFeaturesGreenStatusEnum = exports.CreateSecurityRulePayloadProtocolEnum = exports.CreateFirewallRulePayloadProtocolEnum = exports.CreateClusterPayloadDeploymentModeEnum = exports.CreateClusterNodeGroupPayloadRoleEnum = exports.CreateClusterNodeFieldsRoleEnum = exports.ConsentBlockTypeEnum = exports.BetaAccessStatusItemStatusEnum = exports.BetaAccessRequestFieldsStatusEnum = void 0;
|
|
26
|
+
exports.FirewallsApiFactory = exports.FirewallsApiFp = exports.FirewallsApiAxiosParamCreator = exports.FirewallAttachmentApi = exports.FirewallAttachmentApiFactory = exports.FirewallAttachmentApiFp = exports.FirewallAttachmentApiAxiosParamCreator = exports.FIPExclusionsApi = exports.FIPExclusionsApiFactory = exports.FIPExclusionsApiFp = exports.FIPExclusionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = exports.CustomerContractApi = exports.CustomerContractApiFactory = exports.CustomerContractApiFp = exports.CustomerContractApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ComplianceApi = exports.ComplianceApiFactory = exports.ComplianceApiFp = exports.ComplianceApiAxiosParamCreator = exports.ClustersApi = exports.ClustersApiFactory = exports.ClustersApiFp = exports.ClustersApiAxiosParamCreator = exports.ClusterEventsApi = exports.ClusterEventsApiFactory = exports.ClusterEventsApiFp = exports.ClusterEventsApiAxiosParamCreator = exports.CallbacksApi = exports.CallbacksApiFactory = exports.CallbacksApiFp = exports.CallbacksApiAxiosParamCreator = exports.CalculateApi = exports.CalculateApiFactory = exports.CalculateApiFp = void 0;
|
|
27
|
+
exports.PricebookApiAxiosParamCreator = exports.PolicyApi = exports.PolicyApiFactory = exports.PolicyApiFp = exports.PolicyApiAxiosParamCreator = exports.PermissionApi = exports.PermissionApiFactory = exports.PermissionApiFp = exports.PermissionApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.PartnerConfigApi = exports.PartnerConfigApiFactory = exports.PartnerConfigApiFp = exports.PartnerConfigApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.KeypairApi = exports.KeypairApiFactory = exports.KeypairApiFp = exports.KeypairApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.ImageApi = exports.ImageApiFactory = exports.ImageApiFp = exports.ImageApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GpuApi = exports.GpuApiFactory = exports.GpuApiFp = exports.GpuApiAxiosParamCreator = exports.FloatingIpApi = exports.FloatingIpApiFactory = exports.FloatingIpApiFp = exports.FloatingIpApiAxiosParamCreator = exports.FlavorApi = exports.FlavorApiFactory = exports.FlavorApiFp = exports.FlavorApiAxiosParamCreator = exports.FirewallsApi = void 0;
|
|
28
|
+
exports.UserConsentEventsApiFactory = exports.UserConsentEventsApiFp = exports.UserConsentEventsApiAxiosParamCreator = exports.UserConsentApi = exports.UserConsentApiFactory = exports.UserConsentApiFp = exports.UserConsentApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.StockApi = exports.StockApiFactory = exports.StockApiFp = exports.StockApiAxiosParamCreator = exports.SnapshotsApi = exports.SnapshotsApiFactory = exports.SnapshotsApiFp = exports.SnapshotsApiAxiosParamCreator = exports.SnapshotEventsApi = exports.SnapshotEventsApiFactory = exports.SnapshotEventsApiFp = exports.SnapshotEventsApiAxiosParamCreator = exports.SecurityRulesApi = exports.SecurityRulesApiFactory = exports.SecurityRulesApiFp = exports.SecurityRulesApiAxiosParamCreator = exports.RegionsApi = exports.RegionsApiFactory = exports.RegionsApiFp = exports.RegionsApiAxiosParamCreator = exports.RegionApi = exports.RegionApiFactory = exports.RegionApiFp = exports.RegionApiAxiosParamCreator = exports.RbacRoleApi = exports.RbacRoleApiFactory = exports.RbacRoleApiFp = exports.RbacRoleApiAxiosParamCreator = exports.ProfileApi = exports.ProfileApiFactory = exports.ProfileApiFp = exports.ProfileApiAxiosParamCreator = exports.PricebookApi = exports.PricebookApiFactory = exports.PricebookApiFp = void 0;
|
|
29
|
+
exports.VouchersApi = exports.VouchersApiFactory = exports.VouchersApiFp = exports.VouchersApiAxiosParamCreator = exports.VolumeAttachmentApi = exports.VolumeAttachmentApiFactory = exports.VolumeAttachmentApiFp = exports.VolumeAttachmentApiAxiosParamCreator = exports.VolumeApi = exports.VolumeApiFactory = exports.VolumeApiFp = exports.VolumeApiAxiosParamCreator = exports.VncUrlApi = exports.VncUrlApiFactory = exports.VncUrlApiFp = exports.VncUrlApiAxiosParamCreator = exports.VirtualMachineEventsApi = exports.VirtualMachineEventsApiFactory = exports.VirtualMachineEventsApiFp = exports.VirtualMachineEventsApiAxiosParamCreator = exports.GetVMMetricsDurationEnum = exports.VirtualMachineApi = exports.VirtualMachineApiFactory = exports.VirtualMachineApiFp = exports.VirtualMachineApiAxiosParamCreator = exports.UserPermissionApi = exports.UserPermissionApiFactory = exports.UserPermissionApiFp = exports.UserPermissionApiAxiosParamCreator = exports.UserDetailChoiceApi = exports.UserDetailChoiceApiFactory = exports.UserDetailChoiceApiFp = exports.UserDetailChoiceApiAxiosParamCreator = exports.UserConsentEventsApi = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
@@ -45,6 +45,13 @@ exports.BetaAccessStatusItemStatusEnum = {
|
|
|
45
45
|
Denied: 'denied',
|
|
46
46
|
Revoked: 'revoked'
|
|
47
47
|
};
|
|
48
|
+
exports.ConsentBlockTypeEnum = {
|
|
49
|
+
Text: 'text',
|
|
50
|
+
Warning: 'warning',
|
|
51
|
+
Info: 'info',
|
|
52
|
+
Success: 'success',
|
|
53
|
+
Failure: 'failure'
|
|
54
|
+
};
|
|
48
55
|
exports.CreateClusterNodeFieldsRoleEnum = {
|
|
49
56
|
Worker: 'worker',
|
|
50
57
|
Master: 'master'
|
|
@@ -130,11 +137,32 @@ exports.KeypairEnvironmentFeaturesGreenStatusEnum = {
|
|
|
130
137
|
exports.ObjectStorageRegionsEnum = {
|
|
131
138
|
Canada1: 'CANADA-1'
|
|
132
139
|
};
|
|
140
|
+
exports.RecordConsentRequestActionEnum = {
|
|
141
|
+
Granted: 'granted',
|
|
142
|
+
Revoked: 'revoked'
|
|
143
|
+
};
|
|
144
|
+
exports.RecordConsentRequestConsentMethodEnum = {
|
|
145
|
+
WebCheckbox: 'web_checkbox',
|
|
146
|
+
Api: 'api',
|
|
147
|
+
AdminOverride: 'admin_override'
|
|
148
|
+
};
|
|
149
|
+
exports.RecordConsentRequestConsentTypeEnum = {
|
|
150
|
+
AutoTopUp: 'auto_top_up'
|
|
151
|
+
};
|
|
133
152
|
exports.RegionFieldsGreenStatusEnum = {
|
|
134
153
|
Green: 'GREEN',
|
|
135
154
|
PartiallyGreen: 'PARTIALLY_GREEN',
|
|
136
155
|
NotGreen: 'NOT_GREEN'
|
|
137
156
|
};
|
|
157
|
+
exports.UpdateConsentRequestActionEnum = {
|
|
158
|
+
Granted: 'granted',
|
|
159
|
+
Revoked: 'revoked'
|
|
160
|
+
};
|
|
161
|
+
exports.UpdateConsentRequestConsentMethodEnum = {
|
|
162
|
+
WebCheckbox: 'web_checkbox',
|
|
163
|
+
Api: 'api',
|
|
164
|
+
AdminOverride: 'admin_override'
|
|
165
|
+
};
|
|
138
166
|
/**
|
|
139
167
|
* AccessKeysApi - axios parameter creator
|
|
140
168
|
* @export
|
|
@@ -13994,6 +14022,492 @@ class UserApi extends base_1.BaseAPI {
|
|
|
13994
14022
|
}
|
|
13995
14023
|
}
|
|
13996
14024
|
exports.UserApi = UserApi;
|
|
14025
|
+
/**
|
|
14026
|
+
* UserConsentApi - axios parameter creator
|
|
14027
|
+
* @export
|
|
14028
|
+
*/
|
|
14029
|
+
const UserConsentApiAxiosParamCreator = function (configuration) {
|
|
14030
|
+
return {
|
|
14031
|
+
/**
|
|
14032
|
+
* Add a new consent given by the User
|
|
14033
|
+
* @summary Add a new User consent
|
|
14034
|
+
* @param {RecordConsentRequest} payload
|
|
14035
|
+
* @param {*} [options] Override http request option.
|
|
14036
|
+
* @throws {RequiredError}
|
|
14037
|
+
*/
|
|
14038
|
+
addANewConsentForAUser: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
|
|
14039
|
+
// verify required parameter 'payload' is not null or undefined
|
|
14040
|
+
(0, common_1.assertParamExists)('addANewConsentForAUser', 'payload', payload);
|
|
14041
|
+
const localVarPath = `/auth/user-consent`;
|
|
14042
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14043
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14044
|
+
let baseOptions;
|
|
14045
|
+
if (configuration) {
|
|
14046
|
+
baseOptions = configuration.baseOptions;
|
|
14047
|
+
}
|
|
14048
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14049
|
+
const localVarHeaderParameter = {};
|
|
14050
|
+
const localVarQueryParameter = {};
|
|
14051
|
+
// authentication apiKey required
|
|
14052
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
14053
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14054
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14055
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14056
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14057
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
14058
|
+
return {
|
|
14059
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14060
|
+
options: localVarRequestOptions,
|
|
14061
|
+
};
|
|
14062
|
+
}),
|
|
14063
|
+
/**
|
|
14064
|
+
* Returns current consent templates for all consent types
|
|
14065
|
+
* @summary Get all consent templates
|
|
14066
|
+
* @param {*} [options] Override http request option.
|
|
14067
|
+
* @throws {RequiredError}
|
|
14068
|
+
*/
|
|
14069
|
+
getAllConsentTemplates: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
14070
|
+
const localVarPath = `/auth/user-consent/templates`;
|
|
14071
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14072
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14073
|
+
let baseOptions;
|
|
14074
|
+
if (configuration) {
|
|
14075
|
+
baseOptions = configuration.baseOptions;
|
|
14076
|
+
}
|
|
14077
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14078
|
+
const localVarHeaderParameter = {};
|
|
14079
|
+
const localVarQueryParameter = {};
|
|
14080
|
+
// authentication apiKey required
|
|
14081
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
14082
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14083
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14084
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14085
|
+
return {
|
|
14086
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14087
|
+
options: localVarRequestOptions,
|
|
14088
|
+
};
|
|
14089
|
+
}),
|
|
14090
|
+
/**
|
|
14091
|
+
* Fetch all the recorded consents given from a User
|
|
14092
|
+
* @summary Get Consents for a User
|
|
14093
|
+
* @param {string} [consentType] Filter by consent type
|
|
14094
|
+
* @param {*} [options] Override http request option.
|
|
14095
|
+
* @throws {RequiredError}
|
|
14096
|
+
*/
|
|
14097
|
+
getAllConsentsForAUser: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
|
|
14098
|
+
const localVarPath = `/auth/user-consent`;
|
|
14099
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14100
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14101
|
+
let baseOptions;
|
|
14102
|
+
if (configuration) {
|
|
14103
|
+
baseOptions = configuration.baseOptions;
|
|
14104
|
+
}
|
|
14105
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14106
|
+
const localVarHeaderParameter = {};
|
|
14107
|
+
const localVarQueryParameter = {};
|
|
14108
|
+
// authentication apiKey required
|
|
14109
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
14110
|
+
if (consentType !== undefined) {
|
|
14111
|
+
localVarQueryParameter['consent_type'] = consentType;
|
|
14112
|
+
}
|
|
14113
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14115
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14116
|
+
return {
|
|
14117
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14118
|
+
options: localVarRequestOptions,
|
|
14119
|
+
};
|
|
14120
|
+
}),
|
|
14121
|
+
/**
|
|
14122
|
+
* Returns the current consent template for a specific consent type
|
|
14123
|
+
* @summary Get consent template for a specific type
|
|
14124
|
+
* @param {string} consentType
|
|
14125
|
+
* @param {*} [options] Override http request option.
|
|
14126
|
+
* @throws {RequiredError}
|
|
14127
|
+
*/
|
|
14128
|
+
getConsentTemplateByType: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
|
|
14129
|
+
// verify required parameter 'consentType' is not null or undefined
|
|
14130
|
+
(0, common_1.assertParamExists)('getConsentTemplateByType', 'consentType', consentType);
|
|
14131
|
+
const localVarPath = `/auth/user-consent/templates/{consent_type}`
|
|
14132
|
+
.replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
|
|
14133
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14134
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14135
|
+
let baseOptions;
|
|
14136
|
+
if (configuration) {
|
|
14137
|
+
baseOptions = configuration.baseOptions;
|
|
14138
|
+
}
|
|
14139
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14140
|
+
const localVarHeaderParameter = {};
|
|
14141
|
+
const localVarQueryParameter = {};
|
|
14142
|
+
// authentication apiKey required
|
|
14143
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
14144
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14146
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14147
|
+
return {
|
|
14148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14149
|
+
options: localVarRequestOptions,
|
|
14150
|
+
};
|
|
14151
|
+
}),
|
|
14152
|
+
/**
|
|
14153
|
+
* Revoke or grant a consent to the User
|
|
14154
|
+
* @summary Grant or revoke an existing consent
|
|
14155
|
+
* @param {string} consentType
|
|
14156
|
+
* @param {UpdateConsentRequest} payload
|
|
14157
|
+
* @param {*} [options] Override http request option.
|
|
14158
|
+
* @throws {RequiredError}
|
|
14159
|
+
*/
|
|
14160
|
+
updateAConsentActionByType: (consentType_1, payload_1, ...args_1) => __awaiter(this, [consentType_1, payload_1, ...args_1], void 0, function* (consentType, payload, options = {}) {
|
|
14161
|
+
// verify required parameter 'consentType' is not null or undefined
|
|
14162
|
+
(0, common_1.assertParamExists)('updateAConsentActionByType', 'consentType', consentType);
|
|
14163
|
+
// verify required parameter 'payload' is not null or undefined
|
|
14164
|
+
(0, common_1.assertParamExists)('updateAConsentActionByType', 'payload', payload);
|
|
14165
|
+
const localVarPath = `/auth/user-consent/{consent_type}`
|
|
14166
|
+
.replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
|
|
14167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14168
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14169
|
+
let baseOptions;
|
|
14170
|
+
if (configuration) {
|
|
14171
|
+
baseOptions = configuration.baseOptions;
|
|
14172
|
+
}
|
|
14173
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
14174
|
+
const localVarHeaderParameter = {};
|
|
14175
|
+
const localVarQueryParameter = {};
|
|
14176
|
+
// authentication apiKey required
|
|
14177
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
14178
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14179
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14180
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14181
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14182
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
14183
|
+
return {
|
|
14184
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14185
|
+
options: localVarRequestOptions,
|
|
14186
|
+
};
|
|
14187
|
+
}),
|
|
14188
|
+
};
|
|
14189
|
+
};
|
|
14190
|
+
exports.UserConsentApiAxiosParamCreator = UserConsentApiAxiosParamCreator;
|
|
14191
|
+
/**
|
|
14192
|
+
* UserConsentApi - functional programming interface
|
|
14193
|
+
* @export
|
|
14194
|
+
*/
|
|
14195
|
+
const UserConsentApiFp = function (configuration) {
|
|
14196
|
+
const localVarAxiosParamCreator = (0, exports.UserConsentApiAxiosParamCreator)(configuration);
|
|
14197
|
+
return {
|
|
14198
|
+
/**
|
|
14199
|
+
* Add a new consent given by the User
|
|
14200
|
+
* @summary Add a new User consent
|
|
14201
|
+
* @param {RecordConsentRequest} payload
|
|
14202
|
+
* @param {*} [options] Override http request option.
|
|
14203
|
+
* @throws {RequiredError}
|
|
14204
|
+
*/
|
|
14205
|
+
addANewConsentForAUser(payload, options) {
|
|
14206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14207
|
+
var _a, _b, _c;
|
|
14208
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addANewConsentForAUser(payload, options);
|
|
14209
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14210
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentApi.addANewConsentForAUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14211
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14212
|
+
});
|
|
14213
|
+
},
|
|
14214
|
+
/**
|
|
14215
|
+
* Returns current consent templates for all consent types
|
|
14216
|
+
* @summary Get all consent templates
|
|
14217
|
+
* @param {*} [options] Override http request option.
|
|
14218
|
+
* @throws {RequiredError}
|
|
14219
|
+
*/
|
|
14220
|
+
getAllConsentTemplates(options) {
|
|
14221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14222
|
+
var _a, _b, _c;
|
|
14223
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllConsentTemplates(options);
|
|
14224
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14225
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentApi.getAllConsentTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14226
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14227
|
+
});
|
|
14228
|
+
},
|
|
14229
|
+
/**
|
|
14230
|
+
* Fetch all the recorded consents given from a User
|
|
14231
|
+
* @summary Get Consents for a User
|
|
14232
|
+
* @param {string} [consentType] Filter by consent type
|
|
14233
|
+
* @param {*} [options] Override http request option.
|
|
14234
|
+
* @throws {RequiredError}
|
|
14235
|
+
*/
|
|
14236
|
+
getAllConsentsForAUser(consentType, options) {
|
|
14237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14238
|
+
var _a, _b, _c;
|
|
14239
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllConsentsForAUser(consentType, options);
|
|
14240
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14241
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentApi.getAllConsentsForAUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14242
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14243
|
+
});
|
|
14244
|
+
},
|
|
14245
|
+
/**
|
|
14246
|
+
* Returns the current consent template for a specific consent type
|
|
14247
|
+
* @summary Get consent template for a specific type
|
|
14248
|
+
* @param {string} consentType
|
|
14249
|
+
* @param {*} [options] Override http request option.
|
|
14250
|
+
* @throws {RequiredError}
|
|
14251
|
+
*/
|
|
14252
|
+
getConsentTemplateByType(consentType, options) {
|
|
14253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14254
|
+
var _a, _b, _c;
|
|
14255
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getConsentTemplateByType(consentType, options);
|
|
14256
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14257
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentApi.getConsentTemplateByType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14258
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14259
|
+
});
|
|
14260
|
+
},
|
|
14261
|
+
/**
|
|
14262
|
+
* Revoke or grant a consent to the User
|
|
14263
|
+
* @summary Grant or revoke an existing consent
|
|
14264
|
+
* @param {string} consentType
|
|
14265
|
+
* @param {UpdateConsentRequest} payload
|
|
14266
|
+
* @param {*} [options] Override http request option.
|
|
14267
|
+
* @throws {RequiredError}
|
|
14268
|
+
*/
|
|
14269
|
+
updateAConsentActionByType(consentType, payload, options) {
|
|
14270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14271
|
+
var _a, _b, _c;
|
|
14272
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAConsentActionByType(consentType, payload, options);
|
|
14273
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14274
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentApi.updateAConsentActionByType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14275
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14276
|
+
});
|
|
14277
|
+
},
|
|
14278
|
+
};
|
|
14279
|
+
};
|
|
14280
|
+
exports.UserConsentApiFp = UserConsentApiFp;
|
|
14281
|
+
/**
|
|
14282
|
+
* UserConsentApi - factory interface
|
|
14283
|
+
* @export
|
|
14284
|
+
*/
|
|
14285
|
+
const UserConsentApiFactory = function (configuration, basePath, axios) {
|
|
14286
|
+
const localVarFp = (0, exports.UserConsentApiFp)(configuration);
|
|
14287
|
+
return {
|
|
14288
|
+
/**
|
|
14289
|
+
* Add a new consent given by the User
|
|
14290
|
+
* @summary Add a new User consent
|
|
14291
|
+
* @param {RecordConsentRequest} payload
|
|
14292
|
+
* @param {*} [options] Override http request option.
|
|
14293
|
+
* @throws {RequiredError}
|
|
14294
|
+
*/
|
|
14295
|
+
addANewConsentForAUser(payload, options) {
|
|
14296
|
+
return localVarFp.addANewConsentForAUser(payload, options).then((request) => request(axios, basePath));
|
|
14297
|
+
},
|
|
14298
|
+
/**
|
|
14299
|
+
* Returns current consent templates for all consent types
|
|
14300
|
+
* @summary Get all consent templates
|
|
14301
|
+
* @param {*} [options] Override http request option.
|
|
14302
|
+
* @throws {RequiredError}
|
|
14303
|
+
*/
|
|
14304
|
+
getAllConsentTemplates(options) {
|
|
14305
|
+
return localVarFp.getAllConsentTemplates(options).then((request) => request(axios, basePath));
|
|
14306
|
+
},
|
|
14307
|
+
/**
|
|
14308
|
+
* Fetch all the recorded consents given from a User
|
|
14309
|
+
* @summary Get Consents for a User
|
|
14310
|
+
* @param {string} [consentType] Filter by consent type
|
|
14311
|
+
* @param {*} [options] Override http request option.
|
|
14312
|
+
* @throws {RequiredError}
|
|
14313
|
+
*/
|
|
14314
|
+
getAllConsentsForAUser(consentType, options) {
|
|
14315
|
+
return localVarFp.getAllConsentsForAUser(consentType, options).then((request) => request(axios, basePath));
|
|
14316
|
+
},
|
|
14317
|
+
/**
|
|
14318
|
+
* Returns the current consent template for a specific consent type
|
|
14319
|
+
* @summary Get consent template for a specific type
|
|
14320
|
+
* @param {string} consentType
|
|
14321
|
+
* @param {*} [options] Override http request option.
|
|
14322
|
+
* @throws {RequiredError}
|
|
14323
|
+
*/
|
|
14324
|
+
getConsentTemplateByType(consentType, options) {
|
|
14325
|
+
return localVarFp.getConsentTemplateByType(consentType, options).then((request) => request(axios, basePath));
|
|
14326
|
+
},
|
|
14327
|
+
/**
|
|
14328
|
+
* Revoke or grant a consent to the User
|
|
14329
|
+
* @summary Grant or revoke an existing consent
|
|
14330
|
+
* @param {string} consentType
|
|
14331
|
+
* @param {UpdateConsentRequest} payload
|
|
14332
|
+
* @param {*} [options] Override http request option.
|
|
14333
|
+
* @throws {RequiredError}
|
|
14334
|
+
*/
|
|
14335
|
+
updateAConsentActionByType(consentType, payload, options) {
|
|
14336
|
+
return localVarFp.updateAConsentActionByType(consentType, payload, options).then((request) => request(axios, basePath));
|
|
14337
|
+
},
|
|
14338
|
+
};
|
|
14339
|
+
};
|
|
14340
|
+
exports.UserConsentApiFactory = UserConsentApiFactory;
|
|
14341
|
+
/**
|
|
14342
|
+
* UserConsentApi - object-oriented interface
|
|
14343
|
+
* @export
|
|
14344
|
+
* @class UserConsentApi
|
|
14345
|
+
* @extends {BaseAPI}
|
|
14346
|
+
*/
|
|
14347
|
+
class UserConsentApi extends base_1.BaseAPI {
|
|
14348
|
+
/**
|
|
14349
|
+
* Add a new consent given by the User
|
|
14350
|
+
* @summary Add a new User consent
|
|
14351
|
+
* @param {RecordConsentRequest} payload
|
|
14352
|
+
* @param {*} [options] Override http request option.
|
|
14353
|
+
* @throws {RequiredError}
|
|
14354
|
+
* @memberof UserConsentApi
|
|
14355
|
+
*/
|
|
14356
|
+
addANewConsentForAUser(payload, options) {
|
|
14357
|
+
return (0, exports.UserConsentApiFp)(this.configuration).addANewConsentForAUser(payload, options).then((request) => request(this.axios, this.basePath));
|
|
14358
|
+
}
|
|
14359
|
+
/**
|
|
14360
|
+
* Returns current consent templates for all consent types
|
|
14361
|
+
* @summary Get all consent templates
|
|
14362
|
+
* @param {*} [options] Override http request option.
|
|
14363
|
+
* @throws {RequiredError}
|
|
14364
|
+
* @memberof UserConsentApi
|
|
14365
|
+
*/
|
|
14366
|
+
getAllConsentTemplates(options) {
|
|
14367
|
+
return (0, exports.UserConsentApiFp)(this.configuration).getAllConsentTemplates(options).then((request) => request(this.axios, this.basePath));
|
|
14368
|
+
}
|
|
14369
|
+
/**
|
|
14370
|
+
* Fetch all the recorded consents given from a User
|
|
14371
|
+
* @summary Get Consents for a User
|
|
14372
|
+
* @param {string} [consentType] Filter by consent type
|
|
14373
|
+
* @param {*} [options] Override http request option.
|
|
14374
|
+
* @throws {RequiredError}
|
|
14375
|
+
* @memberof UserConsentApi
|
|
14376
|
+
*/
|
|
14377
|
+
getAllConsentsForAUser(consentType, options) {
|
|
14378
|
+
return (0, exports.UserConsentApiFp)(this.configuration).getAllConsentsForAUser(consentType, options).then((request) => request(this.axios, this.basePath));
|
|
14379
|
+
}
|
|
14380
|
+
/**
|
|
14381
|
+
* Returns the current consent template for a specific consent type
|
|
14382
|
+
* @summary Get consent template for a specific type
|
|
14383
|
+
* @param {string} consentType
|
|
14384
|
+
* @param {*} [options] Override http request option.
|
|
14385
|
+
* @throws {RequiredError}
|
|
14386
|
+
* @memberof UserConsentApi
|
|
14387
|
+
*/
|
|
14388
|
+
getConsentTemplateByType(consentType, options) {
|
|
14389
|
+
return (0, exports.UserConsentApiFp)(this.configuration).getConsentTemplateByType(consentType, options).then((request) => request(this.axios, this.basePath));
|
|
14390
|
+
}
|
|
14391
|
+
/**
|
|
14392
|
+
* Revoke or grant a consent to the User
|
|
14393
|
+
* @summary Grant or revoke an existing consent
|
|
14394
|
+
* @param {string} consentType
|
|
14395
|
+
* @param {UpdateConsentRequest} payload
|
|
14396
|
+
* @param {*} [options] Override http request option.
|
|
14397
|
+
* @throws {RequiredError}
|
|
14398
|
+
* @memberof UserConsentApi
|
|
14399
|
+
*/
|
|
14400
|
+
updateAConsentActionByType(consentType, payload, options) {
|
|
14401
|
+
return (0, exports.UserConsentApiFp)(this.configuration).updateAConsentActionByType(consentType, payload, options).then((request) => request(this.axios, this.basePath));
|
|
14402
|
+
}
|
|
14403
|
+
}
|
|
14404
|
+
exports.UserConsentApi = UserConsentApi;
|
|
14405
|
+
/**
|
|
14406
|
+
* UserConsentEventsApi - axios parameter creator
|
|
14407
|
+
* @export
|
|
14408
|
+
*/
|
|
14409
|
+
const UserConsentEventsApiAxiosParamCreator = function (configuration) {
|
|
14410
|
+
return {
|
|
14411
|
+
/**
|
|
14412
|
+
* Get all consent audit events
|
|
14413
|
+
* @summary Get audit trail for a consent
|
|
14414
|
+
* @param {string} consentType
|
|
14415
|
+
* @param {*} [options] Override http request option.
|
|
14416
|
+
* @throws {RequiredError}
|
|
14417
|
+
*/
|
|
14418
|
+
getConsentAuditEvents: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
|
|
14419
|
+
// verify required parameter 'consentType' is not null or undefined
|
|
14420
|
+
(0, common_1.assertParamExists)('getConsentAuditEvents', 'consentType', consentType);
|
|
14421
|
+
const localVarPath = `/auth/user-consent-events/{consent_type}/events`
|
|
14422
|
+
.replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
|
|
14423
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14424
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14425
|
+
let baseOptions;
|
|
14426
|
+
if (configuration) {
|
|
14427
|
+
baseOptions = configuration.baseOptions;
|
|
14428
|
+
}
|
|
14429
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14430
|
+
const localVarHeaderParameter = {};
|
|
14431
|
+
const localVarQueryParameter = {};
|
|
14432
|
+
// authentication apiKey required
|
|
14433
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
14434
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14435
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14436
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14437
|
+
return {
|
|
14438
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14439
|
+
options: localVarRequestOptions,
|
|
14440
|
+
};
|
|
14441
|
+
}),
|
|
14442
|
+
};
|
|
14443
|
+
};
|
|
14444
|
+
exports.UserConsentEventsApiAxiosParamCreator = UserConsentEventsApiAxiosParamCreator;
|
|
14445
|
+
/**
|
|
14446
|
+
* UserConsentEventsApi - functional programming interface
|
|
14447
|
+
* @export
|
|
14448
|
+
*/
|
|
14449
|
+
const UserConsentEventsApiFp = function (configuration) {
|
|
14450
|
+
const localVarAxiosParamCreator = (0, exports.UserConsentEventsApiAxiosParamCreator)(configuration);
|
|
14451
|
+
return {
|
|
14452
|
+
/**
|
|
14453
|
+
* Get all consent audit events
|
|
14454
|
+
* @summary Get audit trail for a consent
|
|
14455
|
+
* @param {string} consentType
|
|
14456
|
+
* @param {*} [options] Override http request option.
|
|
14457
|
+
* @throws {RequiredError}
|
|
14458
|
+
*/
|
|
14459
|
+
getConsentAuditEvents(consentType, options) {
|
|
14460
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14461
|
+
var _a, _b, _c;
|
|
14462
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getConsentAuditEvents(consentType, options);
|
|
14463
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14464
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentEventsApi.getConsentAuditEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14465
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14466
|
+
});
|
|
14467
|
+
},
|
|
14468
|
+
};
|
|
14469
|
+
};
|
|
14470
|
+
exports.UserConsentEventsApiFp = UserConsentEventsApiFp;
|
|
14471
|
+
/**
|
|
14472
|
+
* UserConsentEventsApi - factory interface
|
|
14473
|
+
* @export
|
|
14474
|
+
*/
|
|
14475
|
+
const UserConsentEventsApiFactory = function (configuration, basePath, axios) {
|
|
14476
|
+
const localVarFp = (0, exports.UserConsentEventsApiFp)(configuration);
|
|
14477
|
+
return {
|
|
14478
|
+
/**
|
|
14479
|
+
* Get all consent audit events
|
|
14480
|
+
* @summary Get audit trail for a consent
|
|
14481
|
+
* @param {string} consentType
|
|
14482
|
+
* @param {*} [options] Override http request option.
|
|
14483
|
+
* @throws {RequiredError}
|
|
14484
|
+
*/
|
|
14485
|
+
getConsentAuditEvents(consentType, options) {
|
|
14486
|
+
return localVarFp.getConsentAuditEvents(consentType, options).then((request) => request(axios, basePath));
|
|
14487
|
+
},
|
|
14488
|
+
};
|
|
14489
|
+
};
|
|
14490
|
+
exports.UserConsentEventsApiFactory = UserConsentEventsApiFactory;
|
|
14491
|
+
/**
|
|
14492
|
+
* UserConsentEventsApi - object-oriented interface
|
|
14493
|
+
* @export
|
|
14494
|
+
* @class UserConsentEventsApi
|
|
14495
|
+
* @extends {BaseAPI}
|
|
14496
|
+
*/
|
|
14497
|
+
class UserConsentEventsApi extends base_1.BaseAPI {
|
|
14498
|
+
/**
|
|
14499
|
+
* Get all consent audit events
|
|
14500
|
+
* @summary Get audit trail for a consent
|
|
14501
|
+
* @param {string} consentType
|
|
14502
|
+
* @param {*} [options] Override http request option.
|
|
14503
|
+
* @throws {RequiredError}
|
|
14504
|
+
* @memberof UserConsentEventsApi
|
|
14505
|
+
*/
|
|
14506
|
+
getConsentAuditEvents(consentType, options) {
|
|
14507
|
+
return (0, exports.UserConsentEventsApiFp)(this.configuration).getConsentAuditEvents(consentType, options).then((request) => request(this.axios, this.basePath));
|
|
14508
|
+
}
|
|
14509
|
+
}
|
|
14510
|
+
exports.UserConsentEventsApi = UserConsentEventsApi;
|
|
13997
14511
|
/**
|
|
13998
14512
|
* UserDetailChoiceApi - axios parameter creator
|
|
13999
14513
|
* @export
|