Skip to content

Commit

Permalink
Merge pull request #26 from sendinblue/fix-unused-imports
Browse files Browse the repository at this point in the history
unused imports removal eslint added
  • Loading branch information
aayush-sib authored Mar 30, 2021
2 parents 7dccd87 + 58acad5 commit 630808e
Show file tree
Hide file tree
Showing 415 changed files with 2,955 additions and 1,823 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
16 changes: 16 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"unused-imports"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"unused-imports/no-unused-imports-ts" : 2
}
}
13 changes: 6 additions & 7 deletions api/accountApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/accountApi.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions api/accountApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import http = require('http');
import { GetAccount } from '../model/getAccount';

import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
import { ApiKeyAuth } from '../model/models';

import { HttpError, RequestFile } from './apis';
import { HttpError } from './apis';

let defaultBasePath = 'https://api.sendinblue.com/v3';
const defaultBasePath = 'https://api.sendinblue.com/v3';

// ===============================================
// This file is autogenerated - Please do not edit
Expand All @@ -34,8 +34,8 @@ export enum AccountApiApiKeys {

export class AccountApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node' };;
protected _useQuerystring : boolean = false;
protected _defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node' };
protected _useQuerystring = false;

protected authentications = {
'default': <Authentication>new VoidAuth(),
Expand Down Expand Up @@ -100,22 +100,22 @@ export class AccountApi {
*/
public async getAccount (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetAccount; }> {
const localVarPath = this.basePath + '/account';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const localVarQueryParameters: any = {};
const localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
const localVarFormParams: any = {};

(<any>Object).assign(localVarHeaderParams, options.headers);

let localVarUseFormData = false;
const localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
const localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
Expand Down
42 changes: 21 additions & 21 deletions api/attributesApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 630808e

Please sign in to comment.