Skip to content

Commit

Permalink
chore : rename me entity with account
Browse files Browse the repository at this point in the history
  • Loading branch information
R11manish committed Sep 11, 2024
1 parent f18c913 commit 4af3b4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { MediaType } from 'openapi-typescript-helpers';
import { paths } from './api';
import { Auth } from './modules/auth/auth';
import { DataModel } from './modules/data-model/data-model';
import { CurrentUser } from './modules/me/me';
import { Account } from './modules/account/account';

class SDKFactory {
static createSDK({ token, url, logging = false }: Config) {
Expand Down Expand Up @@ -38,7 +38,7 @@ export class Gateway {
public dataAsset!: DataAsset;
public auth!: Auth;
public dataModel!: DataModel;
public currentUser!: CurrentUser;
public account!: Account;

constructor(config: Config) {
const validationService = new ValidationService();
Expand All @@ -51,10 +51,6 @@ export class Gateway {
this.dataAsset = new DataAsset(this.client, validationService, this.config);
this.auth = new Auth(this.client);
this.dataModel = new DataModel(this.client, validationService, this.config);
this.currentUser = new CurrentUser(
this.client,
validationService,
this.config,
);
this.account = new Account(this.client, validationService, this.config);
}
}
2 changes: 1 addition & 1 deletion src/modules/me/me.ts → src/modules/account/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ValidationService } from '../../services/validator-service';
import { paths } from '../../api';
import { GTWError } from '../../helpers/custom-error';

export class CurrentUser {
export class Account {
private client: OpenAPIClient<paths, MediaType>;
private validationService: ValidationService;
private config: Config;
Expand Down

0 comments on commit 4af3b4e

Please sign in to comment.