@medialane/sdk 0.9.0 → 0.9.2
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/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -359,7 +359,7 @@ interface ApiCollectionsQuery {
|
|
|
359
359
|
}
|
|
360
360
|
type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | "COUNTER_OFFERED";
|
|
361
361
|
type SortOrder = "price_asc" | "price_desc" | "recent";
|
|
362
|
-
type ActivityType = "transfer" | "sale" | "listing" | "offer" | "cancelled";
|
|
362
|
+
type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled";
|
|
363
363
|
type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER";
|
|
364
364
|
type IntentStatus = "PENDING" | "SIGNED" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "EXPIRED";
|
|
365
365
|
type WebhookEventType = "ORDER_CREATED" | "ORDER_FULFILLED" | "ORDER_CANCELLED" | "TRANSFER";
|
|
@@ -553,14 +553,23 @@ interface ApiActivity {
|
|
|
553
553
|
from?: string;
|
|
554
554
|
to?: string;
|
|
555
555
|
blockNumber?: string;
|
|
556
|
+
/** ERC-1155 quantity (transfer/mint rows). "1" for ERC-721. */
|
|
557
|
+
amount?: string;
|
|
556
558
|
orderHash?: string;
|
|
557
559
|
nftContract?: string;
|
|
558
560
|
nftTokenId?: string;
|
|
559
561
|
offerer?: string;
|
|
560
562
|
fulfiller?: string | null;
|
|
561
563
|
price?: ApiActivityPrice;
|
|
564
|
+
/** Token standard — present on order rows. */
|
|
565
|
+
tokenStandard?: "ERC721" | "ERC1155";
|
|
562
566
|
txHash: string | null;
|
|
563
567
|
timestamp: string;
|
|
568
|
+
/** Batch-enriched token metadata — avoids per-row fetches. */
|
|
569
|
+
token?: {
|
|
570
|
+
name: string | null;
|
|
571
|
+
image: string | null;
|
|
572
|
+
} | null;
|
|
564
573
|
}
|
|
565
574
|
interface ApiActivitiesQuery {
|
|
566
575
|
type?: ActivityType;
|
|
@@ -697,7 +706,7 @@ interface CreateCounterOfferIntentParams {
|
|
|
697
706
|
/** Order hash of the original buyer bid being countered. */
|
|
698
707
|
originalOrderHash: string;
|
|
699
708
|
/** Counter price as a raw wei integer string (not human-readable). */
|
|
700
|
-
|
|
709
|
+
priceRaw: string;
|
|
701
710
|
/** Duration in seconds the counter-offer will be valid (3600–2592000). */
|
|
702
711
|
durationSeconds: number;
|
|
703
712
|
/** Optional message from the seller to the buyer. Max 500 chars. */
|
package/dist/index.d.ts
CHANGED
|
@@ -359,7 +359,7 @@ interface ApiCollectionsQuery {
|
|
|
359
359
|
}
|
|
360
360
|
type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | "COUNTER_OFFERED";
|
|
361
361
|
type SortOrder = "price_asc" | "price_desc" | "recent";
|
|
362
|
-
type ActivityType = "transfer" | "sale" | "listing" | "offer" | "cancelled";
|
|
362
|
+
type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled";
|
|
363
363
|
type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER";
|
|
364
364
|
type IntentStatus = "PENDING" | "SIGNED" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "EXPIRED";
|
|
365
365
|
type WebhookEventType = "ORDER_CREATED" | "ORDER_FULFILLED" | "ORDER_CANCELLED" | "TRANSFER";
|
|
@@ -553,14 +553,23 @@ interface ApiActivity {
|
|
|
553
553
|
from?: string;
|
|
554
554
|
to?: string;
|
|
555
555
|
blockNumber?: string;
|
|
556
|
+
/** ERC-1155 quantity (transfer/mint rows). "1" for ERC-721. */
|
|
557
|
+
amount?: string;
|
|
556
558
|
orderHash?: string;
|
|
557
559
|
nftContract?: string;
|
|
558
560
|
nftTokenId?: string;
|
|
559
561
|
offerer?: string;
|
|
560
562
|
fulfiller?: string | null;
|
|
561
563
|
price?: ApiActivityPrice;
|
|
564
|
+
/** Token standard — present on order rows. */
|
|
565
|
+
tokenStandard?: "ERC721" | "ERC1155";
|
|
562
566
|
txHash: string | null;
|
|
563
567
|
timestamp: string;
|
|
568
|
+
/** Batch-enriched token metadata — avoids per-row fetches. */
|
|
569
|
+
token?: {
|
|
570
|
+
name: string | null;
|
|
571
|
+
image: string | null;
|
|
572
|
+
} | null;
|
|
564
573
|
}
|
|
565
574
|
interface ApiActivitiesQuery {
|
|
566
575
|
type?: ActivityType;
|
|
@@ -697,7 +706,7 @@ interface CreateCounterOfferIntentParams {
|
|
|
697
706
|
/** Order hash of the original buyer bid being countered. */
|
|
698
707
|
originalOrderHash: string;
|
|
699
708
|
/** Counter price as a raw wei integer string (not human-readable). */
|
|
700
|
-
|
|
709
|
+
priceRaw: string;
|
|
701
710
|
/** Duration in seconds the counter-offer will be valid (3600–2592000). */
|
|
702
711
|
durationSeconds: number;
|
|
703
712
|
/** Optional message from the seller to the buyer. Max 500 chars. */
|