Skip to content

Commit

Permalink
Changed class name approach
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Baptiste Bianchi <jb.bianchi@neuroglia.io>
  • Loading branch information
JBBianchi committed Jul 28, 2024
1 parent d7704ba commit 4523ef9
Show file tree
Hide file tree
Showing 99 changed files with 707 additions and 475 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
node-version: [20.x, 21.x, 22.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npmjs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: '15.x'
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm test
Expand Down
6 changes: 3 additions & 3 deletions src/lib/generated/classes/authentication-policy-basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _AuthenticationPolicyBasic extends Hydrator<Specification.AuthenticationPolicyBasic> {
class AuthenticationPolicyBasic extends Hydrator<Specification.AuthenticationPolicyBasic> {
constructor(model?: Partial<Specification.AuthenticationPolicyBasic>) {
super(model);
}
}

export const AuthenticationPolicyBasic = _AuthenticationPolicyBasic as {
export const _AuthenticationPolicyBasic = AuthenticationPolicyBasic as {
new (
model?: Partial<Specification.AuthenticationPolicyBasic>,
): _AuthenticationPolicyBasic & Specification.AuthenticationPolicyBasic;
): AuthenticationPolicyBasic & Specification.AuthenticationPolicyBasic;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/authentication-policy-bearer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _AuthenticationPolicyBearer extends Hydrator<Specification.AuthenticationPolicyBearer> {
class AuthenticationPolicyBearer extends Hydrator<Specification.AuthenticationPolicyBearer> {
constructor(model?: Partial<Specification.AuthenticationPolicyBearer>) {
super(model);
}
}

export const AuthenticationPolicyBearer = _AuthenticationPolicyBearer as {
export const _AuthenticationPolicyBearer = AuthenticationPolicyBearer as {
new (
model?: Partial<Specification.AuthenticationPolicyBearer>,
): _AuthenticationPolicyBearer & Specification.AuthenticationPolicyBearer;
): AuthenticationPolicyBearer & Specification.AuthenticationPolicyBearer;
};
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _AuthenticationPolicyOauth2Client extends Hydrator<Specification.AuthenticationPolicyOauth2Client> {
class AuthenticationPolicyOauth2Client extends Hydrator<Specification.AuthenticationPolicyOauth2Client> {
constructor(model?: Partial<Specification.AuthenticationPolicyOauth2Client>) {
super(model);
}
}

export const AuthenticationPolicyOauth2Client = _AuthenticationPolicyOauth2Client as {
export const _AuthenticationPolicyOauth2Client = AuthenticationPolicyOauth2Client as {
new (
model?: Partial<Specification.AuthenticationPolicyOauth2Client>,
): _AuthenticationPolicyOauth2Client & Specification.AuthenticationPolicyOauth2Client;
): AuthenticationPolicyOauth2Client & Specification.AuthenticationPolicyOauth2Client;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/authentication-policy-oauth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _AuthenticationPolicyOauth2 extends Hydrator<Specification.AuthenticationPolicyOauth2> {
class AuthenticationPolicyOauth2 extends Hydrator<Specification.AuthenticationPolicyOauth2> {
constructor(model?: Partial<Specification.AuthenticationPolicyOauth2>) {
super(model);
}
}

export const AuthenticationPolicyOauth2 = _AuthenticationPolicyOauth2 as {
export const _AuthenticationPolicyOauth2 = AuthenticationPolicyOauth2 as {
new (
model?: Partial<Specification.AuthenticationPolicyOauth2>,
): _AuthenticationPolicyOauth2 & Specification.AuthenticationPolicyOauth2;
): AuthenticationPolicyOauth2 & Specification.AuthenticationPolicyOauth2;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/authentication-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _AuthenticationPolicy extends Hydrator<Specification.AuthenticationPolicy> {
class AuthenticationPolicy extends Hydrator<Specification.AuthenticationPolicy> {
constructor(model?: Partial<Specification.AuthenticationPolicy>) {
super(model);
}
}

export const AuthenticationPolicy = _AuthenticationPolicy as {
new (model?: Partial<Specification.AuthenticationPolicy>): _AuthenticationPolicy & Specification.AuthenticationPolicy;
export const _AuthenticationPolicy = AuthenticationPolicy as {
new (model?: Partial<Specification.AuthenticationPolicy>): AuthenticationPolicy & Specification.AuthenticationPolicy;
};
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallAsyncAPIWithAuthentication extends Hydrator<Specification.CallAsyncAPIWithAuthentication> {
class CallAsyncAPIWithAuthentication extends Hydrator<Specification.CallAsyncAPIWithAuthentication> {
constructor(model?: Partial<Specification.CallAsyncAPIWithAuthentication>) {
super(model);
}
}

export const CallAsyncAPIWithAuthentication = _CallAsyncAPIWithAuthentication as {
export const _CallAsyncAPIWithAuthentication = CallAsyncAPIWithAuthentication as {
new (
model?: Partial<Specification.CallAsyncAPIWithAuthentication>,
): _CallAsyncAPIWithAuthentication & Specification.CallAsyncAPIWithAuthentication;
): CallAsyncAPIWithAuthentication & Specification.CallAsyncAPIWithAuthentication;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/call-async-api-with.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallAsyncAPIWith extends Hydrator<Specification.CallAsyncAPIWith> {
class CallAsyncAPIWith extends Hydrator<Specification.CallAsyncAPIWith> {
constructor(model?: Partial<Specification.CallAsyncAPIWith>) {
super(model);
}
}

export const CallAsyncAPIWith = _CallAsyncAPIWith as {
new (model?: Partial<Specification.CallAsyncAPIWith>): _CallAsyncAPIWith & Specification.CallAsyncAPIWith;
export const _CallAsyncAPIWith = CallAsyncAPIWith as {
new (model?: Partial<Specification.CallAsyncAPIWith>): CallAsyncAPIWith & Specification.CallAsyncAPIWith;
};
8 changes: 4 additions & 4 deletions src/lib/generated/classes/call-async-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
*
*****************************************************************************************/

import { TaskBase } from './task-base';
import { _TaskBase } from './task-base';
import { Specification } from '../definitions';

class _CallAsyncAPI extends TaskBase {
class CallAsyncAPI extends _TaskBase {
constructor(model?: Partial<Specification.CallAsyncAPI>) {
super(model);
}
}

export const CallAsyncAPI = _CallAsyncAPI as {
new (model?: Partial<Specification.CallAsyncAPI>): _CallAsyncAPI & Specification.CallAsyncAPI;
export const _CallAsyncAPI = CallAsyncAPI as {
new (model?: Partial<Specification.CallAsyncAPI>): CallAsyncAPI & Specification.CallAsyncAPI;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/call-function-with.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallFunctionWith extends Hydrator<Specification.CallFunctionWith> {
class CallFunctionWith extends Hydrator<Specification.CallFunctionWith> {
constructor(model?: Partial<Specification.CallFunctionWith>) {
super(model);
}
}

export const CallFunctionWith = _CallFunctionWith as {
new (model?: Partial<Specification.CallFunctionWith>): _CallFunctionWith & Specification.CallFunctionWith;
export const _CallFunctionWith = CallFunctionWith as {
new (model?: Partial<Specification.CallFunctionWith>): CallFunctionWith & Specification.CallFunctionWith;
};
8 changes: 4 additions & 4 deletions src/lib/generated/classes/call-function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
*
*****************************************************************************************/

import { TaskBase } from './task-base';
import { _TaskBase } from './task-base';
import { Specification } from '../definitions';

class _CallFunction extends TaskBase {
class CallFunction extends _TaskBase {
constructor(model?: Partial<Specification.CallFunction>) {
super(model);
}
}

export const CallFunction = _CallFunction as {
new (model?: Partial<Specification.CallFunction>): _CallFunction & Specification.CallFunction;
export const _CallFunction = CallFunction as {
new (model?: Partial<Specification.CallFunction>): CallFunction & Specification.CallFunction;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/call-grpc-with-arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallGRPCWithArguments extends Hydrator<Specification.CallGRPCWithArguments> {
class CallGRPCWithArguments extends Hydrator<Specification.CallGRPCWithArguments> {
constructor(model?: Partial<Specification.CallGRPCWithArguments>) {
super(model);
}
}

export const CallGRPCWithArguments = _CallGRPCWithArguments as {
export const _CallGRPCWithArguments = CallGRPCWithArguments as {
new (
model?: Partial<Specification.CallGRPCWithArguments>,
): _CallGRPCWithArguments & Specification.CallGRPCWithArguments;
): CallGRPCWithArguments & Specification.CallGRPCWithArguments;
};
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallGRPCWithServiceAuthentication extends Hydrator<Specification.CallGRPCWithServiceAuthentication> {
class CallGRPCWithServiceAuthentication extends Hydrator<Specification.CallGRPCWithServiceAuthentication> {
constructor(model?: Partial<Specification.CallGRPCWithServiceAuthentication>) {
super(model);
}
}

export const CallGRPCWithServiceAuthentication = _CallGRPCWithServiceAuthentication as {
export const _CallGRPCWithServiceAuthentication = CallGRPCWithServiceAuthentication as {
new (
model?: Partial<Specification.CallGRPCWithServiceAuthentication>,
): _CallGRPCWithServiceAuthentication & Specification.CallGRPCWithServiceAuthentication;
): CallGRPCWithServiceAuthentication & Specification.CallGRPCWithServiceAuthentication;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/call-grpc-with-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallGRPCWithService extends Hydrator<Specification.CallGRPCWithService> {
class CallGRPCWithService extends Hydrator<Specification.CallGRPCWithService> {
constructor(model?: Partial<Specification.CallGRPCWithService>) {
super(model);
}
}

export const CallGRPCWithService = _CallGRPCWithService as {
new (model?: Partial<Specification.CallGRPCWithService>): _CallGRPCWithService & Specification.CallGRPCWithService;
export const _CallGRPCWithService = CallGRPCWithService as {
new (model?: Partial<Specification.CallGRPCWithService>): CallGRPCWithService & Specification.CallGRPCWithService;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/call-grpc-with.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallGRPCWith extends Hydrator<Specification.CallGRPCWith> {
class CallGRPCWith extends Hydrator<Specification.CallGRPCWith> {
constructor(model?: Partial<Specification.CallGRPCWith>) {
super(model);
}
}

export const CallGRPCWith = _CallGRPCWith as {
new (model?: Partial<Specification.CallGRPCWith>): _CallGRPCWith & Specification.CallGRPCWith;
export const _CallGRPCWith = CallGRPCWith as {
new (model?: Partial<Specification.CallGRPCWith>): CallGRPCWith & Specification.CallGRPCWith;
};
8 changes: 4 additions & 4 deletions src/lib/generated/classes/call-grpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
*
*****************************************************************************************/

import { TaskBase } from './task-base';
import { _TaskBase } from './task-base';
import { Specification } from '../definitions';

class _CallGRPC extends TaskBase {
class CallGRPC extends _TaskBase {
constructor(model?: Partial<Specification.CallGRPC>) {
super(model);
}
}

export const CallGRPC = _CallGRPC as {
new (model?: Partial<Specification.CallGRPC>): _CallGRPC & Specification.CallGRPC;
export const _CallGRPC = CallGRPC as {
new (model?: Partial<Specification.CallGRPC>): CallGRPC & Specification.CallGRPC;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/call-http-with-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallHTTPWithEndpoint extends Hydrator<Specification.CallHTTPWithEndpoint> {
class CallHTTPWithEndpoint extends Hydrator<Specification.CallHTTPWithEndpoint> {
constructor(model?: Partial<Specification.CallHTTPWithEndpoint>) {
super(model);
}
}

export const CallHTTPWithEndpoint = _CallHTTPWithEndpoint as {
new (model?: Partial<Specification.CallHTTPWithEndpoint>): _CallHTTPWithEndpoint & Specification.CallHTTPWithEndpoint;
export const _CallHTTPWithEndpoint = CallHTTPWithEndpoint as {
new (model?: Partial<Specification.CallHTTPWithEndpoint>): CallHTTPWithEndpoint & Specification.CallHTTPWithEndpoint;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/call-http-with.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallHTTPWith extends Hydrator<Specification.CallHTTPWith> {
class CallHTTPWith extends Hydrator<Specification.CallHTTPWith> {
constructor(model?: Partial<Specification.CallHTTPWith>) {
super(model);
}
}

export const CallHTTPWith = _CallHTTPWith as {
new (model?: Partial<Specification.CallHTTPWith>): _CallHTTPWith & Specification.CallHTTPWith;
export const _CallHTTPWith = CallHTTPWith as {
new (model?: Partial<Specification.CallHTTPWith>): CallHTTPWith & Specification.CallHTTPWith;
};
8 changes: 4 additions & 4 deletions src/lib/generated/classes/call-http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
*
*****************************************************************************************/

import { TaskBase } from './task-base';
import { _TaskBase } from './task-base';
import { Specification } from '../definitions';

class _CallHTTP extends TaskBase {
class CallHTTP extends _TaskBase {
constructor(model?: Partial<Specification.CallHTTP>) {
super(model);
}
}

export const CallHTTP = _CallHTTP as {
new (model?: Partial<Specification.CallHTTP>): _CallHTTP & Specification.CallHTTP;
export const _CallHTTP = CallHTTP as {
new (model?: Partial<Specification.CallHTTP>): CallHTTP & Specification.CallHTTP;
};
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallOpenAPIWithAuthentication extends Hydrator<Specification.CallOpenAPIWithAuthentication> {
class CallOpenAPIWithAuthentication extends Hydrator<Specification.CallOpenAPIWithAuthentication> {
constructor(model?: Partial<Specification.CallOpenAPIWithAuthentication>) {
super(model);
}
}

export const CallOpenAPIWithAuthentication = _CallOpenAPIWithAuthentication as {
export const _CallOpenAPIWithAuthentication = CallOpenAPIWithAuthentication as {
new (
model?: Partial<Specification.CallOpenAPIWithAuthentication>,
): _CallOpenAPIWithAuthentication & Specification.CallOpenAPIWithAuthentication;
): CallOpenAPIWithAuthentication & Specification.CallOpenAPIWithAuthentication;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/call-open-api-with-parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallOpenAPIWithParameters extends Hydrator<Specification.CallOpenAPIWithParameters> {
class CallOpenAPIWithParameters extends Hydrator<Specification.CallOpenAPIWithParameters> {
constructor(model?: Partial<Specification.CallOpenAPIWithParameters>) {
super(model);
}
}

export const CallOpenAPIWithParameters = _CallOpenAPIWithParameters as {
export const _CallOpenAPIWithParameters = CallOpenAPIWithParameters as {
new (
model?: Partial<Specification.CallOpenAPIWithParameters>,
): _CallOpenAPIWithParameters & Specification.CallOpenAPIWithParameters;
): CallOpenAPIWithParameters & Specification.CallOpenAPIWithParameters;
};
6 changes: 3 additions & 3 deletions src/lib/generated/classes/call-open-api-with.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import { Hydrator } from '../../hydrator';
import { Specification } from '../definitions';

class _CallOpenAPIWith extends Hydrator<Specification.CallOpenAPIWith> {
class CallOpenAPIWith extends Hydrator<Specification.CallOpenAPIWith> {
constructor(model?: Partial<Specification.CallOpenAPIWith>) {
super(model);
}
}

export const CallOpenAPIWith = _CallOpenAPIWith as {
new (model?: Partial<Specification.CallOpenAPIWith>): _CallOpenAPIWith & Specification.CallOpenAPIWith;
export const _CallOpenAPIWith = CallOpenAPIWith as {
new (model?: Partial<Specification.CallOpenAPIWith>): CallOpenAPIWith & Specification.CallOpenAPIWith;
};
Loading

0 comments on commit 4523ef9

Please sign in to comment.