From b22359e50eb76eb3fd1327029118ca261c013a54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenzo=20Garc=C3=ADa=20Moreno?= Date: Fri, 19 Feb 2021 21:40:23 +0100 Subject: [PATCH] fix imports for 'request' and 'http' --- api/accountApi.d.ts | 2 +- api/accountApi.ts | 4 ++-- api/attributesApi.d.ts | 2 +- api/attributesApi.ts | 4 ++-- api/contactsApi.d.ts | 2 +- api/contactsApi.ts | 4 ++-- api/emailCampaignsApi.d.ts | 2 +- api/emailCampaignsApi.ts | 4 ++-- api/foldersApi.d.ts | 2 +- api/foldersApi.ts | 4 ++-- api/listsApi.d.ts | 2 +- api/listsApi.ts | 4 ++-- api/processApi.d.ts | 2 +- api/processApi.ts | 4 ++-- api/resellerApi.d.ts | 2 +- api/resellerApi.ts | 4 ++-- api/sMSCampaignsApi.d.ts | 2 +- api/sMSCampaignsApi.ts | 4 ++-- api/sendersApi.d.ts | 2 +- api/sendersApi.ts | 4 ++-- api/transactionalEmailsApi.d.ts | 2 +- api/transactionalEmailsApi.ts | 4 ++-- api/transactionalSMSApi.d.ts | 2 +- api/transactionalSMSApi.ts | 4 ++-- api/webhooksApi.d.ts | 2 +- api/webhooksApi.ts | 4 ++-- model/models.d.ts | 2 +- model/models.ts | 2 +- 28 files changed, 41 insertions(+), 41 deletions(-) diff --git a/api/accountApi.d.ts b/api/accountApi.d.ts index b8f4a35..c39e93a 100644 --- a/api/accountApi.d.ts +++ b/api/accountApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { GetAccount } from '../model/getAccount'; import { Authentication, Interceptor } from '../model/models'; import { ApiKeyAuth } from '../model/models'; diff --git a/api/accountApi.ts b/api/accountApi.ts index b0c2160..5eb6559 100644 --- a/api/accountApi.ts +++ b/api/accountApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { GetAccount } from '../model/getAccount'; diff --git a/api/attributesApi.d.ts b/api/attributesApi.d.ts index f068fa0..418b93c 100644 --- a/api/attributesApi.d.ts +++ b/api/attributesApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { CreateAttribute } from '../model/createAttribute'; import { GetAttributes } from '../model/getAttributes'; import { UpdateAttribute } from '../model/updateAttribute'; diff --git a/api/attributesApi.ts b/api/attributesApi.ts index 5335c1c..d1647b0 100644 --- a/api/attributesApi.ts +++ b/api/attributesApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { CreateAttribute } from '../model/createAttribute'; diff --git a/api/contactsApi.d.ts b/api/contactsApi.d.ts index db13d24..a2d1f37 100644 --- a/api/contactsApi.d.ts +++ b/api/contactsApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { AddContactToList } from '../model/addContactToList'; import { CreateAttribute } from '../model/createAttribute'; import { CreateContact } from '../model/createContact'; diff --git a/api/contactsApi.ts b/api/contactsApi.ts index 5df2a21..acf2d67 100644 --- a/api/contactsApi.ts +++ b/api/contactsApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { AddContactToList } from '../model/addContactToList'; diff --git a/api/emailCampaignsApi.d.ts b/api/emailCampaignsApi.d.ts index 38d6e84..63845f5 100644 --- a/api/emailCampaignsApi.d.ts +++ b/api/emailCampaignsApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { AbTestCampaignResult } from '../model/abTestCampaignResult'; import { CreateEmailCampaign } from '../model/createEmailCampaign'; import { CreateModel } from '../model/createModel'; diff --git a/api/emailCampaignsApi.ts b/api/emailCampaignsApi.ts index d20ba5c..bc98b13 100644 --- a/api/emailCampaignsApi.ts +++ b/api/emailCampaignsApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { AbTestCampaignResult } from '../model/abTestCampaignResult'; diff --git a/api/foldersApi.d.ts b/api/foldersApi.d.ts index 30e20ab..dd4a20f 100644 --- a/api/foldersApi.d.ts +++ b/api/foldersApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { CreateModel } from '../model/createModel'; import { CreateUpdateFolder } from '../model/createUpdateFolder'; import { GetFolder } from '../model/getFolder'; diff --git a/api/foldersApi.ts b/api/foldersApi.ts index 23295ad..6de057e 100644 --- a/api/foldersApi.ts +++ b/api/foldersApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { CreateModel } from '../model/createModel'; diff --git a/api/listsApi.d.ts b/api/listsApi.d.ts index 37fee86..4631b0d 100644 --- a/api/listsApi.d.ts +++ b/api/listsApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { AddContactToList } from '../model/addContactToList'; import { CreateList } from '../model/createList'; import { CreateModel } from '../model/createModel'; diff --git a/api/listsApi.ts b/api/listsApi.ts index b452b09..4f82a7a 100644 --- a/api/listsApi.ts +++ b/api/listsApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { AddContactToList } from '../model/addContactToList'; diff --git a/api/processApi.d.ts b/api/processApi.d.ts index 080ebc0..b676738 100644 --- a/api/processApi.d.ts +++ b/api/processApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { GetProcess } from '../model/getProcess'; import { GetProcesses } from '../model/getProcesses'; import { Authentication, Interceptor } from '../model/models'; diff --git a/api/processApi.ts b/api/processApi.ts index eeaceeb..b6b748d 100644 --- a/api/processApi.ts +++ b/api/processApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { ErrorModel } from '../model/errorModel'; diff --git a/api/resellerApi.d.ts b/api/resellerApi.d.ts index 2119ce4..dcb4763 100644 --- a/api/resellerApi.d.ts +++ b/api/resellerApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { AddChildDomain } from '../model/addChildDomain'; import { AddCredits } from '../model/addCredits'; import { CreateChild } from '../model/createChild'; diff --git a/api/resellerApi.ts b/api/resellerApi.ts index a9145df..7ce834f 100644 --- a/api/resellerApi.ts +++ b/api/resellerApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { AddChildDomain } from '../model/addChildDomain'; diff --git a/api/sMSCampaignsApi.d.ts b/api/sMSCampaignsApi.d.ts index 7e883e5..629adb0 100644 --- a/api/sMSCampaignsApi.d.ts +++ b/api/sMSCampaignsApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { CreateModel } from '../model/createModel'; import { CreateSmsCampaign } from '../model/createSmsCampaign'; import { CreatedProcessId } from '../model/createdProcessId'; diff --git a/api/sMSCampaignsApi.ts b/api/sMSCampaignsApi.ts index 5ff8a68..bb27b31 100644 --- a/api/sMSCampaignsApi.ts +++ b/api/sMSCampaignsApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { CreateModel } from '../model/createModel'; diff --git a/api/sendersApi.d.ts b/api/sendersApi.d.ts index 6948fa1..4a7503a 100644 --- a/api/sendersApi.d.ts +++ b/api/sendersApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { CreateSender } from '../model/createSender'; import { CreateSenderModel } from '../model/createSenderModel'; import { GetIps } from '../model/getIps'; diff --git a/api/sendersApi.ts b/api/sendersApi.ts index b4c4e45..90d6726 100644 --- a/api/sendersApi.ts +++ b/api/sendersApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { CreateSender } from '../model/createSender'; diff --git a/api/transactionalEmailsApi.d.ts b/api/transactionalEmailsApi.d.ts index 00b7799..edaf15d 100644 --- a/api/transactionalEmailsApi.d.ts +++ b/api/transactionalEmailsApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { BlockDomain } from '../model/blockDomain'; import { CreateModel } from '../model/createModel'; import { CreateSmtpEmail } from '../model/createSmtpEmail'; diff --git a/api/transactionalEmailsApi.ts b/api/transactionalEmailsApi.ts index 016ac9f..d3154d1 100644 --- a/api/transactionalEmailsApi.ts +++ b/api/transactionalEmailsApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { BlockDomain } from '../model/blockDomain'; diff --git a/api/transactionalSMSApi.d.ts b/api/transactionalSMSApi.d.ts index 363a2f1..1d1eeea 100644 --- a/api/transactionalSMSApi.d.ts +++ b/api/transactionalSMSApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { GetSmsEventReport } from '../model/getSmsEventReport'; import { GetTransacAggregatedSmsReport } from '../model/getTransacAggregatedSmsReport'; import { GetTransacSmsReport } from '../model/getTransacSmsReport'; diff --git a/api/transactionalSMSApi.ts b/api/transactionalSMSApi.ts index 44d8f9b..51ef5cd 100644 --- a/api/transactionalSMSApi.ts +++ b/api/transactionalSMSApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { ErrorModel } from '../model/errorModel'; diff --git a/api/webhooksApi.d.ts b/api/webhooksApi.d.ts index 151d219..93175a3 100644 --- a/api/webhooksApi.d.ts +++ b/api/webhooksApi.d.ts @@ -1,5 +1,5 @@ /// -import http = require('http'); +import * as http from 'http'; import { CreateModel } from '../model/createModel'; import { CreateWebhook } from '../model/createWebhook'; import { GetWebhook } from '../model/getWebhook'; diff --git a/api/webhooksApi.ts b/api/webhooksApi.ts index 737d0fd..687f81f 100644 --- a/api/webhooksApi.ts +++ b/api/webhooksApi.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import localVarRequest = require('request'); -import http = require('http'); +import * as localVarRequest from 'request'; +import * as http from 'http'; /* tslint:disable:no-unused-locals */ import { CreateModel } from '../model/createModel'; diff --git a/model/models.d.ts b/model/models.d.ts index bb6e1b8..8e4f6c5 100644 --- a/model/models.d.ts +++ b/model/models.d.ts @@ -182,7 +182,7 @@ export * from './updateSmtpTemplate'; export * from './updateSmtpTemplateSender'; export * from './updateWebhook'; export * from './uploadImageToGallery'; -import localVarRequest = require('request'); +import * as localVarRequest from 'request'; export declare class ObjectSerializer { static findCorrectType(data: any, expectedType: string): any; static serialize(data: any, type: string): any; diff --git a/model/models.ts b/model/models.ts index c7fde9e..52a41d0 100644 --- a/model/models.ts +++ b/model/models.ts @@ -183,7 +183,7 @@ export * from './updateSmtpTemplateSender'; export * from './updateWebhook'; export * from './uploadImageToGallery'; -import localVarRequest = require('request'); +import * as localVarRequest from 'request'; import { AbTestCampaignResult } from './abTestCampaignResult'; import { AbTestCampaignResultClickedLinks } from './abTestCampaignResultClickedLinks';