Browse Source

Update proxy files of core

pull/15499/head
Mahmut Gundogdu 3 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 { RestService } from '../../../../services/rest.service';
import type { FindTenantResultDto } from '../../../volo/abp/asp-net-core/mvc/multi-tenancy/models';
@Injectable({
@ -7,20 +7,24 @@ import type { FindTenantResultDto } from '../../../volo/abp/asp-net-core/mvc/mul
})
export class AbpTenantService {
apiName = 'abp';
findTenantById = (id: string) =>
this.restService.request<any, FindTenantResultDto>({
method: 'GET',
url: `/api/abp/multi-tenancy/tenants/by-id/${id}`,
},
{ apiName: this.apiName });
this.restService.request<any, FindTenantResultDto>(
{
method: 'GET',
url: `/api/abp/multi-tenancy/tenants/by-id/${id}`,
},
{ apiName: this.apiName },
);
findTenantByName = (name: string) =>
this.restService.request<any, FindTenantResultDto>({
method: 'GET',
url: `/api/abp/multi-tenancy/tenants/by-name/${name}`,
},
{ apiName: this.apiName });
this.restService.request<any, FindTenantResultDto>(
{
method: 'GET',
url: `/api/abp/multi-tenancy/tenants/by-name/${name}`,
},
{ 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 type { ApplicationApiDescriptionModel, ApplicationApiDescriptionModelRequestDto } from '../../../http/modeling/models';
import type {
ApplicationApiDescriptionModel,
ApplicationApiDescriptionModelRequestDto,
} from '../../../http/modeling/models';
@Injectable({
providedIn: 'root',
})
export class AbpApiDefinitionService {
apiName = 'abp';
getByModel = (model: ApplicationApiDescriptionModelRequestDto) =>
this.restService.request<any, ApplicationApiDescriptionModel>({
method: 'GET',
url: '/api/abp/api-definition',
params: { includeTypes: model.includeTypes },
},
{ apiName: this.apiName });
this.restService.request<any, ApplicationApiDescriptionModel>(
{
method: 'GET',
url: '/api/abp/api-definition',
params: { includeTypes: model.includeTypes },
},
{ 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 { RestService } from '../../../../../../services/rest.service';
import { RestService } from '@abp/ng.core';
import { Injectable } from '@angular/core';
@Injectable({
@ -7,14 +7,16 @@ import { Injectable } from '@angular/core';
})
export class AbpApplicationConfigurationService {
apiName = 'abp';
get = (options: ApplicationConfigurationRequestOptions) =>
this.restService.request<any, ApplicationConfigurationDto>({
method: 'GET',
url: '/api/abp/application-configuration',
params: { includeLocalizationResources: options.includeLocalizationResources },
},
{ apiName: this.apiName });
this.restService.request<any, ApplicationConfigurationDto>(
{
method: 'GET',
url: '/api/abp/application-configuration',
params: { includeLocalizationResources: options.includeLocalizationResources },
},
{ apiName: this.apiName },
);
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 { RestService } from '@abp/ng.core';
import { Injectable } from '@angular/core';
import { RestService } from '../../../../../../services/rest.service';
@Injectable({
providedIn: 'root',
@ -9,12 +9,14 @@ export class AbpApplicationLocalizationService {
apiName = 'abp';
get = (input: ApplicationLocalizationRequestDto) =>
this.restService.request<any, ApplicationLocalizationDto>({
method: 'GET',
url: '/api/abp/application-localization',
params: { cultureName: input.cultureName, onlyDynamics: input.onlyDynamics },
},
{ apiName: this.apiName });
this.restService.request<any, ApplicationLocalizationDto>(
{
method: 'GET',
url: '/api/abp/application-localization',
params: { cultureName: input.cultureName, onlyDynamics: input.onlyDynamics },
},
{ apiName: this.apiName },
);
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 {
uniqueName?: string;
name?: string;
@ -25,7 +24,7 @@ export interface ControllerApiDescriptionModel {
controllerName?: string;
controllerGroupName?: string;
isRemoteService: boolean;
integrationService: boolean;
isIntegrationService: boolean;
apiVersion?: string;
type?: string;
interfaces: ControllerInterfaceApiDescriptionModel[];

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

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

Loading…
Cancel
Save