@sign-global/tokentable-core 1.2.2 → 1.4.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/dist/index.mjs CHANGED
@@ -331,6 +331,7 @@ var SupportedChains = [
331
331
  var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
332
332
  var CONST = {
333
333
  TWITTER_AUTH_SUCCESS: "twitter:auth:success",
334
+ DISCORD_AUTH_SUCCESS: "discord:auth:success",
334
335
  GOOGLE_AUTH_SUCCESS: "google:auth:success",
335
336
  WELCOME_SIGNATURE_STATEMENT: "Welcome to TokenTable!"
336
337
  };
@@ -3728,6 +3729,7 @@ var AirdropSigIdentityTypeEnum = /* @__PURE__ */ ((AirdropSigIdentityTypeEnum2)
3728
3729
  AirdropSigIdentityTypeEnum2["EVMWallet"] = "EVM Wallet";
3729
3730
  AirdropSigIdentityTypeEnum2["TONWallet"] = "TON Wallet";
3730
3731
  AirdropSigIdentityTypeEnum2["Google"] = "Google Account";
3732
+ AirdropSigIdentityTypeEnum2["Discord"] = "Discord Account";
3731
3733
  return AirdropSigIdentityTypeEnum2;
3732
3734
  })(AirdropSigIdentityTypeEnum || {});
3733
3735
  var ETokenType = /* @__PURE__ */ ((ETokenType2) => {
@@ -10531,6 +10533,12 @@ var connectGoogleApi = async (data, baseURL) => {
10531
10533
  headers: getSidHeader(data.projectId)
10532
10534
  });
10533
10535
  };
10536
+ var connectDiscordApi = async (data, baseURL) => {
10537
+ const client = createApiClient(baseURL);
10538
+ return client.post("/airdrop-open/connect-discord", data, {
10539
+ headers: getSidHeader(data.projectId)
10540
+ });
10541
+ };
10534
10542
  var checkEligibility = async (data, baseURL) => {
10535
10543
  const headers = getSidHeader(data.projectId);
10536
10544
  if (!headers.sid)
@@ -12688,6 +12696,7 @@ export {
12688
12696
  checkGetSignatures,
12689
12697
  cleanUrlParams,
12690
12698
  clusterApiUrl,
12699
+ connectDiscordApi,
12691
12700
  connectGoogleApi,
12692
12701
  connectTwitter,
12693
12702
  delay,