@sw-tsdk/turbine 2.11.2-next.40 → 2.11.2-next.47
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/lib/tenant-api/api/apis.d.ts +12 -0
- package/lib/tenant-api/api/apis.js +18 -0
- package/lib/tenant-api/api/apis.js.map +1 -0
- package/lib/tenant-api/api/userApi.d.ts +238 -0
- package/lib/tenant-api/api/userApi.js +1010 -0
- package/lib/tenant-api/api/userApi.js.map +1 -0
- package/lib/tenant-api/api.d.ts +2 -0
- package/lib/tenant-api/api.js +7 -0
- package/lib/tenant-api/api.js.map +1 -0
- package/lib/tenant-api/model/coreModelsIdentityApplicationUser.d.ts +81 -0
- package/lib/tenant-api/model/coreModelsIdentityApplicationUser.js +269 -0
- package/lib/tenant-api/model/coreModelsIdentityApplicationUser.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSecurityAccess.d.ts +29 -0
- package/lib/tenant-api/model/coreModelsSecurityAccess.js +34 -0
- package/lib/tenant-api/model/coreModelsSecurityAccess.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSecurityAuthorization.d.ts +32 -0
- package/lib/tenant-api/model/coreModelsSecurityAuthorization.js +49 -0
- package/lib/tenant-api/model/coreModelsSecurityAuthorization.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsAuthType.d.ts +15 -0
- package/lib/tenant-api/model/coreModelsSettingsAuthType.js +20 -0
- package/lib/tenant-api/model/coreModelsSettingsAuthType.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsAuthenticationType.d.ts +16 -0
- package/lib/tenant-api/model/coreModelsSettingsAuthenticationType.js +21 -0
- package/lib/tenant-api/model/coreModelsSettingsAuthenticationType.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsCleanupIntervalType.d.ts +15 -0
- package/lib/tenant-api/model/coreModelsSettingsCleanupIntervalType.js +20 -0
- package/lib/tenant-api/model/coreModelsSettingsCleanupIntervalType.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectoryGroupSettings.d.ts +28 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectoryGroupSettings.js +44 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectoryGroupSettings.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectoryServerSettings.d.ts +38 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectoryServerSettings.js +84 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectoryServerSettings.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectorySettings.d.ts +35 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectorySettings.js +59 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectorySettings.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectoryUserSettings.d.ts +33 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectoryUserSettings.js +59 -0
- package/lib/tenant-api/model/coreModelsSettingsDirectoryUserSettings.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsLicense.d.ts +35 -0
- package/lib/tenant-api/model/coreModelsSettingsLicense.js +69 -0
- package/lib/tenant-api/model/coreModelsSettingsLicense.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsMailSettings.d.ts +50 -0
- package/lib/tenant-api/model/coreModelsSettingsMailSettings.js +149 -0
- package/lib/tenant-api/model/coreModelsSettingsMailSettings.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsMailTemplateSettings.d.ts +29 -0
- package/lib/tenant-api/model/coreModelsSettingsMailTemplateSettings.js +44 -0
- package/lib/tenant-api/model/coreModelsSettingsMailTemplateSettings.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsMarketplaceSettings.d.ts +25 -0
- package/lib/tenant-api/model/coreModelsSettingsMarketplaceSettings.js +29 -0
- package/lib/tenant-api/model/coreModelsSettingsMarketplaceSettings.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsMembership.d.ts +15 -0
- package/lib/tenant-api/model/coreModelsSettingsMembership.js +20 -0
- package/lib/tenant-api/model/coreModelsSettingsMembership.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsNameIdContent.d.ts +14 -0
- package/lib/tenant-api/model/coreModelsSettingsNameIdContent.js +19 -0
- package/lib/tenant-api/model/coreModelsSettingsNameIdContent.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsOrchestrationSettings.d.ts +34 -0
- package/lib/tenant-api/model/coreModelsSettingsOrchestrationSettings.js +69 -0
- package/lib/tenant-api/model/coreModelsSettingsOrchestrationSettings.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsPasswordExpirationType.d.ts +15 -0
- package/lib/tenant-api/model/coreModelsSettingsPasswordExpirationType.js +20 -0
- package/lib/tenant-api/model/coreModelsSettingsPasswordExpirationType.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsSamlSettings.d.ts +35 -0
- package/lib/tenant-api/model/coreModelsSettingsSamlSettings.js +74 -0
- package/lib/tenant-api/model/coreModelsSettingsSamlSettings.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsScheduledReportSettings.d.ts +28 -0
- package/lib/tenant-api/model/coreModelsSettingsScheduledReportSettings.js +39 -0
- package/lib/tenant-api/model/coreModelsSettingsScheduledReportSettings.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsSecurityParameters.d.ts +40 -0
- package/lib/tenant-api/model/coreModelsSettingsSecurityParameters.js +94 -0
- package/lib/tenant-api/model/coreModelsSettingsSecurityParameters.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsServerType.d.ts +15 -0
- package/lib/tenant-api/model/coreModelsSettingsServerType.js +20 -0
- package/lib/tenant-api/model/coreModelsSettingsServerType.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsSessionTimeoutType.d.ts +15 -0
- package/lib/tenant-api/model/coreModelsSettingsSessionTimeoutType.js +20 -0
- package/lib/tenant-api/model/coreModelsSettingsSessionTimeoutType.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsTenantSystemSettings.d.ts +30 -0
- package/lib/tenant-api/model/coreModelsSettingsTenantSystemSettings.js +49 -0
- package/lib/tenant-api/model/coreModelsSettingsTenantSystemSettings.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsTtlType.d.ts +16 -0
- package/lib/tenant-api/model/coreModelsSettingsTtlType.js +21 -0
- package/lib/tenant-api/model/coreModelsSettingsTtlType.js.map +1 -0
- package/lib/tenant-api/model/coreModelsSettingsUrlModel.d.ts +25 -0
- package/lib/tenant-api/model/coreModelsSettingsUrlModel.js +29 -0
- package/lib/tenant-api/model/coreModelsSettingsUrlModel.js.map +1 -0
- package/lib/tenant-api/model/coreModelsUtilitiesUserGroupSelection.d.ts +26 -0
- package/lib/tenant-api/model/coreModelsUtilitiesUserGroupSelection.js +34 -0
- package/lib/tenant-api/model/coreModelsUtilitiesUserGroupSelection.js.map +1 -0
- package/lib/tenant-api/model/models.d.ts +111 -0
- package/lib/tenant-api/model/models.js +395 -0
- package/lib/tenant-api/model/models.js.map +1 -0
- package/lib/tenant-api/model/portableLicensingCustomer.d.ts +27 -0
- package/lib/tenant-api/model/portableLicensingCustomer.js +39 -0
- package/lib/tenant-api/model/portableLicensingCustomer.js.map +1 -0
- package/lib/tenant-api/model/portableLicensingLicense.d.ts +34 -0
- package/lib/tenant-api/model/portableLicensingLicense.js +64 -0
- package/lib/tenant-api/model/portableLicensingLicense.js.map +1 -0
- package/lib/tenant-api/model/portableLicensingLicenseType.d.ts +15 -0
- package/lib/tenant-api/model/portableLicensingLicenseType.js +20 -0
- package/lib/tenant-api/model/portableLicensingLicenseType.js.map +1 -0
- package/lib/tenant-api/model/swimlaneAPIInfrastructureModelsSettingsValidateGroupViewModel.d.ts +26 -0
- package/lib/tenant-api/model/swimlaneAPIInfrastructureModelsSettingsValidateGroupViewModel.js +34 -0
- package/lib/tenant-api/model/swimlaneAPIInfrastructureModelsSettingsValidateGroupViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlanePlatformModelsBaseEntity.d.ts +27 -0
- package/lib/tenant-api/model/swimlanePlatformModelsBaseEntity.js +39 -0
- package/lib/tenant-api/model/swimlanePlatformModelsBaseEntity.js.map +1 -0
- package/lib/tenant-api/model/swimlanePlatformScheduleTypesLayoutType.d.ts +15 -0
- package/lib/tenant-api/model/swimlanePlatformScheduleTypesLayoutType.js +20 -0
- package/lib/tenant-api/model/swimlanePlatformScheduleTypesLayoutType.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEntitiesStatus.d.ts +28 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEntitiesStatus.js +39 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEntitiesStatus.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEntitiesSwimlaneBackgroundJob.d.ts +35 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEntitiesSwimlaneBackgroundJob.js +74 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEntitiesSwimlaneBackgroundJob.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEntitiesSwimlaneBackgroundJobStatus.d.ts +40 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEntitiesSwimlaneBackgroundJobStatus.js +94 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEntitiesSwimlaneBackgroundJobStatus.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEnumsGroupsSort.d.ts +15 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEnumsGroupsSort.js +20 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEnumsGroupsSort.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEnumsRolesSort.d.ts +15 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEnumsRolesSort.js +20 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEnumsRolesSort.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEnumsUserSort.d.ts +16 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEnumsUserSort.js +21 -0
- package/lib/tenant-api/model/swimlaneTenantCoreEnumsUserSort.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityAccountViewModel.d.ts +42 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityAccountViewModel.js +99 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityAccountViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityForgetPasswordViewModel.d.ts +25 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityForgetPasswordViewModel.js +29 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityForgetPasswordViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityGroupRoleViewModel.d.ts +26 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityGroupRoleViewModel.js +34 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityGroupRoleViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityGroupViewModel.d.ts +35 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityGroupViewModel.js +74 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityGroupViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityLoginViewModel.d.ts +26 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityLoginViewModel.js +34 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityLoginViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterAccountViewModel.d.ts +35 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterAccountViewModel.js +79 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterAccountViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterGroupViewModel.d.ts +34 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterGroupViewModel.js +69 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterGroupViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterRoleViewModel.d.ts +33 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterRoleViewModel.js +69 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterRoleViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterTenantViewModel.d.ts +31 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterTenantViewModel.js +59 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterTenantViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterUserViewModel.d.ts +40 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterUserViewModel.js +99 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRegisterUserViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRoleViewModel.d.ts +34 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRoleViewModel.js +74 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityRoleViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentitySetPasswordViewModel.d.ts +32 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentitySetPasswordViewModel.js +64 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentitySetPasswordViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentitySubGroupViewModel.d.ts +29 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentitySubGroupViewModel.js +49 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentitySubGroupViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityTenantViewModel.d.ts +35 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityTenantViewModel.js +79 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityTenantViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserAccountViewModel.d.ts +27 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserAccountViewModel.js +39 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserAccountViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserGroupViewModel.d.ts +26 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserGroupViewModel.js +34 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserGroupViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserRoleViewModel.d.ts +26 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserRoleViewModel.js +34 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserRoleViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserViewModel.d.ts +63 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserViewModel.js +214 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityUserViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityVerifyAgentCredentialsViewModel.d.ts +26 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityVerifyAgentCredentialsViewModel.js +34 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsIdentityVerifyAgentCredentialsViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsUsersPasswordTestResult.d.ts +32 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsUsersPasswordTestResult.js +59 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsUsersPasswordTestResult.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsUsersPasswordTestViewModel.d.ts +25 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsUsersPasswordTestViewModel.js +29 -0
- package/lib/tenant-api/model/swimlaneTenantCoreModelsUsersPasswordTestViewModel.js.map +1 -0
- package/lib/tenant-api/model/swimlaneTenantCoreRequestsSettingsCommandsInitializeSwimlaneCommand.d.ts +30 -0
- package/lib/tenant-api/model/swimlaneTenantCoreRequestsSettingsCommandsInitializeSwimlaneCommand.js +49 -0
- package/lib/tenant-api/model/swimlaneTenantCoreRequestsSettingsCommandsInitializeSwimlaneCommand.js.map +1 -0
- package/lib/tenant-api/model/zxcvbnSuggestion.d.ts +25 -0
- package/lib/tenant-api/model/zxcvbnSuggestion.js +30 -0
- package/lib/tenant-api/model/zxcvbnSuggestion.js.map +1 -0
- package/lib/turbine.d.ts +4 -0
- package/lib/turbine.js +85 -1
- package/lib/turbine.js.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,1010 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Swimlane Tenant API
|
|
4
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.UserApi = exports.UserApiApiKeys = void 0;
|
|
15
|
+
const tslib_1 = require("tslib");
|
|
16
|
+
const request_1 = tslib_1.__importDefault(require("request"));
|
|
17
|
+
const models_1 = require("../model/models");
|
|
18
|
+
const models_2 = require("../model/models");
|
|
19
|
+
const apis_1 = require("./apis");
|
|
20
|
+
let defaultBasePath = 'http://localhost';
|
|
21
|
+
// ===============================================
|
|
22
|
+
// This file is autogenerated - Please do not edit
|
|
23
|
+
// ===============================================
|
|
24
|
+
var UserApiApiKeys;
|
|
25
|
+
(function (UserApiApiKeys) {
|
|
26
|
+
UserApiApiKeys[UserApiApiKeys["jwt_token"] = 0] = "jwt_token";
|
|
27
|
+
})(UserApiApiKeys || (exports.UserApiApiKeys = UserApiApiKeys = {}));
|
|
28
|
+
class UserApi {
|
|
29
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
30
|
+
this._basePath = defaultBasePath;
|
|
31
|
+
this._defaultHeaders = {};
|
|
32
|
+
this._useQuerystring = false;
|
|
33
|
+
this.authentications = {
|
|
34
|
+
'default': new models_1.VoidAuth(),
|
|
35
|
+
'jwt_token': new models_2.ApiKeyAuth('header', 'Authorization'),
|
|
36
|
+
};
|
|
37
|
+
this.interceptors = [];
|
|
38
|
+
if (password) {
|
|
39
|
+
if (basePath) {
|
|
40
|
+
this.basePath = basePath;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
if (basePathOrUsername) {
|
|
45
|
+
this.basePath = basePathOrUsername;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
set useQuerystring(value) {
|
|
50
|
+
this._useQuerystring = value;
|
|
51
|
+
}
|
|
52
|
+
set basePath(basePath) {
|
|
53
|
+
this._basePath = basePath;
|
|
54
|
+
}
|
|
55
|
+
set defaultHeaders(defaultHeaders) {
|
|
56
|
+
this._defaultHeaders = defaultHeaders;
|
|
57
|
+
}
|
|
58
|
+
get defaultHeaders() {
|
|
59
|
+
return this._defaultHeaders;
|
|
60
|
+
}
|
|
61
|
+
get basePath() {
|
|
62
|
+
return this._basePath;
|
|
63
|
+
}
|
|
64
|
+
setDefaultAuthentication(auth) {
|
|
65
|
+
this.authentications.default = auth;
|
|
66
|
+
}
|
|
67
|
+
setApiKey(key, value) {
|
|
68
|
+
this.authentications[UserApiApiKeys[key]].apiKey = value;
|
|
69
|
+
}
|
|
70
|
+
addInterceptor(interceptor) {
|
|
71
|
+
this.interceptors.push(interceptor);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @param userEmail
|
|
76
|
+
*/
|
|
77
|
+
async apiUsersAccountidGet(userEmail, options = { headers: {} }) {
|
|
78
|
+
const localVarPath = this.basePath + '/api/users/accountid';
|
|
79
|
+
let localVarQueryParameters = {};
|
|
80
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
81
|
+
let localVarFormParams = {};
|
|
82
|
+
if (userEmail !== undefined) {
|
|
83
|
+
localVarQueryParameters['userEmail'] = models_1.ObjectSerializer.serialize(userEmail, "string");
|
|
84
|
+
}
|
|
85
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
86
|
+
let localVarUseFormData = false;
|
|
87
|
+
let localVarRequestOptions = {
|
|
88
|
+
method: 'GET',
|
|
89
|
+
qs: localVarQueryParameters,
|
|
90
|
+
headers: localVarHeaderParams,
|
|
91
|
+
uri: localVarPath,
|
|
92
|
+
useQuerystring: this._useQuerystring,
|
|
93
|
+
json: true,
|
|
94
|
+
};
|
|
95
|
+
let authenticationPromise = Promise.resolve();
|
|
96
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
97
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
98
|
+
}
|
|
99
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
100
|
+
let interceptorPromise = authenticationPromise;
|
|
101
|
+
for (const interceptor of this.interceptors) {
|
|
102
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
103
|
+
}
|
|
104
|
+
return interceptorPromise.then(() => {
|
|
105
|
+
if (Object.keys(localVarFormParams).length) {
|
|
106
|
+
if (localVarUseFormData) {
|
|
107
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return new Promise((resolve, reject) => {
|
|
114
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
115
|
+
if (error) {
|
|
116
|
+
reject(error);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
120
|
+
resolve({ response: response, body: body });
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @param swimlaneTenantCoreModelsIdentityLoginViewModel
|
|
133
|
+
*/
|
|
134
|
+
async apiUsersLoginPost(swimlaneTenantCoreModelsIdentityLoginViewModel, options = { headers: {} }) {
|
|
135
|
+
const localVarPath = this.basePath + '/api/users/login';
|
|
136
|
+
let localVarQueryParameters = {};
|
|
137
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
138
|
+
let localVarFormParams = {};
|
|
139
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
140
|
+
let localVarUseFormData = false;
|
|
141
|
+
let localVarRequestOptions = {
|
|
142
|
+
method: 'POST',
|
|
143
|
+
qs: localVarQueryParameters,
|
|
144
|
+
headers: localVarHeaderParams,
|
|
145
|
+
uri: localVarPath,
|
|
146
|
+
useQuerystring: this._useQuerystring,
|
|
147
|
+
json: true,
|
|
148
|
+
body: models_1.ObjectSerializer.serialize(swimlaneTenantCoreModelsIdentityLoginViewModel, "SwimlaneTenantCoreModelsIdentityLoginViewModel")
|
|
149
|
+
};
|
|
150
|
+
let authenticationPromise = Promise.resolve();
|
|
151
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
152
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
153
|
+
}
|
|
154
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
155
|
+
let interceptorPromise = authenticationPromise;
|
|
156
|
+
for (const interceptor of this.interceptors) {
|
|
157
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
158
|
+
}
|
|
159
|
+
return interceptorPromise.then(() => {
|
|
160
|
+
if (Object.keys(localVarFormParams).length) {
|
|
161
|
+
if (localVarUseFormData) {
|
|
162
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return new Promise((resolve, reject) => {
|
|
169
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
170
|
+
if (error) {
|
|
171
|
+
reject(error);
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
175
|
+
resolve({ response: response, body: body });
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
*/
|
|
188
|
+
async apiUsersLogoutPost(options = { headers: {} }) {
|
|
189
|
+
const localVarPath = this.basePath + '/api/users/logout';
|
|
190
|
+
let localVarQueryParameters = {};
|
|
191
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
192
|
+
let localVarFormParams = {};
|
|
193
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
194
|
+
let localVarUseFormData = false;
|
|
195
|
+
let localVarRequestOptions = {
|
|
196
|
+
method: 'POST',
|
|
197
|
+
qs: localVarQueryParameters,
|
|
198
|
+
headers: localVarHeaderParams,
|
|
199
|
+
uri: localVarPath,
|
|
200
|
+
useQuerystring: this._useQuerystring,
|
|
201
|
+
json: true,
|
|
202
|
+
};
|
|
203
|
+
let authenticationPromise = Promise.resolve();
|
|
204
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
205
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
206
|
+
}
|
|
207
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
208
|
+
let interceptorPromise = authenticationPromise;
|
|
209
|
+
for (const interceptor of this.interceptors) {
|
|
210
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
211
|
+
}
|
|
212
|
+
return interceptorPromise.then(() => {
|
|
213
|
+
if (Object.keys(localVarFormParams).length) {
|
|
214
|
+
if (localVarUseFormData) {
|
|
215
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return new Promise((resolve, reject) => {
|
|
222
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
223
|
+
if (error) {
|
|
224
|
+
reject(error);
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
228
|
+
resolve({ response: response, body: body });
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @param swimlaneTenantCoreModelsIdentityForgetPasswordViewModel
|
|
241
|
+
*/
|
|
242
|
+
async apiUsersPasswordForgetPost(swimlaneTenantCoreModelsIdentityForgetPasswordViewModel, options = { headers: {} }) {
|
|
243
|
+
const localVarPath = this.basePath + '/api/users/password/forget';
|
|
244
|
+
let localVarQueryParameters = {};
|
|
245
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
246
|
+
let localVarFormParams = {};
|
|
247
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
248
|
+
let localVarUseFormData = false;
|
|
249
|
+
let localVarRequestOptions = {
|
|
250
|
+
method: 'POST',
|
|
251
|
+
qs: localVarQueryParameters,
|
|
252
|
+
headers: localVarHeaderParams,
|
|
253
|
+
uri: localVarPath,
|
|
254
|
+
useQuerystring: this._useQuerystring,
|
|
255
|
+
json: true,
|
|
256
|
+
body: models_1.ObjectSerializer.serialize(swimlaneTenantCoreModelsIdentityForgetPasswordViewModel, "SwimlaneTenantCoreModelsIdentityForgetPasswordViewModel")
|
|
257
|
+
};
|
|
258
|
+
let authenticationPromise = Promise.resolve();
|
|
259
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
260
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
261
|
+
}
|
|
262
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
263
|
+
let interceptorPromise = authenticationPromise;
|
|
264
|
+
for (const interceptor of this.interceptors) {
|
|
265
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
266
|
+
}
|
|
267
|
+
return interceptorPromise.then(() => {
|
|
268
|
+
if (Object.keys(localVarFormParams).length) {
|
|
269
|
+
if (localVarUseFormData) {
|
|
270
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
return new Promise((resolve, reject) => {
|
|
277
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
278
|
+
if (error) {
|
|
279
|
+
reject(error);
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
283
|
+
resolve({ response: response, body: body });
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @param swimlaneTenantCoreModelsIdentitySetPasswordViewModel
|
|
296
|
+
*/
|
|
297
|
+
async apiUsersPasswordResetPost(swimlaneTenantCoreModelsIdentitySetPasswordViewModel, options = { headers: {} }) {
|
|
298
|
+
const localVarPath = this.basePath + '/api/users/password/reset';
|
|
299
|
+
let localVarQueryParameters = {};
|
|
300
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
301
|
+
let localVarFormParams = {};
|
|
302
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
303
|
+
let localVarUseFormData = false;
|
|
304
|
+
let localVarRequestOptions = {
|
|
305
|
+
method: 'POST',
|
|
306
|
+
qs: localVarQueryParameters,
|
|
307
|
+
headers: localVarHeaderParams,
|
|
308
|
+
uri: localVarPath,
|
|
309
|
+
useQuerystring: this._useQuerystring,
|
|
310
|
+
json: true,
|
|
311
|
+
body: models_1.ObjectSerializer.serialize(swimlaneTenantCoreModelsIdentitySetPasswordViewModel, "SwimlaneTenantCoreModelsIdentitySetPasswordViewModel")
|
|
312
|
+
};
|
|
313
|
+
let authenticationPromise = Promise.resolve();
|
|
314
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
315
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
316
|
+
}
|
|
317
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
318
|
+
let interceptorPromise = authenticationPromise;
|
|
319
|
+
for (const interceptor of this.interceptors) {
|
|
320
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
321
|
+
}
|
|
322
|
+
return interceptorPromise.then(() => {
|
|
323
|
+
if (Object.keys(localVarFormParams).length) {
|
|
324
|
+
if (localVarUseFormData) {
|
|
325
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
return new Promise((resolve, reject) => {
|
|
332
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
333
|
+
if (error) {
|
|
334
|
+
reject(error);
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
338
|
+
resolve({ response: response, body: body });
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @param swimlaneTenantCoreModelsIdentityRegisterUserViewModel
|
|
351
|
+
*/
|
|
352
|
+
async apiUsersPost(swimlaneTenantCoreModelsIdentityRegisterUserViewModel, options = { headers: {} }) {
|
|
353
|
+
const localVarPath = this.basePath + '/api/users';
|
|
354
|
+
let localVarQueryParameters = {};
|
|
355
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
356
|
+
let localVarFormParams = {};
|
|
357
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
358
|
+
let localVarUseFormData = false;
|
|
359
|
+
let localVarRequestOptions = {
|
|
360
|
+
method: 'POST',
|
|
361
|
+
qs: localVarQueryParameters,
|
|
362
|
+
headers: localVarHeaderParams,
|
|
363
|
+
uri: localVarPath,
|
|
364
|
+
useQuerystring: this._useQuerystring,
|
|
365
|
+
json: true,
|
|
366
|
+
body: models_1.ObjectSerializer.serialize(swimlaneTenantCoreModelsIdentityRegisterUserViewModel, "SwimlaneTenantCoreModelsIdentityRegisterUserViewModel")
|
|
367
|
+
};
|
|
368
|
+
let authenticationPromise = Promise.resolve();
|
|
369
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
370
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
371
|
+
}
|
|
372
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
373
|
+
let interceptorPromise = authenticationPromise;
|
|
374
|
+
for (const interceptor of this.interceptors) {
|
|
375
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
376
|
+
}
|
|
377
|
+
return interceptorPromise.then(() => {
|
|
378
|
+
if (Object.keys(localVarFormParams).length) {
|
|
379
|
+
if (localVarUseFormData) {
|
|
380
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return new Promise((resolve, reject) => {
|
|
387
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
388
|
+
if (error) {
|
|
389
|
+
reject(error);
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
393
|
+
resolve({ response: response, body: body });
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
*/
|
|
406
|
+
async apiUsersRefreshtokenGet(options = { headers: {} }) {
|
|
407
|
+
const localVarPath = this.basePath + '/api/users/refreshtoken';
|
|
408
|
+
let localVarQueryParameters = {};
|
|
409
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
410
|
+
let localVarFormParams = {};
|
|
411
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
412
|
+
let localVarUseFormData = false;
|
|
413
|
+
let localVarRequestOptions = {
|
|
414
|
+
method: 'GET',
|
|
415
|
+
qs: localVarQueryParameters,
|
|
416
|
+
headers: localVarHeaderParams,
|
|
417
|
+
uri: localVarPath,
|
|
418
|
+
useQuerystring: this._useQuerystring,
|
|
419
|
+
json: true,
|
|
420
|
+
};
|
|
421
|
+
let authenticationPromise = Promise.resolve();
|
|
422
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
423
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
424
|
+
}
|
|
425
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
426
|
+
let interceptorPromise = authenticationPromise;
|
|
427
|
+
for (const interceptor of this.interceptors) {
|
|
428
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
429
|
+
}
|
|
430
|
+
return interceptorPromise.then(() => {
|
|
431
|
+
if (Object.keys(localVarFormParams).length) {
|
|
432
|
+
if (localVarUseFormData) {
|
|
433
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
434
|
+
}
|
|
435
|
+
else {
|
|
436
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
return new Promise((resolve, reject) => {
|
|
440
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
441
|
+
if (error) {
|
|
442
|
+
reject(error);
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
446
|
+
resolve({ response: response, body: body });
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
*
|
|
458
|
+
* @param swimlaneTenantCoreModelsIdentityLoginViewModel
|
|
459
|
+
*/
|
|
460
|
+
async apiUsersTokenPost(swimlaneTenantCoreModelsIdentityLoginViewModel, options = { headers: {} }) {
|
|
461
|
+
const localVarPath = this.basePath + '/api/users/token';
|
|
462
|
+
let localVarQueryParameters = {};
|
|
463
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
464
|
+
const produces = ['text/plain', 'application/json', 'text/json'];
|
|
465
|
+
// give precedence to 'application/json'
|
|
466
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
467
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
468
|
+
}
|
|
469
|
+
else {
|
|
470
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
471
|
+
}
|
|
472
|
+
let localVarFormParams = {};
|
|
473
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
474
|
+
let localVarUseFormData = false;
|
|
475
|
+
let localVarRequestOptions = {
|
|
476
|
+
method: 'POST',
|
|
477
|
+
qs: localVarQueryParameters,
|
|
478
|
+
headers: localVarHeaderParams,
|
|
479
|
+
uri: localVarPath,
|
|
480
|
+
useQuerystring: this._useQuerystring,
|
|
481
|
+
json: true,
|
|
482
|
+
body: models_1.ObjectSerializer.serialize(swimlaneTenantCoreModelsIdentityLoginViewModel, "SwimlaneTenantCoreModelsIdentityLoginViewModel")
|
|
483
|
+
};
|
|
484
|
+
let authenticationPromise = Promise.resolve();
|
|
485
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
486
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
487
|
+
}
|
|
488
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
489
|
+
let interceptorPromise = authenticationPromise;
|
|
490
|
+
for (const interceptor of this.interceptors) {
|
|
491
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
492
|
+
}
|
|
493
|
+
return interceptorPromise.then(() => {
|
|
494
|
+
if (Object.keys(localVarFormParams).length) {
|
|
495
|
+
if (localVarUseFormData) {
|
|
496
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
497
|
+
}
|
|
498
|
+
else {
|
|
499
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
return new Promise((resolve, reject) => {
|
|
503
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
504
|
+
if (error) {
|
|
505
|
+
reject(error);
|
|
506
|
+
}
|
|
507
|
+
else {
|
|
508
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
509
|
+
body = models_1.ObjectSerializer.deserialize(body, "string");
|
|
510
|
+
resolve({ response: response, body: body });
|
|
511
|
+
}
|
|
512
|
+
else {
|
|
513
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
});
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
* @param userId
|
|
523
|
+
*/
|
|
524
|
+
async apiUsersUserIdAvatarGet(userId, options = { headers: {} }) {
|
|
525
|
+
const localVarPath = this.basePath + '/api/users/{userId}/avatar'
|
|
526
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
527
|
+
let localVarQueryParameters = {};
|
|
528
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
529
|
+
let localVarFormParams = {};
|
|
530
|
+
// verify required parameter 'userId' is not null or undefined
|
|
531
|
+
if (userId === null || userId === undefined) {
|
|
532
|
+
throw new Error('Required parameter userId was null or undefined when calling apiUsersUserIdAvatarGet.');
|
|
533
|
+
}
|
|
534
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
535
|
+
let localVarUseFormData = false;
|
|
536
|
+
let localVarRequestOptions = {
|
|
537
|
+
method: 'GET',
|
|
538
|
+
qs: localVarQueryParameters,
|
|
539
|
+
headers: localVarHeaderParams,
|
|
540
|
+
uri: localVarPath,
|
|
541
|
+
useQuerystring: this._useQuerystring,
|
|
542
|
+
json: true,
|
|
543
|
+
};
|
|
544
|
+
let authenticationPromise = Promise.resolve();
|
|
545
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
546
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
547
|
+
}
|
|
548
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
549
|
+
let interceptorPromise = authenticationPromise;
|
|
550
|
+
for (const interceptor of this.interceptors) {
|
|
551
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
552
|
+
}
|
|
553
|
+
return interceptorPromise.then(() => {
|
|
554
|
+
if (Object.keys(localVarFormParams).length) {
|
|
555
|
+
if (localVarUseFormData) {
|
|
556
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return new Promise((resolve, reject) => {
|
|
563
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
564
|
+
if (error) {
|
|
565
|
+
reject(error);
|
|
566
|
+
}
|
|
567
|
+
else {
|
|
568
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
569
|
+
resolve({ response: response, body: body });
|
|
570
|
+
}
|
|
571
|
+
else {
|
|
572
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
* @param userId
|
|
582
|
+
* @param imageFile
|
|
583
|
+
*/
|
|
584
|
+
async apiUsersUserIdAvatarPut(userId, imageFile, options = { headers: {} }) {
|
|
585
|
+
const localVarPath = this.basePath + '/api/users/{userId}/avatar'
|
|
586
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
587
|
+
let localVarQueryParameters = {};
|
|
588
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
589
|
+
let localVarFormParams = {};
|
|
590
|
+
// verify required parameter 'userId' is not null or undefined
|
|
591
|
+
if (userId === null || userId === undefined) {
|
|
592
|
+
throw new Error('Required parameter userId was null or undefined when calling apiUsersUserIdAvatarPut.');
|
|
593
|
+
}
|
|
594
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
595
|
+
let localVarUseFormData = false;
|
|
596
|
+
if (imageFile !== undefined) {
|
|
597
|
+
localVarFormParams['imageFile'] = imageFile;
|
|
598
|
+
}
|
|
599
|
+
localVarUseFormData = true;
|
|
600
|
+
let localVarRequestOptions = {
|
|
601
|
+
method: 'PUT',
|
|
602
|
+
qs: localVarQueryParameters,
|
|
603
|
+
headers: localVarHeaderParams,
|
|
604
|
+
uri: localVarPath,
|
|
605
|
+
useQuerystring: this._useQuerystring,
|
|
606
|
+
json: true,
|
|
607
|
+
};
|
|
608
|
+
let authenticationPromise = Promise.resolve();
|
|
609
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
610
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
611
|
+
}
|
|
612
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
613
|
+
let interceptorPromise = authenticationPromise;
|
|
614
|
+
for (const interceptor of this.interceptors) {
|
|
615
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
616
|
+
}
|
|
617
|
+
return interceptorPromise.then(() => {
|
|
618
|
+
if (Object.keys(localVarFormParams).length) {
|
|
619
|
+
if (localVarUseFormData) {
|
|
620
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
621
|
+
}
|
|
622
|
+
else {
|
|
623
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
return new Promise((resolve, reject) => {
|
|
627
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
628
|
+
if (error) {
|
|
629
|
+
reject(error);
|
|
630
|
+
}
|
|
631
|
+
else {
|
|
632
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
633
|
+
resolve({ response: response, body: body });
|
|
634
|
+
}
|
|
635
|
+
else {
|
|
636
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
});
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @param userId
|
|
646
|
+
*/
|
|
647
|
+
async apiUsersUserIdDelete(userId, options = { headers: {} }) {
|
|
648
|
+
const localVarPath = this.basePath + '/api/users/{userId}'
|
|
649
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
650
|
+
let localVarQueryParameters = {};
|
|
651
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
652
|
+
let localVarFormParams = {};
|
|
653
|
+
// verify required parameter 'userId' is not null or undefined
|
|
654
|
+
if (userId === null || userId === undefined) {
|
|
655
|
+
throw new Error('Required parameter userId was null or undefined when calling apiUsersUserIdDelete.');
|
|
656
|
+
}
|
|
657
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
658
|
+
let localVarUseFormData = false;
|
|
659
|
+
let localVarRequestOptions = {
|
|
660
|
+
method: 'DELETE',
|
|
661
|
+
qs: localVarQueryParameters,
|
|
662
|
+
headers: localVarHeaderParams,
|
|
663
|
+
uri: localVarPath,
|
|
664
|
+
useQuerystring: this._useQuerystring,
|
|
665
|
+
json: true,
|
|
666
|
+
};
|
|
667
|
+
let authenticationPromise = Promise.resolve();
|
|
668
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
669
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
670
|
+
}
|
|
671
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
672
|
+
let interceptorPromise = authenticationPromise;
|
|
673
|
+
for (const interceptor of this.interceptors) {
|
|
674
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
675
|
+
}
|
|
676
|
+
return interceptorPromise.then(() => {
|
|
677
|
+
if (Object.keys(localVarFormParams).length) {
|
|
678
|
+
if (localVarUseFormData) {
|
|
679
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
680
|
+
}
|
|
681
|
+
else {
|
|
682
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
return new Promise((resolve, reject) => {
|
|
686
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
687
|
+
if (error) {
|
|
688
|
+
reject(error);
|
|
689
|
+
}
|
|
690
|
+
else {
|
|
691
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
692
|
+
resolve({ response: response, body: body });
|
|
693
|
+
}
|
|
694
|
+
else {
|
|
695
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
});
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
*
|
|
704
|
+
* @param userId
|
|
705
|
+
*/
|
|
706
|
+
async apiUsersUserIdGet(userId, options = { headers: {} }) {
|
|
707
|
+
const localVarPath = this.basePath + '/api/users/{userId}'
|
|
708
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
709
|
+
let localVarQueryParameters = {};
|
|
710
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
711
|
+
let localVarFormParams = {};
|
|
712
|
+
// verify required parameter 'userId' is not null or undefined
|
|
713
|
+
if (userId === null || userId === undefined) {
|
|
714
|
+
throw new Error('Required parameter userId was null or undefined when calling apiUsersUserIdGet.');
|
|
715
|
+
}
|
|
716
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
717
|
+
let localVarUseFormData = false;
|
|
718
|
+
let localVarRequestOptions = {
|
|
719
|
+
method: 'GET',
|
|
720
|
+
qs: localVarQueryParameters,
|
|
721
|
+
headers: localVarHeaderParams,
|
|
722
|
+
uri: localVarPath,
|
|
723
|
+
useQuerystring: this._useQuerystring,
|
|
724
|
+
json: true,
|
|
725
|
+
};
|
|
726
|
+
let authenticationPromise = Promise.resolve();
|
|
727
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
728
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
729
|
+
}
|
|
730
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
731
|
+
let interceptorPromise = authenticationPromise;
|
|
732
|
+
for (const interceptor of this.interceptors) {
|
|
733
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
734
|
+
}
|
|
735
|
+
return interceptorPromise.then(() => {
|
|
736
|
+
if (Object.keys(localVarFormParams).length) {
|
|
737
|
+
if (localVarUseFormData) {
|
|
738
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
739
|
+
}
|
|
740
|
+
else {
|
|
741
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
return new Promise((resolve, reject) => {
|
|
745
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
746
|
+
if (error) {
|
|
747
|
+
reject(error);
|
|
748
|
+
}
|
|
749
|
+
else {
|
|
750
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
751
|
+
resolve({ response: response, body: body });
|
|
752
|
+
}
|
|
753
|
+
else {
|
|
754
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
});
|
|
758
|
+
});
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @param userId
|
|
764
|
+
* @param coreModelsIdentityApplicationUser
|
|
765
|
+
*/
|
|
766
|
+
async apiUsersUserIdPut(userId, coreModelsIdentityApplicationUser, options = { headers: {} }) {
|
|
767
|
+
const localVarPath = this.basePath + '/api/users/{userId}'
|
|
768
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
769
|
+
let localVarQueryParameters = {};
|
|
770
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
771
|
+
let localVarFormParams = {};
|
|
772
|
+
// verify required parameter 'userId' is not null or undefined
|
|
773
|
+
if (userId === null || userId === undefined) {
|
|
774
|
+
throw new Error('Required parameter userId was null or undefined when calling apiUsersUserIdPut.');
|
|
775
|
+
}
|
|
776
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
777
|
+
let localVarUseFormData = false;
|
|
778
|
+
let localVarRequestOptions = {
|
|
779
|
+
method: 'PUT',
|
|
780
|
+
qs: localVarQueryParameters,
|
|
781
|
+
headers: localVarHeaderParams,
|
|
782
|
+
uri: localVarPath,
|
|
783
|
+
useQuerystring: this._useQuerystring,
|
|
784
|
+
json: true,
|
|
785
|
+
body: models_1.ObjectSerializer.serialize(coreModelsIdentityApplicationUser, "CoreModelsIdentityApplicationUser")
|
|
786
|
+
};
|
|
787
|
+
let authenticationPromise = Promise.resolve();
|
|
788
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
789
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
790
|
+
}
|
|
791
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
792
|
+
let interceptorPromise = authenticationPromise;
|
|
793
|
+
for (const interceptor of this.interceptors) {
|
|
794
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
795
|
+
}
|
|
796
|
+
return interceptorPromise.then(() => {
|
|
797
|
+
if (Object.keys(localVarFormParams).length) {
|
|
798
|
+
if (localVarUseFormData) {
|
|
799
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
800
|
+
}
|
|
801
|
+
else {
|
|
802
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
return new Promise((resolve, reject) => {
|
|
806
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
807
|
+
if (error) {
|
|
808
|
+
reject(error);
|
|
809
|
+
}
|
|
810
|
+
else {
|
|
811
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
812
|
+
resolve({ response: response, body: body });
|
|
813
|
+
}
|
|
814
|
+
else {
|
|
815
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
});
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
*
|
|
824
|
+
* @param swimlaneTenantCoreModelsUsersPasswordTestViewModel
|
|
825
|
+
*/
|
|
826
|
+
async apiUsersUserPasswordTestPost(swimlaneTenantCoreModelsUsersPasswordTestViewModel, options = { headers: {} }) {
|
|
827
|
+
const localVarPath = this.basePath + '/api/users/user/password/test';
|
|
828
|
+
let localVarQueryParameters = {};
|
|
829
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
830
|
+
const produces = ['text/plain', 'application/json', 'text/json'];
|
|
831
|
+
// give precedence to 'application/json'
|
|
832
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
833
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
834
|
+
}
|
|
835
|
+
else {
|
|
836
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
837
|
+
}
|
|
838
|
+
let localVarFormParams = {};
|
|
839
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
840
|
+
let localVarUseFormData = false;
|
|
841
|
+
let localVarRequestOptions = {
|
|
842
|
+
method: 'POST',
|
|
843
|
+
qs: localVarQueryParameters,
|
|
844
|
+
headers: localVarHeaderParams,
|
|
845
|
+
uri: localVarPath,
|
|
846
|
+
useQuerystring: this._useQuerystring,
|
|
847
|
+
json: true,
|
|
848
|
+
body: models_1.ObjectSerializer.serialize(swimlaneTenantCoreModelsUsersPasswordTestViewModel, "SwimlaneTenantCoreModelsUsersPasswordTestViewModel")
|
|
849
|
+
};
|
|
850
|
+
let authenticationPromise = Promise.resolve();
|
|
851
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
852
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
853
|
+
}
|
|
854
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
855
|
+
let interceptorPromise = authenticationPromise;
|
|
856
|
+
for (const interceptor of this.interceptors) {
|
|
857
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
858
|
+
}
|
|
859
|
+
return interceptorPromise.then(() => {
|
|
860
|
+
if (Object.keys(localVarFormParams).length) {
|
|
861
|
+
if (localVarUseFormData) {
|
|
862
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
863
|
+
}
|
|
864
|
+
else {
|
|
865
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
return new Promise((resolve, reject) => {
|
|
869
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
870
|
+
if (error) {
|
|
871
|
+
reject(error);
|
|
872
|
+
}
|
|
873
|
+
else {
|
|
874
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
875
|
+
body = models_1.ObjectSerializer.deserialize(body, "SwimlaneTenantCoreModelsUsersPasswordTestResult");
|
|
876
|
+
resolve({ response: response, body: body });
|
|
877
|
+
}
|
|
878
|
+
else {
|
|
879
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
});
|
|
883
|
+
});
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
*
|
|
888
|
+
* @param userId
|
|
889
|
+
* @param isDisabled
|
|
890
|
+
*/
|
|
891
|
+
async apiUsersUseraccessUserIdPut(userId, isDisabled, options = { headers: {} }) {
|
|
892
|
+
const localVarPath = this.basePath + '/api/users/useraccess/{userId}'
|
|
893
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
894
|
+
let localVarQueryParameters = {};
|
|
895
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
896
|
+
let localVarFormParams = {};
|
|
897
|
+
// verify required parameter 'userId' is not null or undefined
|
|
898
|
+
if (userId === null || userId === undefined) {
|
|
899
|
+
throw new Error('Required parameter userId was null or undefined when calling apiUsersUseraccessUserIdPut.');
|
|
900
|
+
}
|
|
901
|
+
if (isDisabled !== undefined) {
|
|
902
|
+
localVarQueryParameters['isDisabled'] = models_1.ObjectSerializer.serialize(isDisabled, "boolean");
|
|
903
|
+
}
|
|
904
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
905
|
+
let localVarUseFormData = false;
|
|
906
|
+
let localVarRequestOptions = {
|
|
907
|
+
method: 'PUT',
|
|
908
|
+
qs: localVarQueryParameters,
|
|
909
|
+
headers: localVarHeaderParams,
|
|
910
|
+
uri: localVarPath,
|
|
911
|
+
useQuerystring: this._useQuerystring,
|
|
912
|
+
json: true,
|
|
913
|
+
};
|
|
914
|
+
let authenticationPromise = Promise.resolve();
|
|
915
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
916
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
917
|
+
}
|
|
918
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
919
|
+
let interceptorPromise = authenticationPromise;
|
|
920
|
+
for (const interceptor of this.interceptors) {
|
|
921
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
922
|
+
}
|
|
923
|
+
return interceptorPromise.then(() => {
|
|
924
|
+
if (Object.keys(localVarFormParams).length) {
|
|
925
|
+
if (localVarUseFormData) {
|
|
926
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
927
|
+
}
|
|
928
|
+
else {
|
|
929
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
return new Promise((resolve, reject) => {
|
|
933
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
934
|
+
if (error) {
|
|
935
|
+
reject(error);
|
|
936
|
+
}
|
|
937
|
+
else {
|
|
938
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
939
|
+
resolve({ response: response, body: body });
|
|
940
|
+
}
|
|
941
|
+
else {
|
|
942
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
});
|
|
946
|
+
});
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
/**
|
|
950
|
+
*
|
|
951
|
+
* @param token
|
|
952
|
+
*/
|
|
953
|
+
async validatetokenTokenGet(token, options = { headers: {} }) {
|
|
954
|
+
const localVarPath = this.basePath + '/validatetoken/{token}'
|
|
955
|
+
.replace('{' + 'token' + '}', encodeURIComponent(String(token)));
|
|
956
|
+
let localVarQueryParameters = {};
|
|
957
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
958
|
+
let localVarFormParams = {};
|
|
959
|
+
// verify required parameter 'token' is not null or undefined
|
|
960
|
+
if (token === null || token === undefined) {
|
|
961
|
+
throw new Error('Required parameter token was null or undefined when calling validatetokenTokenGet.');
|
|
962
|
+
}
|
|
963
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
964
|
+
let localVarUseFormData = false;
|
|
965
|
+
let localVarRequestOptions = {
|
|
966
|
+
method: 'GET',
|
|
967
|
+
qs: localVarQueryParameters,
|
|
968
|
+
headers: localVarHeaderParams,
|
|
969
|
+
uri: localVarPath,
|
|
970
|
+
useQuerystring: this._useQuerystring,
|
|
971
|
+
json: true,
|
|
972
|
+
};
|
|
973
|
+
let authenticationPromise = Promise.resolve();
|
|
974
|
+
if (this.authentications.jwt_token.apiKey) {
|
|
975
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.jwt_token.applyToRequest(localVarRequestOptions));
|
|
976
|
+
}
|
|
977
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
978
|
+
let interceptorPromise = authenticationPromise;
|
|
979
|
+
for (const interceptor of this.interceptors) {
|
|
980
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
981
|
+
}
|
|
982
|
+
return interceptorPromise.then(() => {
|
|
983
|
+
if (Object.keys(localVarFormParams).length) {
|
|
984
|
+
if (localVarUseFormData) {
|
|
985
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
986
|
+
}
|
|
987
|
+
else {
|
|
988
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
return new Promise((resolve, reject) => {
|
|
992
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
993
|
+
if (error) {
|
|
994
|
+
reject(error);
|
|
995
|
+
}
|
|
996
|
+
else {
|
|
997
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
998
|
+
resolve({ response: response, body: body });
|
|
999
|
+
}
|
|
1000
|
+
else {
|
|
1001
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
1005
|
+
});
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
exports.UserApi = UserApi;
|
|
1010
|
+
//# sourceMappingURL=userApi.js.map
|