From 27bedbaa3eee454038ff9001b98873ab26e23c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=86=9B?= <510423039@qq.com> Date: Mon, 21 Nov 2022 15:03:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=98=8E=E7=BB=86=E5=91=BD=E5=90=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IDataDictionaryAppService.cs | 2 +- .../DataDictionaryAppService.cs | 5 +- .../DataDictionaryController.cs | 6 +- vben28/src/services/ServiceProxies.ts | 3207 ++++------------- 4 files changed, 722 insertions(+), 2498 deletions(-) diff --git a/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.Application.Contracts/DataDictionaries/IDataDictionaryAppService.cs b/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.Application.Contracts/DataDictionaries/IDataDictionaryAppService.cs index 9c15a45c..6faddaed 100644 --- a/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.Application.Contracts/DataDictionaries/IDataDictionaryAppService.cs +++ b/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.Application.Contracts/DataDictionaries/IDataDictionaryAppService.cs @@ -48,7 +48,7 @@ namespace Lion.AbpPro.DataDictionaryManagement.DataDictionaries /// /// /// - Task DeleteDictinaryTypeAsync(IdInput input); + Task DeleteDataDictionaryTypeAsync(IdInput input); /// /// 修改数据字典 diff --git a/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.Application/DataDictionaries/DataDictionaryAppService.cs b/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.Application/DataDictionaries/DataDictionaryAppService.cs index d523a0e4..dc214c9b 100644 --- a/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.Application/DataDictionaries/DataDictionaryAppService.cs +++ b/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.Application/DataDictionaries/DataDictionaryAppService.cs @@ -116,10 +116,11 @@ namespace Lion.AbpPro.DataDictionaryManagement.DataDictionaries [Authorize(DataDictionaryManagementPermissions.DataDictionaryManagement.Delete)] - public Task DeleteDictinaryTypeAsync(IdInput input) + public Task DeleteDataDictionaryTypeAsync(IdInput input) { - return _dataDictionaryManager.DeleteDictinaryTypeAsync(input.Id); + return _dataDictionaryManager.DeleteDataDictionaryTypeAsync(input.Id); } + [Authorize(DataDictionaryManagementPermissions.DataDictionaryManagement.Update)] public Task UpdateAsync(UpdateDataDictinaryInput input) { diff --git a/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.HttpApi/DataDictionaries/DataDictionaryController.cs b/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.HttpApi/DataDictionaries/DataDictionaryController.cs index 520049bf..d8dde3a4 100644 --- a/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.HttpApi/DataDictionaries/DataDictionaryController.cs +++ b/aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.HttpApi/DataDictionaries/DataDictionaryController.cs @@ -61,11 +61,11 @@ namespace Lion.AbpPro.DataDictionaryManagement.DataDictionaries return _dataDictionaryAppService.DeleteAsync(input); } - [HttpPost("deleteDictinaryType")] + [HttpPost("deleteDataDictionaryType")] [SwaggerOperation(summary: "删除字典类型", Tags = new[] { "DataDictionary" })] - public Task DeleteDictinaryTypeAsync(IdInput input) + public Task DeleteDataDictionaryTypeAsync(IdInput input) { - return _dataDictionaryAppService.DeleteDictinaryTypeAsync(input); + return _dataDictionaryAppService.DeleteDataDictionaryTypeAsync(input); } diff --git a/vben28/src/services/ServiceProxies.ts b/vben28/src/services/ServiceProxies.ts index 9a826ae2..7bd0ae2b 100644 --- a/vben28/src/services/ServiceProxies.ts +++ b/vben28/src/services/ServiceProxies.ts @@ -1160,8 +1160,8 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { * @param body (optional) * @return Success */ - deleteDictinaryType(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/DataDictionary/deleteDictinaryType"; + deleteDataDictionaryType(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/DataDictionary/deleteDataDictionaryType"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -1185,11 +1185,11 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDeleteDictinaryType(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDeleteDataDictionaryType(_response)); }); } - protected processDeleteDictinaryType(response: AxiosResponse): Promise { + protected processDeleteDataDictionaryType(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -1350,7 +1350,7 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { } } -export class FilesServiceProxy extends ServiceProxyBase { +export class EsLogServiceProxy extends ServiceProxyBase { private instance: AxiosInstance; private baseUrl: string; protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; @@ -1362,17 +1362,22 @@ export class FilesServiceProxy extends ServiceProxyBase { } /** - * 获取上传文件临时Token + * 分页获取Es日志 + * @param body (optional) * @return Success */ - getFileToken( cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Files/getFileToken"; + page(body: PagingElasticSearchLogInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/EsLog/page"; url_ = url_.replace(/[?&]$/, ""); + const content_ = JSON.stringify(body); + let options_ = { - method: "GET", + data: content_, + method: "POST", url: url_, headers: { + "Content-Type": "application/json", "Accept": "text/plain" }, cancelToken @@ -1387,11 +1392,11 @@ export class FilesServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processGetFileToken(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPage(_response)); }); } - protected processGetFileToken(response: AxiosResponse): Promise { + protected processPage(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -1405,8 +1410,8 @@ export class FilesServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = FileTokenOutput.fromJS(resultData200); - return Promise.resolve(result200); + result200 = PagingElasticSearchLogOutputCustomePagedResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -1454,16 +1459,28 @@ export class FilesServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); + } +} + +export class NotificationServiceProxy extends ServiceProxyBase { + private instance: AxiosInstance; + private baseUrl: string; + protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; + + constructor(baseUrl?: string, instance?: AxiosInstance) { + super(); + this.instance = instance ? instance : axios.create(); + this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; } /** - * 创建文件 + * 分页查询普通消息 * @param body (optional) * @return Success */ - create(body: CreateFileInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Files/create"; + common(body: PagingNotificationListInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Notification/Common"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -1474,6 +1491,7 @@ export class FilesServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", + "Accept": "text/plain" }, cancelToken }; @@ -1487,11 +1505,11 @@ export class FilesServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreate(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCommon(_response)); }); } - protected processCreate(response: AxiosResponse): Promise { + protected processCommon(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -1503,7 +1521,10 @@ export class FilesServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - return Promise.resolve(null as any); + let result200: any = null; + let resultData200 = _responseText; + result200 = PagingNotificationListOutputPagedResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -1551,16 +1572,16 @@ export class FilesServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 分页查询 + * 分页查询广播消息 * @param body (optional) * @return Success */ - page(body: PagingFileInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Files/page"; + broadCast(body: PagingNotificationListInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Notification/BroadCast"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -1585,11 +1606,11 @@ export class FilesServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPage(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processBroadCast(_response)); }); } - protected processPage(response: AxiosResponse): Promise { + protected processBroadCast(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -1603,8 +1624,8 @@ export class FilesServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = PagingFileOutputPagedResultDto.fromJS(resultData200); - return Promise.resolve(result200); + result200 = PagingNotificationListOutputPagedResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -1652,28 +1673,16 @@ export class FilesServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); - } -} - -export class EsLogServiceProxy extends ServiceProxyBase { - private instance: AxiosInstance; - private baseUrl: string; - protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; - - constructor(baseUrl?: string, instance?: AxiosInstance) { - super(); - this.instance = instance ? instance : axios.create(); - this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; + return Promise.resolve(null as any); } /** - * 分页获取Es日志 + * 发送警告文本消息 * @param body (optional) * @return Success */ - page(body: PagingElasticSearchLogInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/EsLog/page"; + sendCommonWarningMessage(body: SendCommonMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Notification/SendCommonWarningMessage"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -1684,7 +1693,6 @@ export class EsLogServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", - "Accept": "text/plain" }, cancelToken }; @@ -1698,11 +1706,11 @@ export class EsLogServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPage(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendCommonWarningMessage(_response)); }); } - protected processPage(response: AxiosResponse): Promise { + protected processSendCommonWarningMessage(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -1714,10 +1722,7 @@ export class EsLogServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - let result200: any = null; - let resultData200 = _responseText; - result200 = PagingElasticSearchLogOutputCustomePagedResultDto.fromJS(resultData200); - return Promise.resolve(result200); + return Promise.resolve(null as any); } else if (status === 403) { const _responseText = response.data; @@ -1765,28 +1770,16 @@ export class EsLogServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); - } -} - -export class NotificationServiceProxy extends ServiceProxyBase { - private instance: AxiosInstance; - private baseUrl: string; - protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; - - constructor(baseUrl?: string, instance?: AxiosInstance) { - super(); - this.instance = instance ? instance : axios.create(); - this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; + return Promise.resolve(null as any); } /** - * 分页查询普通消息 + * 发送普通文本消息 * @param body (optional) * @return Success */ - common(body: PagingNotificationListInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Notification/Common"; + sendCommonInformationMessage(body: SendCommonMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Notification/SendCommonInformationMessage"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -1797,7 +1790,6 @@ export class NotificationServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", - "Accept": "text/plain" }, cancelToken }; @@ -1811,11 +1803,11 @@ export class NotificationServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCommon(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendCommonInformationMessage(_response)); }); } - protected processCommon(response: AxiosResponse): Promise { + protected processSendCommonInformationMessage(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -1827,10 +1819,7 @@ export class NotificationServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - let result200: any = null; - let resultData200 = _responseText; - result200 = PagingNotificationListOutputPagedResultDto.fromJS(resultData200); - return Promise.resolve(result200); + return Promise.resolve(null as any); } else if (status === 403) { const _responseText = response.data; @@ -1878,16 +1867,16 @@ export class NotificationServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 分页查询广播消息 + * 发送错误文本消息 * @param body (optional) * @return Success */ - broadCast(body: PagingNotificationListInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Notification/BroadCast"; + sendCommonErrorMessage(body: SendCommonMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Notification/SendCommonErrorMessage"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -1898,7 +1887,6 @@ export class NotificationServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", - "Accept": "text/plain" }, cancelToken }; @@ -1912,11 +1900,11 @@ export class NotificationServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processBroadCast(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendCommonErrorMessage(_response)); }); } - protected processBroadCast(response: AxiosResponse): Promise { + protected processSendCommonErrorMessage(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -1928,10 +1916,7 @@ export class NotificationServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - let result200: any = null; - let resultData200 = _responseText; - result200 = PagingNotificationListOutputPagedResultDto.fromJS(resultData200); - return Promise.resolve(result200); + return Promise.resolve(null as any); } else if (status === 403) { const _responseText = response.data; @@ -1979,16 +1964,16 @@ export class NotificationServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 发送警告文本消息 + * 发送警告广播消息 * @param body (optional) * @return Success */ - sendCommonWarningMessage(body: SendCommonMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Notification/SendCommonWarningMessage"; + sendBroadCastWarningMessage(body: SendBroadCastMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Notification/SendBroadCastWarningMessage"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -2012,11 +1997,11 @@ export class NotificationServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendCommonWarningMessage(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendBroadCastWarningMessage(_response)); }); } - protected processSendCommonWarningMessage(response: AxiosResponse): Promise { + protected processSendBroadCastWarningMessage(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -2080,12 +2065,12 @@ export class NotificationServiceProxy extends ServiceProxyBase { } /** - * 发送普通文本消息 + * 发送正常广播消息 * @param body (optional) * @return Success */ - sendCommonInformationMessage(body: SendCommonMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Notification/SendCommonInformationMessage"; + sendBroadCastInformationMessage(body: SendBroadCastMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Notification/SendBroadCastInformationMessage"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -2109,11 +2094,11 @@ export class NotificationServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendCommonInformationMessage(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendBroadCastInformationMessage(_response)); }); } - protected processSendCommonInformationMessage(response: AxiosResponse): Promise { + protected processSendBroadCastInformationMessage(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -2177,12 +2162,12 @@ export class NotificationServiceProxy extends ServiceProxyBase { } /** - * 发送错误文本消息 + * 发送错误广播消息 * @param body (optional) * @return Success */ - sendCommonErrorMessage(body: SendCommonMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Notification/SendCommonErrorMessage"; + sendBroadCastErrorMessage(body: SendBroadCastMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Notification/SendBroadCastErrorMessage"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -2206,11 +2191,11 @@ export class NotificationServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendCommonErrorMessage(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendBroadCastErrorMessage(_response)); }); } - protected processSendCommonErrorMessage(response: AxiosResponse): Promise { + protected processSendBroadCastErrorMessage(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -2274,12 +2259,12 @@ export class NotificationServiceProxy extends ServiceProxyBase { } /** - * 发送警告广播消息 + * 消息设置为已读 * @param body (optional) * @return Success */ - sendBroadCastWarningMessage(body: SendBroadCastMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Notification/SendBroadCastWarningMessage"; + read(body: SetReadInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Notification/Read"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -2303,11 +2288,11 @@ export class NotificationServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendBroadCastWarningMessage(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processRead(_response)); }); } - protected processSendBroadCastWarningMessage(response: AxiosResponse): Promise { + protected processRead(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -2369,24 +2354,32 @@ export class NotificationServiceProxy extends ServiceProxyBase { } return Promise.resolve(null as any); } +} + +export class OrganizationUnitsServiceProxy extends ServiceProxyBase { + private instance: AxiosInstance; + private baseUrl: string; + protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; + + constructor(baseUrl?: string, instance?: AxiosInstance) { + super(); + this.instance = instance ? instance : axios.create(); + this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; + } /** - * 发送正常广播消息 - * @param body (optional) + * 获取组织机构树 * @return Success */ - sendBroadCastInformationMessage(body: SendBroadCastMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Notification/SendBroadCastInformationMessage"; + tree( cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/tree"; url_ = url_.replace(/[?&]$/, ""); - const content_ = JSON.stringify(body); - let options_ = { - data: content_, method: "POST", url: url_, headers: { - "Content-Type": "application/json", + "Accept": "text/plain" }, cancelToken }; @@ -2400,11 +2393,11 @@ export class NotificationServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendBroadCastInformationMessage(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processTree(_response)); }); } - protected processSendBroadCastInformationMessage(response: AxiosResponse): Promise { + protected processTree(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -2416,7 +2409,17 @@ export class NotificationServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - return Promise.resolve(null as any); + let result200: any = null; + let resultData200 = _responseText; + if (Array.isArray(resultData200)) { + result200 = [] as any; + for (let item of resultData200) + result200!.push(TreeOutput.fromJS(item)); + } + else { + result200 = null; + } + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -2464,16 +2467,16 @@ export class NotificationServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 发送错误广播消息 + * 创建组织机构 * @param body (optional) * @return Success */ - sendBroadCastErrorMessage(body: SendBroadCastMessageInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Notification/SendBroadCastErrorMessage"; + create(body: CreateOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/create"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -2497,11 +2500,11 @@ export class NotificationServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processSendBroadCastErrorMessage(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreate(_response)); }); } - protected processSendBroadCastErrorMessage(response: AxiosResponse): Promise { + protected processCreate(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -2565,12 +2568,12 @@ export class NotificationServiceProxy extends ServiceProxyBase { } /** - * 消息设置为已读 + * 删除组织机构 * @param body (optional) * @return Success */ - read(body: SetReadInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Notification/Read"; + delete(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/delete"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -2594,11 +2597,11 @@ export class NotificationServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processRead(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDelete(_response)); }); } - protected processRead(response: AxiosResponse): Promise { + protected processDelete(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -2660,32 +2663,24 @@ export class NotificationServiceProxy extends ServiceProxyBase { } return Promise.resolve(null as any); } -} - -export class OrganizationUnitsServiceProxy extends ServiceProxyBase { - private instance: AxiosInstance; - private baseUrl: string; - protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; - - constructor(baseUrl?: string, instance?: AxiosInstance) { - super(); - this.instance = instance ? instance : axios.create(); - this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; - } /** - * 获取组织机构树 + * 编辑组织机构 + * @param body (optional) * @return Success */ - tree( cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/tree"; + update(body: UpdateOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/update"; url_ = url_.replace(/[?&]$/, ""); + const content_ = JSON.stringify(body); + let options_ = { + data: content_, method: "POST", url: url_, headers: { - "Accept": "text/plain" + "Content-Type": "application/json", }, cancelToken }; @@ -2699,11 +2694,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processTree(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdate(_response)); }); } - protected processTree(response: AxiosResponse): Promise { + protected processUpdate(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -2715,17 +2710,7 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - let result200: any = null; - let resultData200 = _responseText; - if (Array.isArray(resultData200)) { - result200 = [] as any; - for (let item of resultData200) - result200!.push(TreeOutput.fromJS(item)); - } - else { - result200 = null; - } - return Promise.resolve(result200); + return Promise.resolve(null as any); } else if (status === 403) { const _responseText = response.data; @@ -2773,16 +2758,16 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 创建组织机构 + * 向组织机构添加角色 * @param body (optional) * @return Success */ - create(body: CreateOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/create"; + addRoleToOrganizationUnit(body: AddRoleToOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/addRoleToOrganizationUnitAsync"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -2806,11 +2791,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreate(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processAddRoleToOrganizationUnit(_response)); }); } - protected processCreate(response: AxiosResponse): Promise { + protected processAddRoleToOrganizationUnit(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -2874,12 +2859,12 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { } /** - * 删除组织机构 + * 向组织机构删除角色 * @param body (optional) * @return Success */ - delete(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/delete"; + removeRoleFromOrganizationUnit(body: RemoveRoleToOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/removeRoleFromOrganizationUnitAsync"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -2903,11 +2888,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDelete(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processRemoveRoleFromOrganizationUnit(_response)); }); } - protected processDelete(response: AxiosResponse): Promise { + protected processRemoveRoleFromOrganizationUnit(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -2971,12 +2956,12 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { } /** - * 编辑组织机构 + * 向组织机构添加用户 * @param body (optional) * @return Success */ - update(body: UpdateOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/update"; + addUserToOrganizationUnit(body: AddUserToOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/addUserToOrganizationUnit"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -3000,11 +2985,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdate(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processAddUserToOrganizationUnit(_response)); }); } - protected processUpdate(response: AxiosResponse): Promise { + protected processAddUserToOrganizationUnit(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -3068,12 +3053,12 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { } /** - * 向组织机构添加角色 + * 向组织机构删除用户 * @param body (optional) * @return Success */ - addRoleToOrganizationUnit(body: AddRoleToOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/addRoleToOrganizationUnitAsync"; + removeUserFromOrganizationUnit(body: RemoveUserToOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/removeUserFromOrganizationUnit"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -3097,11 +3082,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processAddRoleToOrganizationUnit(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processRemoveUserFromOrganizationUnit(_response)); }); } - protected processAddRoleToOrganizationUnit(response: AxiosResponse): Promise { + protected processRemoveUserFromOrganizationUnit(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -3165,12 +3150,12 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { } /** - * 向组织机构删除角色 + * 分页获取组织机构下用户 * @param body (optional) * @return Success */ - removeRoleFromOrganizationUnit(body: RemoveRoleToOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/removeRoleFromOrganizationUnitAsync"; + getUsers(body: GetOrganizationUnitUserInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/getUsers"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -3181,6 +3166,7 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", + "Accept": "text/plain" }, cancelToken }; @@ -3194,11 +3180,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processRemoveRoleFromOrganizationUnit(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processGetUsers(_response)); }); } - protected processRemoveRoleFromOrganizationUnit(response: AxiosResponse): Promise { + protected processGetUsers(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -3210,7 +3196,10 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - return Promise.resolve(null as any); + let result200: any = null; + let resultData200 = _responseText; + result200 = GetOrganizationUnitUserOutputPagedResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -3258,16 +3247,16 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 向组织机构添加用户 + * 分页获取组织机构下角色 * @param body (optional) * @return Success */ - addUserToOrganizationUnit(body: AddUserToOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/addUserToOrganizationUnit"; + getRoles(body: GetOrganizationUnitRoleInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/getRoles"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -3278,6 +3267,7 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", + "Accept": "text/plain" }, cancelToken }; @@ -3291,11 +3281,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processAddUserToOrganizationUnit(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processGetRoles(_response)); }); } - protected processAddUserToOrganizationUnit(response: AxiosResponse): Promise { + protected processGetRoles(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -3307,7 +3297,10 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - return Promise.resolve(null as any); + let result200: any = null; + let resultData200 = _responseText; + result200 = GetOrganizationUnitRoleOutputPagedResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -3355,16 +3348,16 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 向组织机构删除用户 + * 获取不在组织机构的用户 * @param body (optional) * @return Success */ - removeUserFromOrganizationUnit(body: RemoveUserToOrganizationUnitInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/removeUserFromOrganizationUnit"; + getUnAddUsers(body: GetUnAddUserInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/getUnAddUsers"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -3375,6 +3368,7 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", + "Accept": "text/plain" }, cancelToken }; @@ -3388,11 +3382,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processRemoveUserFromOrganizationUnit(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processGetUnAddUsers(_response)); }); } - protected processRemoveUserFromOrganizationUnit(response: AxiosResponse): Promise { + protected processGetUnAddUsers(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -3404,7 +3398,10 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - return Promise.resolve(null as any); + let result200: any = null; + let resultData200 = _responseText; + result200 = GetUnAddUserOutputPagedResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -3452,16 +3449,16 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 分页获取组织机构下用户 + * 获取不在组织机构的角色 * @param body (optional) * @return Success */ - getUsers(body: GetOrganizationUnitUserInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/getUsers"; + getUnAddRoles(body: GetUnAddRoleInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/OrganizationUnits/getUnAddRoles"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -3486,11 +3483,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processGetUsers(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processGetUnAddRoles(_response)); }); } - protected processGetUsers(response: AxiosResponse): Promise { + protected processGetUnAddRoles(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -3504,8 +3501,8 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = GetOrganizationUnitUserOutputPagedResultDto.fromJS(resultData200); - return Promise.resolve(result200); + result200 = GetUnAddRoleOutputPagedResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -3553,16 +3550,28 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); + } +} + +export class PermissionsServiceProxy extends ServiceProxyBase { + private instance: AxiosInstance; + private baseUrl: string; + protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; + + constructor(baseUrl?: string, instance?: AxiosInstance) { + super(); + this.instance = instance ? instance : axios.create(); + this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; } /** - * 分页获取组织机构下角色 + * 获取角色权限 * @param body (optional) * @return Success */ - getRoles(body: GetOrganizationUnitRoleInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/getRoles"; + tree(body: GetPermissionInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Permissions/tree"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -3587,11 +3596,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processGetRoles(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processTree(_response)); }); } - protected processGetRoles(response: AxiosResponse): Promise { + protected processTree(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -3605,8 +3614,8 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = GetOrganizationUnitRoleOutputPagedResultDto.fromJS(resultData200); - return Promise.resolve(result200); + result200 = PermissionOutput.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -3654,16 +3663,16 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 获取不在组织机构的用户 + * 更新角色 * @param body (optional) * @return Success */ - getUnAddUsers(body: GetUnAddUserInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/getUnAddUsers"; + update(body: UpdateRolePermissionsInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Permissions/update"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -3674,7 +3683,6 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", - "Accept": "text/plain" }, cancelToken }; @@ -3688,11 +3696,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processGetUnAddUsers(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdate(_response)); }); } - protected processGetUnAddUsers(response: AxiosResponse): Promise { + protected processUpdate(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -3704,10 +3712,7 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - let result200: any = null; - let resultData200 = _responseText; - result200 = GetUnAddUserOutputPagedResultDto.fromJS(resultData200); - return Promise.resolve(result200); + return Promise.resolve(null as any); } else if (status === 403) { const _responseText = response.data; @@ -3755,26 +3760,33 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); + } +} + +export class RolesServiceProxy extends ServiceProxyBase { + private instance: AxiosInstance; + private baseUrl: string; + protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; + + constructor(baseUrl?: string, instance?: AxiosInstance) { + super(); + this.instance = instance ? instance : axios.create(); + this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; } /** - * 获取不在组织机构的角色 - * @param body (optional) + * 获取所有角色 * @return Success */ - getUnAddRoles(body: GetUnAddRoleInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/OrganizationUnits/getUnAddRoles"; + all( cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Roles/all"; url_ = url_.replace(/[?&]$/, ""); - const content_ = JSON.stringify(body); - let options_ = { - data: content_, method: "POST", url: url_, headers: { - "Content-Type": "application/json", "Accept": "text/plain" }, cancelToken @@ -3789,11 +3801,11 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processGetUnAddRoles(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processAll(_response)); }); } - protected processGetUnAddRoles(response: AxiosResponse): Promise { + protected processAll(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -3807,8 +3819,8 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = GetUnAddRoleOutputPagedResultDto.fromJS(resultData200); - return Promise.resolve(result200); + result200 = IdentityRoleDtoListResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -3856,28 +3868,16 @@ export class OrganizationUnitsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); - } -} - -export class PermissionsServiceProxy extends ServiceProxyBase { - private instance: AxiosInstance; - private baseUrl: string; - protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; - - constructor(baseUrl?: string, instance?: AxiosInstance) { - super(); - this.instance = instance ? instance : axios.create(); - this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; + return Promise.resolve(null as any); } /** - * 获取角色权限 + * 分页获取角色 * @param body (optional) * @return Success */ - tree(body: GetPermissionInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Permissions/tree"; + page(body: PagingRoleListInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Roles/page"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -3902,11 +3902,11 @@ export class PermissionsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processTree(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPage(_response)); }); } - protected processTree(response: AxiosResponse): Promise { + protected processPage(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -3920,8 +3920,8 @@ export class PermissionsServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = PermissionOutput.fromJS(resultData200); - return Promise.resolve(result200); + result200 = IdentityRoleDtoPagedResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -3969,16 +3969,16 @@ export class PermissionsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 更新角色 + * 创建角色 * @param body (optional) * @return Success */ - update(body: UpdateRolePermissionsInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Permissions/update"; + create(body: IdentityRoleCreateDto | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Roles/create"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -3989,6 +3989,7 @@ export class PermissionsServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", + "Accept": "text/plain" }, cancelToken }; @@ -4002,11 +4003,11 @@ export class PermissionsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdate(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreate(_response)); }); } - protected processUpdate(response: AxiosResponse): Promise { + protected processCreate(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -4018,7 +4019,10 @@ export class PermissionsServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - return Promise.resolve(null as any); + let result200: any = null; + let resultData200 = _responseText; + result200 = IdentityRoleDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -4066,33 +4070,26 @@ export class PermissionsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); - } -} - -export class RolesServiceProxy extends ServiceProxyBase { - private instance: AxiosInstance; - private baseUrl: string; - protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; - - constructor(baseUrl?: string, instance?: AxiosInstance) { - super(); - this.instance = instance ? instance : axios.create(); - this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; + return Promise.resolve(null as any); } /** - * 获取所有角色 + * 更新角色 + * @param body (optional) * @return Success */ - all( cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Roles/all"; + update(body: UpdateRoleInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Roles/update"; url_ = url_.replace(/[?&]$/, ""); + const content_ = JSON.stringify(body); + let options_ = { + data: content_, method: "POST", url: url_, headers: { + "Content-Type": "application/json", "Accept": "text/plain" }, cancelToken @@ -4107,11 +4104,11 @@ export class RolesServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processAll(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdate(_response)); }); } - protected processAll(response: AxiosResponse): Promise { + protected processUpdate(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -4125,8 +4122,8 @@ export class RolesServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = IdentityRoleDtoListResultDto.fromJS(resultData200); - return Promise.resolve(result200); + result200 = IdentityRoleDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -4174,16 +4171,16 @@ export class RolesServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 分页获取角色 + * 删除角色 * @param body (optional) * @return Success */ - page(body: PagingRoleListInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Roles/page"; + delete(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Roles/delete"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -4194,7 +4191,6 @@ export class RolesServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", - "Accept": "text/plain" }, cancelToken }; @@ -4208,11 +4204,11 @@ export class RolesServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPage(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDelete(_response)); }); } - protected processPage(response: AxiosResponse): Promise { + protected processDelete(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -4224,10 +4220,7 @@ export class RolesServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - let result200: any = null; - let resultData200 = _responseText; - result200 = IdentityRoleDtoPagedResultDto.fromJS(resultData200); - return Promise.resolve(result200); + return Promise.resolve(null as any); } else if (status === 403) { const _responseText = response.data; @@ -4275,26 +4268,33 @@ export class RolesServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); + } +} + +export class SettingsServiceProxy extends ServiceProxyBase { + private instance: AxiosInstance; + private baseUrl: string; + protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; + + constructor(baseUrl?: string, instance?: AxiosInstance) { + super(); + this.instance = instance ? instance : axios.create(); + this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; } /** - * 创建角色 - * @param body (optional) + * 获取所有Setting * @return Success */ - create(body: IdentityRoleCreateDto | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Roles/create"; + all( cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Settings/all"; url_ = url_.replace(/[?&]$/, ""); - const content_ = JSON.stringify(body); - let options_ = { - data: content_, method: "POST", url: url_, headers: { - "Content-Type": "application/json", "Accept": "text/plain" }, cancelToken @@ -4309,11 +4309,11 @@ export class RolesServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreate(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processAll(_response)); }); } - protected processCreate(response: AxiosResponse): Promise { + protected processAll(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -4327,8 +4327,15 @@ export class RolesServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = IdentityRoleDto.fromJS(resultData200); - return Promise.resolve(result200); + if (Array.isArray(resultData200)) { + result200 = [] as any; + for (let item of resultData200) + result200!.push(SettingOutput.fromJS(item)); + } + else { + result200 = null; + } + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -4376,16 +4383,16 @@ export class RolesServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 更新角色 + * 更新Setting * @param body (optional) * @return Success */ - update(body: UpdateRoleInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Roles/update"; + update(body: UpdateSettingInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Settings/update"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -4396,7 +4403,6 @@ export class RolesServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", - "Accept": "text/plain" }, cancelToken }; @@ -4414,7 +4420,7 @@ export class RolesServiceProxy extends ServiceProxyBase { }); } - protected processUpdate(response: AxiosResponse): Promise { + protected processUpdate(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -4426,10 +4432,7 @@ export class RolesServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - let result200: any = null; - let resultData200 = _responseText; - result200 = IdentityRoleDto.fromJS(resultData200); - return Promise.resolve(result200); + return Promise.resolve(null as any); } else if (status === 403) { const _responseText = response.data; @@ -4477,16 +4480,28 @@ export class RolesServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); + } +} + +export class TenantsServiceProxy extends ServiceProxyBase { + private instance: AxiosInstance; + private baseUrl: string; + protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; + + constructor(baseUrl?: string, instance?: AxiosInstance) { + super(); + this.instance = instance ? instance : axios.create(); + this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; } /** - * 删除角色 + * 通过名称获取租户信息 * @param body (optional) * @return Success */ - delete(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Roles/delete"; + find(body: FindTenantByNameInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Tenants/find"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -4497,6 +4512,7 @@ export class RolesServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", + "Accept": "text/plain" }, cancelToken }; @@ -4510,11 +4526,11 @@ export class RolesServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDelete(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processFind(_response)); }); } - protected processDelete(response: AxiosResponse): Promise { + protected processFind(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -4526,7 +4542,10 @@ export class RolesServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - return Promise.resolve(null as any); + let result200: any = null; + let resultData200 = _responseText; + result200 = FindTenantResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -4574,33 +4593,26 @@ export class RolesServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); - } -} - -export class SettingsServiceProxy extends ServiceProxyBase { - private instance: AxiosInstance; - private baseUrl: string; - protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; - - constructor(baseUrl?: string, instance?: AxiosInstance) { - super(); - this.instance = instance ? instance : axios.create(); - this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; + return Promise.resolve(null as any); } /** - * 获取所有Setting + * 分页获取租户信息 + * @param body (optional) * @return Success */ - all( cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Settings/all"; + page(body: PagingTenantInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Tenants/page"; url_ = url_.replace(/[?&]$/, ""); + const content_ = JSON.stringify(body); + let options_ = { + data: content_, method: "POST", url: url_, headers: { + "Content-Type": "application/json", "Accept": "text/plain" }, cancelToken @@ -4615,11 +4627,11 @@ export class SettingsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processAll(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPage(_response)); }); } - protected processAll(response: AxiosResponse): Promise { + protected processPage(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -4633,15 +4645,8 @@ export class SettingsServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - if (Array.isArray(resultData200)) { - result200 = [] as any; - for (let item of resultData200) - result200!.push(SettingOutput.fromJS(item)); - } - else { - result200 = null; - } - return Promise.resolve(result200); + result200 = TenantDtoPagedResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -4689,16 +4694,16 @@ export class SettingsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 更新Setting + * 创建租户 * @param body (optional) * @return Success */ - update(body: UpdateSettingInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Settings/update"; + create(body: TenantCreateDto | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Tenants/create"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -4709,6 +4714,7 @@ export class SettingsServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", + "Accept": "text/plain" }, cancelToken }; @@ -4722,11 +4728,11 @@ export class SettingsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdate(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreate(_response)); }); } - protected processUpdate(response: AxiosResponse): Promise { + protected processCreate(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -4738,7 +4744,10 @@ export class SettingsServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - return Promise.resolve(null as any); + let result200: any = null; + let resultData200 = _responseText; + result200 = TenantDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -4786,28 +4795,16 @@ export class SettingsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); - } -} - -export class TenantsServiceProxy extends ServiceProxyBase { - private instance: AxiosInstance; - private baseUrl: string; - protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; - - constructor(baseUrl?: string, instance?: AxiosInstance) { - super(); - this.instance = instance ? instance : axios.create(); - this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; + return Promise.resolve(null as any); } /** - * 通过名称获取租户信息 + * 更新租户 * @param body (optional) * @return Success */ - find(body: FindTenantByNameInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Tenants/find"; + update(body: UpdateTenantInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Tenants/update"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -4832,11 +4829,11 @@ export class TenantsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processFind(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdate(_response)); }); } - protected processFind(response: AxiosResponse): Promise { + protected processUpdate(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -4850,8 +4847,8 @@ export class TenantsServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = FindTenantResultDto.fromJS(resultData200); - return Promise.resolve(result200); + result200 = TenantDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -4899,16 +4896,16 @@ export class TenantsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 分页获取租户信息 + * 删除租户 * @param body (optional) * @return Success */ - page(body: PagingTenantInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Tenants/page"; + delete(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Tenants/delete"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -4919,7 +4916,6 @@ export class TenantsServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", - "Accept": "text/plain" }, cancelToken }; @@ -4933,11 +4929,11 @@ export class TenantsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPage(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDelete(_response)); }); } - protected processPage(response: AxiosResponse): Promise { + protected processDelete(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -4949,10 +4945,7 @@ export class TenantsServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - let result200: any = null; - let resultData200 = _responseText; - result200 = TenantDtoPagedResultDto.fromJS(resultData200); - return Promise.resolve(result200); + return Promise.resolve(null as any); } else if (status === 403) { const _responseText = response.data; @@ -5000,16 +4993,16 @@ export class TenantsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 创建租户 + * 获取租户连接字符串 * @param body (optional) * @return Success */ - create(body: TenantCreateDto | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Tenants/create"; + getConnectionString(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Tenants/getConnectionString"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -5034,11 +5027,11 @@ export class TenantsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreate(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processGetConnectionString(_response)); }); } - protected processCreate(response: AxiosResponse): Promise { + protected processGetConnectionString(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -5052,8 +5045,9 @@ export class TenantsServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = TenantDto.fromJS(resultData200); - return Promise.resolve(result200); + result200 = resultData200 !== undefined ? resultData200 : null; + + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -5101,16 +5095,16 @@ export class TenantsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 更新租户 + * 更新租户连接字符串 * @param body (optional) * @return Success */ - update(body: UpdateTenantInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Tenants/update"; + updateConnectionString(body: UpdateConnectionStringInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Tenants/updateConnectionString"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -5121,7 +5115,6 @@ export class TenantsServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", - "Accept": "text/plain" }, cancelToken }; @@ -5135,11 +5128,11 @@ export class TenantsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdate(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdateConnectionString(_response)); }); } - protected processUpdate(response: AxiosResponse): Promise { + protected processUpdateConnectionString(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -5151,10 +5144,7 @@ export class TenantsServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - let result200: any = null; - let resultData200 = _responseText; - result200 = TenantDto.fromJS(resultData200); - return Promise.resolve(result200); + return Promise.resolve(null as any); } else if (status === 403) { const _responseText = response.data; @@ -5202,16 +5192,16 @@ export class TenantsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 删除租户 + * 删除租户连接字符串 * @param body (optional) * @return Success */ - delete(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Tenants/delete"; + deleteConnectionString(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Tenants/deleteConnectionString"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -5235,11 +5225,11 @@ export class TenantsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDelete(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDeleteConnectionString(_response)); }); } - protected processDelete(response: AxiosResponse): Promise { + protected processDeleteConnectionString(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -5301,14 +5291,26 @@ export class TenantsServiceProxy extends ServiceProxyBase { } return Promise.resolve(null as any); } +} + +export class UsersServiceProxy extends ServiceProxyBase { + private instance: AxiosInstance; + private baseUrl: string; + protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; + + constructor(baseUrl?: string, instance?: AxiosInstance) { + super(); + this.instance = instance ? instance : axios.create(); + this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; + } /** - * 获取租户连接字符串 + * 分页获取用户信息 * @param body (optional) * @return Success */ - getConnectionString(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Tenants/getConnectionString"; + page(body: PagingUserListInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Users/page"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -5333,11 +5335,11 @@ export class TenantsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processGetConnectionString(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPage(_response)); }); } - protected processGetConnectionString(response: AxiosResponse): Promise { + protected processPage(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -5351,9 +5353,8 @@ export class TenantsServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = resultData200 !== undefined ? resultData200 : null; - - return Promise.resolve(result200); + result200 = IdentityUserDtoPagedResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -5401,26 +5402,28 @@ export class TenantsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 更新租户连接字符串 + * 导出用户列表 * @param body (optional) * @return Success */ - updateConnectionString(body: UpdateConnectionStringInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Tenants/updateConnectionString"; + export(body: PagingUserListInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Users/export"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); let options_ = { data: content_, + responseType: "blob", method: "POST", url: url_, headers: { "Content-Type": "application/json", + "Accept": "text/plain" }, cancelToken }; @@ -5434,11 +5437,11 @@ export class TenantsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdateConnectionString(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processExport(_response)); }); } - protected processUpdateConnectionString(response: AxiosResponse): Promise { + protected processExport(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -5448,10 +5451,11 @@ export class TenantsServiceProxy extends ServiceProxyBase { } } } - if (status === 200) { - const _responseText = response.data; - return Promise.resolve(null as any); - + if (status === 200 || status === 206) { + const contentDisposition = response.headers ? response.headers["content-disposition"] : undefined; + const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined; + const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined; + return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data], { type: response.headers["content-type"] }), headers: _headers }); } else if (status === 403) { const _responseText = response.data; let result403: any = null; @@ -5498,16 +5502,16 @@ export class TenantsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 删除租户连接字符串 + * 创建用户 * @param body (optional) * @return Success */ - deleteConnectionString(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Tenants/deleteConnectionString"; + create(body: IdentityUserCreateDto | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Users/create"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -5518,6 +5522,7 @@ export class TenantsServiceProxy extends ServiceProxyBase { url: url_, headers: { "Content-Type": "application/json", + "Accept": "text/plain" }, cancelToken }; @@ -5531,11 +5536,11 @@ export class TenantsServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDeleteConnectionString(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreate(_response)); }); } - protected processDeleteConnectionString(response: AxiosResponse): Promise { + protected processCreate(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -5547,7 +5552,10 @@ export class TenantsServiceProxy extends ServiceProxyBase { } if (status === 200) { const _responseText = response.data; - return Promise.resolve(null as any); + let result200: any = null; + let resultData200 = _responseText; + result200 = IdentityUserDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -5595,28 +5603,16 @@ export class TenantsServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); - } -} - -export class UsersServiceProxy extends ServiceProxyBase { - private instance: AxiosInstance; - private baseUrl: string; - protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; - - constructor(baseUrl?: string, instance?: AxiosInstance) { - super(); - this.instance = instance ? instance : axios.create(); - this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; + return Promise.resolve(null as any); } /** - * 分页获取用户信息 + * 编辑用户 * @param body (optional) * @return Success */ - page(body: PagingUserListInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Users/page"; + update(body: UpdateUserInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Users/update"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -5641,11 +5637,11 @@ export class UsersServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPage(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdate(_response)); }); } - protected processPage(response: AxiosResponse): Promise { + protected processUpdate(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -5659,8 +5655,8 @@ export class UsersServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = IdentityUserDtoPagedResultDto.fromJS(resultData200); - return Promise.resolve(result200); + result200 = IdentityUserDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -5708,28 +5704,26 @@ export class UsersServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 导出用户列表 + * 删除用户 * @param body (optional) * @return Success */ - export(body: PagingUserListInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Users/export"; + delete(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Users/delete"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); let options_ = { data: content_, - responseType: "blob", method: "POST", url: url_, headers: { "Content-Type": "application/json", - "Accept": "text/plain" }, cancelToken }; @@ -5743,11 +5737,11 @@ export class UsersServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processExport(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDelete(_response)); }); } - protected processExport(response: AxiosResponse): Promise { + protected processDelete(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -5757,11 +5751,10 @@ export class UsersServiceProxy extends ServiceProxyBase { } } } - if (status === 200 || status === 206) { - const contentDisposition = response.headers ? response.headers["content-disposition"] : undefined; - const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined; - const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined; - return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data], { type: response.headers["content-type"] }), headers: _headers }); + if (status === 200) { + const _responseText = response.data; + return Promise.resolve(null as any); + } else if (status === 403) { const _responseText = response.data; let result403: any = null; @@ -5808,16 +5801,16 @@ export class UsersServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 创建用户 + * 获取用户角色信息 * @param body (optional) * @return Success */ - create(body: IdentityUserCreateDto | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Users/create"; + role(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Users/role"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -5842,11 +5835,11 @@ export class UsersServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreate(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processRole(_response)); }); } - protected processCreate(response: AxiosResponse): Promise { + protected processRole(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -5860,8 +5853,8 @@ export class UsersServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = IdentityUserDto.fromJS(resultData200); - return Promise.resolve(result200); + result200 = IdentityRoleDtoListResultDto.fromJS(resultData200); + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -5909,16 +5902,16 @@ export class UsersServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 编辑用户 + * 修改当前用户密码 * @param body (optional) * @return Success */ - update(body: UpdateUserInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Users/update"; + changePassword(body: ChangePasswordInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Users/changePassword"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -5943,11 +5936,11 @@ export class UsersServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdate(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processChangePassword(_response)); }); } - protected processUpdate(response: AxiosResponse): Promise { + protected processChangePassword(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -5961,8 +5954,9 @@ export class UsersServiceProxy extends ServiceProxyBase { const _responseText = response.data; let result200: any = null; let resultData200 = _responseText; - result200 = IdentityUserDto.fromJS(resultData200); - return Promise.resolve(result200); + result200 = resultData200 !== undefined ? resultData200 : null; + + return Promise.resolve(result200); } else if (status === 403) { const _responseText = response.data; @@ -6010,16 +6004,16 @@ export class UsersServiceProxy extends ServiceProxyBase { const _responseText = response.data; return throwException("An unexpected server error occurred.", status, _responseText, _headers); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } /** - * 删除用户 + * 锁定用户 * @param body (optional) * @return Success */ - delete(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Users/delete"; + lock(body: LockUserInput | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/Users/lock"; url_ = url_.replace(/[?&]$/, ""); const content_ = JSON.stringify(body); @@ -6043,11 +6037,11 @@ export class UsersServiceProxy extends ServiceProxyBase { throw _error; } }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDelete(_response)); + return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processLock(_response)); }); } - protected processDelete(response: AxiosResponse): Promise { + protected processLock(response: AxiosResponse): Promise { const status = response.status; let _headers: any = {}; if (response.headers && typeof response.headers === "object") { @@ -6109,327 +6103,27 @@ export class UsersServiceProxy extends ServiceProxyBase { } return Promise.resolve(null as any); } +} - /** - * 获取用户角色信息 - * @param body (optional) - * @return Success - */ - role(body: IdInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Users/role"; - url_ = url_.replace(/[?&]$/, ""); - - const content_ = JSON.stringify(body); - - let options_ = { - data: content_, - method: "POST", - url: url_, - headers: { - "Content-Type": "application/json", - "Accept": "text/plain" - }, - cancelToken - }; +export class AbpLoginResult implements IAbpLoginResult { + result!: LoginResultType; + readonly description!: string | undefined; - return this.transformOptions(options_).then(transformedOptions_ => { - return this.instance.request(transformedOptions_); - }).catch((_error: any) => { - if (isAxiosError(_error) && _error.response) { - return _error.response; - } else { - throw _error; + constructor(data?: IAbpLoginResult) { + if (data) { + for (var property in data) { + if (data.hasOwnProperty(property)) + (this)[property] = (data)[property]; } - }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processRole(_response)); - }); + } } - protected processRole(response: AxiosResponse): Promise { - const status = response.status; - let _headers: any = {}; - if (response.headers && typeof response.headers === "object") { - for (let k in response.headers) { - if (response.headers.hasOwnProperty(k)) { - _headers[k] = response.headers[k]; - } - } + init(_data?: any) { + if (_data) { + this.result = _data["result"]; + (this).description = _data["description"]; } - if (status === 200) { - const _responseText = response.data; - let result200: any = null; - let resultData200 = _responseText; - result200 = IdentityRoleDtoListResultDto.fromJS(resultData200); - return Promise.resolve(result200); - - } else if (status === 403) { - const _responseText = response.data; - let result403: any = null; - let resultData403 = _responseText; - result403 = RemoteServiceErrorResponse.fromJS(resultData403); - return throwException("Forbidden", status, _responseText, _headers, result403); - - } else if (status === 401) { - const _responseText = response.data; - let result401: any = null; - let resultData401 = _responseText; - result401 = RemoteServiceErrorResponse.fromJS(resultData401); - return throwException("Unauthorized", status, _responseText, _headers, result401); - - } else if (status === 400) { - const _responseText = response.data; - let result400: any = null; - let resultData400 = _responseText; - result400 = RemoteServiceErrorResponse.fromJS(resultData400); - return throwException("Bad Request", status, _responseText, _headers, result400); - - } else if (status === 404) { - const _responseText = response.data; - let result404: any = null; - let resultData404 = _responseText; - result404 = RemoteServiceErrorResponse.fromJS(resultData404); - return throwException("Not Found", status, _responseText, _headers, result404); - - } else if (status === 501) { - const _responseText = response.data; - let result501: any = null; - let resultData501 = _responseText; - result501 = RemoteServiceErrorResponse.fromJS(resultData501); - return throwException("Server Error", status, _responseText, _headers, result501); - - } else if (status === 500) { - const _responseText = response.data; - let result500: any = null; - let resultData500 = _responseText; - result500 = RemoteServiceErrorResponse.fromJS(resultData500); - return throwException("Server Error", status, _responseText, _headers, result500); - - } else if (status !== 200 && status !== 204) { - const _responseText = response.data; - return throwException("An unexpected server error occurred.", status, _responseText, _headers); - } - return Promise.resolve(null as any); - } - - /** - * 修改当前用户密码 - * @param body (optional) - * @return Success - */ - changePassword(body: ChangePasswordInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Users/changePassword"; - url_ = url_.replace(/[?&]$/, ""); - - const content_ = JSON.stringify(body); - - let options_ = { - data: content_, - method: "POST", - url: url_, - headers: { - "Content-Type": "application/json", - "Accept": "text/plain" - }, - cancelToken - }; - - return this.transformOptions(options_).then(transformedOptions_ => { - return this.instance.request(transformedOptions_); - }).catch((_error: any) => { - if (isAxiosError(_error) && _error.response) { - return _error.response; - } else { - throw _error; - } - }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processChangePassword(_response)); - }); - } - - protected processChangePassword(response: AxiosResponse): Promise { - const status = response.status; - let _headers: any = {}; - if (response.headers && typeof response.headers === "object") { - for (let k in response.headers) { - if (response.headers.hasOwnProperty(k)) { - _headers[k] = response.headers[k]; - } - } - } - if (status === 200) { - const _responseText = response.data; - let result200: any = null; - let resultData200 = _responseText; - result200 = resultData200 !== undefined ? resultData200 : null; - - return Promise.resolve(result200); - - } else if (status === 403) { - const _responseText = response.data; - let result403: any = null; - let resultData403 = _responseText; - result403 = RemoteServiceErrorResponse.fromJS(resultData403); - return throwException("Forbidden", status, _responseText, _headers, result403); - - } else if (status === 401) { - const _responseText = response.data; - let result401: any = null; - let resultData401 = _responseText; - result401 = RemoteServiceErrorResponse.fromJS(resultData401); - return throwException("Unauthorized", status, _responseText, _headers, result401); - - } else if (status === 400) { - const _responseText = response.data; - let result400: any = null; - let resultData400 = _responseText; - result400 = RemoteServiceErrorResponse.fromJS(resultData400); - return throwException("Bad Request", status, _responseText, _headers, result400); - - } else if (status === 404) { - const _responseText = response.data; - let result404: any = null; - let resultData404 = _responseText; - result404 = RemoteServiceErrorResponse.fromJS(resultData404); - return throwException("Not Found", status, _responseText, _headers, result404); - - } else if (status === 501) { - const _responseText = response.data; - let result501: any = null; - let resultData501 = _responseText; - result501 = RemoteServiceErrorResponse.fromJS(resultData501); - return throwException("Server Error", status, _responseText, _headers, result501); - - } else if (status === 500) { - const _responseText = response.data; - let result500: any = null; - let resultData500 = _responseText; - result500 = RemoteServiceErrorResponse.fromJS(resultData500); - return throwException("Server Error", status, _responseText, _headers, result500); - - } else if (status !== 200 && status !== 204) { - const _responseText = response.data; - return throwException("An unexpected server error occurred.", status, _responseText, _headers); - } - return Promise.resolve(null as any); - } - - /** - * 锁定用户 - * @param body (optional) - * @return Success - */ - lock(body: LockUserInput | undefined , cancelToken?: CancelToken | undefined): Promise { - let url_ = this.baseUrl + "/Users/lock"; - url_ = url_.replace(/[?&]$/, ""); - - const content_ = JSON.stringify(body); - - let options_ = { - data: content_, - method: "POST", - url: url_, - headers: { - "Content-Type": "application/json", - }, - cancelToken - }; - - return this.transformOptions(options_).then(transformedOptions_ => { - return this.instance.request(transformedOptions_); - }).catch((_error: any) => { - if (isAxiosError(_error) && _error.response) { - return _error.response; - } else { - throw _error; - } - }).then((_response: AxiosResponse) => { - return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processLock(_response)); - }); - } - - protected processLock(response: AxiosResponse): Promise { - const status = response.status; - let _headers: any = {}; - if (response.headers && typeof response.headers === "object") { - for (let k in response.headers) { - if (response.headers.hasOwnProperty(k)) { - _headers[k] = response.headers[k]; - } - } - } - if (status === 200) { - const _responseText = response.data; - return Promise.resolve(null as any); - - } else if (status === 403) { - const _responseText = response.data; - let result403: any = null; - let resultData403 = _responseText; - result403 = RemoteServiceErrorResponse.fromJS(resultData403); - return throwException("Forbidden", status, _responseText, _headers, result403); - - } else if (status === 401) { - const _responseText = response.data; - let result401: any = null; - let resultData401 = _responseText; - result401 = RemoteServiceErrorResponse.fromJS(resultData401); - return throwException("Unauthorized", status, _responseText, _headers, result401); - - } else if (status === 400) { - const _responseText = response.data; - let result400: any = null; - let resultData400 = _responseText; - result400 = RemoteServiceErrorResponse.fromJS(resultData400); - return throwException("Bad Request", status, _responseText, _headers, result400); - - } else if (status === 404) { - const _responseText = response.data; - let result404: any = null; - let resultData404 = _responseText; - result404 = RemoteServiceErrorResponse.fromJS(resultData404); - return throwException("Not Found", status, _responseText, _headers, result404); - - } else if (status === 501) { - const _responseText = response.data; - let result501: any = null; - let resultData501 = _responseText; - result501 = RemoteServiceErrorResponse.fromJS(resultData501); - return throwException("Server Error", status, _responseText, _headers, result501); - - } else if (status === 500) { - const _responseText = response.data; - let result500: any = null; - let resultData500 = _responseText; - result500 = RemoteServiceErrorResponse.fromJS(resultData500); - return throwException("Server Error", status, _responseText, _headers, result500); - - } else if (status !== 200 && status !== 204) { - const _responseText = response.data; - return throwException("An unexpected server error occurred.", status, _responseText, _headers); - } - return Promise.resolve(null as any); - } -} - -export class AbpLoginResult implements IAbpLoginResult { - result!: LoginResultType; - readonly description!: string | undefined; - - constructor(data?: IAbpLoginResult) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.result = _data["result"]; - (this).description = _data["description"]; - } - } + } static fromJS(data: any): AbpLoginResult { data = typeof data === 'object' ? data : {}; @@ -6827,6 +6521,7 @@ export class ApplicationConfigurationDto implements IApplicationConfigurationDto timing!: TimingDto; clock!: ClockDto; objectExtensions!: ObjectExtensionsDto; + extraProperties!: { [key: string]: any; } | undefined; constructor(data?: IApplicationConfigurationDto) { if (data) { @@ -6850,6 +6545,13 @@ export class ApplicationConfigurationDto implements IApplicationConfigurationDto this.timing = _data["timing"] ? TimingDto.fromJS(_data["timing"]) : undefined; this.clock = _data["clock"] ? ClockDto.fromJS(_data["clock"]) : undefined; this.objectExtensions = _data["objectExtensions"] ? ObjectExtensionsDto.fromJS(_data["objectExtensions"]) : undefined; + if (_data["extraProperties"]) { + this.extraProperties = {} as any; + for (let key in _data["extraProperties"]) { + if (_data["extraProperties"].hasOwnProperty(key)) + (this.extraProperties)![key] = _data["extraProperties"][key]; + } + } } } @@ -6873,6 +6575,13 @@ export class ApplicationConfigurationDto implements IApplicationConfigurationDto data["timing"] = this.timing ? this.timing.toJSON() : undefined; data["clock"] = this.clock ? this.clock.toJSON() : undefined; data["objectExtensions"] = this.objectExtensions ? this.objectExtensions.toJSON() : undefined; + if (this.extraProperties) { + data["extraProperties"] = {}; + for (let key in this.extraProperties) { + if (this.extraProperties.hasOwnProperty(key)) + (data["extraProperties"])[key] = (this.extraProperties)[key]; + } + } return data; } } @@ -6889,6 +6598,7 @@ export interface IApplicationConfigurationDto { timing: TimingDto; clock: ClockDto; objectExtensions: ObjectExtensionsDto; + extraProperties: { [key: string]: any; } | undefined; } export class ApplicationFeatureConfigurationDto implements IApplicationFeatureConfigurationDto { @@ -7419,46 +7129,6 @@ export interface ICreateDataDictinaryInput { description: string | undefined; } -export class CreateFileInput implements ICreateFileInput { - fileName!: string; - filePath!: string; - - constructor(data?: ICreateFileInput) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.fileName = _data["fileName"]; - this.filePath = _data["filePath"]; - } - } - - static fromJS(data: any): CreateFileInput { - data = typeof data === 'object' ? data : {}; - let result = new CreateFileInput(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["fileName"] = this.fileName; - data["filePath"] = this.filePath; - return data; - } -} - -export interface ICreateFileInput { - fileName: string; - filePath: string; -} - export class CreateOrganizationUnitInput implements ICreateOrganizationUnitInput { displayName!: string; parentId!: string | undefined; @@ -7811,74 +7481,6 @@ export interface IDeleteDataDictionaryDetailInput { dataDictionayDetailId: string; } -export class EmailSettingsDto implements IEmailSettingsDto { - smtpHost!: string | undefined; - smtpPort!: number; - smtpUserName!: string | undefined; - smtpPassword!: string | undefined; - smtpDomain!: string | undefined; - smtpEnableSsl!: boolean; - smtpUseDefaultCredentials!: boolean; - defaultFromAddress!: string | undefined; - defaultFromDisplayName!: string | undefined; - - constructor(data?: IEmailSettingsDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.smtpHost = _data["smtpHost"]; - this.smtpPort = _data["smtpPort"]; - this.smtpUserName = _data["smtpUserName"]; - this.smtpPassword = _data["smtpPassword"]; - this.smtpDomain = _data["smtpDomain"]; - this.smtpEnableSsl = _data["smtpEnableSsl"]; - this.smtpUseDefaultCredentials = _data["smtpUseDefaultCredentials"]; - this.defaultFromAddress = _data["defaultFromAddress"]; - this.defaultFromDisplayName = _data["defaultFromDisplayName"]; - } - } - - static fromJS(data: any): EmailSettingsDto { - data = typeof data === 'object' ? data : {}; - let result = new EmailSettingsDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["smtpHost"] = this.smtpHost; - data["smtpPort"] = this.smtpPort; - data["smtpUserName"] = this.smtpUserName; - data["smtpPassword"] = this.smtpPassword; - data["smtpDomain"] = this.smtpDomain; - data["smtpEnableSsl"] = this.smtpEnableSsl; - data["smtpUseDefaultCredentials"] = this.smtpUseDefaultCredentials; - data["defaultFromAddress"] = this.defaultFromAddress; - data["defaultFromDisplayName"] = this.defaultFromDisplayName; - return data; - } -} - -export interface IEmailSettingsDto { - smtpHost: string | undefined; - smtpPort: number; - smtpUserName: string | undefined; - smtpPassword: string | undefined; - smtpDomain: string | undefined; - smtpEnableSsl: boolean; - smtpUseDefaultCredentials: boolean; - defaultFromAddress: string | undefined; - defaultFromDisplayName: string | undefined; -} - export class EntityExtensionDto implements IEntityExtensionDto { properties!: { [key: string]: ExtensionPropertyDto; } | undefined; configuration!: { [key: string]: any; } | undefined; @@ -8424,194 +8026,41 @@ export class ExtensionPropertyUiLookupDto implements IExtensionPropertyUiLookupD this.url = _data["url"]; this.resultListPropertyName = _data["resultListPropertyName"]; this.displayPropertyName = _data["displayPropertyName"]; - this.valuePropertyName = _data["valuePropertyName"]; - this.filterParamName = _data["filterParamName"]; - } - } - - static fromJS(data: any): ExtensionPropertyUiLookupDto { - data = typeof data === 'object' ? data : {}; - let result = new ExtensionPropertyUiLookupDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["url"] = this.url; - data["resultListPropertyName"] = this.resultListPropertyName; - data["displayPropertyName"] = this.displayPropertyName; - data["valuePropertyName"] = this.valuePropertyName; - data["filterParamName"] = this.filterParamName; - return data; - } -} - -export interface IExtensionPropertyUiLookupDto { - url: string | undefined; - resultListPropertyName: string | undefined; - displayPropertyName: string | undefined; - valuePropertyName: string | undefined; - filterParamName: string | undefined; -} - -export class ExtensionPropertyUiTableDto implements IExtensionPropertyUiTableDto { - isVisible!: boolean; - - constructor(data?: IExtensionPropertyUiTableDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.isVisible = _data["isVisible"]; - } - } - - static fromJS(data: any): ExtensionPropertyUiTableDto { - data = typeof data === 'object' ? data : {}; - let result = new ExtensionPropertyUiTableDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["isVisible"] = this.isVisible; - return data; - } -} - -export interface IExtensionPropertyUiTableDto { - isVisible: boolean; -} - -export class FeatureDto implements IFeatureDto { - name!: string | undefined; - displayName!: string | undefined; - value!: string | undefined; - provider!: FeatureProviderDto; - description!: string | undefined; - valueType!: IStringValueType; - depth!: number; - parentName!: string | undefined; - - constructor(data?: IFeatureDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.name = _data["name"]; - this.displayName = _data["displayName"]; - this.value = _data["value"]; - this.provider = _data["provider"] ? FeatureProviderDto.fromJS(_data["provider"]) : undefined; - this.description = _data["description"]; - this.valueType = _data["valueType"] ? IStringValueType.fromJS(_data["valueType"]) : undefined; - this.depth = _data["depth"]; - this.parentName = _data["parentName"]; - } - } - - static fromJS(data: any): FeatureDto { - data = typeof data === 'object' ? data : {}; - let result = new FeatureDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["name"] = this.name; - data["displayName"] = this.displayName; - data["value"] = this.value; - data["provider"] = this.provider ? this.provider.toJSON() : undefined; - data["description"] = this.description; - data["valueType"] = this.valueType ? this.valueType.toJSON() : undefined; - data["depth"] = this.depth; - data["parentName"] = this.parentName; - return data; - } -} - -export interface IFeatureDto { - name: string | undefined; - displayName: string | undefined; - value: string | undefined; - provider: FeatureProviderDto; - description: string | undefined; - valueType: IStringValueType; - depth: number; - parentName: string | undefined; -} - -export class FeatureGroupDto implements IFeatureGroupDto { - name!: string | undefined; - displayName!: string | undefined; - features!: FeatureDto[] | undefined; - - constructor(data?: IFeatureGroupDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.name = _data["name"]; - this.displayName = _data["displayName"]; - if (Array.isArray(_data["features"])) { - this.features = [] as any; - for (let item of _data["features"]) - this.features!.push(FeatureDto.fromJS(item)); - } + this.valuePropertyName = _data["valuePropertyName"]; + this.filterParamName = _data["filterParamName"]; } } - static fromJS(data: any): FeatureGroupDto { + static fromJS(data: any): ExtensionPropertyUiLookupDto { data = typeof data === 'object' ? data : {}; - let result = new FeatureGroupDto(); + let result = new ExtensionPropertyUiLookupDto(); result.init(data); return result; } toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["name"] = this.name; - data["displayName"] = this.displayName; - if (Array.isArray(this.features)) { - data["features"] = []; - for (let item of this.features) - data["features"].push(item.toJSON()); - } + data["url"] = this.url; + data["resultListPropertyName"] = this.resultListPropertyName; + data["displayPropertyName"] = this.displayPropertyName; + data["valuePropertyName"] = this.valuePropertyName; + data["filterParamName"] = this.filterParamName; return data; } } -export interface IFeatureGroupDto { - name: string | undefined; - displayName: string | undefined; - features: FeatureDto[] | undefined; +export interface IExtensionPropertyUiLookupDto { + url: string | undefined; + resultListPropertyName: string | undefined; + displayPropertyName: string | undefined; + valuePropertyName: string | undefined; + filterParamName: string | undefined; } -export class FeatureProviderDto implements IFeatureProviderDto { - name!: string | undefined; - key!: string | undefined; +export class ExtensionPropertyUiTableDto implements IExtensionPropertyUiTableDto { + isVisible!: boolean; - constructor(data?: IFeatureProviderDto) { + constructor(data?: IExtensionPropertyUiTableDto) { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) @@ -8622,29 +8071,26 @@ export class FeatureProviderDto implements IFeatureProviderDto { init(_data?: any) { if (_data) { - this.name = _data["name"]; - this.key = _data["key"]; + this.isVisible = _data["isVisible"]; } } - static fromJS(data: any): FeatureProviderDto { + static fromJS(data: any): ExtensionPropertyUiTableDto { data = typeof data === 'object' ? data : {}; - let result = new FeatureProviderDto(); + let result = new ExtensionPropertyUiTableDto(); result.init(data); return result; } toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["name"] = this.name; - data["key"] = this.key; + data["isVisible"] = this.isVisible; return data; } } -export interface IFeatureProviderDto { - name: string | undefined; - key: string | undefined; +export interface IExtensionPropertyUiTableDto { + isVisible: boolean; } export class FileAggregateRoute implements IFileAggregateRoute { @@ -9683,62 +9129,6 @@ export interface IFileServiceDiscoveryProvider { namespace: string | undefined; } -export class FileTokenOutput implements IFileTokenOutput { - accessKeyId!: string | undefined; - accessKeySecret!: string | undefined; - token!: string | undefined; - expiration!: string | undefined; - bucket!: string | undefined; - region!: string | undefined; - - constructor(data?: IFileTokenOutput) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.accessKeyId = _data["accessKeyId"]; - this.accessKeySecret = _data["accessKeySecret"]; - this.token = _data["token"]; - this.expiration = _data["expiration"]; - this.bucket = _data["bucket"]; - this.region = _data["region"]; - } - } - - static fromJS(data: any): FileTokenOutput { - data = typeof data === 'object' ? data : {}; - let result = new FileTokenOutput(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["accessKeyId"] = this.accessKeyId; - data["accessKeySecret"] = this.accessKeySecret; - data["token"] = this.token; - data["expiration"] = this.expiration; - data["bucket"] = this.bucket; - data["region"] = this.region; - return data; - } -} - -export interface IFileTokenOutput { - accessKeyId: string | undefined; - accessKeySecret: string | undefined; - token: string | undefined; - expiration: string | undefined; - bucket: string | undefined; - region: string | undefined; -} - export class FindTenantByNameInput implements IFindTenantByNameInput { name!: string | undefined; @@ -9979,50 +9369,6 @@ export interface IGetAuditLogPageListOutputPagedResultDto { totalCount: number; } -export class GetFeatureListResultDto implements IGetFeatureListResultDto { - groups!: FeatureGroupDto[] | undefined; - - constructor(data?: IGetFeatureListResultDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - if (Array.isArray(_data["groups"])) { - this.groups = [] as any; - for (let item of _data["groups"]) - this.groups!.push(FeatureGroupDto.fromJS(item)); - } - } - } - - static fromJS(data: any): GetFeatureListResultDto { - data = typeof data === 'object' ? data : {}; - let result = new GetFeatureListResultDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - if (Array.isArray(this.groups)) { - data["groups"] = []; - for (let item of this.groups) - data["groups"].push(item.toJSON()); - } - return data; - } -} - -export interface IGetFeatureListResultDto { - groups: FeatureGroupDto[] | undefined; -} - export class GetOrganizationUnitRoleInput implements IGetOrganizationUnitRoleInput { pageIndex!: number; pageSize!: number; @@ -10343,54 +9689,6 @@ export interface IGetPermissionInput { providerKey: string; } -export class GetPermissionListResultDto implements IGetPermissionListResultDto { - entityDisplayName!: string | undefined; - groups!: PermissionGroupDto[] | undefined; - - constructor(data?: IGetPermissionListResultDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.entityDisplayName = _data["entityDisplayName"]; - if (Array.isArray(_data["groups"])) { - this.groups = [] as any; - for (let item of _data["groups"]) - this.groups!.push(PermissionGroupDto.fromJS(item)); - } - } - } - - static fromJS(data: any): GetPermissionListResultDto { - data = typeof data === 'object' ? data : {}; - let result = new GetPermissionListResultDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["entityDisplayName"] = this.entityDisplayName; - if (Array.isArray(this.groups)) { - data["groups"] = []; - for (let item of this.groups) - data["groups"].push(item.toJSON()); - } - return data; - } -} - -export interface IGetPermissionListResultDto { - entityDisplayName: string | undefined; - groups: PermissionGroupDto[] | undefined; -} - export class GetUnAddRoleInput implements IGetUnAddRoleInput { pageIndex!: number; pageSize!: number; @@ -10739,114 +10037,6 @@ export enum HttpStatusCode { HttpVersionNotSupported = 511, } -export class IStringValueType implements IIStringValueType { - readonly name!: string | undefined; - readonly properties!: { [key: string]: any; } | undefined; - validator!: IValueValidator; - - constructor(data?: IIStringValueType) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - (this).name = _data["name"]; - if (_data["properties"]) { - (this).properties = {} as any; - for (let key in _data["properties"]) { - if (_data["properties"].hasOwnProperty(key)) - ((this).properties)![key] = _data["properties"][key]; - } - } - this.validator = _data["validator"] ? IValueValidator.fromJS(_data["validator"]) : undefined; - } - } - - static fromJS(data: any): IStringValueType { - data = typeof data === 'object' ? data : {}; - let result = new IStringValueType(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["name"] = this.name; - if (this.properties) { - data["properties"] = {}; - for (let key in this.properties) { - if (this.properties.hasOwnProperty(key)) - (data["properties"])[key] = (this.properties)[key]; - } - } - data["validator"] = this.validator ? this.validator.toJSON() : undefined; - return data; - } -} - -export interface IIStringValueType { - name: string | undefined; - properties: { [key: string]: any; } | undefined; - validator: IValueValidator; -} - -export class IValueValidator implements IIValueValidator { - readonly name!: string | undefined; - readonly properties!: { [key: string]: any; } | undefined; - - constructor(data?: IIValueValidator) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - (this).name = _data["name"]; - if (_data["properties"]) { - (this).properties = {} as any; - for (let key in _data["properties"]) { - if (_data["properties"].hasOwnProperty(key)) - ((this).properties)![key] = _data["properties"][key]; - } - } - } - } - - static fromJS(data: any): IValueValidator { - data = typeof data === 'object' ? data : {}; - let result = new IValueValidator(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["name"] = this.name; - if (this.properties) { - data["properties"] = {}; - for (let key in this.properties) { - if (this.properties.hasOwnProperty(key)) - (data["properties"])[key] = (this.properties)[key]; - } - } - return data; - } -} - -export interface IIValueValidator { - name: string | undefined; - properties: { [key: string]: any; } | undefined; -} - export class IanaTimeZone implements IIanaTimeZone { timeZoneName!: string | undefined; @@ -11561,61 +10751,14 @@ export interface IIdentityUserUpdateDto { extraProperties: { [key: string]: any; } | undefined; userName: string; name: string | undefined; - surname: string | undefined; - email: string; - phoneNumber: string | undefined; - isActive: boolean; - lockoutEnabled: boolean; - roleNames: string[] | undefined; - password: string | undefined; - concurrencyStamp: string | undefined; -} - -export class IdentityUserUpdateRolesDto implements IIdentityUserUpdateRolesDto { - roleNames!: string[]; - - constructor(data?: IIdentityUserUpdateRolesDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - if (!data) { - this.roleNames = []; - } - } - - init(_data?: any) { - if (_data) { - if (Array.isArray(_data["roleNames"])) { - this.roleNames = [] as any; - for (let item of _data["roleNames"]) - this.roleNames!.push(item); - } - } - } - - static fromJS(data: any): IdentityUserUpdateRolesDto { - data = typeof data === 'object' ? data : {}; - let result = new IdentityUserUpdateRolesDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - if (Array.isArray(this.roleNames)) { - data["roleNames"] = []; - for (let item of this.roleNames) - data["roleNames"].push(item); - } - return data; - } -} - -export interface IIdentityUserUpdateRolesDto { - roleNames: string[]; + surname: string | undefined; + email: string; + phoneNumber: string | undefined; + isActive: boolean; + lockoutEnabled: boolean; + roleNames: string[] | undefined; + password: string | undefined; + concurrencyStamp: string | undefined; } export class LanguageInfo implements ILanguageInfo { @@ -12725,154 +11868,6 @@ export interface IPagingElasticSearchLogOutputCustomePagedResultDto { totalCount: number; } -export class PagingFileInput implements IPagingFileInput { - pageIndex!: number; - pageSize!: number; - readonly skipCount!: number; - filter!: string | undefined; - - constructor(data?: IPagingFileInput) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.pageIndex = _data["pageIndex"]; - this.pageSize = _data["pageSize"]; - (this).skipCount = _data["skipCount"]; - this.filter = _data["filter"]; - } - } - - static fromJS(data: any): PagingFileInput { - data = typeof data === 'object' ? data : {}; - let result = new PagingFileInput(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["pageIndex"] = this.pageIndex; - data["pageSize"] = this.pageSize; - data["skipCount"] = this.skipCount; - data["filter"] = this.filter; - return data; - } -} - -export interface IPagingFileInput { - pageIndex: number; - pageSize: number; - skipCount: number; - filter: string | undefined; -} - -export class PagingFileOutput implements IPagingFileOutput { - id!: string; - tenantId!: string | undefined; - fileName!: string | undefined; - filePath!: string | undefined; - creationTime!: dayjs.Dayjs; - - constructor(data?: IPagingFileOutput) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.id = _data["id"]; - this.tenantId = _data["tenantId"]; - this.fileName = _data["fileName"]; - this.filePath = _data["filePath"]; - this.creationTime = _data["creationTime"] ? dayjs(_data["creationTime"].toString()) : undefined; - } - } - - static fromJS(data: any): PagingFileOutput { - data = typeof data === 'object' ? data : {}; - let result = new PagingFileOutput(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["id"] = this.id; - data["tenantId"] = this.tenantId; - data["fileName"] = this.fileName; - data["filePath"] = this.filePath; - data["creationTime"] = this.creationTime ? this.creationTime.toISOString() : undefined; - return data; - } -} - -export interface IPagingFileOutput { - id: string; - tenantId: string | undefined; - fileName: string | undefined; - filePath: string | undefined; - creationTime: dayjs.Dayjs; -} - -export class PagingFileOutputPagedResultDto implements IPagingFileOutputPagedResultDto { - items!: PagingFileOutput[] | undefined; - totalCount!: number; - - constructor(data?: IPagingFileOutputPagedResultDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - if (Array.isArray(_data["items"])) { - this.items = [] as any; - for (let item of _data["items"]) - this.items!.push(PagingFileOutput.fromJS(item)); - } - this.totalCount = _data["totalCount"]; - } - } - - static fromJS(data: any): PagingFileOutputPagedResultDto { - data = typeof data === 'object' ? data : {}; - let result = new PagingFileOutputPagedResultDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - if (Array.isArray(this.items)) { - data["items"] = []; - for (let item of this.items) - data["items"].push(item.toJSON()); - } - data["totalCount"] = this.totalCount; - return data; - } -} - -export interface IPagingFileOutputPagedResultDto { - items: PagingFileOutput[] | undefined; - totalCount: number; -} - export class PagingNotificationListInput implements IPagingNotificationListInput { pageIndex!: number; pageSize!: number; @@ -13169,176 +12164,31 @@ export class PagingUserListInput implements IPagingUserListInput { data["pageIndex"] = this.pageIndex; data["pageSize"] = this.pageSize; data["skipCount"] = this.skipCount; - data["filter"] = this.filter; - return data; - } -} - -export interface IPagingUserListInput { - pageIndex: number; - pageSize: number; - skipCount: number; - filter: string | undefined; -} - -export class ParameterApiDescriptionModel implements IParameterApiDescriptionModel { - nameOnMethod!: string | undefined; - name!: string | undefined; - jsonName!: string | undefined; - type!: string | undefined; - typeSimple!: string | undefined; - isOptional!: boolean; - defaultValue!: any | undefined; - constraintTypes!: string[] | undefined; - bindingSourceId!: string | undefined; - descriptorName!: string | undefined; - - constructor(data?: IParameterApiDescriptionModel) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.nameOnMethod = _data["nameOnMethod"]; - this.name = _data["name"]; - this.jsonName = _data["jsonName"]; - this.type = _data["type"]; - this.typeSimple = _data["typeSimple"]; - this.isOptional = _data["isOptional"]; - this.defaultValue = _data["defaultValue"]; - if (Array.isArray(_data["constraintTypes"])) { - this.constraintTypes = [] as any; - for (let item of _data["constraintTypes"]) - this.constraintTypes!.push(item); - } - this.bindingSourceId = _data["bindingSourceId"]; - this.descriptorName = _data["descriptorName"]; - } - } - - static fromJS(data: any): ParameterApiDescriptionModel { - data = typeof data === 'object' ? data : {}; - let result = new ParameterApiDescriptionModel(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["nameOnMethod"] = this.nameOnMethod; - data["name"] = this.name; - data["jsonName"] = this.jsonName; - data["type"] = this.type; - data["typeSimple"] = this.typeSimple; - data["isOptional"] = this.isOptional; - data["defaultValue"] = this.defaultValue; - if (Array.isArray(this.constraintTypes)) { - data["constraintTypes"] = []; - for (let item of this.constraintTypes) - data["constraintTypes"].push(item); - } - data["bindingSourceId"] = this.bindingSourceId; - data["descriptorName"] = this.descriptorName; - return data; - } -} - -export interface IParameterApiDescriptionModel { - nameOnMethod: string | undefined; - name: string | undefined; - jsonName: string | undefined; - type: string | undefined; - typeSimple: string | undefined; - isOptional: boolean; - defaultValue: any | undefined; - constraintTypes: string[] | undefined; - bindingSourceId: string | undefined; - descriptorName: string | undefined; -} - -export class PermissionGrantInfoDto implements IPermissionGrantInfoDto { - name!: string | undefined; - displayName!: string | undefined; - parentName!: string | undefined; - isGranted!: boolean; - allowedProviders!: string[] | undefined; - grantedProviders!: ProviderInfoDto[] | undefined; - - constructor(data?: IPermissionGrantInfoDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.name = _data["name"]; - this.displayName = _data["displayName"]; - this.parentName = _data["parentName"]; - this.isGranted = _data["isGranted"]; - if (Array.isArray(_data["allowedProviders"])) { - this.allowedProviders = [] as any; - for (let item of _data["allowedProviders"]) - this.allowedProviders!.push(item); - } - if (Array.isArray(_data["grantedProviders"])) { - this.grantedProviders = [] as any; - for (let item of _data["grantedProviders"]) - this.grantedProviders!.push(ProviderInfoDto.fromJS(item)); - } - } - } - - static fromJS(data: any): PermissionGrantInfoDto { - data = typeof data === 'object' ? data : {}; - let result = new PermissionGrantInfoDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["name"] = this.name; - data["displayName"] = this.displayName; - data["parentName"] = this.parentName; - data["isGranted"] = this.isGranted; - if (Array.isArray(this.allowedProviders)) { - data["allowedProviders"] = []; - for (let item of this.allowedProviders) - data["allowedProviders"].push(item); - } - if (Array.isArray(this.grantedProviders)) { - data["grantedProviders"] = []; - for (let item of this.grantedProviders) - data["grantedProviders"].push(item.toJSON()); - } + data["filter"] = this.filter; return data; } } -export interface IPermissionGrantInfoDto { - name: string | undefined; - displayName: string | undefined; - parentName: string | undefined; - isGranted: boolean; - allowedProviders: string[] | undefined; - grantedProviders: ProviderInfoDto[] | undefined; +export interface IPagingUserListInput { + pageIndex: number; + pageSize: number; + skipCount: number; + filter: string | undefined; } -export class PermissionGroupDto implements IPermissionGroupDto { +export class ParameterApiDescriptionModel implements IParameterApiDescriptionModel { + nameOnMethod!: string | undefined; name!: string | undefined; - displayName!: string | undefined; - permissions!: PermissionGrantInfoDto[] | undefined; + jsonName!: string | undefined; + type!: string | undefined; + typeSimple!: string | undefined; + isOptional!: boolean; + defaultValue!: any | undefined; + constraintTypes!: string[] | undefined; + bindingSourceId!: string | undefined; + descriptorName!: string | undefined; - constructor(data?: IPermissionGroupDto) { + constructor(data?: IParameterApiDescriptionModel) { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) @@ -13349,40 +12199,61 @@ export class PermissionGroupDto implements IPermissionGroupDto { init(_data?: any) { if (_data) { + this.nameOnMethod = _data["nameOnMethod"]; this.name = _data["name"]; - this.displayName = _data["displayName"]; - if (Array.isArray(_data["permissions"])) { - this.permissions = [] as any; - for (let item of _data["permissions"]) - this.permissions!.push(PermissionGrantInfoDto.fromJS(item)); + this.jsonName = _data["jsonName"]; + this.type = _data["type"]; + this.typeSimple = _data["typeSimple"]; + this.isOptional = _data["isOptional"]; + this.defaultValue = _data["defaultValue"]; + if (Array.isArray(_data["constraintTypes"])) { + this.constraintTypes = [] as any; + for (let item of _data["constraintTypes"]) + this.constraintTypes!.push(item); } + this.bindingSourceId = _data["bindingSourceId"]; + this.descriptorName = _data["descriptorName"]; } } - static fromJS(data: any): PermissionGroupDto { + static fromJS(data: any): ParameterApiDescriptionModel { data = typeof data === 'object' ? data : {}; - let result = new PermissionGroupDto(); + let result = new ParameterApiDescriptionModel(); result.init(data); return result; } toJSON(data?: any) { data = typeof data === 'object' ? data : {}; + data["nameOnMethod"] = this.nameOnMethod; data["name"] = this.name; - data["displayName"] = this.displayName; - if (Array.isArray(this.permissions)) { - data["permissions"] = []; - for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["jsonName"] = this.jsonName; + data["type"] = this.type; + data["typeSimple"] = this.typeSimple; + data["isOptional"] = this.isOptional; + data["defaultValue"] = this.defaultValue; + if (Array.isArray(this.constraintTypes)) { + data["constraintTypes"] = []; + for (let item of this.constraintTypes) + data["constraintTypes"].push(item); } + data["bindingSourceId"] = this.bindingSourceId; + data["descriptorName"] = this.descriptorName; return data; } } -export interface IPermissionGroupDto { +export interface IParameterApiDescriptionModel { + nameOnMethod: string | undefined; name: string | undefined; - displayName: string | undefined; - permissions: PermissionGrantInfoDto[] | undefined; + jsonName: string | undefined; + type: string | undefined; + typeSimple: string | undefined; + isOptional: boolean; + defaultValue: any | undefined; + constraintTypes: string[] | undefined; + bindingSourceId: string | undefined; + descriptorName: string | undefined; } export class PermissionOutput implements IPermissionOutput { @@ -13505,92 +12376,17 @@ export interface IPermissionTreeDto { children: PermissionTreeDto[] | undefined; } -export class ProfileDto implements IProfileDto { - readonly extraProperties!: { [key: string]: any; } | undefined; - userName!: string | undefined; - email!: string | undefined; - name!: string | undefined; - surname!: string | undefined; - phoneNumber!: string | undefined; - isExternal!: boolean; - hasPassword!: boolean; - concurrencyStamp!: string | undefined; - - constructor(data?: IProfileDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - if (_data["extraProperties"]) { - (this).extraProperties = {} as any; - for (let key in _data["extraProperties"]) { - if (_data["extraProperties"].hasOwnProperty(key)) - ((this).extraProperties)![key] = _data["extraProperties"][key]; - } - } - this.userName = _data["userName"]; - this.email = _data["email"]; - this.name = _data["name"]; - this.surname = _data["surname"]; - this.phoneNumber = _data["phoneNumber"]; - this.isExternal = _data["isExternal"]; - this.hasPassword = _data["hasPassword"]; - this.concurrencyStamp = _data["concurrencyStamp"]; - } - } - - static fromJS(data: any): ProfileDto { - data = typeof data === 'object' ? data : {}; - let result = new ProfileDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - if (this.extraProperties) { - data["extraProperties"] = {}; - for (let key in this.extraProperties) { - if (this.extraProperties.hasOwnProperty(key)) - (data["extraProperties"])[key] = (this.extraProperties)[key]; - } - } - data["userName"] = this.userName; - data["email"] = this.email; - data["name"] = this.name; - data["surname"] = this.surname; - data["phoneNumber"] = this.phoneNumber; - data["isExternal"] = this.isExternal; - data["hasPassword"] = this.hasPassword; - data["concurrencyStamp"] = this.concurrencyStamp; - return data; - } -} - -export interface IProfileDto { - extraProperties: { [key: string]: any; } | undefined; - userName: string | undefined; - email: string | undefined; - name: string | undefined; - surname: string | undefined; - phoneNumber: string | undefined; - isExternal: boolean; - hasPassword: boolean; - concurrencyStamp: string | undefined; -} - export class PropertyApiDescriptionModel implements IPropertyApiDescriptionModel { name!: string | undefined; jsonName!: string | undefined; type!: string | undefined; typeSimple!: string | undefined; isRequired!: boolean; + minLength!: number | undefined; + maxLength!: number | undefined; + minimum!: string | undefined; + maximum!: string | undefined; + regex!: string | undefined; constructor(data?: IPropertyApiDescriptionModel) { if (data) { @@ -13608,6 +12404,11 @@ export class PropertyApiDescriptionModel implements IPropertyApiDescriptionModel this.type = _data["type"]; this.typeSimple = _data["typeSimple"]; this.isRequired = _data["isRequired"]; + this.minLength = _data["minLength"]; + this.maxLength = _data["maxLength"]; + this.minimum = _data["minimum"]; + this.maximum = _data["maximum"]; + this.regex = _data["regex"]; } } @@ -13625,6 +12426,11 @@ export class PropertyApiDescriptionModel implements IPropertyApiDescriptionModel data["type"] = this.type; data["typeSimple"] = this.typeSimple; data["isRequired"] = this.isRequired; + data["minLength"] = this.minLength; + data["maxLength"] = this.maxLength; + data["minimum"] = this.minimum; + data["maximum"] = this.maximum; + data["regex"] = this.regex; return data; } } @@ -13635,110 +12441,11 @@ export interface IPropertyApiDescriptionModel { type: string | undefined; typeSimple: string | undefined; isRequired: boolean; -} - -export class ProviderInfoDto implements IProviderInfoDto { - providerName!: string | undefined; - providerKey!: string | undefined; - - constructor(data?: IProviderInfoDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.providerName = _data["providerName"]; - this.providerKey = _data["providerKey"]; - } - } - - static fromJS(data: any): ProviderInfoDto { - data = typeof data === 'object' ? data : {}; - let result = new ProviderInfoDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["providerName"] = this.providerName; - data["providerKey"] = this.providerKey; - return data; - } -} - -export interface IProviderInfoDto { - providerName: string | undefined; - providerKey: string | undefined; -} - -export class RegisterDto implements IRegisterDto { - readonly extraProperties!: { [key: string]: any; } | undefined; - userName!: string; - emailAddress!: string; - password!: string; - appName!: string; - - constructor(data?: IRegisterDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - if (_data["extraProperties"]) { - (this).extraProperties = {} as any; - for (let key in _data["extraProperties"]) { - if (_data["extraProperties"].hasOwnProperty(key)) - ((this).extraProperties)![key] = _data["extraProperties"][key]; - } - } - this.userName = _data["userName"]; - this.emailAddress = _data["emailAddress"]; - this.password = _data["password"]; - this.appName = _data["appName"]; - } - } - - static fromJS(data: any): RegisterDto { - data = typeof data === 'object' ? data : {}; - let result = new RegisterDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - if (this.extraProperties) { - data["extraProperties"] = {}; - for (let key in this.extraProperties) { - if (this.extraProperties.hasOwnProperty(key)) - (data["extraProperties"])[key] = (this.extraProperties)[key]; - } - } - data["userName"] = this.userName; - data["emailAddress"] = this.emailAddress; - data["password"] = this.password; - data["appName"] = this.appName; - return data; - } -} - -export interface IRegisterDto { - extraProperties: { [key: string]: any; } | undefined; - userName: string; - emailAddress: string; - password: string; - appName: string; + minLength: number | undefined; + maxLength: number | undefined; + minimum: string | undefined; + maximum: string | undefined; + regex: string | undefined; } export class RemoteServiceErrorInfo implements IRemoteServiceErrorInfo { @@ -13912,77 +12619,36 @@ export class RemoveRoleToOrganizationUnitInput implements IRemoveRoleToOrganizat init(_data?: any) { if (_data) { - this.roleId = _data["roleId"]; - this.organizationUnitId = _data["organizationUnitId"]; - } - } - - static fromJS(data: any): RemoveRoleToOrganizationUnitInput { - data = typeof data === 'object' ? data : {}; - let result = new RemoveRoleToOrganizationUnitInput(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["roleId"] = this.roleId; - data["organizationUnitId"] = this.organizationUnitId; - return data; - } -} - -export interface IRemoveRoleToOrganizationUnitInput { - roleId: string; - organizationUnitId: string; -} - -export class RemoveUserToOrganizationUnitInput implements IRemoveUserToOrganizationUnitInput { - userId!: string; - organizationUnitId!: string; - - constructor(data?: IRemoveUserToOrganizationUnitInput) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.userId = _data["userId"]; + this.roleId = _data["roleId"]; this.organizationUnitId = _data["organizationUnitId"]; } } - static fromJS(data: any): RemoveUserToOrganizationUnitInput { + static fromJS(data: any): RemoveRoleToOrganizationUnitInput { data = typeof data === 'object' ? data : {}; - let result = new RemoveUserToOrganizationUnitInput(); + let result = new RemoveRoleToOrganizationUnitInput(); result.init(data); return result; } toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["userId"] = this.userId; + data["roleId"] = this.roleId; data["organizationUnitId"] = this.organizationUnitId; return data; } } -export interface IRemoveUserToOrganizationUnitInput { - userId: string; +export interface IRemoveRoleToOrganizationUnitInput { + roleId: string; organizationUnitId: string; } -export class ResetPasswordDto implements IResetPasswordDto { +export class RemoveUserToOrganizationUnitInput implements IRemoveUserToOrganizationUnitInput { userId!: string; - resetToken!: string; - password!: string; + organizationUnitId!: string; - constructor(data?: IResetPasswordDto) { + constructor(data?: IRemoveUserToOrganizationUnitInput) { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) @@ -13994,14 +12660,13 @@ export class ResetPasswordDto implements IResetPasswordDto { init(_data?: any) { if (_data) { this.userId = _data["userId"]; - this.resetToken = _data["resetToken"]; - this.password = _data["password"]; + this.organizationUnitId = _data["organizationUnitId"]; } } - static fromJS(data: any): ResetPasswordDto { + static fromJS(data: any): RemoveUserToOrganizationUnitInput { data = typeof data === 'object' ? data : {}; - let result = new ResetPasswordDto(); + let result = new RemoveUserToOrganizationUnitInput(); result.init(data); return result; } @@ -14009,16 +12674,14 @@ export class ResetPasswordDto implements IResetPasswordDto { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["userId"] = this.userId; - data["resetToken"] = this.resetToken; - data["password"] = this.password; + data["organizationUnitId"] = this.organizationUnitId; return data; } } -export interface IResetPasswordDto { +export interface IRemoveUserToOrganizationUnitInput { userId: string; - resetToken: string; - password: string; + organizationUnitId: string; } export class ReturnValueApiDescriptionModel implements IReturnValueApiDescriptionModel { @@ -14153,54 +12816,6 @@ export interface ISendCommonMessageInput { receiveIds: string[] | undefined; } -export class SendPasswordResetCodeDto implements ISendPasswordResetCodeDto { - email!: string; - appName!: string; - returnUrl!: string | undefined; - returnUrlHash!: string | undefined; - - constructor(data?: ISendPasswordResetCodeDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.email = _data["email"]; - this.appName = _data["appName"]; - this.returnUrl = _data["returnUrl"]; - this.returnUrlHash = _data["returnUrlHash"]; - } - } - - static fromJS(data: any): SendPasswordResetCodeDto { - data = typeof data === 'object' ? data : {}; - let result = new SendPasswordResetCodeDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["email"] = this.email; - data["appName"] = this.appName; - data["returnUrl"] = this.returnUrl; - data["returnUrlHash"] = this.returnUrlHash; - return data; - } -} - -export interface ISendPasswordResetCodeDto { - email: string; - appName: string; - returnUrl: string | undefined; - returnUrlHash: string | undefined; -} - export class SetDataDictinaryDetailInput implements ISetDataDictinaryDetailInput { dataDictionaryId!: string; dataDictionayDetailId!: string; @@ -14553,62 +13168,6 @@ export interface ITenantDtoPagedResultDto { totalCount: number; } -export class TenantUpdateDto implements ITenantUpdateDto { - readonly extraProperties!: { [key: string]: any; } | undefined; - name!: string; - concurrencyStamp!: string | undefined; - - constructor(data?: ITenantUpdateDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - if (_data["extraProperties"]) { - (this).extraProperties = {} as any; - for (let key in _data["extraProperties"]) { - if (_data["extraProperties"].hasOwnProperty(key)) - ((this).extraProperties)![key] = _data["extraProperties"][key]; - } - } - this.name = _data["name"]; - this.concurrencyStamp = _data["concurrencyStamp"]; - } - } - - static fromJS(data: any): TenantUpdateDto { - data = typeof data === 'object' ? data : {}; - let result = new TenantUpdateDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - if (this.extraProperties) { - data["extraProperties"] = {}; - for (let key in this.extraProperties) { - if (this.extraProperties.hasOwnProperty(key)) - (data["extraProperties"])[key] = (this.extraProperties)[key]; - } - } - data["name"] = this.name; - data["concurrencyStamp"] = this.concurrencyStamp; - return data; - } -} - -export interface ITenantUpdateDto { - extraProperties: { [key: string]: any; } | undefined; - name: string; - concurrencyStamp: string | undefined; -} - export class TimeZone implements ITimeZone { iana!: IanaTimeZone; windows!: WindowsTimeZone; @@ -14804,179 +13363,32 @@ export class TypeApiDescriptionModel implements ITypeApiDescriptionModel { } if (Array.isArray(this.genericArguments)) { data["genericArguments"] = []; - for (let item of this.genericArguments) - data["genericArguments"].push(item); - } - if (Array.isArray(this.properties)) { - data["properties"] = []; - for (let item of this.properties) - data["properties"].push(item.toJSON()); - } - return data; - } -} - -export interface ITypeApiDescriptionModel { - baseType: string | undefined; - isEnum: boolean; - enumNames: string[] | undefined; - enumValues: any[] | undefined; - genericArguments: string[] | undefined; - properties: PropertyApiDescriptionModel[] | undefined; -} - -export class UpdateConnectionStringInput implements IUpdateConnectionStringInput { - id!: string; - connectionString!: string; - - constructor(data?: IUpdateConnectionStringInput) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.id = _data["id"]; - this.connectionString = _data["connectionString"]; - } - } - - static fromJS(data: any): UpdateConnectionStringInput { - data = typeof data === 'object' ? data : {}; - let result = new UpdateConnectionStringInput(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["id"] = this.id; - data["connectionString"] = this.connectionString; - return data; - } -} - -export interface IUpdateConnectionStringInput { - id: string; - connectionString: string; -} - -export class UpdateDataDictinaryInput implements IUpdateDataDictinaryInput { - id!: string; - code!: string; - displayText!: string; - description!: string | undefined; - - constructor(data?: IUpdateDataDictinaryInput) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.id = _data["id"]; - this.code = _data["code"]; - this.displayText = _data["displayText"]; - this.description = _data["description"]; - } - } - - static fromJS(data: any): UpdateDataDictinaryInput { - data = typeof data === 'object' ? data : {}; - let result = new UpdateDataDictinaryInput(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["id"] = this.id; - data["code"] = this.code; - data["displayText"] = this.displayText; - data["description"] = this.description; - return data; - } -} - -export interface IUpdateDataDictinaryInput { - id: string; - code: string; - displayText: string; - description: string | undefined; -} - -export class UpdateDetailInput implements IUpdateDetailInput { - dataDictionaryId!: string; - id!: string; - displayText!: string; - description!: string | undefined; - order!: number; - - constructor(data?: IUpdateDetailInput) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.dataDictionaryId = _data["dataDictionaryId"]; - this.id = _data["id"]; - this.displayText = _data["displayText"]; - this.description = _data["description"]; - this.order = _data["order"]; - } - } - - static fromJS(data: any): UpdateDetailInput { - data = typeof data === 'object' ? data : {}; - let result = new UpdateDetailInput(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["dataDictionaryId"] = this.dataDictionaryId; - data["id"] = this.id; - data["displayText"] = this.displayText; - data["description"] = this.description; - data["order"] = this.order; + for (let item of this.genericArguments) + data["genericArguments"].push(item); + } + if (Array.isArray(this.properties)) { + data["properties"] = []; + for (let item of this.properties) + data["properties"].push(item.toJSON()); + } return data; } } -export interface IUpdateDetailInput { - dataDictionaryId: string; - id: string; - displayText: string; - description: string | undefined; - order: number; +export interface ITypeApiDescriptionModel { + baseType: string | undefined; + isEnum: boolean; + enumNames: string[] | undefined; + enumValues: any[] | undefined; + genericArguments: string[] | undefined; + properties: PropertyApiDescriptionModel[] | undefined; } -export class UpdateEmailSettingsDto implements IUpdateEmailSettingsDto { - smtpHost!: string | undefined; - smtpPort!: number; - smtpUserName!: string | undefined; - smtpPassword!: string | undefined; - smtpDomain!: string | undefined; - smtpEnableSsl!: boolean; - smtpUseDefaultCredentials!: boolean; - defaultFromAddress!: string; - defaultFromDisplayName!: string; +export class UpdateConnectionStringInput implements IUpdateConnectionStringInput { + id!: string; + connectionString!: string; - constructor(data?: IUpdateEmailSettingsDto) { + constructor(data?: IUpdateConnectionStringInput) { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) @@ -14987,57 +13399,38 @@ export class UpdateEmailSettingsDto implements IUpdateEmailSettingsDto { init(_data?: any) { if (_data) { - this.smtpHost = _data["smtpHost"]; - this.smtpPort = _data["smtpPort"]; - this.smtpUserName = _data["smtpUserName"]; - this.smtpPassword = _data["smtpPassword"]; - this.smtpDomain = _data["smtpDomain"]; - this.smtpEnableSsl = _data["smtpEnableSsl"]; - this.smtpUseDefaultCredentials = _data["smtpUseDefaultCredentials"]; - this.defaultFromAddress = _data["defaultFromAddress"]; - this.defaultFromDisplayName = _data["defaultFromDisplayName"]; + this.id = _data["id"]; + this.connectionString = _data["connectionString"]; } } - static fromJS(data: any): UpdateEmailSettingsDto { + static fromJS(data: any): UpdateConnectionStringInput { data = typeof data === 'object' ? data : {}; - let result = new UpdateEmailSettingsDto(); + let result = new UpdateConnectionStringInput(); result.init(data); return result; } toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["smtpHost"] = this.smtpHost; - data["smtpPort"] = this.smtpPort; - data["smtpUserName"] = this.smtpUserName; - data["smtpPassword"] = this.smtpPassword; - data["smtpDomain"] = this.smtpDomain; - data["smtpEnableSsl"] = this.smtpEnableSsl; - data["smtpUseDefaultCredentials"] = this.smtpUseDefaultCredentials; - data["defaultFromAddress"] = this.defaultFromAddress; - data["defaultFromDisplayName"] = this.defaultFromDisplayName; + data["id"] = this.id; + data["connectionString"] = this.connectionString; return data; } } -export interface IUpdateEmailSettingsDto { - smtpHost: string | undefined; - smtpPort: number; - smtpUserName: string | undefined; - smtpPassword: string | undefined; - smtpDomain: string | undefined; - smtpEnableSsl: boolean; - smtpUseDefaultCredentials: boolean; - defaultFromAddress: string; - defaultFromDisplayName: string; +export interface IUpdateConnectionStringInput { + id: string; + connectionString: string; } -export class UpdateFeatureDto implements IUpdateFeatureDto { - name!: string | undefined; - value!: string | undefined; +export class UpdateDataDictinaryInput implements IUpdateDataDictinaryInput { + id!: string; + code!: string; + displayText!: string; + description!: string | undefined; - constructor(data?: IUpdateFeatureDto) { + constructor(data?: IUpdateDataDictinaryInput) { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) @@ -15048,35 +13441,45 @@ export class UpdateFeatureDto implements IUpdateFeatureDto { init(_data?: any) { if (_data) { - this.name = _data["name"]; - this.value = _data["value"]; + this.id = _data["id"]; + this.code = _data["code"]; + this.displayText = _data["displayText"]; + this.description = _data["description"]; } } - static fromJS(data: any): UpdateFeatureDto { + static fromJS(data: any): UpdateDataDictinaryInput { data = typeof data === 'object' ? data : {}; - let result = new UpdateFeatureDto(); + let result = new UpdateDataDictinaryInput(); result.init(data); return result; } toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["name"] = this.name; - data["value"] = this.value; + data["id"] = this.id; + data["code"] = this.code; + data["displayText"] = this.displayText; + data["description"] = this.description; return data; } } -export interface IUpdateFeatureDto { - name: string | undefined; - value: string | undefined; +export interface IUpdateDataDictinaryInput { + id: string; + code: string; + displayText: string; + description: string | undefined; } -export class UpdateFeaturesDto implements IUpdateFeaturesDto { - features!: UpdateFeatureDto[] | undefined; +export class UpdateDetailInput implements IUpdateDetailInput { + dataDictionaryId!: string; + id!: string; + displayText!: string; + description!: string | undefined; + order!: number; - constructor(data?: IUpdateFeaturesDto) { + constructor(data?: IUpdateDetailInput) { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) @@ -15087,34 +13490,38 @@ export class UpdateFeaturesDto implements IUpdateFeaturesDto { init(_data?: any) { if (_data) { - if (Array.isArray(_data["features"])) { - this.features = [] as any; - for (let item of _data["features"]) - this.features!.push(UpdateFeatureDto.fromJS(item)); - } + this.dataDictionaryId = _data["dataDictionaryId"]; + this.id = _data["id"]; + this.displayText = _data["displayText"]; + this.description = _data["description"]; + this.order = _data["order"]; } } - static fromJS(data: any): UpdateFeaturesDto { + static fromJS(data: any): UpdateDetailInput { data = typeof data === 'object' ? data : {}; - let result = new UpdateFeaturesDto(); + let result = new UpdateDetailInput(); result.init(data); return result; } toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - if (Array.isArray(this.features)) { - data["features"] = []; - for (let item of this.features) - data["features"].push(item.toJSON()); - } + data["dataDictionaryId"] = this.dataDictionaryId; + data["id"] = this.id; + data["displayText"] = this.displayText; + data["description"] = this.description; + data["order"] = this.order; return data; } } -export interface IUpdateFeaturesDto { - features: UpdateFeatureDto[] | undefined; +export interface IUpdateDetailInput { + dataDictionaryId: string; + id: string; + displayText: string; + description: string | undefined; + order: number; } export class UpdateOrganizationUnitInput implements IUpdateOrganizationUnitInput { @@ -15241,78 +13648,6 @@ export interface IUpdatePermissionsDto { permissions: UpdatePermissionDto[] | undefined; } -export class UpdateProfileDto implements IUpdateProfileDto { - readonly extraProperties!: { [key: string]: any; } | undefined; - userName!: string | undefined; - email!: string | undefined; - name!: string | undefined; - surname!: string | undefined; - phoneNumber!: string | undefined; - concurrencyStamp!: string | undefined; - - constructor(data?: IUpdateProfileDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - if (_data["extraProperties"]) { - (this).extraProperties = {} as any; - for (let key in _data["extraProperties"]) { - if (_data["extraProperties"].hasOwnProperty(key)) - ((this).extraProperties)![key] = _data["extraProperties"][key]; - } - } - this.userName = _data["userName"]; - this.email = _data["email"]; - this.name = _data["name"]; - this.surname = _data["surname"]; - this.phoneNumber = _data["phoneNumber"]; - this.concurrencyStamp = _data["concurrencyStamp"]; - } - } - - static fromJS(data: any): UpdateProfileDto { - data = typeof data === 'object' ? data : {}; - let result = new UpdateProfileDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - if (this.extraProperties) { - data["extraProperties"] = {}; - for (let key in this.extraProperties) { - if (this.extraProperties.hasOwnProperty(key)) - (data["extraProperties"])[key] = (this.extraProperties)[key]; - } - } - data["userName"] = this.userName; - data["email"] = this.email; - data["name"] = this.name; - data["surname"] = this.surname; - data["phoneNumber"] = this.phoneNumber; - data["concurrencyStamp"] = this.concurrencyStamp; - return data; - } -} - -export interface IUpdateProfileDto { - extraProperties: { [key: string]: any; } | undefined; - userName: string | undefined; - email: string | undefined; - name: string | undefined; - surname: string | undefined; - phoneNumber: string | undefined; - concurrencyStamp: string | undefined; -} - export class UpdateRoleInput implements IUpdateRoleInput { roleId!: string; roleInfo!: IdentityRoleUpdateDto; @@ -15525,118 +13860,6 @@ export interface IUpdateUserInput { userInfo: IdentityUserUpdateDto; } -export class UserData implements IUserData { - id!: string; - tenantId!: string | undefined; - userName!: string | undefined; - name!: string | undefined; - surname!: string | undefined; - email!: string | undefined; - emailConfirmed!: boolean; - phoneNumber!: string | undefined; - phoneNumberConfirmed!: boolean; - - constructor(data?: IUserData) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - this.id = _data["id"]; - this.tenantId = _data["tenantId"]; - this.userName = _data["userName"]; - this.name = _data["name"]; - this.surname = _data["surname"]; - this.email = _data["email"]; - this.emailConfirmed = _data["emailConfirmed"]; - this.phoneNumber = _data["phoneNumber"]; - this.phoneNumberConfirmed = _data["phoneNumberConfirmed"]; - } - } - - static fromJS(data: any): UserData { - data = typeof data === 'object' ? data : {}; - let result = new UserData(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - data["id"] = this.id; - data["tenantId"] = this.tenantId; - data["userName"] = this.userName; - data["name"] = this.name; - data["surname"] = this.surname; - data["email"] = this.email; - data["emailConfirmed"] = this.emailConfirmed; - data["phoneNumber"] = this.phoneNumber; - data["phoneNumberConfirmed"] = this.phoneNumberConfirmed; - return data; - } -} - -export interface IUserData { - id: string; - tenantId: string | undefined; - userName: string | undefined; - name: string | undefined; - surname: string | undefined; - email: string | undefined; - emailConfirmed: boolean; - phoneNumber: string | undefined; - phoneNumberConfirmed: boolean; -} - -export class UserDataListResultDto implements IUserDataListResultDto { - items!: UserData[] | undefined; - - constructor(data?: IUserDataListResultDto) { - if (data) { - for (var property in data) { - if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; - } - } - } - - init(_data?: any) { - if (_data) { - if (Array.isArray(_data["items"])) { - this.items = [] as any; - for (let item of _data["items"]) - this.items!.push(UserData.fromJS(item)); - } - } - } - - static fromJS(data: any): UserDataListResultDto { - data = typeof data === 'object' ? data : {}; - let result = new UserDataListResultDto(); - result.init(data); - return result; - } - - toJSON(data?: any) { - data = typeof data === 'object' ? data : {}; - if (Array.isArray(this.items)) { - data["items"] = []; - for (let item of this.items) - data["items"].push(item.toJSON()); - } - return data; - } -} - -export interface IUserDataListResultDto { - items: UserData[] | undefined; -} - export class UserLoginInfo implements IUserLoginInfo { userNameOrEmailAddress!: string; password!: string;