mirror of https://github.com/abpframework/abp.git
10 changed files with 0 additions and 12651 deletions
@ -1,13 +0,0 @@ |
|||||
# Proxy Generation Output |
|
||||
|
|
||||
This directory includes the output of the latest proxy generation. |
|
||||
The files and folders in it will be overwritten when proxy generation is run again. |
|
||||
Therefore, please do not place your own content in this folder. |
|
||||
|
|
||||
In addition, `generate-proxy.json` works like a lock file. |
|
||||
It includes information used by the proxy generator, so please do not delete or modify it. |
|
||||
|
|
||||
Finally, the name of the files and folders should not be changed for two reasons: |
|
||||
- Proxy generator will keep creating them at those paths and you will have multiple copies of the same content. |
|
||||
- ABP Suite generates files which include imports from this folder. |
|
||||
|
|
||||
@ -1,33 +0,0 @@ |
|||||
import type { GetFeatureListResultDto, UpdateFeaturesDto } from './models'; |
|
||||
import { RestService } from '@abp/ng.core'; |
|
||||
import { Injectable } from '@angular/core'; |
|
||||
|
|
||||
@Injectable({ |
|
||||
providedIn: 'root', |
|
||||
}) |
|
||||
export class FeaturesService { |
|
||||
apiName = 'AbpFeatureManagement'; |
|
||||
|
|
||||
get = (providerName: string, providerKey: string) => |
|
||||
this.restService.request<any, GetFeatureListResultDto>( |
|
||||
{ |
|
||||
method: 'GET', |
|
||||
url: '/api/feature-management/features', |
|
||||
params: { providerName, providerKey }, |
|
||||
}, |
|
||||
{ apiName: this.apiName }, |
|
||||
); |
|
||||
|
|
||||
update = (providerName: string, providerKey: string, input: UpdateFeaturesDto) => |
|
||||
this.restService.request<any, void>( |
|
||||
{ |
|
||||
method: 'PUT', |
|
||||
url: '/api/feature-management/features', |
|
||||
params: { providerName, providerKey }, |
|
||||
body: input, |
|
||||
}, |
|
||||
{ apiName: this.apiName }, |
|
||||
); |
|
||||
|
|
||||
constructor(private restService: RestService) {} |
|
||||
} |
|
||||
@ -1,2 +0,0 @@ |
|||||
export * from './features.service'; |
|
||||
export * from './models'; |
|
||||
@ -1,36 +0,0 @@ |
|||||
import type { IStringValueType } from '../validation/string-values/models'; |
|
||||
|
|
||||
export interface FeatureDto { |
|
||||
name: string; |
|
||||
displayName: string; |
|
||||
value: string; |
|
||||
provider: FeatureProviderDto; |
|
||||
description: string; |
|
||||
valueType: IStringValueType; |
|
||||
depth: number; |
|
||||
parentName: string; |
|
||||
} |
|
||||
|
|
||||
export interface FeatureGroupDto { |
|
||||
name: string; |
|
||||
displayName: string; |
|
||||
features: FeatureDto[]; |
|
||||
} |
|
||||
|
|
||||
export interface FeatureProviderDto { |
|
||||
name: string; |
|
||||
key: string; |
|
||||
} |
|
||||
|
|
||||
export interface GetFeatureListResultDto { |
|
||||
groups: FeatureGroupDto[]; |
|
||||
} |
|
||||
|
|
||||
export interface UpdateFeatureDto { |
|
||||
name: string; |
|
||||
value: string; |
|
||||
} |
|
||||
|
|
||||
export interface UpdateFeaturesDto { |
|
||||
features: UpdateFeatureDto[]; |
|
||||
} |
|
||||
File diff suppressed because it is too large
@ -1,2 +0,0 @@ |
|||||
export * as FeatureManagement from './feature-management'; |
|
||||
export * as Validation from './validation'; |
|
||||
@ -1 +0,0 @@ |
|||||
export * as StringValues from './string-values'; |
|
||||
@ -1 +0,0 @@ |
|||||
export * from './models'; |
|
||||
@ -1,14 +0,0 @@ |
|||||
/* eslint-disable @typescript-eslint/ban-types */ |
|
||||
|
|
||||
export interface IStringValueType { |
|
||||
name: string; |
|
||||
item: object; |
|
||||
properties: Record<string, object>; |
|
||||
validator: IValueValidator; |
|
||||
} |
|
||||
|
|
||||
export interface IValueValidator { |
|
||||
name: string; |
|
||||
item: object; |
|
||||
properties: Record<string, object>; |
|
||||
} |
|
||||
Loading…
Reference in new issue