@medialane/sdk 0.5.0 → 0.5.1
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 +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -762,10 +762,11 @@ declare class ApiClient {
|
|
|
762
762
|
createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
763
763
|
createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
764
764
|
/**
|
|
765
|
-
* Create a counter-offer intent.
|
|
766
|
-
*
|
|
765
|
+
* Create a counter-offer intent. The seller proposes a new price in response
|
|
766
|
+
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|
|
767
|
+
* via the tenant API key; pass a Clerk JWT only if your backend requires it.
|
|
767
768
|
*/
|
|
768
|
-
createCounterOfferIntent(params: CreateCounterOfferIntentParams, clerkToken
|
|
769
|
+
createCounterOfferIntent(params: CreateCounterOfferIntentParams, clerkToken?: string): Promise<ApiResponse<ApiIntentCreated>>;
|
|
769
770
|
/**
|
|
770
771
|
* Fetch counter-offers. Pass `originalOrderHash` (buyer view) or
|
|
771
772
|
* `sellerAddress` (seller view) — at least one is required.
|
package/dist/index.d.ts
CHANGED
|
@@ -762,10 +762,11 @@ declare class ApiClient {
|
|
|
762
762
|
createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
763
763
|
createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
764
764
|
/**
|
|
765
|
-
* Create a counter-offer intent.
|
|
766
|
-
*
|
|
765
|
+
* Create a counter-offer intent. The seller proposes a new price in response
|
|
766
|
+
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|
|
767
|
+
* via the tenant API key; pass a Clerk JWT only if your backend requires it.
|
|
767
768
|
*/
|
|
768
|
-
createCounterOfferIntent(params: CreateCounterOfferIntentParams, clerkToken
|
|
769
|
+
createCounterOfferIntent(params: CreateCounterOfferIntentParams, clerkToken?: string): Promise<ApiResponse<ApiIntentCreated>>;
|
|
769
770
|
/**
|
|
770
771
|
* Fetch counter-offers. Pass `originalOrderHash` (buyer view) or
|
|
771
772
|
* `sellerAddress` (seller view) — at least one is required.
|
package/dist/index.js
CHANGED
|
@@ -1146,14 +1146,16 @@ var ApiClient = class {
|
|
|
1146
1146
|
return this.post("/v1/intents/create-collection", params);
|
|
1147
1147
|
}
|
|
1148
1148
|
/**
|
|
1149
|
-
* Create a counter-offer intent.
|
|
1150
|
-
*
|
|
1149
|
+
* Create a counter-offer intent. The seller proposes a new price in response
|
|
1150
|
+
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|
|
1151
|
+
* via the tenant API key; pass a Clerk JWT only if your backend requires it.
|
|
1151
1152
|
*/
|
|
1152
1153
|
createCounterOfferIntent(params, clerkToken) {
|
|
1154
|
+
const extraHeaders = clerkToken ? { "Authorization": `Bearer ${clerkToken}` } : {};
|
|
1153
1155
|
return this.request("/v1/intents/counter-offer", {
|
|
1154
1156
|
method: "POST",
|
|
1155
1157
|
body: JSON.stringify(params),
|
|
1156
|
-
headers:
|
|
1158
|
+
headers: extraHeaders
|
|
1157
1159
|
});
|
|
1158
1160
|
}
|
|
1159
1161
|
/**
|