@portkey/services
Advanced tools
Comparing version 2.15.11-alpha.0 to 2.16.0-alpha.0
import { IBaseRequest } from '@portkey/types'; | ||
import { BaseService, GetAllowanceParams, GetAllowanceResult, IAllowanceService, ICheckSpenderValidParams } from '../types'; | ||
import { BaseService, GetAllowanceParams, GetAllowanceResult, IAllowanceService } from '../types'; | ||
export declare class Allowance<T extends IBaseRequest = IBaseRequest> extends BaseService<T> implements IAllowanceService { | ||
getAllowanceList(params: GetAllowanceParams): Promise<GetAllowanceResult>; | ||
checkSpenderValid(params: ICheckSpenderValidParams): Promise<boolean>; | ||
} |
@@ -13,10 +13,3 @@ "use strict"; | ||
} | ||
checkSpenderValid(params) { | ||
return this._request.send({ | ||
method: 'GET', | ||
url: '/api/app/contracts/spenderValid', | ||
params, | ||
}); | ||
} | ||
} | ||
exports.Allowance = Allowance; |
import { IBaseRequest } from '@portkey/types'; | ||
import { BaseService } from '../types'; | ||
import { FetchAccountNftCollectionItemListParams, FetchAccountNftCollectionItemListResult, FetchAccountNftCollectionListParams, FetchAccountNftCollectionListResult, FetchAccountTokenListParams, FetchAccountTokenListResult, FetchAccountTokenListV2Result, FetchTokenPriceParams, FetchTokenPriceResult, GetAccountAssetsByKeywordsParams, GetAccountAssetsByKeywordsResult, GetAccountAssetsByKeywordsV2Result, GetSymbolImagesParams, GetSymbolImagesResult, GetUserTokenListParams, GetUserTokenListResult, GetUserTokenListResultNew, IAssetsService, TFetchAccountNftItemParams, TFetchAccountNftItemResult } from '../types/assets'; | ||
import { FetchAccountNftCollectionItemListParams, FetchAccountNftCollectionItemListResult, FetchAccountNftCollectionListParams, FetchAccountNftCollectionListResult, FetchAccountTokenListParams, FetchAccountTokenListResult, FetchTokenPriceParams, FetchTokenPriceResult, GetAccountAssetsByKeywordsParams, GetAccountAssetsByKeywordsResult, GetSymbolImagesParams, GetSymbolImagesResult, GetUserTokenListParams, GetUserTokenListResult, GetUserTokenListResultNew, IAssetsService, TFetchAccountNftItemParams, TFetchAccountNftItemResult } from '../types/assets'; | ||
export declare class Assets<T extends IBaseRequest = IBaseRequest> extends BaseService<T> implements IAssetsService { | ||
fetchAccountTokenList(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListResult>; | ||
fetchAccountTokenListV2(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListV2Result>; | ||
getSymbolImages(params: GetSymbolImagesParams): Promise<GetSymbolImagesResult>; | ||
@@ -15,3 +14,2 @@ fetchAccountNftCollectionList(params: FetchAccountNftCollectionListParams): Promise<FetchAccountNftCollectionListResult>; | ||
getAccountAssetsByKeywords(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsResult>; | ||
getAccountAssetsByKeywordsV2(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsV2Result>; | ||
} |
@@ -13,9 +13,2 @@ "use strict"; | ||
} | ||
fetchAccountTokenListV2(params) { | ||
return this._request.send({ | ||
method: 'POST', | ||
url: '/api/app/v2/user/assets/token', | ||
params, | ||
}); | ||
} | ||
getSymbolImages(params) { | ||
@@ -92,10 +85,3 @@ return this._request.send({ | ||
} | ||
getAccountAssetsByKeywordsV2(params) { | ||
return this._request.send({ | ||
method: 'POST', | ||
url: '/api/app/v2/user/assets/searchUserAssets', | ||
params, | ||
}); | ||
} | ||
} | ||
exports.Assets = Assets; |
@@ -11,2 +11,1 @@ export * from './services'; | ||
export * from './security'; | ||
export * from './receive'; |
@@ -27,2 +27,1 @@ "use strict"; | ||
__exportStar(require("./security"), exports); | ||
__exportStar(require("./receive"), exports); |
import { IBaseRequest, IExtraInfoConfig, IReferralConfig } from '@portkey/types'; | ||
import { IServices } from '../types/services'; | ||
import { ICommunityRecoveryService, IRampService, IAssetsService, ITokenService, ITransactionService, IActivityService, ISecurityService, IAllowanceService, TCommonService, IReceiveService } from '../types'; | ||
import { ICommunityRecoveryService, IRampService, IAssetsService, ITokenService, ITransactionService, IActivityService, ISecurityService, IAllowanceService, TCommonService } from '../types'; | ||
import { IDIDGraphQL } from '@portkey/graphql'; | ||
@@ -16,4 +16,3 @@ import { CommunityRecovery } from './communityRecovery'; | ||
readonly common: TCommonService; | ||
readonly receive: IReceiveService; | ||
constructor(request: T, didGraphQL: IDIDGraphQL, referralConfig: IReferralConfig, extraInfoConfig: IExtraInfoConfig); | ||
} |
@@ -13,3 +13,2 @@ "use strict"; | ||
const common_1 = require("./common"); | ||
const receive_1 = require("./receive"); | ||
class Services extends communityRecovery_1.CommunityRecovery { | ||
@@ -27,5 +26,4 @@ constructor(request, didGraphQL, referralConfig, extraInfoConfig) { | ||
this.common = new common_1.Common(request); | ||
this.receive = new receive_1.Receive(request); | ||
} | ||
} | ||
exports.Services = Services; |
@@ -1,2 +0,2 @@ | ||
import { TransactionEnum, ActivityItemType } from '@portkey/types'; | ||
import { TransactionTypes, ActivityItemType } from '@portkey/types'; | ||
import { CaAddressInfosType } from './assets'; | ||
@@ -11,3 +11,3 @@ export interface IActivitiesApiParams { | ||
managerAddresses?: string[]; | ||
transactionTypes?: TransactionEnum[]; | ||
transactionTypes?: TransactionTypes[]; | ||
chainId?: string; | ||
@@ -14,0 +14,0 @@ symbol?: string; |
@@ -5,3 +5,2 @@ import { ChainId } from '@portkey/types'; | ||
getAllowanceList: (params: GetAllowanceParams) => Promise<GetAllowanceResult>; | ||
checkSpenderValid: (params: ICheckSpenderValidParams) => Promise<boolean>; | ||
} | ||
@@ -12,4 +11,2 @@ export interface ISymbolApprovedItem { | ||
decimals: number; | ||
imageUrl?: string; | ||
updateTime?: string; | ||
} | ||
@@ -23,3 +20,2 @@ export interface AllowanceItem { | ||
symbolApproveList?: ISymbolApprovedItem[]; | ||
chainImageUrl?: string; | ||
} | ||
@@ -31,7 +27,2 @@ export interface GetAllowanceParams { | ||
} | ||
export interface ICheckSpenderValidParams { | ||
website: string; | ||
logo: string; | ||
spender: string; | ||
} | ||
export interface GetAllowanceResult { | ||
@@ -38,0 +29,0 @@ data: Array<AllowanceItem>; |
@@ -12,14 +12,2 @@ import { ChainId, INftInfoType, ITokenInfoType, SeedTypeEnum } from '@portkey/types'; | ||
}; | ||
export type ITokenSectionResponse = { | ||
chainId?: string; | ||
symbol: string; | ||
price?: number; | ||
balance?: string; | ||
decimals?: number; | ||
balanceInUsd?: string; | ||
label?: string; | ||
imageUrl?: string; | ||
displayStatus?: 'All' | 'Partial' | 'None'; | ||
tokens?: ITokenItemResponse[]; | ||
}; | ||
export type CaAddressInfosType = { | ||
@@ -38,8 +26,2 @@ chainId: ChainId; | ||
}; | ||
export type FetchAccountTokenListV2Result = { | ||
data: ITokenSectionResponse[]; | ||
totalRecordCount: number; | ||
totalDisplayCount: number; | ||
totalBalanceInUsd?: string; | ||
}; | ||
export type GetSymbolImagesParams = {} | undefined; | ||
@@ -59,4 +41,2 @@ export type GetSymbolImagesResult = { | ||
decimals: number; | ||
displayChainImage?: boolean; | ||
chainImageUrl?: string; | ||
}; | ||
@@ -95,4 +75,2 @@ export type FetchAccountNftCollectionListParams = { | ||
traitsPercentages?: TTraitsPercentage[]; | ||
description?: string; | ||
chainImageUrl?: string; | ||
}; | ||
@@ -176,20 +154,2 @@ export type TTraitsPercentage = { | ||
}; | ||
export interface IAssetNftCollection { | ||
collectionName: string; | ||
imageUrl: string; | ||
items: INftInfoType[]; | ||
} | ||
export interface IAssetToken { | ||
address: string; | ||
balance: string; | ||
balanceInUsd: string; | ||
chainId: ChainId; | ||
chainImageUrl: string; | ||
decimals: string; | ||
displayChainName: string; | ||
imageUrl: string; | ||
symbol: string; | ||
tokenContractAddress: string; | ||
label?: string; | ||
} | ||
export type GetAccountAssetsByKeywordsResult = { | ||
@@ -199,7 +159,2 @@ data: IAssetItemType[]; | ||
}; | ||
export type GetAccountAssetsByKeywordsV2Result = { | ||
nftInfos: IAssetNftCollection[]; | ||
tokenInfos: IAssetToken[]; | ||
totalRecordCount: number; | ||
}; | ||
export interface IAssetItemType { | ||
@@ -215,3 +170,2 @@ chainId: string; | ||
fetchAccountTokenList(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListResult>; | ||
fetchAccountTokenListV2(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListV2Result>; | ||
getSymbolImages(params: GetSymbolImagesParams): Promise<GetSymbolImagesResult>; | ||
@@ -225,3 +179,2 @@ fetchAccountNftCollectionList(params: FetchAccountNftCollectionListParams): Promise<FetchAccountNftCollectionListResult>; | ||
getAccountAssetsByKeywords(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsResult>; | ||
getAccountAssetsByKeywordsV2(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsV2Result>; | ||
} |
@@ -43,3 +43,2 @@ import { IBaseRequest } from '@portkey/types'; | ||
export * from './transaction'; | ||
export * from './receive'; | ||
export * from './activity'; | ||
@@ -46,0 +45,0 @@ export * from './allowance'; |
@@ -52,3 +52,2 @@ "use strict"; | ||
__exportStar(require("./transaction"), exports); | ||
__exportStar(require("./receive"), exports); | ||
__exportStar(require("./activity"), exports); | ||
@@ -55,0 +54,0 @@ __exportStar(require("./allowance"), exports); |
@@ -30,3 +30,2 @@ import { ChainId } from '@portkey/types'; | ||
}; | ||
chainImageUrl?: string; | ||
}; | ||
@@ -33,0 +32,0 @@ export type QueryOptions = { |
@@ -36,15 +36,2 @@ import { ChainId } from '@portkey/types'; | ||
} | ||
export interface ITransferLimitItem { | ||
chainId: ChainId; | ||
symbol: string; | ||
singleLimit: string; | ||
dailyLimit: string; | ||
restricted: boolean; | ||
decimals: number | string; | ||
imageUrl?: string; | ||
defaultSingleLimit?: string; | ||
defaultDailyLimit?: string; | ||
chainImageUrl?: string; | ||
displayChainName?: string; | ||
} | ||
export interface IPaymentSecurityListParams { | ||
@@ -51,0 +38,0 @@ caHash: string; |
@@ -1,2 +0,2 @@ | ||
import { IActivityService, IAllowanceService, IAssetsService, ICommunityRecoveryService, IRampService, ISecurityService, ITokenService, ITransactionService, TCommonService, IReceiveService } from './index'; | ||
import { IActivityService, IAllowanceService, IAssetsService, ICommunityRecoveryService, IRampService, ISecurityService, ITokenService, ITransactionService, TCommonService } from './index'; | ||
export interface IServices extends ICommunityRecoveryService { | ||
@@ -12,3 +12,2 @@ readonly communityRecovery: ICommunityRecoveryService; | ||
readonly common: TCommonService; | ||
readonly receive: IReceiveService; | ||
} |
import { IBaseRequest } from '@portkey/types'; | ||
import { BaseService, GetAllowanceParams, GetAllowanceResult, IAllowanceService, ICheckSpenderValidParams } from '../types/index.js'; | ||
import { BaseService, GetAllowanceParams, GetAllowanceResult, IAllowanceService } from '../types/index.js'; | ||
export declare class Allowance<T extends IBaseRequest = IBaseRequest> extends BaseService<T> implements IAllowanceService { | ||
getAllowanceList(params: GetAllowanceParams): Promise<GetAllowanceResult>; | ||
checkSpenderValid(params: ICheckSpenderValidParams): Promise<boolean>; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { BaseService, } from '../types/index.js'; | ||
import { BaseService } from '../types/index.js'; | ||
export class Allowance extends BaseService { | ||
@@ -10,9 +10,2 @@ getAllowanceList(params) { | ||
} | ||
checkSpenderValid(params) { | ||
return this._request.send({ | ||
method: 'GET', | ||
url: '/api/app/contracts/spenderValid', | ||
params, | ||
}); | ||
} | ||
} |
import { IBaseRequest } from '@portkey/types'; | ||
import { BaseService } from '../types/index.js'; | ||
import { FetchAccountNftCollectionItemListParams, FetchAccountNftCollectionItemListResult, FetchAccountNftCollectionListParams, FetchAccountNftCollectionListResult, FetchAccountTokenListParams, FetchAccountTokenListResult, FetchAccountTokenListV2Result, FetchTokenPriceParams, FetchTokenPriceResult, GetAccountAssetsByKeywordsParams, GetAccountAssetsByKeywordsResult, GetAccountAssetsByKeywordsV2Result, GetSymbolImagesParams, GetSymbolImagesResult, GetUserTokenListParams, GetUserTokenListResult, GetUserTokenListResultNew, IAssetsService, TFetchAccountNftItemParams, TFetchAccountNftItemResult } from '../types/assets.js'; | ||
import { FetchAccountNftCollectionItemListParams, FetchAccountNftCollectionItemListResult, FetchAccountNftCollectionListParams, FetchAccountNftCollectionListResult, FetchAccountTokenListParams, FetchAccountTokenListResult, FetchTokenPriceParams, FetchTokenPriceResult, GetAccountAssetsByKeywordsParams, GetAccountAssetsByKeywordsResult, GetSymbolImagesParams, GetSymbolImagesResult, GetUserTokenListParams, GetUserTokenListResult, GetUserTokenListResultNew, IAssetsService, TFetchAccountNftItemParams, TFetchAccountNftItemResult } from '../types/assets.js'; | ||
export declare class Assets<T extends IBaseRequest = IBaseRequest> extends BaseService<T> implements IAssetsService { | ||
fetchAccountTokenList(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListResult>; | ||
fetchAccountTokenListV2(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListV2Result>; | ||
getSymbolImages(params: GetSymbolImagesParams): Promise<GetSymbolImagesResult>; | ||
@@ -15,3 +14,2 @@ fetchAccountNftCollectionList(params: FetchAccountNftCollectionListParams): Promise<FetchAccountNftCollectionListResult>; | ||
getAccountAssetsByKeywords(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsResult>; | ||
getAccountAssetsByKeywordsV2(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsV2Result>; | ||
} |
@@ -10,9 +10,2 @@ import { BaseService } from '../types/index.js'; | ||
} | ||
fetchAccountTokenListV2(params) { | ||
return this._request.send({ | ||
method: 'POST', | ||
url: '/api/app/v2/user/assets/token', | ||
params, | ||
}); | ||
} | ||
getSymbolImages(params) { | ||
@@ -89,9 +82,2 @@ return this._request.send({ | ||
} | ||
getAccountAssetsByKeywordsV2(params) { | ||
return this._request.send({ | ||
method: 'POST', | ||
url: '/api/app/v2/user/assets/searchUserAssets', | ||
params, | ||
}); | ||
} | ||
} |
@@ -11,2 +11,1 @@ export * from './services.js'; | ||
export * from './security.js'; | ||
export * from './receive.js'; |
@@ -11,2 +11,1 @@ export * from './services.js'; | ||
export * from './security.js'; | ||
export * from './receive.js'; |
import { IBaseRequest, IExtraInfoConfig, IReferralConfig } from '@portkey/types'; | ||
import { IServices } from '../types/services.js'; | ||
import { ICommunityRecoveryService, IRampService, IAssetsService, ITokenService, ITransactionService, IActivityService, ISecurityService, IAllowanceService, TCommonService, IReceiveService } from '../types/index.js'; | ||
import { ICommunityRecoveryService, IRampService, IAssetsService, ITokenService, ITransactionService, IActivityService, ISecurityService, IAllowanceService, TCommonService } from '../types/index.js'; | ||
import { IDIDGraphQL } from '@portkey/graphql'; | ||
@@ -16,4 +16,3 @@ import { CommunityRecovery } from './communityRecovery.js'; | ||
readonly common: TCommonService; | ||
readonly receive: IReceiveService; | ||
constructor(request: T, didGraphQL: IDIDGraphQL, referralConfig: IReferralConfig, extraInfoConfig: IExtraInfoConfig); | ||
} |
@@ -10,3 +10,2 @@ import { CommunityRecovery } from './communityRecovery.js'; | ||
import { Common } from './common.js'; | ||
import { Receive } from './receive.js'; | ||
export class Services extends CommunityRecovery { | ||
@@ -24,4 +23,3 @@ constructor(request, didGraphQL, referralConfig, extraInfoConfig) { | ||
this.common = new Common(request); | ||
this.receive = new Receive(request); | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { TransactionEnum, ActivityItemType } from '@portkey/types'; | ||
import { TransactionTypes, ActivityItemType } from '@portkey/types'; | ||
import { CaAddressInfosType } from './assets.js'; | ||
@@ -11,3 +11,3 @@ export interface IActivitiesApiParams { | ||
managerAddresses?: string[]; | ||
transactionTypes?: TransactionEnum[]; | ||
transactionTypes?: TransactionTypes[]; | ||
chainId?: string; | ||
@@ -14,0 +14,0 @@ symbol?: string; |
@@ -5,3 +5,2 @@ import { ChainId } from '@portkey/types'; | ||
getAllowanceList: (params: GetAllowanceParams) => Promise<GetAllowanceResult>; | ||
checkSpenderValid: (params: ICheckSpenderValidParams) => Promise<boolean>; | ||
} | ||
@@ -12,4 +11,2 @@ export interface ISymbolApprovedItem { | ||
decimals: number; | ||
imageUrl?: string; | ||
updateTime?: string; | ||
} | ||
@@ -23,3 +20,2 @@ export interface AllowanceItem { | ||
symbolApproveList?: ISymbolApprovedItem[]; | ||
chainImageUrl?: string; | ||
} | ||
@@ -31,7 +27,2 @@ export interface GetAllowanceParams { | ||
} | ||
export interface ICheckSpenderValidParams { | ||
website: string; | ||
logo: string; | ||
spender: string; | ||
} | ||
export interface GetAllowanceResult { | ||
@@ -38,0 +29,0 @@ data: Array<AllowanceItem>; |
@@ -12,14 +12,2 @@ import { ChainId, INftInfoType, ITokenInfoType, SeedTypeEnum } from '@portkey/types'; | ||
}; | ||
export type ITokenSectionResponse = { | ||
chainId?: string; | ||
symbol: string; | ||
price?: number; | ||
balance?: string; | ||
decimals?: number; | ||
balanceInUsd?: string; | ||
label?: string; | ||
imageUrl?: string; | ||
displayStatus?: 'All' | 'Partial' | 'None'; | ||
tokens?: ITokenItemResponse[]; | ||
}; | ||
export type CaAddressInfosType = { | ||
@@ -38,8 +26,2 @@ chainId: ChainId; | ||
}; | ||
export type FetchAccountTokenListV2Result = { | ||
data: ITokenSectionResponse[]; | ||
totalRecordCount: number; | ||
totalDisplayCount: number; | ||
totalBalanceInUsd?: string; | ||
}; | ||
export type GetSymbolImagesParams = {} | undefined; | ||
@@ -59,4 +41,2 @@ export type GetSymbolImagesResult = { | ||
decimals: number; | ||
displayChainImage?: boolean; | ||
chainImageUrl?: string; | ||
}; | ||
@@ -95,4 +75,2 @@ export type FetchAccountNftCollectionListParams = { | ||
traitsPercentages?: TTraitsPercentage[]; | ||
description?: string; | ||
chainImageUrl?: string; | ||
}; | ||
@@ -176,20 +154,2 @@ export type TTraitsPercentage = { | ||
}; | ||
export interface IAssetNftCollection { | ||
collectionName: string; | ||
imageUrl: string; | ||
items: INftInfoType[]; | ||
} | ||
export interface IAssetToken { | ||
address: string; | ||
balance: string; | ||
balanceInUsd: string; | ||
chainId: ChainId; | ||
chainImageUrl: string; | ||
decimals: string; | ||
displayChainName: string; | ||
imageUrl: string; | ||
symbol: string; | ||
tokenContractAddress: string; | ||
label?: string; | ||
} | ||
export type GetAccountAssetsByKeywordsResult = { | ||
@@ -199,7 +159,2 @@ data: IAssetItemType[]; | ||
}; | ||
export type GetAccountAssetsByKeywordsV2Result = { | ||
nftInfos: IAssetNftCollection[]; | ||
tokenInfos: IAssetToken[]; | ||
totalRecordCount: number; | ||
}; | ||
export interface IAssetItemType { | ||
@@ -215,3 +170,2 @@ chainId: string; | ||
fetchAccountTokenList(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListResult>; | ||
fetchAccountTokenListV2(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListV2Result>; | ||
getSymbolImages(params: GetSymbolImagesParams): Promise<GetSymbolImagesResult>; | ||
@@ -225,3 +179,2 @@ fetchAccountNftCollectionList(params: FetchAccountNftCollectionListParams): Promise<FetchAccountNftCollectionListResult>; | ||
getAccountAssetsByKeywords(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsResult>; | ||
getAccountAssetsByKeywordsV2(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsV2Result>; | ||
} |
@@ -43,3 +43,2 @@ import { IBaseRequest } from '@portkey/types'; | ||
export * from './transaction.js'; | ||
export * from './receive.js'; | ||
export * from './activity.js'; | ||
@@ -46,0 +45,0 @@ export * from './allowance.js'; |
@@ -34,3 +34,2 @@ export var AccountTypeEnum; | ||
export * from './transaction.js'; | ||
export * from './receive.js'; | ||
export * from './activity.js'; | ||
@@ -37,0 +36,0 @@ export * from './allowance.js'; |
@@ -30,3 +30,2 @@ import { ChainId } from '@portkey/types'; | ||
}; | ||
chainImageUrl?: string; | ||
}; | ||
@@ -33,0 +32,0 @@ export type QueryOptions = { |
@@ -36,15 +36,2 @@ import { ChainId } from '@portkey/types'; | ||
} | ||
export interface ITransferLimitItem { | ||
chainId: ChainId; | ||
symbol: string; | ||
singleLimit: string; | ||
dailyLimit: string; | ||
restricted: boolean; | ||
decimals: number | string; | ||
imageUrl?: string; | ||
defaultSingleLimit?: string; | ||
defaultDailyLimit?: string; | ||
chainImageUrl?: string; | ||
displayChainName?: string; | ||
} | ||
export interface IPaymentSecurityListParams { | ||
@@ -51,0 +38,0 @@ caHash: string; |
@@ -1,2 +0,2 @@ | ||
import { IActivityService, IAllowanceService, IAssetsService, ICommunityRecoveryService, IRampService, ISecurityService, ITokenService, ITransactionService, TCommonService, IReceiveService } from './index.js'; | ||
import { IActivityService, IAllowanceService, IAssetsService, ICommunityRecoveryService, IRampService, ISecurityService, ITokenService, ITransactionService, TCommonService } from './index.js'; | ||
export interface IServices extends ICommunityRecoveryService { | ||
@@ -12,3 +12,2 @@ readonly communityRecovery: ICommunityRecoveryService; | ||
readonly common: TCommonService; | ||
readonly receive: IReceiveService; | ||
} |
import { IBaseRequest } from '@portkey/types'; | ||
import { BaseService, GetAllowanceParams, GetAllowanceResult, IAllowanceService, ICheckSpenderValidParams } from '../types'; | ||
import { BaseService, GetAllowanceParams, GetAllowanceResult, IAllowanceService } from '../types'; | ||
export declare class Allowance<T extends IBaseRequest = IBaseRequest> extends BaseService<T> implements IAllowanceService { | ||
getAllowanceList(params: GetAllowanceParams): Promise<GetAllowanceResult>; | ||
checkSpenderValid(params: ICheckSpenderValidParams): Promise<boolean>; | ||
} | ||
//# sourceMappingURL=allowance.d.ts.map |
import { IBaseRequest } from '@portkey/types'; | ||
import { BaseService } from '../types'; | ||
import { FetchAccountNftCollectionItemListParams, FetchAccountNftCollectionItemListResult, FetchAccountNftCollectionListParams, FetchAccountNftCollectionListResult, FetchAccountTokenListParams, FetchAccountTokenListResult, FetchAccountTokenListV2Result, FetchTokenPriceParams, FetchTokenPriceResult, GetAccountAssetsByKeywordsParams, GetAccountAssetsByKeywordsResult, GetAccountAssetsByKeywordsV2Result, GetSymbolImagesParams, GetSymbolImagesResult, GetUserTokenListParams, GetUserTokenListResult, GetUserTokenListResultNew, IAssetsService, TFetchAccountNftItemParams, TFetchAccountNftItemResult } from '../types/assets'; | ||
import { FetchAccountNftCollectionItemListParams, FetchAccountNftCollectionItemListResult, FetchAccountNftCollectionListParams, FetchAccountNftCollectionListResult, FetchAccountTokenListParams, FetchAccountTokenListResult, FetchTokenPriceParams, FetchTokenPriceResult, GetAccountAssetsByKeywordsParams, GetAccountAssetsByKeywordsResult, GetSymbolImagesParams, GetSymbolImagesResult, GetUserTokenListParams, GetUserTokenListResult, GetUserTokenListResultNew, IAssetsService, TFetchAccountNftItemParams, TFetchAccountNftItemResult } from '../types/assets'; | ||
export declare class Assets<T extends IBaseRequest = IBaseRequest> extends BaseService<T> implements IAssetsService { | ||
fetchAccountTokenList(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListResult>; | ||
fetchAccountTokenListV2(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListV2Result>; | ||
getSymbolImages(params: GetSymbolImagesParams): Promise<GetSymbolImagesResult>; | ||
@@ -15,4 +14,3 @@ fetchAccountNftCollectionList(params: FetchAccountNftCollectionListParams): Promise<FetchAccountNftCollectionListResult>; | ||
getAccountAssetsByKeywords(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsResult>; | ||
getAccountAssetsByKeywordsV2(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsV2Result>; | ||
} | ||
//# sourceMappingURL=assets.d.ts.map |
@@ -11,3 +11,2 @@ export * from './services'; | ||
export * from './security'; | ||
export * from './receive'; | ||
//# sourceMappingURL=index.d.ts.map |
import { IBaseRequest, IExtraInfoConfig, IReferralConfig } from '@portkey/types'; | ||
import { IServices } from '../types/services'; | ||
import { ICommunityRecoveryService, IRampService, IAssetsService, ITokenService, ITransactionService, IActivityService, ISecurityService, IAllowanceService, TCommonService, IReceiveService } from '../types'; | ||
import { ICommunityRecoveryService, IRampService, IAssetsService, ITokenService, ITransactionService, IActivityService, ISecurityService, IAllowanceService, TCommonService } from '../types'; | ||
import { IDIDGraphQL } from '@portkey/graphql'; | ||
@@ -16,5 +16,4 @@ import { CommunityRecovery } from './communityRecovery'; | ||
readonly common: TCommonService; | ||
readonly receive: IReceiveService; | ||
constructor(request: T, didGraphQL: IDIDGraphQL, referralConfig: IReferralConfig, extraInfoConfig: IExtraInfoConfig); | ||
} | ||
//# sourceMappingURL=services.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { TransactionEnum, ActivityItemType } from '@portkey/types'; | ||
import { TransactionTypes, ActivityItemType } from '@portkey/types'; | ||
import { CaAddressInfosType } from './assets'; | ||
@@ -11,3 +11,3 @@ export interface IActivitiesApiParams { | ||
managerAddresses?: string[]; | ||
transactionTypes?: TransactionEnum[]; | ||
transactionTypes?: TransactionTypes[]; | ||
chainId?: string; | ||
@@ -14,0 +14,0 @@ symbol?: string; |
@@ -5,3 +5,2 @@ import { ChainId } from '@portkey/types'; | ||
getAllowanceList: (params: GetAllowanceParams) => Promise<GetAllowanceResult>; | ||
checkSpenderValid: (params: ICheckSpenderValidParams) => Promise<boolean>; | ||
} | ||
@@ -12,4 +11,2 @@ export interface ISymbolApprovedItem { | ||
decimals: number; | ||
imageUrl?: string; | ||
updateTime?: string; | ||
} | ||
@@ -23,3 +20,2 @@ export interface AllowanceItem { | ||
symbolApproveList?: ISymbolApprovedItem[]; | ||
chainImageUrl?: string; | ||
} | ||
@@ -31,7 +27,2 @@ export interface GetAllowanceParams { | ||
} | ||
export interface ICheckSpenderValidParams { | ||
website: string; | ||
logo: string; | ||
spender: string; | ||
} | ||
export interface GetAllowanceResult { | ||
@@ -38,0 +29,0 @@ data: Array<AllowanceItem>; |
@@ -12,14 +12,2 @@ import { ChainId, INftInfoType, ITokenInfoType, SeedTypeEnum } from '@portkey/types'; | ||
}; | ||
export type ITokenSectionResponse = { | ||
chainId?: string; | ||
symbol: string; | ||
price?: number; | ||
balance?: string; | ||
decimals?: number; | ||
balanceInUsd?: string; | ||
label?: string; | ||
imageUrl?: string; | ||
displayStatus?: 'All' | 'Partial' | 'None'; | ||
tokens?: ITokenItemResponse[]; | ||
}; | ||
export type CaAddressInfosType = { | ||
@@ -38,8 +26,2 @@ chainId: ChainId; | ||
}; | ||
export type FetchAccountTokenListV2Result = { | ||
data: ITokenSectionResponse[]; | ||
totalRecordCount: number; | ||
totalDisplayCount: number; | ||
totalBalanceInUsd?: string; | ||
}; | ||
export type GetSymbolImagesParams = {} | undefined; | ||
@@ -59,4 +41,2 @@ export type GetSymbolImagesResult = { | ||
decimals: number; | ||
displayChainImage?: boolean; | ||
chainImageUrl?: string; | ||
}; | ||
@@ -95,4 +75,2 @@ export type FetchAccountNftCollectionListParams = { | ||
traitsPercentages?: TTraitsPercentage[]; | ||
description?: string; | ||
chainImageUrl?: string; | ||
}; | ||
@@ -176,20 +154,2 @@ export type TTraitsPercentage = { | ||
}; | ||
export interface IAssetNftCollection { | ||
collectionName: string; | ||
imageUrl: string; | ||
items: INftInfoType[]; | ||
} | ||
export interface IAssetToken { | ||
address: string; | ||
balance: string; | ||
balanceInUsd: string; | ||
chainId: ChainId; | ||
chainImageUrl: string; | ||
decimals: string; | ||
displayChainName: string; | ||
imageUrl: string; | ||
symbol: string; | ||
tokenContractAddress: string; | ||
label?: string; | ||
} | ||
export type GetAccountAssetsByKeywordsResult = { | ||
@@ -199,7 +159,2 @@ data: IAssetItemType[]; | ||
}; | ||
export type GetAccountAssetsByKeywordsV2Result = { | ||
nftInfos: IAssetNftCollection[]; | ||
tokenInfos: IAssetToken[]; | ||
totalRecordCount: number; | ||
}; | ||
export interface IAssetItemType { | ||
@@ -215,3 +170,2 @@ chainId: string; | ||
fetchAccountTokenList(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListResult>; | ||
fetchAccountTokenListV2(params: FetchAccountTokenListParams): Promise<FetchAccountTokenListV2Result>; | ||
getSymbolImages(params: GetSymbolImagesParams): Promise<GetSymbolImagesResult>; | ||
@@ -225,4 +179,3 @@ fetchAccountNftCollectionList(params: FetchAccountNftCollectionListParams): Promise<FetchAccountNftCollectionListResult>; | ||
getAccountAssetsByKeywords(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsResult>; | ||
getAccountAssetsByKeywordsV2(params: GetAccountAssetsByKeywordsParams): Promise<GetAccountAssetsByKeywordsV2Result>; | ||
} | ||
//# sourceMappingURL=assets.d.ts.map |
@@ -43,3 +43,2 @@ import { IBaseRequest } from '@portkey/types'; | ||
export * from './transaction'; | ||
export * from './receive'; | ||
export * from './activity'; | ||
@@ -46,0 +45,0 @@ export * from './allowance'; |
@@ -30,3 +30,2 @@ import { ChainId } from '@portkey/types'; | ||
}; | ||
chainImageUrl?: string; | ||
}; | ||
@@ -33,0 +32,0 @@ export type QueryOptions = { |
@@ -36,15 +36,2 @@ import { ChainId } from '@portkey/types'; | ||
} | ||
export interface ITransferLimitItem { | ||
chainId: ChainId; | ||
symbol: string; | ||
singleLimit: string; | ||
dailyLimit: string; | ||
restricted: boolean; | ||
decimals: number | string; | ||
imageUrl?: string; | ||
defaultSingleLimit?: string; | ||
defaultDailyLimit?: string; | ||
chainImageUrl?: string; | ||
displayChainName?: string; | ||
} | ||
export interface IPaymentSecurityListParams { | ||
@@ -51,0 +38,0 @@ caHash: string; |
@@ -1,2 +0,2 @@ | ||
import { IActivityService, IAllowanceService, IAssetsService, ICommunityRecoveryService, IRampService, ISecurityService, ITokenService, ITransactionService, TCommonService, IReceiveService } from './index'; | ||
import { IActivityService, IAllowanceService, IAssetsService, ICommunityRecoveryService, IRampService, ISecurityService, ITokenService, ITransactionService, TCommonService } from './index'; | ||
export interface IServices extends ICommunityRecoveryService { | ||
@@ -12,4 +12,3 @@ readonly communityRecovery: ICommunityRecoveryService; | ||
readonly common: TCommonService; | ||
readonly receive: IReceiveService; | ||
} | ||
//# sourceMappingURL=services.d.ts.map |
{ | ||
"name": "@portkey/services", | ||
"version": "2.15.11-alpha.0", | ||
"version": "2.16.0-alpha.0", | ||
"description": "", | ||
@@ -44,6 +44,6 @@ "main": "./dist/commonjs/index.js", | ||
"dependencies": { | ||
"@portkey/graphql": "^2.15.11-alpha.0", | ||
"@portkey/request": "^2.15.11-alpha.0", | ||
"@portkey/types": "^2.15.11-alpha.0", | ||
"@portkey/utils": "^2.15.11-alpha.0" | ||
"@portkey/graphql": "^2.16.0-alpha.0", | ||
"@portkey/request": "^2.16.0-alpha.0", | ||
"@portkey/types": "^2.16.0-alpha.0", | ||
"@portkey/utils": "^2.16.0-alpha.0" | ||
}, | ||
@@ -60,3 +60,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "b942c3e783de04bf3dfed9431eb222643b7f2404" | ||
"gitHead": "2bb6f6c438fd3947bedf67e72f08646a402293be" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
234314
180
5244