@tradeport/sui-trading-sdk 0.4.52 → 0.4.53

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
@@ -200,7 +200,7 @@ type WithdrawProfitsFromKiosks = {
200
200
  type ApiConfig = {
201
201
  apiUser: string;
202
202
  apiKey: string;
203
- apiUrl: string;
203
+ apiUrl?: string;
204
204
  apiVercelId?: string;
205
205
  suiNodeUrl?: string;
206
206
  graphQLClient?: GraphQLClient;
package/dist/index.d.ts CHANGED
@@ -200,7 +200,7 @@ type WithdrawProfitsFromKiosks = {
200
200
  type ApiConfig = {
201
201
  apiUser: string;
202
202
  apiKey: string;
203
- apiUrl: string;
203
+ apiUrl?: string;
204
204
  apiVercelId?: string;
205
205
  suiNodeUrl?: string;
206
206
  graphQLClient?: GraphQLClient;
package/dist/index.js CHANGED
@@ -7552,12 +7552,12 @@ var SuiTradingClient = class {
7552
7552
  this.allowedApiUsersForUnsharedKiosksMigration = ["tradeport.xyz", "mercato.xyz"];
7553
7553
  this.apiUser = apiUser;
7554
7554
  this.apiKey = apiKey;
7555
- this.suiClient = createSuiClient_default(suiNodeUrl || (0, import_client2.getFullnodeUrl)("mainnet"));
7555
+ this.suiClient = createSuiClient_default(suiNodeUrl ?? (0, import_client2.getFullnodeUrl)("mainnet"));
7556
7556
  this.kioskClient = createKioskClient_default(this.suiClient);
7557
7557
  if (graphQLClient) {
7558
7558
  setGraphqlClient(graphQLClient);
7559
7559
  } else {
7560
- setGraphqlClient(new import_graphql_request22.GraphQLClient(apiUrl));
7560
+ setGraphqlClient(new import_graphql_request22.GraphQLClient(apiUrl ?? "https://api.indexer.xyz/graphql"));
7561
7561
  }
7562
7562
  getGraphqlClient().setHeaders({
7563
7563
  "x-api-user": apiUser,