Browse Source

Update proxy files of core

pull/15499/head
Mahmut Gundogdu 4 years ago
parent
commit
aa246368f0
  1. 2754
      npm/ng-packs/packages/core/src/lib/proxy/generate-proxy.json
  2. 32
      npm/ng-packs/packages/core/src/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.ts
  3. 25
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.ts
  4. 18
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.ts
  5. 16
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.ts
  6. 3
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/http/modeling/models.ts
  7. 2
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/localization/models.ts

2754
npm/ng-packs/packages/core/src/lib/proxy/generate-proxy.json

File diff suppressed because it is too large

32
npm/ng-packs/packages/core/src/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.ts

@ -1,5 +1,5 @@
import { RestService } from '@abp/ng.core';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { RestService } from '../../../../services/rest.service';
import type { FindTenantResultDto } from '../../../volo/abp/asp-net-core/mvc/multi-tenancy/models'; import type { FindTenantResultDto } from '../../../volo/abp/asp-net-core/mvc/multi-tenancy/models';
@Injectable({ @Injectable({
@ -7,20 +7,24 @@ import type { FindTenantResultDto } from '../../../volo/abp/asp-net-core/mvc/mul
}) })
export class AbpTenantService { export class AbpTenantService {
apiName = 'abp'; apiName = 'abp';
findTenantById = (id: string) => findTenantById = (id: string) =>
this.restService.request<any, FindTenantResultDto>({ this.restService.request<any, FindTenantResultDto>(
method: 'GET', {
url: `/api/abp/multi-tenancy/tenants/by-id/${id}`, method: 'GET',
}, url: `/api/abp/multi-tenancy/tenants/by-id/${id}`,
{ apiName: this.apiName }); },
{ apiName: this.apiName },
);
findTenantByName = (name: string) => findTenantByName = (name: string) =>
this.restService.request<any, FindTenantResultDto>({ this.restService.request<any, FindTenantResultDto>(
method: 'GET', {
url: `/api/abp/multi-tenancy/tenants/by-name/${name}`, method: 'GET',
}, url: `/api/abp/multi-tenancy/tenants/by-name/${name}`,
{ apiName: this.apiName }); },
{ apiName: this.apiName },
);
constructor(private restService: RestService) { } constructor(private restService: RestService) {}
} }

25
npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.ts

@ -1,20 +1,25 @@
import { RestService } from '../../../../../../services/rest.service'; import { RestService } from '@abp/ng.core';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import type { ApplicationApiDescriptionModel, ApplicationApiDescriptionModelRequestDto } from '../../../http/modeling/models'; import type {
ApplicationApiDescriptionModel,
ApplicationApiDescriptionModelRequestDto,
} from '../../../http/modeling/models';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root',
}) })
export class AbpApiDefinitionService { export class AbpApiDefinitionService {
apiName = 'abp'; apiName = 'abp';
getByModel = (model: ApplicationApiDescriptionModelRequestDto) => getByModel = (model: ApplicationApiDescriptionModelRequestDto) =>
this.restService.request<any, ApplicationApiDescriptionModel>({ this.restService.request<any, ApplicationApiDescriptionModel>(
method: 'GET', {
url: '/api/abp/api-definition', method: 'GET',
params: { includeTypes: model.includeTypes }, url: '/api/abp/api-definition',
}, params: { includeTypes: model.includeTypes },
{ apiName: this.apiName }); },
{ apiName: this.apiName },
);
constructor(private restService: RestService) { } constructor(private restService: RestService) {}
} }

18
npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.ts

@ -1,5 +1,5 @@
import type { ApplicationConfigurationDto, ApplicationConfigurationRequestOptions } from './models'; import type { ApplicationConfigurationDto, ApplicationConfigurationRequestOptions } from './models';
import { RestService } from '../../../../../../services/rest.service'; import { RestService } from '@abp/ng.core';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
@Injectable({ @Injectable({
@ -7,14 +7,16 @@ import { Injectable } from '@angular/core';
}) })
export class AbpApplicationConfigurationService { export class AbpApplicationConfigurationService {
apiName = 'abp'; apiName = 'abp';
get = (options: ApplicationConfigurationRequestOptions) => get = (options: ApplicationConfigurationRequestOptions) =>
this.restService.request<any, ApplicationConfigurationDto>({ this.restService.request<any, ApplicationConfigurationDto>(
method: 'GET', {
url: '/api/abp/application-configuration', method: 'GET',
params: { includeLocalizationResources: options.includeLocalizationResources }, url: '/api/abp/application-configuration',
}, params: { includeLocalizationResources: options.includeLocalizationResources },
{ apiName: this.apiName }); },
{ apiName: this.apiName },
);
constructor(private restService: RestService) {} constructor(private restService: RestService) {}
} }

16
npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.ts

@ -1,6 +1,6 @@
import type { ApplicationLocalizationDto, ApplicationLocalizationRequestDto } from './models'; import type { ApplicationLocalizationDto, ApplicationLocalizationRequestDto } from './models';
import { RestService } from '@abp/ng.core';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { RestService } from '../../../../../../services/rest.service';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root',
@ -9,12 +9,14 @@ export class AbpApplicationLocalizationService {
apiName = 'abp'; apiName = 'abp';
get = (input: ApplicationLocalizationRequestDto) => get = (input: ApplicationLocalizationRequestDto) =>
this.restService.request<any, ApplicationLocalizationDto>({ this.restService.request<any, ApplicationLocalizationDto>(
method: 'GET', {
url: '/api/abp/application-localization', method: 'GET',
params: { cultureName: input.cultureName, onlyDynamics: input.onlyDynamics }, url: '/api/abp/application-localization',
}, params: { cultureName: input.cultureName, onlyDynamics: input.onlyDynamics },
{ apiName: this.apiName }); },
{ apiName: this.apiName },
);
constructor(private restService: RestService) {} constructor(private restService: RestService) {}
} }

3
npm/ng-packs/packages/core/src/lib/proxy/volo/abp/http/modeling/models.ts

@ -1,4 +1,3 @@
export interface ActionApiDescriptionModel { export interface ActionApiDescriptionModel {
uniqueName?: string; uniqueName?: string;
name?: string; name?: string;
@ -25,7 +24,7 @@ export interface ControllerApiDescriptionModel {
controllerName?: string; controllerName?: string;
controllerGroupName?: string; controllerGroupName?: string;
isRemoteService: boolean; isRemoteService: boolean;
integrationService: boolean; isIntegrationService: boolean;
apiVersion?: string; apiVersion?: string;
type?: string; type?: string;
interfaces: ControllerInterfaceApiDescriptionModel[]; interfaces: ControllerInterfaceApiDescriptionModel[];

2
npm/ng-packs/packages/core/src/lib/proxy/volo/abp/localization/models.ts

@ -1,7 +1,7 @@
export interface LanguageInfo { export interface LanguageInfo {
cultureName?: string; cultureName?: string;
uiCultureName?: string; uiCultureName?: string;
displayName?: string; displayName?: string;
twoLetterISOLanguageName?: string;
flagIcon?: string; flagIcon?: string;
} }

Loading…
Cancel
Save