@swp/swipe-sdk
Advanced tools
Comparing version 0.12.43 to 0.12.45
@@ -1,2 +0,2 @@ | ||
import { HttpServiceVerbs } from './http/http-service'; | ||
import { HttpServiceVerbs } from './http/http-service-verbs'; | ||
import { AxiosResponse } from 'axios'; | ||
@@ -3,0 +3,0 @@ import { SearchOptions, SwpSuccessResponse } from './http/dto/dto'; |
@@ -1,2 +0,2 @@ | ||
import { HttpServiceVerbs } from './http/http-service'; | ||
import { HttpServiceVerbs } from './http/http-service-verbs'; | ||
import { AxiosResponse } from 'axios'; | ||
@@ -3,0 +3,0 @@ import { SwpSuccessResponse, AvailableAmountsForProviderRes, SearchOptions, Fields } from './http/dto/dto'; |
import { SwpSuccessResponse, SearchOptions } from './http/dto/dto'; | ||
import { HistoryDTO, HistoryDataDTO } from './http/dto/history'; | ||
import { AxiosResponse } from 'axios'; | ||
import { HttpServiceVerbs } from "./http/http-service"; | ||
import { HttpServiceVerbs } from "./http/http-service-verbs"; | ||
export declare class History { | ||
@@ -6,0 +6,0 @@ private readonly http; |
import { Options } from '../swipe'; | ||
import { AxiosResponse } from 'axios'; | ||
import { SearchOptions, SwpSuccessResponse } from './dto/dto'; | ||
import { HttpServiceVerbs } from "./http-service-verbs"; | ||
interface RequestOptions { | ||
@@ -16,8 +17,2 @@ searchOptions?: SearchOptions; | ||
} | ||
export interface HttpServiceVerbs { | ||
get<T>(path: string, options?: RequestOptions): Promise<AxiosResponse<SwpSuccessResponse<T>>>; | ||
post<T>(path: string, options?: RequestOptions): Promise<AxiosResponse<SwpSuccessResponse<T>>>; | ||
put<T>(path: string, options?: RequestOptions): Promise<AxiosResponse<SwpSuccessResponse<T>>>; | ||
delete<T>(path: string, options?: RequestOptions): Promise<AxiosResponse<SwpSuccessResponse<T>>>; | ||
} | ||
export declare class HttpService implements HttpServiceVerbs { | ||
@@ -24,0 +19,0 @@ private opt; |
@@ -19,2 +19,3 @@ "use strict"; | ||
this.basePath = basePath; | ||
this.get = this.get.bind(this); | ||
this.baseUrl = | ||
@@ -21,0 +22,0 @@ opt.customHost || |
@@ -1,2 +0,2 @@ | ||
import { HttpServiceVerbs } from './http/http-service'; | ||
import { HttpServiceVerbs } from "./http/http-service-verbs"; | ||
import { SearchOptions, SwpSuccessResponse } from './http/dto/dto'; | ||
@@ -3,0 +3,0 @@ import { AccountDTO, ActionBatchDTO, AssetDTO, NewAccountDTO, NewActionBatchDTO, NewAssetDTO } from './http/dto/ledger'; |
@@ -1,2 +0,2 @@ | ||
import { HttpServiceVerbs } from './http/http-service'; | ||
import { HttpServiceVerbs } from './http/http-service-verbs'; | ||
import { AxiosResponse } from 'axios'; | ||
@@ -3,0 +3,0 @@ import { SwpSuccessResponse } from './http/dto/dto'; |
@@ -1,2 +0,2 @@ | ||
import { HttpServiceVerbs } from './http/http-service'; | ||
import { HttpServiceVerbs } from './http/http-service-verbs'; | ||
import { AxiosResponse } from 'axios'; | ||
@@ -3,0 +3,0 @@ import { NewAddressDTO, NewProfileDTO, NewDocumentsDTO, NewProfileCompanyDTO, NewDocumentsCnpjDTO, ProfileDTO, getUserBalanceDTO } from './http/dto/profile'; |
@@ -1,2 +0,1 @@ | ||
import { HttpServiceVerbs } from "./http/http-service"; | ||
import { AxiosResponse } from "axios"; | ||
@@ -7,2 +6,3 @@ import { SwpSuccessResponse } from "./http/dto/dto"; | ||
import { Options } from "./swipe"; | ||
import { HttpServiceVerbs } from "./http/http-service-verbs"; | ||
export declare class ServiceProxy<Service> implements HttpServiceVerbs { | ||
@@ -9,0 +9,0 @@ private service; |
{ | ||
"name": "@swp/swipe-sdk", | ||
"version": "0.12.43", | ||
"version": "0.12.45", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1100038
224
6007