Browse Source

Merge pull request #15499 from abpframework/issue/15381-Different_display_of_language

Update proxy files of core
pull/15501/head
Muhammed Altuğ 3 years ago
committed by GitHub
parent
commit
aa9526ef70
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2754
      npm/ng-packs/packages/core/src/lib/proxy/generate-proxy.json
  2. 30
      npm/ng-packs/packages/core/src/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.ts
  3. 23
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.ts
  4. 16
      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

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

@ -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) {}
}

23
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 { 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) {}
}

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

@ -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 { Injectable } from '@angular/core';
import { RestService } from '../../../../../../services/rest.service';
import { Injectable } from '@angular/core';
@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