@zoralabs/coins-sdk 0.5.2 → 0.6.0
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/CHANGELOG.md +12 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/queries.d.ts +9 -1
- package/dist/api/queries.d.ts.map +1 -1
- package/dist/api/social.d.ts +8 -0
- package/dist/api/social.d.ts.map +1 -0
- package/dist/client/sdk.gen.d.ts +144 -1
- package/dist/client/sdk.gen.d.ts.map +1 -1
- package/dist/client/types.gen.d.ts +411 -1
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/index.cjs +63 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +62 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/index.ts +4 -0
- package/src/api/queries.ts +36 -0
- package/src/api/social.ts +23 -0
- package/src/client/sdk.gen.ts +48 -0
- package/src/client/types.gen.ts +421 -1
- package/src/index.ts +4 -0
package/src/client/sdk.gen.ts
CHANGED
|
@@ -40,6 +40,8 @@ import type {
|
|
|
40
40
|
GetProfileResponse,
|
|
41
41
|
GetProfileBalancesData,
|
|
42
42
|
GetProfileBalancesResponse,
|
|
43
|
+
GetProfileBySocialHandleData,
|
|
44
|
+
GetProfileBySocialHandleResponse,
|
|
43
45
|
GetProfileCoinsData,
|
|
44
46
|
GetProfileCoinsResponse,
|
|
45
47
|
GetProfileSocialData,
|
|
@@ -54,6 +56,8 @@ import type {
|
|
|
54
56
|
GetTrendCoinResponse,
|
|
55
57
|
GetTrendsByNameData,
|
|
56
58
|
GetTrendsByNameResponse,
|
|
59
|
+
GetWalletTradeActivityData,
|
|
60
|
+
GetWalletTradeActivityResponse,
|
|
57
61
|
PostQuoteData,
|
|
58
62
|
PostQuoteResponse,
|
|
59
63
|
PostQuoteError,
|
|
@@ -460,6 +464,28 @@ export const getProfileBalances = <ThrowOnError extends boolean = false>(
|
|
|
460
464
|
});
|
|
461
465
|
};
|
|
462
466
|
|
|
467
|
+
/**
|
|
468
|
+
* zoraSDK_profileBySocialHandle query
|
|
469
|
+
*/
|
|
470
|
+
export const getProfileBySocialHandle = <ThrowOnError extends boolean = false>(
|
|
471
|
+
options: Options<GetProfileBySocialHandleData, ThrowOnError>,
|
|
472
|
+
) => {
|
|
473
|
+
return (options.client ?? _heyApiClient).get<
|
|
474
|
+
GetProfileBySocialHandleResponse,
|
|
475
|
+
unknown,
|
|
476
|
+
ThrowOnError
|
|
477
|
+
>({
|
|
478
|
+
security: [
|
|
479
|
+
{
|
|
480
|
+
name: "api-key",
|
|
481
|
+
type: "apiKey",
|
|
482
|
+
},
|
|
483
|
+
],
|
|
484
|
+
url: "/profileBySocialHandle",
|
|
485
|
+
...options,
|
|
486
|
+
});
|
|
487
|
+
};
|
|
488
|
+
|
|
463
489
|
/**
|
|
464
490
|
* zoraSDK_profileCoins query
|
|
465
491
|
*/
|
|
@@ -614,6 +640,28 @@ export const getTrendsByName = <ThrowOnError extends boolean = false>(
|
|
|
614
640
|
});
|
|
615
641
|
};
|
|
616
642
|
|
|
643
|
+
/**
|
|
644
|
+
* zoraSDK_walletTradeActivity query
|
|
645
|
+
*/
|
|
646
|
+
export const getWalletTradeActivity = <ThrowOnError extends boolean = false>(
|
|
647
|
+
options: Options<GetWalletTradeActivityData, ThrowOnError>,
|
|
648
|
+
) => {
|
|
649
|
+
return (options.client ?? _heyApiClient).get<
|
|
650
|
+
GetWalletTradeActivityResponse,
|
|
651
|
+
unknown,
|
|
652
|
+
ThrowOnError
|
|
653
|
+
>({
|
|
654
|
+
security: [
|
|
655
|
+
{
|
|
656
|
+
name: "api-key",
|
|
657
|
+
type: "apiKey",
|
|
658
|
+
},
|
|
659
|
+
],
|
|
660
|
+
url: "/walletTradeActivity",
|
|
661
|
+
...options,
|
|
662
|
+
});
|
|
663
|
+
};
|
|
664
|
+
|
|
617
665
|
export const postQuote = <ThrowOnError extends boolean = false>(
|
|
618
666
|
options?: Options<PostQuoteData, ThrowOnError>,
|
|
619
667
|
) => {
|
package/src/client/types.gen.ts
CHANGED
|
@@ -899,6 +899,9 @@ export type GetCoinsResponses = {
|
|
|
899
899
|
* Successful operation
|
|
900
900
|
*/
|
|
901
901
|
200: {
|
|
902
|
+
/**
|
|
903
|
+
* Batch-resolve Zora ERC-20 coins. Returns nulls for unknown IDs. Preserves input order.
|
|
904
|
+
*/
|
|
902
905
|
zora20Tokens: Array<{
|
|
903
906
|
/**
|
|
904
907
|
* The Globally Unique ID of this object
|
|
@@ -1389,7 +1392,7 @@ export type SetCreateUploadJwtResponses = {
|
|
|
1389
1392
|
*/
|
|
1390
1393
|
200: {
|
|
1391
1394
|
/**
|
|
1392
|
-
*
|
|
1395
|
+
* Generate a signed JWT for media uploads, authenticated via API key.
|
|
1393
1396
|
*/
|
|
1394
1397
|
createUploadJwtFromApiKey: string;
|
|
1395
1398
|
};
|
|
@@ -2822,6 +2825,165 @@ export type GetProfileBalancesResponses = {
|
|
|
2822
2825
|
export type GetProfileBalancesResponse =
|
|
2823
2826
|
GetProfileBalancesResponses[keyof GetProfileBalancesResponses];
|
|
2824
2827
|
|
|
2828
|
+
export type GetProfileBySocialHandleData = {
|
|
2829
|
+
body?: never;
|
|
2830
|
+
path?: never;
|
|
2831
|
+
query: {
|
|
2832
|
+
platform: "TWITTER" | "TIKTOK" | "FARCASTER" | "INSTAGRAM";
|
|
2833
|
+
handle: string;
|
|
2834
|
+
};
|
|
2835
|
+
url: "/profileBySocialHandle";
|
|
2836
|
+
};
|
|
2837
|
+
|
|
2838
|
+
export type GetProfileBySocialHandleErrors = {
|
|
2839
|
+
/**
|
|
2840
|
+
* Bad request
|
|
2841
|
+
*/
|
|
2842
|
+
400: unknown;
|
|
2843
|
+
/**
|
|
2844
|
+
* Internal server error
|
|
2845
|
+
*/
|
|
2846
|
+
500: unknown;
|
|
2847
|
+
};
|
|
2848
|
+
|
|
2849
|
+
export type GetProfileBySocialHandleResponses = {
|
|
2850
|
+
/**
|
|
2851
|
+
* Successful operation
|
|
2852
|
+
*/
|
|
2853
|
+
200: {
|
|
2854
|
+
profileBySocialHandle?: {
|
|
2855
|
+
/**
|
|
2856
|
+
* The Globally Unique ID of this object
|
|
2857
|
+
*/
|
|
2858
|
+
id: string;
|
|
2859
|
+
/**
|
|
2860
|
+
* Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
|
|
2861
|
+
*/
|
|
2862
|
+
handle: string;
|
|
2863
|
+
/**
|
|
2864
|
+
* The `Boolean` scalar type represents `true` or `false`.
|
|
2865
|
+
*/
|
|
2866
|
+
platformBlocked: boolean;
|
|
2867
|
+
avatar?: {
|
|
2868
|
+
previewImage: {
|
|
2869
|
+
/**
|
|
2870
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2871
|
+
*/
|
|
2872
|
+
blurhash?: string;
|
|
2873
|
+
/**
|
|
2874
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2875
|
+
*/
|
|
2876
|
+
medium: string;
|
|
2877
|
+
/**
|
|
2878
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2879
|
+
*/
|
|
2880
|
+
small: string;
|
|
2881
|
+
};
|
|
2882
|
+
};
|
|
2883
|
+
socialAccounts: {
|
|
2884
|
+
instagram?: {
|
|
2885
|
+
/**
|
|
2886
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2887
|
+
*/
|
|
2888
|
+
username?: string;
|
|
2889
|
+
/**
|
|
2890
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2891
|
+
*/
|
|
2892
|
+
displayName?: string;
|
|
2893
|
+
/**
|
|
2894
|
+
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
2895
|
+
*/
|
|
2896
|
+
followerCount?: number;
|
|
2897
|
+
/**
|
|
2898
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2899
|
+
*/
|
|
2900
|
+
id?: string;
|
|
2901
|
+
};
|
|
2902
|
+
tiktok?: {
|
|
2903
|
+
/**
|
|
2904
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2905
|
+
*/
|
|
2906
|
+
username?: string;
|
|
2907
|
+
/**
|
|
2908
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2909
|
+
*/
|
|
2910
|
+
displayName?: string;
|
|
2911
|
+
/**
|
|
2912
|
+
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
2913
|
+
*/
|
|
2914
|
+
followerCount?: number;
|
|
2915
|
+
/**
|
|
2916
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2917
|
+
*/
|
|
2918
|
+
id?: string;
|
|
2919
|
+
};
|
|
2920
|
+
twitter?: {
|
|
2921
|
+
/**
|
|
2922
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2923
|
+
*/
|
|
2924
|
+
username?: string;
|
|
2925
|
+
/**
|
|
2926
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2927
|
+
*/
|
|
2928
|
+
displayName?: string;
|
|
2929
|
+
/**
|
|
2930
|
+
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
2931
|
+
*/
|
|
2932
|
+
followerCount?: number;
|
|
2933
|
+
/**
|
|
2934
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2935
|
+
*/
|
|
2936
|
+
id?: string;
|
|
2937
|
+
};
|
|
2938
|
+
farcaster?: {
|
|
2939
|
+
/**
|
|
2940
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2941
|
+
*/
|
|
2942
|
+
username?: string;
|
|
2943
|
+
/**
|
|
2944
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2945
|
+
*/
|
|
2946
|
+
displayName?: string;
|
|
2947
|
+
/**
|
|
2948
|
+
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
2949
|
+
*/
|
|
2950
|
+
followerCount?: number;
|
|
2951
|
+
/**
|
|
2952
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2953
|
+
*/
|
|
2954
|
+
id?: string;
|
|
2955
|
+
};
|
|
2956
|
+
};
|
|
2957
|
+
creatorCoin?: {
|
|
2958
|
+
/**
|
|
2959
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2960
|
+
*/
|
|
2961
|
+
symbol: string;
|
|
2962
|
+
/**
|
|
2963
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2964
|
+
*/
|
|
2965
|
+
marketCap: string;
|
|
2966
|
+
/**
|
|
2967
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2968
|
+
*/
|
|
2969
|
+
marketCapDelta24h: string;
|
|
2970
|
+
multichainAddress: string;
|
|
2971
|
+
};
|
|
2972
|
+
/**
|
|
2973
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2974
|
+
*/
|
|
2975
|
+
username: string;
|
|
2976
|
+
/**
|
|
2977
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2978
|
+
*/
|
|
2979
|
+
displayName?: string;
|
|
2980
|
+
};
|
|
2981
|
+
};
|
|
2982
|
+
};
|
|
2983
|
+
|
|
2984
|
+
export type GetProfileBySocialHandleResponse =
|
|
2985
|
+
GetProfileBySocialHandleResponses[keyof GetProfileBySocialHandleResponses];
|
|
2986
|
+
|
|
2825
2987
|
export type GetProfileCoinsData = {
|
|
2826
2988
|
body?: never;
|
|
2827
2989
|
path?: never;
|
|
@@ -4406,6 +4568,264 @@ export type GetTrendsByNameResponses = {
|
|
|
4406
4568
|
export type GetTrendsByNameResponse =
|
|
4407
4569
|
GetTrendsByNameResponses[keyof GetTrendsByNameResponses];
|
|
4408
4570
|
|
|
4571
|
+
export type GetWalletTradeActivityData = {
|
|
4572
|
+
body?: never;
|
|
4573
|
+
path?: never;
|
|
4574
|
+
query: {
|
|
4575
|
+
identifier: string;
|
|
4576
|
+
after?: string;
|
|
4577
|
+
first?: number;
|
|
4578
|
+
};
|
|
4579
|
+
url: "/walletTradeActivity";
|
|
4580
|
+
};
|
|
4581
|
+
|
|
4582
|
+
export type GetWalletTradeActivityErrors = {
|
|
4583
|
+
/**
|
|
4584
|
+
* Bad request
|
|
4585
|
+
*/
|
|
4586
|
+
400: unknown;
|
|
4587
|
+
/**
|
|
4588
|
+
* Internal server error
|
|
4589
|
+
*/
|
|
4590
|
+
500: unknown;
|
|
4591
|
+
};
|
|
4592
|
+
|
|
4593
|
+
export type GetWalletTradeActivityResponses = {
|
|
4594
|
+
/**
|
|
4595
|
+
* Successful operation
|
|
4596
|
+
*/
|
|
4597
|
+
200: {
|
|
4598
|
+
walletAddressTradeActivity: {
|
|
4599
|
+
/**
|
|
4600
|
+
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
4601
|
+
*/
|
|
4602
|
+
count: number;
|
|
4603
|
+
edges: Array<{
|
|
4604
|
+
node: {
|
|
4605
|
+
/**
|
|
4606
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4607
|
+
*/
|
|
4608
|
+
transactionHash: string;
|
|
4609
|
+
/**
|
|
4610
|
+
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
4611
|
+
*/
|
|
4612
|
+
transactionLogIndex?: number;
|
|
4613
|
+
/**
|
|
4614
|
+
* Date with time (isoformat)
|
|
4615
|
+
*/
|
|
4616
|
+
blockTimestamp: string;
|
|
4617
|
+
/**
|
|
4618
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4619
|
+
*/
|
|
4620
|
+
coinAmount: string;
|
|
4621
|
+
coin?: {
|
|
4622
|
+
/**
|
|
4623
|
+
* The `Boolean` scalar type represents `true` or `false`.
|
|
4624
|
+
*/
|
|
4625
|
+
platformBlocked: boolean;
|
|
4626
|
+
address: string;
|
|
4627
|
+
coinType: "CREATOR" | "CONTENT" | "TREND";
|
|
4628
|
+
/**
|
|
4629
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4630
|
+
*/
|
|
4631
|
+
name: string;
|
|
4632
|
+
/**
|
|
4633
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4634
|
+
*/
|
|
4635
|
+
symbol: string;
|
|
4636
|
+
/**
|
|
4637
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4638
|
+
*/
|
|
4639
|
+
description: string;
|
|
4640
|
+
/**
|
|
4641
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4642
|
+
*/
|
|
4643
|
+
tokenUri?: string;
|
|
4644
|
+
mediaContent?: {
|
|
4645
|
+
previewImage?: {
|
|
4646
|
+
/**
|
|
4647
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4648
|
+
*/
|
|
4649
|
+
small: string;
|
|
4650
|
+
/**
|
|
4651
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4652
|
+
*/
|
|
4653
|
+
blurhash?: string;
|
|
4654
|
+
/**
|
|
4655
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4656
|
+
*/
|
|
4657
|
+
medium: string;
|
|
4658
|
+
};
|
|
4659
|
+
};
|
|
4660
|
+
creatorAddress?: string;
|
|
4661
|
+
creatorProfile?: {
|
|
4662
|
+
/**
|
|
4663
|
+
* The Globally Unique ID of this object
|
|
4664
|
+
*/
|
|
4665
|
+
id: string;
|
|
4666
|
+
/**
|
|
4667
|
+
* Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
|
|
4668
|
+
*/
|
|
4669
|
+
handle: string;
|
|
4670
|
+
/**
|
|
4671
|
+
* The `Boolean` scalar type represents `true` or `false`.
|
|
4672
|
+
*/
|
|
4673
|
+
platformBlocked: boolean;
|
|
4674
|
+
avatar?: {
|
|
4675
|
+
previewImage: {
|
|
4676
|
+
/**
|
|
4677
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4678
|
+
*/
|
|
4679
|
+
blurhash?: string;
|
|
4680
|
+
/**
|
|
4681
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4682
|
+
*/
|
|
4683
|
+
medium: string;
|
|
4684
|
+
/**
|
|
4685
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4686
|
+
*/
|
|
4687
|
+
small: string;
|
|
4688
|
+
};
|
|
4689
|
+
};
|
|
4690
|
+
};
|
|
4691
|
+
uniswapPoolAddress: string;
|
|
4692
|
+
/**
|
|
4693
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4694
|
+
*/
|
|
4695
|
+
totalSupply: string;
|
|
4696
|
+
};
|
|
4697
|
+
/**
|
|
4698
|
+
* The Globally Unique ID of this object
|
|
4699
|
+
*/
|
|
4700
|
+
id: string;
|
|
4701
|
+
swapActivityType?: "BUY" | "SELL";
|
|
4702
|
+
currencyAmountWithPrice: {
|
|
4703
|
+
/**
|
|
4704
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4705
|
+
*/
|
|
4706
|
+
amountUsd?: string;
|
|
4707
|
+
/**
|
|
4708
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4709
|
+
*/
|
|
4710
|
+
priceUsdc?: string;
|
|
4711
|
+
/**
|
|
4712
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4713
|
+
*/
|
|
4714
|
+
priceDelta24h?: string;
|
|
4715
|
+
currencyAmount: {
|
|
4716
|
+
/**
|
|
4717
|
+
* Ethereum address of the currency
|
|
4718
|
+
*/
|
|
4719
|
+
currencyAddress: string;
|
|
4720
|
+
/**
|
|
4721
|
+
* Amount of the currency, in float format accounting for currency decimals
|
|
4722
|
+
*/
|
|
4723
|
+
amountDecimal: number;
|
|
4724
|
+
/**
|
|
4725
|
+
* Raw amount of the currency, in wei. Not formatted with decimals
|
|
4726
|
+
*/
|
|
4727
|
+
amountRaw: string;
|
|
4728
|
+
};
|
|
4729
|
+
};
|
|
4730
|
+
senderProfile?: {
|
|
4731
|
+
/**
|
|
4732
|
+
* The Globally Unique ID of this object
|
|
4733
|
+
*/
|
|
4734
|
+
id: string;
|
|
4735
|
+
/**
|
|
4736
|
+
* Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
|
|
4737
|
+
*/
|
|
4738
|
+
handle: string;
|
|
4739
|
+
/**
|
|
4740
|
+
* The `Boolean` scalar type represents `true` or `false`.
|
|
4741
|
+
*/
|
|
4742
|
+
platformBlocked: boolean;
|
|
4743
|
+
avatar?: {
|
|
4744
|
+
previewImage: {
|
|
4745
|
+
/**
|
|
4746
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4747
|
+
*/
|
|
4748
|
+
blurhash?: string;
|
|
4749
|
+
/**
|
|
4750
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4751
|
+
*/
|
|
4752
|
+
medium: string;
|
|
4753
|
+
/**
|
|
4754
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4755
|
+
*/
|
|
4756
|
+
small: string;
|
|
4757
|
+
};
|
|
4758
|
+
};
|
|
4759
|
+
};
|
|
4760
|
+
/**
|
|
4761
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4762
|
+
*/
|
|
4763
|
+
orderId: string;
|
|
4764
|
+
/**
|
|
4765
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4766
|
+
*/
|
|
4767
|
+
initialBuyAmount?: string;
|
|
4768
|
+
/**
|
|
4769
|
+
* The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
|
|
4770
|
+
*/
|
|
4771
|
+
initialBuyAmountUsd?: number;
|
|
4772
|
+
/**
|
|
4773
|
+
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
4774
|
+
*/
|
|
4775
|
+
multiplier: number;
|
|
4776
|
+
makerProfile?: {
|
|
4777
|
+
/**
|
|
4778
|
+
* The Globally Unique ID of this object
|
|
4779
|
+
*/
|
|
4780
|
+
id: string;
|
|
4781
|
+
/**
|
|
4782
|
+
* Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
|
|
4783
|
+
*/
|
|
4784
|
+
handle: string;
|
|
4785
|
+
/**
|
|
4786
|
+
* The `Boolean` scalar type represents `true` or `false`.
|
|
4787
|
+
*/
|
|
4788
|
+
platformBlocked: boolean;
|
|
4789
|
+
avatar?: {
|
|
4790
|
+
previewImage: {
|
|
4791
|
+
/**
|
|
4792
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4793
|
+
*/
|
|
4794
|
+
blurhash?: string;
|
|
4795
|
+
/**
|
|
4796
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4797
|
+
*/
|
|
4798
|
+
medium: string;
|
|
4799
|
+
/**
|
|
4800
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4801
|
+
*/
|
|
4802
|
+
small: string;
|
|
4803
|
+
};
|
|
4804
|
+
};
|
|
4805
|
+
};
|
|
4806
|
+
};
|
|
4807
|
+
/**
|
|
4808
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
4809
|
+
*/
|
|
4810
|
+
cursor: string;
|
|
4811
|
+
}>;
|
|
4812
|
+
pageInfo: {
|
|
4813
|
+
/**
|
|
4814
|
+
* When paginating forwards, the cursor to continue.
|
|
4815
|
+
*/
|
|
4816
|
+
endCursor?: string;
|
|
4817
|
+
/**
|
|
4818
|
+
* When paginating forwards, are there more items?
|
|
4819
|
+
*/
|
|
4820
|
+
hasNextPage: boolean;
|
|
4821
|
+
};
|
|
4822
|
+
};
|
|
4823
|
+
};
|
|
4824
|
+
};
|
|
4825
|
+
|
|
4826
|
+
export type GetWalletTradeActivityResponse =
|
|
4827
|
+
GetWalletTradeActivityResponses[keyof GetWalletTradeActivityResponses];
|
|
4828
|
+
|
|
4409
4829
|
export type PostQuoteData = {
|
|
4410
4830
|
body?: {
|
|
4411
4831
|
referrer?: string;
|
package/src/index.ts
CHANGED
|
@@ -32,6 +32,10 @@ export type * from "./api/queries";
|
|
|
32
32
|
export * from "./api/explore";
|
|
33
33
|
export type * from "./api/explore";
|
|
34
34
|
|
|
35
|
+
// API Social Actions
|
|
36
|
+
export * from "./api/social";
|
|
37
|
+
export type * from "./api/social";
|
|
38
|
+
|
|
35
39
|
// API Key Setter
|
|
36
40
|
export { setApiKey } from "./api/api-key";
|
|
37
41
|
|