269 lines
6.0 KiB
TypeScript
269 lines
6.0 KiB
TypeScript
declare namespace API {
|
||
type AccountFieldItem = {
|
||
optionType?: OptionType;
|
||
/** 字段id */
|
||
id?: number;
|
||
/** 字段名称 */
|
||
fieldName?: string;
|
||
/** 字段描述 */
|
||
description?: string;
|
||
};
|
||
|
||
type AccountFieldValueInput = {
|
||
/** 字段id */
|
||
fieldId?: number;
|
||
/** 字段值 */
|
||
fieldValue?: string;
|
||
};
|
||
|
||
type AccountParameterDropdownVO = {
|
||
key?: number;
|
||
value?: string;
|
||
description?: string;
|
||
};
|
||
|
||
type ApplicationExceptionResult = {
|
||
message?: string;
|
||
details?: string;
|
||
};
|
||
|
||
type AuthInParameterItem = {
|
||
/** 参数Id */
|
||
id?: number;
|
||
/** 参数值 */
|
||
value?: string;
|
||
};
|
||
|
||
type AuthInParameterSummary = {
|
||
id?: number;
|
||
name?: string;
|
||
cnName?: string;
|
||
type?: string;
|
||
isRequired?: boolean;
|
||
value?: string;
|
||
};
|
||
|
||
type EffectTimeUnit = 1 | 2 | 3;
|
||
|
||
type getServiceProviderAccountGetAccountPageListParams = {
|
||
/** 所属服务商id */
|
||
serviceProviderId: number;
|
||
/** 当前页 */
|
||
pageIndex?: number;
|
||
/** 页大小 */
|
||
pageSize?: number;
|
||
};
|
||
|
||
type getServiceProviderAccountGetFieldListParams = {
|
||
/** 服务商id */
|
||
serviceProviderId: number;
|
||
};
|
||
|
||
type getServiceProviderAccountGetSingleAccountParams = {
|
||
/** 账户id */
|
||
accountId: number;
|
||
};
|
||
|
||
type getServiceProviderChangeAuthInterfaceParams = {
|
||
/** 服务商Id */
|
||
ServiceProviderId: number;
|
||
/** 授权接口Code */
|
||
InterfaceCode?: string;
|
||
};
|
||
|
||
type getServiceProviderGetAccountParameterDropdownListParams = {
|
||
/** 服务商id */
|
||
serviceProviderId: number;
|
||
};
|
||
|
||
type getServiceProviderGetAuthInfoParams = {
|
||
serviceProviderId: number;
|
||
};
|
||
|
||
type getServiceProviderGetServiceProviderDropdownListParams = {
|
||
/** 主体id */
|
||
mainBody?: number;
|
||
};
|
||
|
||
type getServiceProviderGetServiceProviderInterfaceCascadedListParams = {
|
||
interfaceId: number;
|
||
/** 服务商名称 */
|
||
serviceProviderName?: string;
|
||
};
|
||
|
||
type getServiceProviderGetServiceProviderParams = {
|
||
/** 服务商id */
|
||
serviceProviderId?: number;
|
||
};
|
||
|
||
type OptionType = 0 | 1 | 2 | 3;
|
||
|
||
type postServiceProviderExportParams = {
|
||
serviceProviderId?: number;
|
||
};
|
||
|
||
type SaveFieldListInput = {
|
||
/** 服务商id */
|
||
serviceProviderId?: number;
|
||
/** 字段列表 */
|
||
items?: AccountFieldItem[];
|
||
};
|
||
|
||
type SaveServiceProviderAccountOutput = {
|
||
serviceProviderId?: number;
|
||
mainBodyId?: number;
|
||
mainBodyName?: string;
|
||
appId?: number;
|
||
appName?: string;
|
||
fieldList?: ServiceProviderAccountFieldWithValueValueObject[];
|
||
};
|
||
|
||
type ServiceProviderAccountFieldValueObject = {
|
||
fieldId?: number;
|
||
fieldName?: string;
|
||
description?: string;
|
||
};
|
||
|
||
type ServiceProviderAccountFieldWithValueValueObject = {
|
||
fieldId?: number;
|
||
fieldName?: string;
|
||
description?: string;
|
||
fieldValue?: string;
|
||
};
|
||
|
||
type ServiceProviderAccountInput = {
|
||
optionType?: OptionType;
|
||
/** 账户id */
|
||
accountId?: number;
|
||
/** 服务商id */
|
||
serviceProviderId?: number;
|
||
/** 主体id */
|
||
mainBodyId?: number;
|
||
/** 应用id */
|
||
appId?: number;
|
||
/** 字段列表 */
|
||
fields?: AccountFieldValueInput[];
|
||
};
|
||
|
||
type ServiceProviderAuthInfoInput = {
|
||
/** 服务商id */
|
||
serviceProviderId?: number;
|
||
/** 入参 */
|
||
inParameters?: AuthInParameterItem[];
|
||
/** 令牌参数id */
|
||
tokenParameterId?: number;
|
||
/** 令牌前缀 */
|
||
tokenPrefix?: string;
|
||
/** 有效时间参数id */
|
||
effectTimeParameterId?: number;
|
||
/** 有效时间单位 */
|
||
effectTimeUnit?: string;
|
||
/** 固定有效时间 */
|
||
fixedEffectTime?: number;
|
||
/** 脚本 */
|
||
script?: string;
|
||
};
|
||
|
||
type ServiceProviderAuthInfoOutput = {
|
||
interfaceCode?: string;
|
||
interfaceId?: number;
|
||
inParameterSummaries?: AuthInParameterSummary[];
|
||
tokenParameterId?: number;
|
||
tokenPrefix?: string;
|
||
effectTimeParameterId?: number;
|
||
effectTimeUnit?: EffectTimeUnit;
|
||
fixedEffectTime?: number;
|
||
script?: string;
|
||
};
|
||
|
||
type ServiceProviderDropdownValueObject = {
|
||
id?: number;
|
||
name?: string;
|
||
code?: string;
|
||
traceTimeZone?: string;
|
||
types?: string;
|
||
types2?: ServiceProviderType[];
|
||
};
|
||
|
||
type ServiceProviderInput = {
|
||
/** Id */
|
||
id?: number;
|
||
/** 服务商名称 */
|
||
name?: string;
|
||
/** 服务商类型(多选) */
|
||
types?: ServiceProviderType[];
|
||
/** 流程代码 */
|
||
flowCode?: string;
|
||
/** 服务商代码 */
|
||
code?: string;
|
||
/** 轨迹时区 */
|
||
traceTimeZone?: string;
|
||
/** 描述 */
|
||
description?: string;
|
||
/** 请求超时(s) */
|
||
timeout?: number;
|
||
};
|
||
|
||
type ServiceProviderInterfaceCascadedObjectValue = {
|
||
value?: number;
|
||
label?: string;
|
||
isDisable?: boolean;
|
||
children?: ServiceProviderInterfaceCascadedObjectValue[];
|
||
};
|
||
|
||
type ServiceProviderOutput = {
|
||
/** Id */
|
||
id?: number;
|
||
/** 服务商名称 */
|
||
name?: string;
|
||
/** 服务商类型(字典) */
|
||
types?: ServiceProviderType[];
|
||
/** 流程代码 */
|
||
flowCode?: string;
|
||
/** 服务商代码 */
|
||
code?: string;
|
||
/** 轨迹时区 */
|
||
traceTimeZone?: string;
|
||
/** 描述 */
|
||
description?: string;
|
||
/** 创建时间 */
|
||
createTime?: string;
|
||
/** 修改时间 */
|
||
updateTime?: string;
|
||
/** 请求超时(s) */
|
||
timeout?: number;
|
||
};
|
||
|
||
type ServiceProviderPaginatedInputObjectValue = {
|
||
pageIndex?: number;
|
||
pageSize?: number;
|
||
type?: ServiceProviderType;
|
||
name?: string;
|
||
code?: string;
|
||
};
|
||
|
||
type ServiceProviderPaginatedOutputValueObject = {
|
||
id?: number;
|
||
name?: string;
|
||
type?: string;
|
||
code?: string;
|
||
traceTimeZone?: string;
|
||
description?: string;
|
||
interfaceCount?: number;
|
||
accountCount?: number;
|
||
updateTime?: string;
|
||
};
|
||
|
||
type ServiceProviderPaginatedOutputValueObjectPagedResult = {
|
||
items?: ServiceProviderPaginatedOutputValueObject[];
|
||
totalCount?: number;
|
||
};
|
||
|
||
type ServiceProviderType = 1 | 2 | 3 | 4;
|
||
|
||
type StringObjectDictionaryPagedResult = {
|
||
items?: Record<string, any>[];
|
||
totalCount?: number;
|
||
};
|
||
}
|