|
|
|
@ -2,7 +2,7 @@ |
|
|
|
/* eslint-disable */ |
|
|
|
//----------------------
|
|
|
|
// <auto-generated>
|
|
|
|
// Generated using the NSwag toolchain v13.11.3.0 (NJsonSchema v10.4.4.0 (Newtonsoft.Json v12.0.0.0)) (http://NSwag.org)
|
|
|
|
// Generated using the NSwag toolchain v13.13.2.0 (NJsonSchema v10.5.2.0 (Newtonsoft.Json v12.0.0.0)) (http://NSwag.org)
|
|
|
|
// </auto-generated>
|
|
|
|
//----------------------
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
@ -1169,6 +1169,102 @@ export class ApiScopeServiceProxy extends ServiceProxyBase { |
|
|
|
} |
|
|
|
return Promise.resolve<void>(<any>null); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取所有ApiScope |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
|
all( cancelToken?: CancelToken | undefined): Promise<StringStringFromSelector[]> { |
|
|
|
let url_ = this.baseUrl + "/IdentityServer/ApiScope/all"; |
|
|
|
url_ = url_.replace(/[?&]$/, ""); |
|
|
|
|
|
|
|
let options_ = <AxiosRequestConfig>{ |
|
|
|
method: "POST", |
|
|
|
url: url_, |
|
|
|
headers: { |
|
|
|
"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.processAll(_response)); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected processAll(response: AxiosResponse): Promise<StringStringFromSelector[]> { |
|
|
|
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; |
|
|
|
if (Array.isArray(resultData200)) { |
|
|
|
result200 = [] as any; |
|
|
|
for (let item of resultData200) |
|
|
|
result200!.push(StringStringFromSelector.fromJS(item)); |
|
|
|
} |
|
|
|
else { |
|
|
|
result200 = <any>null; |
|
|
|
} |
|
|
|
return 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<StringStringFromSelector[]>(<any>null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export class AuditLogsServiceProxy extends ServiceProxyBase { |
|
|
|
@ -4787,6 +4883,7 @@ export class ActionApiDescriptionModel implements IActionApiDescriptionModel { |
|
|
|
parametersOnMethod!: MethodParameterApiDescriptionModel[] | undefined; |
|
|
|
parameters!: ParameterApiDescriptionModel[] | undefined; |
|
|
|
returnValue!: ReturnValueApiDescriptionModel; |
|
|
|
allowAnonymous!: boolean | undefined; |
|
|
|
|
|
|
|
constructor(data?: IActionApiDescriptionModel) { |
|
|
|
if (data) { |
|
|
|
@ -4819,6 +4916,7 @@ export class ActionApiDescriptionModel implements IActionApiDescriptionModel { |
|
|
|
this.parameters!.push(ParameterApiDescriptionModel.fromJS(item)); |
|
|
|
} |
|
|
|
this.returnValue = _data["returnValue"] ? ReturnValueApiDescriptionModel.fromJS(_data["returnValue"]) : <any>undefined; |
|
|
|
this.allowAnonymous = _data["allowAnonymous"]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -4851,6 +4949,7 @@ export class ActionApiDescriptionModel implements IActionApiDescriptionModel { |
|
|
|
data["parameters"].push(item.toJSON()); |
|
|
|
} |
|
|
|
data["returnValue"] = this.returnValue ? this.returnValue.toJSON() : <any>undefined; |
|
|
|
data["allowAnonymous"] = this.allowAnonymous; |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -4864,6 +4963,7 @@ export interface IActionApiDescriptionModel { |
|
|
|
parametersOnMethod: MethodParameterApiDescriptionModel[] | undefined; |
|
|
|
parameters: ParameterApiDescriptionModel[] | undefined; |
|
|
|
returnValue: ReturnValueApiDescriptionModel; |
|
|
|
allowAnonymous: boolean | undefined; |
|
|
|
} |
|
|
|
|
|
|
|
export class AddCorsInput implements IAddCorsInput { |
|
|
|
@ -4987,6 +5087,7 @@ export interface IApiResourceClaimOutput { |
|
|
|
} |
|
|
|
|
|
|
|
export class ApiResourceOutput implements IApiResourceOutput { |
|
|
|
id!: string; |
|
|
|
name!: string | undefined; |
|
|
|
displayName!: string | undefined; |
|
|
|
description!: string | undefined; |
|
|
|
@ -5009,6 +5110,7 @@ export class ApiResourceOutput implements IApiResourceOutput { |
|
|
|
|
|
|
|
init(_data?: any) { |
|
|
|
if (_data) { |
|
|
|
this.id = _data["id"]; |
|
|
|
this.name = _data["name"]; |
|
|
|
this.displayName = _data["displayName"]; |
|
|
|
this.description = _data["description"]; |
|
|
|
@ -5047,6 +5149,7 @@ export class ApiResourceOutput implements IApiResourceOutput { |
|
|
|
|
|
|
|
toJSON(data?: any) { |
|
|
|
data = typeof data === 'object' ? data : {}; |
|
|
|
data["id"] = this.id; |
|
|
|
data["name"] = this.name; |
|
|
|
data["displayName"] = this.displayName; |
|
|
|
data["description"] = this.description; |
|
|
|
@ -5078,6 +5181,7 @@ export class ApiResourceOutput implements IApiResourceOutput { |
|
|
|
} |
|
|
|
|
|
|
|
export interface IApiResourceOutput { |
|
|
|
id: string; |
|
|
|
name: string | undefined; |
|
|
|
displayName: string | undefined; |
|
|
|
description: string | undefined; |
|
|
|
@ -6233,10 +6337,7 @@ export class CreateApiResourceInput implements ICreateApiResourceInput { |
|
|
|
enabled!: boolean; |
|
|
|
allowedAccessTokenSigningAlgorithms!: string | undefined; |
|
|
|
showInDiscoveryDocument!: boolean; |
|
|
|
secrets!: ApiResourceSecretOutput[] | undefined; |
|
|
|
scopes!: ApiResourceScopeOutput[] | undefined; |
|
|
|
userClaims!: ApiResourceClaimOutput[] | undefined; |
|
|
|
properties!: ApiResourcePropertyOutput[] | undefined; |
|
|
|
secret!: string | undefined; |
|
|
|
|
|
|
|
constructor(data?: ICreateApiResourceInput) { |
|
|
|
if (data) { |
|
|
|
@ -6255,26 +6356,7 @@ export class CreateApiResourceInput implements ICreateApiResourceInput { |
|
|
|
this.enabled = _data["enabled"]; |
|
|
|
this.allowedAccessTokenSigningAlgorithms = _data["allowedAccessTokenSigningAlgorithms"]; |
|
|
|
this.showInDiscoveryDocument = _data["showInDiscoveryDocument"]; |
|
|
|
if (Array.isArray(_data["secrets"])) { |
|
|
|
this.secrets = [] as any; |
|
|
|
for (let item of _data["secrets"]) |
|
|
|
this.secrets!.push(ApiResourceSecretOutput.fromJS(item)); |
|
|
|
} |
|
|
|
if (Array.isArray(_data["scopes"])) { |
|
|
|
this.scopes = [] as any; |
|
|
|
for (let item of _data["scopes"]) |
|
|
|
this.scopes!.push(ApiResourceScopeOutput.fromJS(item)); |
|
|
|
} |
|
|
|
if (Array.isArray(_data["userClaims"])) { |
|
|
|
this.userClaims = [] as any; |
|
|
|
for (let item of _data["userClaims"]) |
|
|
|
this.userClaims!.push(ApiResourceClaimOutput.fromJS(item)); |
|
|
|
} |
|
|
|
if (Array.isArray(_data["properties"])) { |
|
|
|
this.properties = [] as any; |
|
|
|
for (let item of _data["properties"]) |
|
|
|
this.properties!.push(ApiResourcePropertyOutput.fromJS(item)); |
|
|
|
} |
|
|
|
this.secret = _data["secret"]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -6293,26 +6375,7 @@ export class CreateApiResourceInput implements ICreateApiResourceInput { |
|
|
|
data["enabled"] = this.enabled; |
|
|
|
data["allowedAccessTokenSigningAlgorithms"] = this.allowedAccessTokenSigningAlgorithms; |
|
|
|
data["showInDiscoveryDocument"] = this.showInDiscoveryDocument; |
|
|
|
if (Array.isArray(this.secrets)) { |
|
|
|
data["secrets"] = []; |
|
|
|
for (let item of this.secrets) |
|
|
|
data["secrets"].push(item.toJSON()); |
|
|
|
} |
|
|
|
if (Array.isArray(this.scopes)) { |
|
|
|
data["scopes"] = []; |
|
|
|
for (let item of this.scopes) |
|
|
|
data["scopes"].push(item.toJSON()); |
|
|
|
} |
|
|
|
if (Array.isArray(this.userClaims)) { |
|
|
|
data["userClaims"] = []; |
|
|
|
for (let item of this.userClaims) |
|
|
|
data["userClaims"].push(item.toJSON()); |
|
|
|
} |
|
|
|
if (Array.isArray(this.properties)) { |
|
|
|
data["properties"] = []; |
|
|
|
for (let item of this.properties) |
|
|
|
data["properties"].push(item.toJSON()); |
|
|
|
} |
|
|
|
data["secret"] = this.secret; |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -6324,10 +6387,7 @@ export interface ICreateApiResourceInput { |
|
|
|
enabled: boolean; |
|
|
|
allowedAccessTokenSigningAlgorithms: string | undefined; |
|
|
|
showInDiscoveryDocument: boolean; |
|
|
|
secrets: ApiResourceSecretOutput[] | undefined; |
|
|
|
scopes: ApiResourceScopeOutput[] | undefined; |
|
|
|
userClaims: ApiResourceClaimOutput[] | undefined; |
|
|
|
properties: ApiResourcePropertyOutput[] | undefined; |
|
|
|
secret: string | undefined; |
|
|
|
} |
|
|
|
|
|
|
|
export class CreateApiScopeInput implements ICreateApiScopeInput { |
|
|
|
@ -6706,6 +6766,8 @@ export class CurrentUserDto implements ICurrentUserDto { |
|
|
|
isAuthenticated!: boolean; |
|
|
|
id!: string | undefined; |
|
|
|
tenantId!: string | undefined; |
|
|
|
impersonatorUserId!: string | undefined; |
|
|
|
impersonatorTenantId!: string | undefined; |
|
|
|
userName!: string | undefined; |
|
|
|
name!: string | undefined; |
|
|
|
surName!: string | undefined; |
|
|
|
@ -6729,6 +6791,8 @@ export class CurrentUserDto implements ICurrentUserDto { |
|
|
|
this.isAuthenticated = _data["isAuthenticated"]; |
|
|
|
this.id = _data["id"]; |
|
|
|
this.tenantId = _data["tenantId"]; |
|
|
|
this.impersonatorUserId = _data["impersonatorUserId"]; |
|
|
|
this.impersonatorTenantId = _data["impersonatorTenantId"]; |
|
|
|
this.userName = _data["userName"]; |
|
|
|
this.name = _data["name"]; |
|
|
|
this.surName = _data["surName"]; |
|
|
|
@ -6756,6 +6820,8 @@ export class CurrentUserDto implements ICurrentUserDto { |
|
|
|
data["isAuthenticated"] = this.isAuthenticated; |
|
|
|
data["id"] = this.id; |
|
|
|
data["tenantId"] = this.tenantId; |
|
|
|
data["impersonatorUserId"] = this.impersonatorUserId; |
|
|
|
data["impersonatorTenantId"] = this.impersonatorTenantId; |
|
|
|
data["userName"] = this.userName; |
|
|
|
data["name"] = this.name; |
|
|
|
data["surName"] = this.surName; |
|
|
|
@ -6776,6 +6842,8 @@ export interface ICurrentUserDto { |
|
|
|
isAuthenticated: boolean; |
|
|
|
id: string | undefined; |
|
|
|
tenantId: string | undefined; |
|
|
|
impersonatorUserId: string | undefined; |
|
|
|
impersonatorTenantId: string | undefined; |
|
|
|
userName: string | undefined; |
|
|
|
name: string | undefined; |
|
|
|
surName: string | undefined; |
|
|
|
@ -7726,6 +7794,7 @@ export class FindTenantResultDto implements IFindTenantResultDto { |
|
|
|
success!: boolean; |
|
|
|
tenantId!: string | undefined; |
|
|
|
name!: string | undefined; |
|
|
|
isActive!: boolean; |
|
|
|
|
|
|
|
constructor(data?: IFindTenantResultDto) { |
|
|
|
if (data) { |
|
|
|
@ -7741,6 +7810,7 @@ export class FindTenantResultDto implements IFindTenantResultDto { |
|
|
|
this.success = _data["success"]; |
|
|
|
this.tenantId = _data["tenantId"]; |
|
|
|
this.name = _data["name"]; |
|
|
|
this.isActive = _data["isActive"]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -7756,6 +7826,7 @@ export class FindTenantResultDto implements IFindTenantResultDto { |
|
|
|
data["success"] = this.success; |
|
|
|
data["tenantId"] = this.tenantId; |
|
|
|
data["name"] = this.name; |
|
|
|
data["isActive"] = this.isActive; |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -7764,6 +7835,7 @@ export interface IFindTenantResultDto { |
|
|
|
success: boolean; |
|
|
|
tenantId: string | undefined; |
|
|
|
name: string | undefined; |
|
|
|
isActive: boolean; |
|
|
|
} |
|
|
|
|
|
|
|
export class GetAuditLogPageListOutput implements IGetAuditLogPageListOutput { |
|
|
|
@ -10586,6 +10658,7 @@ export interface IPagingIdentityResourceListInput { |
|
|
|
} |
|
|
|
|
|
|
|
export class PagingIdentityResourceListOutput implements IPagingIdentityResourceListOutput { |
|
|
|
id!: string; |
|
|
|
name!: string | undefined; |
|
|
|
displayName!: string | undefined; |
|
|
|
description!: string | undefined; |
|
|
|
@ -10605,6 +10678,7 @@ export class PagingIdentityResourceListOutput implements IPagingIdentityResource |
|
|
|
|
|
|
|
init(_data?: any) { |
|
|
|
if (_data) { |
|
|
|
this.id = _data["id"]; |
|
|
|
this.name = _data["name"]; |
|
|
|
this.displayName = _data["displayName"]; |
|
|
|
this.description = _data["description"]; |
|
|
|
@ -10624,6 +10698,7 @@ export class PagingIdentityResourceListOutput implements IPagingIdentityResource |
|
|
|
|
|
|
|
toJSON(data?: any) { |
|
|
|
data = typeof data === 'object' ? data : {}; |
|
|
|
data["id"] = this.id; |
|
|
|
data["name"] = this.name; |
|
|
|
data["displayName"] = this.displayName; |
|
|
|
data["description"] = this.description; |
|
|
|
@ -10636,6 +10711,7 @@ export class PagingIdentityResourceListOutput implements IPagingIdentityResource |
|
|
|
} |
|
|
|
|
|
|
|
export interface IPagingIdentityResourceListOutput { |
|
|
|
id: string; |
|
|
|
name: string | undefined; |
|
|
|
displayName: string | undefined; |
|
|
|
description: string | undefined; |
|
|
|
@ -11793,6 +11869,46 @@ export interface ISetDataDictinaryDetailInput { |
|
|
|
isEnabled: boolean; |
|
|
|
} |
|
|
|
|
|
|
|
export class StringStringFromSelector implements IStringStringFromSelector { |
|
|
|
readonly value!: string | undefined; |
|
|
|
readonly label!: string | undefined; |
|
|
|
|
|
|
|
constructor(data?: IStringStringFromSelector) { |
|
|
|
if (data) { |
|
|
|
for (var property in data) { |
|
|
|
if (data.hasOwnProperty(property)) |
|
|
|
(<any>this)[property] = (<any>data)[property]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
init(_data?: any) { |
|
|
|
if (_data) { |
|
|
|
(<any>this).value = _data["value"]; |
|
|
|
(<any>this).label = _data["label"]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
static fromJS(data: any): StringStringFromSelector { |
|
|
|
data = typeof data === 'object' ? data : {}; |
|
|
|
let result = new StringStringFromSelector(); |
|
|
|
result.init(data); |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
toJSON(data?: any) { |
|
|
|
data = typeof data === 'object' ? data : {}; |
|
|
|
data["value"] = this.value; |
|
|
|
data["label"] = this.label; |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export interface IStringStringFromSelector { |
|
|
|
value: string | undefined; |
|
|
|
label: string | undefined; |
|
|
|
} |
|
|
|
|
|
|
|
export class TenantCreateDto implements ITenantCreateDto { |
|
|
|
readonly extraProperties!: { [key: string]: any; } | undefined; |
|
|
|
name!: string; |
|
|
|
@ -12376,10 +12492,8 @@ export class UpdateApiResourceInput implements IUpdateApiResourceInput { |
|
|
|
enabled!: boolean; |
|
|
|
allowedAccessTokenSigningAlgorithms!: string | undefined; |
|
|
|
showInDiscoveryDocument!: boolean; |
|
|
|
secrets!: ApiResourceSecretOutput[] | undefined; |
|
|
|
scopes!: ApiResourceScopeOutput[] | undefined; |
|
|
|
userClaims!: ApiResourceClaimOutput[] | undefined; |
|
|
|
properties!: ApiResourcePropertyOutput[] | undefined; |
|
|
|
secret!: string | undefined; |
|
|
|
apiScopes!: string[] | undefined; |
|
|
|
|
|
|
|
constructor(data?: IUpdateApiResourceInput) { |
|
|
|
if (data) { |
|
|
|
@ -12398,25 +12512,11 @@ export class UpdateApiResourceInput implements IUpdateApiResourceInput { |
|
|
|
this.enabled = _data["enabled"]; |
|
|
|
this.allowedAccessTokenSigningAlgorithms = _data["allowedAccessTokenSigningAlgorithms"]; |
|
|
|
this.showInDiscoveryDocument = _data["showInDiscoveryDocument"]; |
|
|
|
if (Array.isArray(_data["secrets"])) { |
|
|
|
this.secrets = [] as any; |
|
|
|
for (let item of _data["secrets"]) |
|
|
|
this.secrets!.push(ApiResourceSecretOutput.fromJS(item)); |
|
|
|
} |
|
|
|
if (Array.isArray(_data["scopes"])) { |
|
|
|
this.scopes = [] as any; |
|
|
|
for (let item of _data["scopes"]) |
|
|
|
this.scopes!.push(ApiResourceScopeOutput.fromJS(item)); |
|
|
|
} |
|
|
|
if (Array.isArray(_data["userClaims"])) { |
|
|
|
this.userClaims = [] as any; |
|
|
|
for (let item of _data["userClaims"]) |
|
|
|
this.userClaims!.push(ApiResourceClaimOutput.fromJS(item)); |
|
|
|
} |
|
|
|
if (Array.isArray(_data["properties"])) { |
|
|
|
this.properties = [] as any; |
|
|
|
for (let item of _data["properties"]) |
|
|
|
this.properties!.push(ApiResourcePropertyOutput.fromJS(item)); |
|
|
|
this.secret = _data["secret"]; |
|
|
|
if (Array.isArray(_data["apiScopes"])) { |
|
|
|
this.apiScopes = [] as any; |
|
|
|
for (let item of _data["apiScopes"]) |
|
|
|
this.apiScopes!.push(item); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -12436,25 +12536,11 @@ export class UpdateApiResourceInput implements IUpdateApiResourceInput { |
|
|
|
data["enabled"] = this.enabled; |
|
|
|
data["allowedAccessTokenSigningAlgorithms"] = this.allowedAccessTokenSigningAlgorithms; |
|
|
|
data["showInDiscoveryDocument"] = this.showInDiscoveryDocument; |
|
|
|
if (Array.isArray(this.secrets)) { |
|
|
|
data["secrets"] = []; |
|
|
|
for (let item of this.secrets) |
|
|
|
data["secrets"].push(item.toJSON()); |
|
|
|
} |
|
|
|
if (Array.isArray(this.scopes)) { |
|
|
|
data["scopes"] = []; |
|
|
|
for (let item of this.scopes) |
|
|
|
data["scopes"].push(item.toJSON()); |
|
|
|
} |
|
|
|
if (Array.isArray(this.userClaims)) { |
|
|
|
data["userClaims"] = []; |
|
|
|
for (let item of this.userClaims) |
|
|
|
data["userClaims"].push(item.toJSON()); |
|
|
|
} |
|
|
|
if (Array.isArray(this.properties)) { |
|
|
|
data["properties"] = []; |
|
|
|
for (let item of this.properties) |
|
|
|
data["properties"].push(item.toJSON()); |
|
|
|
data["secret"] = this.secret; |
|
|
|
if (Array.isArray(this.apiScopes)) { |
|
|
|
data["apiScopes"] = []; |
|
|
|
for (let item of this.apiScopes) |
|
|
|
data["apiScopes"].push(item); |
|
|
|
} |
|
|
|
return data; |
|
|
|
} |
|
|
|
@ -12467,10 +12553,8 @@ export interface IUpdateApiResourceInput { |
|
|
|
enabled: boolean; |
|
|
|
allowedAccessTokenSigningAlgorithms: string | undefined; |
|
|
|
showInDiscoveryDocument: boolean; |
|
|
|
secrets: ApiResourceSecretOutput[] | undefined; |
|
|
|
scopes: ApiResourceScopeOutput[] | undefined; |
|
|
|
userClaims: ApiResourceClaimOutput[] | undefined; |
|
|
|
properties: ApiResourcePropertyOutput[] | undefined; |
|
|
|
secret: string | undefined; |
|
|
|
apiScopes: string[] | undefined; |
|
|
|
} |
|
|
|
|
|
|
|
export class UpdateCreateApiScopeInput implements IUpdateCreateApiScopeInput { |
|
|
|
|