@xoxno/sdk-js 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { XOXNOClient } from '../utils/api';
|
|
2
2
|
import { endpoints as routes } from './swagger';
|
|
3
3
|
type RemoveColon<S extends string> = S extends `:${infer R}` ? R : S;
|
|
4
|
-
type CamelCase<S extends string> = S extends `${infer
|
|
4
|
+
type CamelCase<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${CamelCase<Capitalize<Tail>>}` : S;
|
|
5
5
|
type IsEmptyObj<T> = keyof T extends never ? true : false;
|
|
6
6
|
type NeedsDefault<I, O> = IsEmptyObj<I> extends true ? IsEmptyObj<O> extends true ? false : true : true;
|
|
7
7
|
type CollectParams<S extends string> = S extends `${string}:${infer P}/${infer R}` ? {
|
package/dist/sdk/swagger.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AirdropDtoHydrated, AnalyticsMarketplaceUniqueUsers, AnalyticsVolumeDto, AnsweredQuestionWithDetails, BageQRData, BatchTransactionResponse, ChatMessageDocHydrated, ChatMessagePaginated, CheckLikeStatusResponseDto, CollectionHoldersDto, CollectionMintProfileDocHydrated, CollectionMintProfileDocWithStages, CollectionMintProfileFilter, CollectionMintProfilePaginated, CollectionOffersFilter, CollectionOwnerDto, CollectionPinnedStatusDto, CollectionProfileDoc, CollectionProfileFilter, CollectionProfilePaginated, CollectionRanksDTO, CollectionStatsDocHydrated, CollectionStatsFilter, CollectionStatsPaginated, CreatorDetailsDto, CreatorMarketingNotificationDto, CreatorProfileDto, DiscountCodeValidationResponse, DropInfoDto, EditUserCreatorProfileDto, EditUserProfileDto, EventCheckInQR, EventCountGroupedByCountry, EventGuestApproveDto, EventGuestExport, EventGuestFilter, EventGuestProfile, EventGuestProfileQuery, EventGuestRegistrationDto, EventInvitation, EventInvitationCreateDto, EventInvitationDoc, EventInvitationFilter, EventInvitationQuery, EventNotificationDto, EventProfile, EventProfileCreateDto, EventProfileEditDto, EventProfileFilter, EventProfileQuery, EventQuestionCreateDto, EventQuestionDoc, EventQuestionEditDto, EventReferralConfigCreateDto, EventReferralConfigDoc, EventReferralConfigEditDto, EventReferralConfigFilter, EventReferralConfigPaginated, EventReferralCreateDto, EventReferralDoc, EventReferralEditDto, EventReferralFilter, EventReferralPaginated, EventRegistrationResponseDto, EventStageProfileCreateDto, EventStageProfileDoc, EventStageProfileEditDto, EventTicketProfileCreateDto, EventTicketProfileDoc, EventTicketProfileEditDto, EventUserRole, EventUserRoleCreateDto, EventUserRoleDoc, EventVoucherDoc, EventVoucherFilter, EventVoucherQuery, FetchSwapRoutesResponseDto, FilterQueryDto, FloorPriceDto, FollowCollectionDto, GlobalAnalyticsOverviewResponseDto, GlobalConversationSummaryDto, GlobalOfferPaginated, GlobalSearchResourcesPaginated, IMetrics, InventorySummaryDtoHydrated, LendingAccountProfile, LendingEModeCategoryProfile, LendingIndexesDto, LendingMarketAnalyticsGraph, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingOverallStats, LendingPositionStatus, LendingTokenPriceDto, LikeNftDto, ListingsResponseDto, LoginAccessDto, LoginRequestDto, ManualCheckInDto, MobileDeviceDoc, MobileDeviceRegistrationDto, NativeWalletDto, NftActivityDocHydrated, NftActivityFilter, NftActivityPaginated, NftDoc, NftDocFilter, NftDocHydrated, NftOfferDoc, NftOfferDocFilter, NftOfferPaginated, NftPaginated, NotificationDoc, NotificationPaginated, NotificationPreferencesPostDto, NotificationSuccessResponseDto, OwnedCollectionsDto, OwnedServicesDto, PinnedCollectionDto, ProtocolAprType, ProviderDto, PublicOnly, PushNotificationCountResponse, PushNotificationDoc, PushNotificationResponse, RateType, SendChatMessageDto, SetEmailDto, SetPhoneDto, ShareholderDto, SignAcceptGlobalOfferDto, SignDataDto, SignMintDto, SignWithdrawDto, StakingCreatorDoc, StakingExploreDtoHydrated, StakingPostDTO, StakingSummary, StakingUserPoolNfts, SuccessDto, SuccessWithMessageDto, SwitchWalletDto, TicketCalculationRequestDto, TicketPricesResponse, TicketValidationResult, TokenDataDocHydrated, TradesilvaniaSignature, TraitInfo, TransactionCreate, TransactionProcessStatus, TransactionSendResult, UserAnalyticsDto, UserBillingDetails, UserBlockPaginated, UserConversationPaginated, UserFavoriteResponseDto, UserNetworkInfoDto, UserProfileDto, UserSettingsDoc, UserStakingSummaryDto, UserStatsDto, UserTokenInventoryResponseDto, ValueFp, VerifyEmailDto, VolumeGraph, Web2UserDoc, Web2UserShardsDto, Web2WalletDto, WebSocketTokenDto, XoxnoInfo, XoxnoLiquidStatsDto } from '@xoxno/types';
|
|
2
|
+
import type { ActivityChain, KustoOrderDirection, LendingPositionOrderByColumn, TokenCategory, UserStatsOrderByColumn } from '@xoxno/types/enums';
|
|
2
3
|
export declare const endpoints: {
|
|
3
4
|
readonly '/user/login': {
|
|
4
5
|
readonly input: {};
|
|
@@ -22,7 +23,7 @@ export declare const endpoints: {
|
|
|
22
23
|
readonly output: {};
|
|
23
24
|
readonly POST: {
|
|
24
25
|
readonly input: {};
|
|
25
|
-
readonly output: UserNetworkInfoDto;
|
|
26
|
+
readonly output: UserNetworkInfoDto[];
|
|
26
27
|
readonly body: string[];
|
|
27
28
|
};
|
|
28
29
|
};
|
|
@@ -248,11 +249,11 @@ export declare const endpoints: {
|
|
|
248
249
|
category?: TokenCategory;
|
|
249
250
|
chain?: ActivityChain[];
|
|
250
251
|
};
|
|
251
|
-
readonly output:
|
|
252
|
+
readonly output: TokenDataDocHydrated[];
|
|
252
253
|
};
|
|
253
254
|
readonly '/tokens/swap': {
|
|
254
255
|
readonly input: {};
|
|
255
|
-
readonly output:
|
|
256
|
+
readonly output: TokenDataDocHydrated[];
|
|
256
257
|
};
|
|
257
258
|
readonly '/tokens/usd-price': {
|
|
258
259
|
readonly input: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { AbiRegistry } from '@multiversx/sdk-core/out/smartcontracts/typesystem/abiRegistry';
|
|
2
|
-
export declare const getSmartContract: (abiRegistry: AbiRegistry, address: string) => Promise<import("@multiversx/sdk-core/out
|
|
2
|
+
export declare const getSmartContract: (abiRegistry: AbiRegistry, address: string) => Promise<import("@multiversx/sdk-core/out").SmartContract>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/sdk-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "The SDK to interact with the XOXNO Protocol!",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -101,6 +101,6 @@
|
|
|
101
101
|
"dependencies": {
|
|
102
102
|
"@multiversx/sdk-core": "^13.17.2",
|
|
103
103
|
"@multiversx/sdk-network-providers": "^2.9.3",
|
|
104
|
-
"@xoxno/types": "^1.0.
|
|
104
|
+
"@xoxno/types": "^1.0.118"
|
|
105
105
|
}
|
|
106
106
|
}
|