@tradeport/sui-trading-sdk 0.4.51 → 0.4.52

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.d.mts CHANGED
@@ -201,6 +201,7 @@ type ApiConfig = {
201
201
  apiUser: string;
202
202
  apiKey: string;
203
203
  apiUrl: string;
204
+ apiVercelId?: string;
204
205
  suiNodeUrl?: string;
205
206
  graphQLClient?: GraphQLClient;
206
207
  };
@@ -210,7 +211,7 @@ declare class SuiTradingClient {
210
211
  private readonly suiClient;
211
212
  private readonly kioskClient;
212
213
  private readonly allowedApiUsersForUnsharedKiosksMigration;
213
- constructor({ apiUser, apiKey, apiUrl, suiNodeUrl, graphQLClient }: ApiConfig);
214
+ constructor({ apiUser, apiKey, apiVercelId, apiUrl, suiNodeUrl, graphQLClient }: ApiConfig);
214
215
  buyListings({ listingIds, walletAddress, tx }: BuyListings): Promise<Transaction>;
215
216
  listNfts({ nfts, walletAddress }: ListNfts): Promise<Transaction>;
216
217
  unlistListings({ listingIds, walletAddress }: UnlistListings): Promise<Transaction>;
package/dist/index.d.ts CHANGED
@@ -201,6 +201,7 @@ type ApiConfig = {
201
201
  apiUser: string;
202
202
  apiKey: string;
203
203
  apiUrl: string;
204
+ apiVercelId?: string;
204
205
  suiNodeUrl?: string;
205
206
  graphQLClient?: GraphQLClient;
206
207
  };
@@ -210,7 +211,7 @@ declare class SuiTradingClient {
210
211
  private readonly suiClient;
211
212
  private readonly kioskClient;
212
213
  private readonly allowedApiUsersForUnsharedKiosksMigration;
213
- constructor({ apiUser, apiKey, apiUrl, suiNodeUrl, graphQLClient }: ApiConfig);
214
+ constructor({ apiUser, apiKey, apiVercelId, apiUrl, suiNodeUrl, graphQLClient }: ApiConfig);
214
215
  buyListings({ listingIds, walletAddress, tx }: BuyListings): Promise<Transaction>;
215
216
  listNfts({ nfts, walletAddress }: ListNfts): Promise<Transaction>;
216
217
  unlistListings({ listingIds, walletAddress }: UnlistListings): Promise<Transaction>;
package/dist/index.js CHANGED
@@ -7548,7 +7548,7 @@ var sponsorNftListing = async ({ nftTokenId, walletAddress, options }, context)
7548
7548
 
7549
7549
  // src/SuiTradingClient.ts
7550
7550
  var SuiTradingClient = class {
7551
- constructor({ apiUser, apiKey, apiUrl, suiNodeUrl, graphQLClient }) {
7551
+ constructor({ apiUser, apiKey, apiVercelId, apiUrl, suiNodeUrl, graphQLClient }) {
7552
7552
  this.allowedApiUsersForUnsharedKiosksMigration = ["tradeport.xyz", "mercato.xyz"];
7553
7553
  this.apiUser = apiUser;
7554
7554
  this.apiKey = apiKey;
@@ -7561,7 +7561,8 @@ var SuiTradingClient = class {
7561
7561
  }
7562
7562
  getGraphqlClient().setHeaders({
7563
7563
  "x-api-user": apiUser,
7564
- "x-api-key": apiKey
7564
+ "x-api-key": apiKey,
7565
+ ...apiVercelId && { "x-vercel-id": apiVercelId }
7565
7566
  });
7566
7567
  }
7567
7568
  async buyListings({ listingIds, walletAddress, tx }) {