Skip to content

Commit

Permalink
Merge branch 'release/5.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
nsteenbeek committed Jul 29, 2021
2 parents 79194cb + eaae8f0 commit f908a2c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions bin/Entity/Entity.model.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* This is a generated file, please regenerate and do not modify */
/* eslint-disable max-len */

// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface EntityModel extends Model {}

/* eslint-enable max-len */
2 changes: 1 addition & 1 deletion bin/Entity/Entity.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {WebApi} from '../WebApi/WebApi';
import {Service} from '../WebApi/Service';

export class EntityService {
private static logicalName = 'EntityLogicalName';
public static logicalName = 'EntityLogicalName';

public static async retrieveMultipleRecords(multipleSystemQueryOptions: MultipleSystemQueryOptions): Promise<EntityModel[]> {
return WebApi.retrieveMultipleRecords(EntityService.logicalName, multipleSystemQueryOptions);
Expand Down
2 changes: 1 addition & 1 deletion bin/EnvironmentVariable/EnvironmentVariable.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {WebApi} from '../WebApi/WebApi';

export class EnvironmentVariableService {
private static logicalName = 'environmentvariablevalue';
public static logicalName = 'environmentvariablevalue';
private static async retrieveMultipleRecords(multipleSystemQueryOptions: MultipleSystemQueryOptions): Promise<EnvironmentVariableModel[]> {
return WebApi.retrieveMultipleRecords(EnvironmentVariableService.logicalName, multipleSystemQueryOptions);
}
Expand Down
2 changes: 1 addition & 1 deletion bin/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bin/root/src/Annotation/Annotation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Base64} from '../util/Base64';
import {Service} from '../WebApi/Service';

export class AnnotationService {
private static logicalName = 'annotation';
public static logicalName = 'annotation';

public static async parseAnnotation(blob: Blob, filename: string, id: string, targetEntityName: string): Promise<AnnotationModel> {
return {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hso/d365-cli",
"version": "5.2.1",
"version": "5.2.2",
"author": "HSO Innovation <[email protected]> (http://www.hso.com)",
"description": "HSO D365 Command Line Interface",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/generator/Entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class Entity extends AdalRouter {
// Entity.registerWebpackConfig(this.entityName);
} else {
const fileData = String(fs.readFileSync(serviceFilepath));
const match = fileData.match(new RegExp(`private static logicalName = '([a-zA-Z_]*)';`));
const match = fileData.match(new RegExp(`static logicalName = '([a-zA-Z_]*)';`));
this.entityLogicalName = match[1];
console.log(colors.green(`Entity ${this.entityName} already exist`));
}
Expand Down
2 changes: 1 addition & 1 deletion src/generator/ModelRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class ModelRouter extends AdalRouter {
} else {
const serviceFilepath = `src/${this.entityName}/${this.entityName}.service.ts`;
const fileData = String(fs.readFileSync(serviceFilepath));
const match = fileData.match(new RegExp(`private static logicalName = '([a-zA-Z_]*)';`));
const match = fileData.match(new RegExp(`static logicalName = '([a-zA-Z_]*)';`));
this.entityLogicalName = match[1];
console.log(colors.green(`Entity ${this.entityName} already exist`));
await Model.generateModel(this.bearer, this.entityName, this.entityLogicalName, async (message: string) => this.log(message));
Expand Down
2 changes: 1 addition & 1 deletion src/root/tools/Webresource/Webresource.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {WebresourceModel} from './Webresource.model';
import {NodeApi} from '../NodeApi/NodeApi';

export class WebresourceService {
private static logicalName = 'webresource';
public static logicalName = 'webresource';
private static entitySetName = 'webresourceset';

public static async retrieveMultipleRecords(multipleSystemQueryOptions: MultipleSystemQueryOptions, bearer: string): Promise<WebresourceModel[]> {
Expand Down

0 comments on commit f908a2c

Please sign in to comment.